DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.input
Class ElementsOrderer.ElementOrderComparator

java.lang.Object
  extended by org.dlese.dpc.schemedit.input.ElementsOrderer.ElementOrderComparator
All Implemented Interfaces:
Comparator
Enclosing class:
ElementsOrderer

public class ElementsOrderer.ElementOrderComparator
extends Object
implements Comparator

Comparator to order elements, using a specified "order" attribute.

Author:
ostwald

Constructor Summary
ElementsOrderer.ElementOrderComparator(String orderAttrName)
          Constructor for the ElementOrderComparator object
 
Method Summary
 int compare(Object o1, Object o2)
          Compare two asset Elements which may or not have an "order" attribute
 
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

ElementsOrderer.ElementOrderComparator

public ElementsOrderer.ElementOrderComparator(String orderAttrName)
Constructor for the ElementOrderComparator object

Parameters:
orderAttrName - NOT YET DOCUMENTED
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compare two asset Elements which may or not have an "order" attribute

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

DLESE Tools
v1.6.0