public final class Attribute
extends java.lang.Object
<tag name="value"/>
, name="value"
is an attribute.
Immutable and threadsafe.Modifier and Type | Method and Description |
---|---|
static Attribute |
attribute(AttributeName name,
AttributeValue value,
Namespace namespace)
Factory method for constructing
Attribute s. |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public static Attribute attribute(AttributeName name, AttributeValue value, Namespace namespace)
Attribute
s.name
- the name of the attribute.value
- the value of the attribute.namespace
- the namespace of the attribute.Attribute
representing an XML attribute with the given name, value, and namespace.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object