de.topicmapslab.majortom.io
Class CXTMTopicMapWriter.AbstractDatatypeAwareComparator<T>

java.lang.Object
  extended by de.topicmapslab.majortom.io.CXTMTopicMapWriter.AbstractComparator<T>
      extended by de.topicmapslab.majortom.io.CXTMTopicMapWriter.AbstractDatatypeAwareComparator<T>
All Implemented Interfaces:
java.util.Comparator<T>
Direct Known Subclasses:
CXTMTopicMapWriter.OccurrenceComparator, CXTMTopicMapWriter.VariantComparator
Enclosing class:
CXTMTopicMapWriter

private abstract class CXTMTopicMapWriter.AbstractDatatypeAwareComparator<T>
extends CXTMTopicMapWriter.AbstractComparator<T>

Enhances the CXTMTopicMapWriter.AbstractComparator with a method to compare the value and datatype of an occurrence or variant.


Constructor Summary
private CXTMTopicMapWriter.AbstractDatatypeAwareComparator()
           
 
Method Summary
(package private)  int _compareValueDatatype(org.tmapi.core.DatatypeAware o1, org.tmapi.core.DatatypeAware o2)
          Compares the value and datatype of the occurrences / variants.
 
Methods inherited from class de.topicmapslab.majortom.io.CXTMTopicMapWriter.AbstractComparator
compareScope, compareString, compareType
 
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
compare, equals
 

Constructor Detail

CXTMTopicMapWriter.AbstractDatatypeAwareComparator

private CXTMTopicMapWriter.AbstractDatatypeAwareComparator()
Method Detail

_compareValueDatatype

int _compareValueDatatype(org.tmapi.core.DatatypeAware o1,
                          org.tmapi.core.DatatypeAware o2)
Compares the value and datatype of the occurrences / variants.

Parameters:
o1 - The first occurrence / variant.
o2 - The second occurrence / variant.
Returns:
A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.