Package com.ctc.wstx.sw
Class SimpleOutputElement.Attribute
- java.lang.Object
-
- com.ctc.wstx.sw.SimpleOutputElement.Attribute
-
- All Implemented Interfaces:
java.lang.Comparable<SimpleOutputElement.Attribute>
- Enclosing class:
- SimpleOutputElement
static final class SimpleOutputElement.Attribute extends java.lang.Object implements java.lang.Comparable<SimpleOutputElement.Attribute>
Simple key class used to represent two-piece (attribute) names; first part being optional (URI), and second non-optional (local name).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intmHashCodeLet's cache the hash code, since although hash calculation is fast, hash code is needed a lot as this is always used as a HashSet/TreeMap key.(package private) intmIndex(package private) java.lang.StringmLocalName(package private) java.lang.StringmNsURI(package private) java.lang.StringmPrefix(package private) java.lang.StringmValue
-
Constructor Summary
Constructors Constructor Description Attribute(java.lang.String nsURI, java.lang.String localName, java.lang.String prefix, java.lang.String value, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SimpleOutputElement.Attribute other)booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
mNsURI
final java.lang.String mNsURI
-
mLocalName
final java.lang.String mLocalName
-
mPrefix
final java.lang.String mPrefix
-
mValue
final java.lang.String mValue
-
mIndex
final int mIndex
-
mHashCode
final int mHashCode
Let's cache the hash code, since although hash calculation is fast, hash code is needed a lot as this is always used as a HashSet/TreeMap key.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(SimpleOutputElement.Attribute other)
- Specified by:
compareToin interfacejava.lang.Comparable<SimpleOutputElement.Attribute>
-
-