org.apache.axiom.c14n.helpers
Class AttrCompare

java.lang.Object
  extended by org.apache.axiom.c14n.helpers.AttrCompare
All Implemented Interfaces:
Serializable, Comparator

public class AttrCompare
extends Object
implements Comparator, Serializable

Compares two attributes based on the C14n specification.

See Also:
Serialized Form

Constructor Summary
AttrCompare()
           
 
Method Summary
 int compare(Object obj0, Object obj1)
          Compares two attributes based on the C14n specification.
 
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

AttrCompare

public AttrCompare()
Method Detail

compare

public int compare(Object obj0,
                   Object obj1)
Compares two attributes based on the C14n specification.

Specified by:
compare in interface Comparator
Parameters:
obj0 - casted org.apache.axiom.c14n.omwrapper.interfaces.Attr
obj1 - casted org.apache.axiom.c14n.omwrapper.interfaces.Attr
Returns:
returns a negative integer, zero, or a positive integer as obj0 is less than, equal to, or greater than obj1


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.