org.dlese.dpc.schemedit.config
Class SchemaPathComparator
java.lang.Object
org.dlese.dpc.schemedit.config.SchemaPathComparator
- All Implemented Interfaces:
- Comparator
public class SchemaPathComparator
- extends Object
- implements Comparator
Class to sort lists of PathMap
instances by their xpath property.
- Author:
- Jonathan Ostwald
Method Summary |
int |
compare(Object o1,
Object o2)
sorts by order in which paths are processed by MetadataFramework.populateFields (and
therefore are added to the docMap) so one value doesn't get stomped by another. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaPathComparator
public SchemaPathComparator()
compare
public int compare(Object o1,
Object o2)
- sorts by order in which paths are processed by MetadataFramework.populateFields (and
therefore are added to the docMap) so one value doesn't get stomped by another.
- Specified by:
compare
in interface Comparator
- Parameters:
o1
- PathMap1o2
- PathMap2
- Returns:
- NOT YET DOCUMENTED