public class WildcardAttribute
extends java.lang.Object
Wildcard attributes (as specified by xs:anyAttribute
)
are stored in a set, the set elements being instances of
WildcardAttribute
.
Constructor and Description |
---|
WildcardAttribute(QName pName,
java.lang.String pValue)
Creates a new instance of
WildcardAttribute
with the given name and value. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object pOther)
Returns true, if the object
pOther is an instance of
WildcardAttribute and pOther.getName().equals(getName()) . |
QName |
getName()
Returns the attributes name.
|
java.lang.String |
getValue()
Returns the attributes value.
|
int |
hashCode()
Returns
getName().hashCode() . |
java.lang.String |
toString() |
public WildcardAttribute(QName pName, java.lang.String pValue)
Creates a new instance of WildcardAttribute
with the given name and value.
java.lang.NullPointerException
- Either of the arguments is null.public QName getName()
Returns the attributes name.
public java.lang.String getValue()
Returns the attributes value.
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
Returns getName().hashCode()
.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object pOther)
Returns true, if the object pOther
is an instance of
WildcardAttribute
and pOther.getName().equals(getName())
.
equals
in class java.lang.Object