public class AttributeWithValue
extends java.lang.Object
Constructor and Description |
---|
AttributeWithValue(java.lang.String localName,
java.lang.String value)
Constructs a new attribute with a name that is not in a namespace.
|
AttributeWithValue(java.lang.String namespaceURI,
java.lang.String prefix,
java.lang.String localName,
java.lang.String value)
Constructs a new attribute with a name that is in a namespace.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines equality with another Object.
|
java.lang.String |
getClarkName()
Return the attribute's Clark Name.
|
java.lang.String |
getLocalName()
Return the attribute's localName.
|
java.lang.String |
getNamespaceURI()
Return the attribute's namespaceURI.
|
java.lang.String |
getPrefix()
Return the attribute's prefix.
|
java.lang.String |
getValue()
Return the value of the attribute.
|
int |
hashCode()
The hashCode.
|
java.lang.String |
toString()
Returns an encoded String representing the attribute.
|
public AttributeWithValue(java.lang.String namespaceURI, java.lang.String prefix, java.lang.String localName, java.lang.String value) throws java.lang.IllegalArgumentException
namespaceURI
- the namespace in which the name is held.prefix
- the prefix to map the namespaceURI to.localName
- the name of the attribute.value
- the String value of the attribute.java.lang.IllegalArgumentException
- if 1) a namespaceURI is defined and an empty (or null) prefix is defined or 2) a prefix is
defined and an empty (or null) namespaceURI is defined or 3) a valid QName object cannot be created from the
namespaceURI, prefix and localName.public AttributeWithValue(java.lang.String localName, java.lang.String value) throws java.lang.IllegalArgumentException
localName
- the name of the attribute.value
- the String value of the attribute.java.lang.IllegalArgumentException
- if a valid QName object cannot be created from the localName.public java.lang.String getNamespaceURI()
public java.lang.String getPrefix()
public java.lang.String getLocalName()
public java.lang.String getClarkName()
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to compare.public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2001-2016 DeltaXML Ltd. All Rights Reserved.