Package org.swrlapi.literal
Class OWLLiteralComparator
- java.lang.Object
-
- org.swrlapi.literal.OWLLiteralComparator
-
- All Implemented Interfaces:
java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral>
public final class OWLLiteralComparator extends java.lang.Object implements java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral>
A very basic literal comparator. Not fully spec conformant.See: http://xmlbeans.apache.org/docs/2.1.0/guide/conXMLBeansSupportBuiltInSchemaTypes.html http://iswc2011.semanticweb.org/fileadmin/iswc/Papers/Workshops/SSWS/Emmons-et-all-SSWS2011.pdf https://msdn.microsoft.com/en-us/library/ms191231.aspx
- See Also:
OWLLiteral
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull java.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral>
COMPARATOR
-
Constructor Summary
Constructors Constructor Description OWLLiteralComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(@NonNull org.semanticweb.owlapi.model.OWLLiteral l1, @NonNull org.semanticweb.owlapi.model.OWLLiteral l2)
static boolean
isNumeric(@NonNull org.semanticweb.owlapi.model.OWLLiteral literal)
-
-
-
Method Detail
-
compare
public int compare(@NonNull org.semanticweb.owlapi.model.OWLLiteral l1, @NonNull org.semanticweb.owlapi.model.OWLLiteral l2)
- Specified by:
compare
in interfacejava.util.Comparator<org.semanticweb.owlapi.model.OWLLiteral>
-
isNumeric
public static boolean isNumeric(@NonNull org.semanticweb.owlapi.model.OWLLiteral literal)
-
-