public class Attribute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private java.lang.String |
nsURI |
private java.lang.String |
value |
Constructor and Description |
---|
Attribute(java.lang.String nsURI,
java.lang.String localName,
java.lang.String value)
Constructor of a new Attribute
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the localName of this attribute
|
java.lang.String |
getNamespace()
Get the namespace URI of this attribute
|
java.lang.String |
getValue()
Get value of this attribute
|
void |
setName(java.lang.String lname)
Set the localName of this attribute
|
void |
setNsURI(java.lang.String nsURI)
Set the namespace URI of this attribute
|
void |
setValue(java.lang.String value)
Set value of this attribute
|
java.lang.String |
toString() |
private java.lang.String nsURI
private java.lang.String name
private java.lang.String value
public Attribute(java.lang.String nsURI, java.lang.String localName, java.lang.String value)
nsURI
- namespaceURI of this attribute (could be null)localName
- localName of this attributevalue
- value given to this attributepublic java.lang.String getName()
public void setName(java.lang.String lname)
lname
- the local name to setpublic java.lang.String getNamespace()
public void setNsURI(java.lang.String nsURI)
nsURI
- the namespace URI to setpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value to set for this attributepublic java.lang.String toString()
toString
in class java.lang.Object