All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.coode.oppl.utils.IRIVisitorExAdapter Maven / Gradle / Ivy

package org.coode.oppl.utils;

import org.coode.parsers.oppl.IRIVisitorEx;
import org.coode.parsers.oppl.VariableIRI;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.util.OWLObjectVisitorExAdapter;

/** @author Luigi Iannone
 * @param 
 *            type */
public class IRIVisitorExAdapter extends OWLObjectVisitorExAdapter implements
        IRIVisitorEx {
    /** default constructor */
    public IRIVisitorExAdapter() {
        super();
    }

    /** @param defaultReturnValue
     *            defaultReturnValue */
    public IRIVisitorExAdapter(O defaultReturnValue) {
        super(defaultReturnValue);
    }

    @Override
    public O visit(IRI iri) {
        return this.visitIRI(iri);
    }

    @Override
    public O visitIRI(IRI iri) {
        return getDefaultReturnValue(iri);
    }

    @Override
    public O visitVariableIRI(VariableIRI iri) {
        return getDefaultReturnValue(iri);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy