org.semanticweb.elk.reasoner.entailments.DefaultEntailmentVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elk-reasoner Show documentation
Show all versions of elk-reasoner Show documentation
The core ELK Reasoner package
/*-
* #%L
* ELK Reasoner Core
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2011 - 2016 Department of Computer Science, University of Oxford
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.semanticweb.elk.reasoner.entailments;
import org.semanticweb.elk.owl.interfaces.ElkAxiom;
import org.semanticweb.elk.reasoner.entailments.model.AxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.ClassAssertionAxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.DifferentIndividualsAxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.DisjointClassesAxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.Entailment;
import org.semanticweb.elk.reasoner.entailments.model.EquivalentClassesAxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.ObjectPropertyAssertionAxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.ObjectPropertyDomainAxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.OntologyInconsistency;
import org.semanticweb.elk.reasoner.entailments.model.SameIndividualAxiomEntailment;
import org.semanticweb.elk.reasoner.entailments.model.SubClassOfAxiomEntailment;
public class DefaultEntailmentVisitor implements Entailment.Visitor {
/**
* N-OP default visitor
*
* @param entailment
* the visited {@link Entailment}
*
* @return {@code null}
*/
public O defaultVisit(final Entailment entailment) {
return null;
}
public O defaultAxiomEntailmentVisit(
final AxiomEntailment axiomEntailment) {
return defaultVisit(axiomEntailment);
}
@Override
public O visit(
final ClassAssertionAxiomEntailment classAssertionAxiomEntailment) {
return defaultAxiomEntailmentVisit(classAssertionAxiomEntailment);
}
@Override
public O visit(
final DifferentIndividualsAxiomEntailment differentIndividualsEntailment) {
return defaultAxiomEntailmentVisit(differentIndividualsEntailment);
}
@Override
public O visit(
final DisjointClassesAxiomEntailment disjointClassesAxiomEntailment) {
return defaultAxiomEntailmentVisit(disjointClassesAxiomEntailment);
}
@Override
public O visit(
final EquivalentClassesAxiomEntailment equivalentClassesAxiomEntailment) {
return defaultAxiomEntailmentVisit(equivalentClassesAxiomEntailment);
}
@Override
public O visit(
final ObjectPropertyAssertionAxiomEntailment objectPropertyAssertionAxiomEntailment) {
return defaultAxiomEntailmentVisit(
objectPropertyAssertionAxiomEntailment);
}
@Override
public O visit(
final ObjectPropertyDomainAxiomEntailment objectPropertyDomainAxiomEntailment) {
return defaultAxiomEntailmentVisit(objectPropertyDomainAxiomEntailment);
}
@Override
public O visit(final OntologyInconsistency inconsistentOntologyEntailment) {
return defaultVisit(inconsistentOntologyEntailment);
}
@Override
public O visit(
final SameIndividualAxiomEntailment sameIndividualAxiomEntailment) {
return defaultAxiomEntailmentVisit(sameIndividualAxiomEntailment);
}
@Override
public O visit(final SubClassOfAxiomEntailment subClassOfAxiomEntailment) {
return defaultAxiomEntailmentVisit(subClassOfAxiomEntailment);
}
}