Package org.dlese.dpc.xml.schema
Class SchemaNodeMap.DocOrderComparator
java.lang.Object
org.dlese.dpc.xml.schema.SchemaNodeMap.DocOrderComparator
- All Implemented Interfaces:
Comparator
- Enclosing class:
SchemaNodeMap
Comparator to sort the keyMap in document order. Element paths are
processed in doc order, so we map the paths to an incrementing counter, and
then maintain the map's order using the counter values.
- Author:
- Jonathan Ostwald
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DocOrderComparator
public DocOrderComparator()
-
-
Method Details
-
compare
sorts by order in which paths are processed by StructureWalker (and therefore are added to the SchemaNodeMap)- Specified by:
comparein interfaceComparator- Parameters:
o1- NOT YET DOCUMENTEDo2- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-