com.jaxfront.core.util
Class XMLSchemaPositionSorter

java.lang.Object
  extended by com.jaxfront.core.util.XMLSchemaPositionSorter
All Implemented Interfaces:
Sortable

public class XMLSchemaPositionSorter
extends java.lang.Object
implements Sortable

Compares to XUI Components according to its addressed type in the xpath and sorts it based on the potition in the XML Schema tree. Global addressed types always come first.

Version:
1.60

Constructor Summary
XMLSchemaPositionSorter(boolean isXUIComponentSort)
           
 
Method Summary
 boolean compare(java.lang.Object a, java.lang.Object b)
          Compares two objects and returns true if they are equal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSchemaPositionSorter

public XMLSchemaPositionSorter(boolean isXUIComponentSort)
Method Detail

compare

public boolean compare(java.lang.Object a,
                       java.lang.Object b)
Description copied from interface: Sortable
Compares two objects and returns true if they are equal.

Specified by:
compare in interface Sortable
Returns:
true if the compared objects are equal, false otherwise
See Also:
Sortable.compare(java.lang.Object, java.lang.Object)