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

org.semanticweb.owlapi.search.RangeVisitor 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.OWLAnnotationPropertyRangeAxiom;
import org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom;
import org.semanticweb.owlapi.model.OWLObject;
import org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom;
import org.semanticweb.owlapi.util.OWLAxiomVisitorExAdapter;

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

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

    @Override
    public C visit(@Nonnull OWLAnnotationPropertyRangeAxiom axiom) {
        return (C) axiom.getRange();
    }

    @Override
    public C visit(@Nonnull OWLDataPropertyRangeAxiom axiom) {
        return (C) axiom.getRange();
    }

    @Override
    public C visit(@Nonnull OWLObjectPropertyRangeAxiom axiom) {
        return (C) axiom.getRange();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy