public class OWLEntityComparator extends Object implements Comparator<OWLEntity>, OWLEntityVisitor, Serializable
Comparator which compares entities. Entities are compared first by
their type (in the following order: Class, Object property, Data property,
Individual, Datatype) then by their short form (using the specified short
form provider).| Constructor and Description |
|---|
OWLEntityComparator(ShortFormProvider shortFormProvider)
Constructs an entity comparator which uses the specified short form
provider.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(OWLEntity o1,
OWLEntity o2) |
void |
visit(OWLAnnotationProperty property)
visit OWLAnnotationProperty type
|
void |
visit(OWLClass cls)
visit OWLClass type
|
void |
visit(OWLDataProperty property)
visit OWLDataProperty type
|
void |
visit(OWLDatatype datatype)
visit OWLDatatype type
|
void |
visit(OWLNamedIndividual individual)
visit OWLNamedIndividual type
|
void |
visit(OWLObjectProperty property)
visit OWLObjectProperty type
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic OWLEntityComparator(ShortFormProvider shortFormProvider)
shortFormProvider - the short form provider to usepublic int compare(OWLEntity o1, OWLEntity o2)
compare in interface Comparator<OWLEntity>public void visit(OWLClass cls)
OWLEntityVisitorvisit in interface OWLEntityVisitorcls - object to visitpublic void visit(OWLObjectProperty property)
OWLEntityVisitorvisit in interface OWLEntityVisitorproperty - object to visitpublic void visit(OWLDataProperty property)
OWLEntityVisitorvisit in interface OWLEntityVisitorproperty - object to visitpublic void visit(OWLNamedIndividual individual)
OWLEntityVisitorvisit in interface OWLEntityVisitorindividual - object to visitpublic void visit(OWLAnnotationProperty property)
OWLEntityVisitorvisit in interface OWLEntityVisitorproperty - object to visitpublic void visit(OWLDatatype datatype)
OWLEntityVisitorvisit in interface OWLEntityVisitordatatype - object to visitCopyright © 2014 The University of Manchester. All Rights Reserved.