APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.c14n.helper

public Class AttrCompare

extends Object
implements Comparator<Attr>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.util.Comparator
Imports
java.io.Serializable, java.util.Comparator, com.sun.org.apache.xml.internal.security.utils.Constants, org.w3c.dom.Attr

Compares two attributes based on the C14n specification.

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final long
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

returns a negative integer, zero, or a positive integer as obj0 is less than, equal to, or greater than obj1
compare
(Attr attr0, Attr attr1)

Implements java.util.Comparator.compare.

Compares two attributes based on the C14n specification.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ATTR0_BEFORE_ATTR1back to summary
private static final int ATTR0_BEFORE_ATTR1
ATTR1_BEFORE_ATTR0back to summary
private static final int ATTR1_BEFORE_ATTR0
serialVersionUIDback to summary
private static final long serialVersionUID
XMLNSback to summary
private static final String XMLNS

Constructor Detail

AttrCompareback to summary
public AttrCompare()

Method Detail

compareback to summary
public int compare(Attr attr0, Attr attr1)

Implements java.util.Comparator.compare.

Compares two attributes based on the C14n specification.

  • Namespace nodes have a lesser document order position than attribute nodes.
  • An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least).
  • An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least).
Returns:int

returns a negative integer, zero, or a positive integer as obj0 is less than, equal to, or greater than obj1

Annotations
@Override