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

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

There is a newer version: 4.7.5
Show newest version
package org.semanticweb.owlapi.search;

import javax.annotation.Nonnull;

import org.semanticweb.owlapi.model.OWLAnnotationPropertyDomainAxiom;
import org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom;
import org.semanticweb.owlapi.model.OWLObject;
import org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom;
import org.semanticweb.owlapi.util.OWLAxiomVisitorExAdapter;

@SuppressWarnings("unchecked")
class DomainVisitor extends OWLAxiomVisitorExAdapter {

    @SuppressWarnings("null")
    /**default constructor*/
    public DomainVisitor() {
        super(null);
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy