org.topbraid.core.comparator
Class PropertiesComparator

java.lang.Object
  extended by org.topbraid.core.comparator.ResourceComparator
      extended by 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

Constructor Summary
PropertiesComparator()
           
 
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 org.topbraid.core.comparator.ResourceComparator
get
 
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
 

Constructor Detail

PropertiesComparator

public PropertiesComparator()
Method Detail

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