org.dlese.dpc.schemedit.input
Class ElementsOrderer.ElementOrderComparator
java.lang.Object
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
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 |
ElementsOrderer.ElementOrderComparator
public ElementsOrderer.ElementOrderComparator(String orderAttrName)
- Constructor for the ElementOrderComparator object
- Parameters:
orderAttrName
- NOT YET DOCUMENTED
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 1o2
- element 2
- Returns:
- comparison of "order"