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

org.semanticweb.owlapi.search.DomainVisitor Maven / Gradle / Ivy

The newest version!
package org.semanticweb.owlapi.search;

import org.semanticweb.owlapi.model.OWLAnnotationPropertyDomainAxiom;
import org.semanticweb.owlapi.model.OWLAxiomVisitorEx;
import org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom;
import org.semanticweb.owlapi.model.OWLObject;
import org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom;

@SuppressWarnings("unchecked")
class DomainVisitor implements OWLAxiomVisitorEx {

    @Override
    public C visit(OWLAnnotationPropertyDomainAxiom axiom) {
        return (C) axiom.getDomain();
    }

    @Override
    public C visit(OWLDataPropertyDomainAxiom axiom) {
        return (C) axiom.getDomain();
    }

    @Override
    public C visit(OWLObjectPropertyDomainAxiom axiom) {
        return (C) axiom.getDomain();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy