DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.input
Class SortInputFieldAscending

java.lang.Object
  extended by org.dlese.dpc.schemedit.input.SortInputFieldAscending
All Implemented Interfaces:
Comparator

public class SortInputFieldAscending
extends Object
implements Comparator

Comparator to order input fields in "natural order" of their xpath attribute.

Author:
ostwald


Constructor Summary
SortInputFieldAscending()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compare InputField objects by their XPath fields (in "natural order"), only taking indexing into account (e.g., "/record/general[1] comes before "record/general[10]").
 
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

SortInputFieldAscending

public SortInputFieldAscending()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compare InputField objects by their XPath fields (in "natural order"), only taking indexing into account (e.g., "/record/general[1] comes before "record/general[10]").

Specified by:
compare in interface Comparator
Parameters:
o1 - InputField 1
o2 - InputField 2
Returns:
comparison of "xpath order"

DLESE Tools
v1.6.0