org.topbraid.core.comparator
Class PropertiesComparator
java.lang.Object
org.topbraid.core.comparator.ResourceComparator
org.topbraid.core.comparator.PropertiesComparator
- All Implemented Interfaces:
- java.util.Comparator<java.lang.Object>
public class PropertiesComparator
- extends ResourceComparator
A Comparator that groups properties by types, so that owl:ObjectProperties,
owl:DatatypeProperties, owl:AnnotationProperties and other rdf:Properties
all appear in different categories.
- Author:
- Holger Knublauch
|
Method Summary |
int |
category(com.hp.hpl.jena.rdf.model.RDFNode node)
|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
PropertiesComparator
public PropertiesComparator()
category
public int category(com.hp.hpl.jena.rdf.model.RDFNode node)
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare in interface java.util.Comparator<java.lang.Object>- Overrides:
compare in class ResourceComparator