com.jaxfront.core.type
Class TypeNameComparator

java.lang.Object
  extended by com.jaxfront.core.type.TypeNameComparator
All Implemented Interfaces:
java.util.Comparator

public class TypeNameComparator
extends java.lang.Object
implements java.util.Comparator

This class compares two JAXFront Types according to its position in the XMLSchema tree.

Version:
1.60

Field Summary
static int ASC
           
static int DES
           
 
Constructor Summary
TypeNameComparator(int direction)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares its two arguments for order.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

ASC

public static final int ASC
See Also:
Constant Field Values

DES

public static final int DES
See Also:
Constant Field Values
Constructor Detail

TypeNameComparator

public TypeNameComparator(int direction)
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Specified by:
compare in interface java.util.Comparator