org.apache.xml.security.c14n.helper
Class NonNSAttrCompare

java.lang.Object
  |
  +--org.apache.xml.security.c14n.helper.NonNSAttrCompare
All Implemented Interfaces:
java.util.Comparator

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

Compares two attributes based on the C14n specification.

Author:
Christian Geuer-Pollmann

Constructor Summary
NonNSAttrCompare()
           
 
Method Summary
 int compare(java.lang.Object obj0, java.lang.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

NonNSAttrCompare

public NonNSAttrCompare()
Method Detail

compare

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

Specified by:
compare in interface java.util.Comparator
Parameters:
obj0 - casted Attr
obj1 - casted Attr
Returns:
returns a negative integer, zero, or a positive integer as obj0 is less than, equal to, or greater than obj1