DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.config
Class SchemaPathComparator

java.lang.Object
  extended by 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

Constructor Summary
SchemaPathComparator()
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SchemaPathComparator

public SchemaPathComparator()
Method Detail

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 - PathMap1
o2 - PathMap2
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0