|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.sapia.util.xml.Attribute
The Attribute class is a simple object representation of an XML attribute.
It contains three attributes: a name, a value and a namespace prefix.
| Constructor Summary | |
|---|---|
Attribute()
Creates a new Attribute instance. |
|
Attribute(String aName,
String aValue)
Creates a new Attribute instance. |
|
Attribute(String aNamespacePrefix,
String aName,
String aValue)
Creates a new Attribute instance. |
|
| Method Summary | |
|---|---|
String |
getName()
Returns the name of this attribute. |
String |
getNamespacePrefix()
Returns the namespace prefix of this attribute. |
String |
getValue()
Returns the value of this attribute. |
void |
setName(String aName)
Changes the name of this attribute. |
void |
setNamespacePrefix(String aNamespacePrefix)
Changes the namespace prefix of this attribute. |
void |
setValue(String aValue)
Changes the value of this attribute. |
String |
toString()
Returns a string representation of this attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Attribute()
public Attribute(String aName,
String aValue)
public Attribute(String aNamespacePrefix,
String aName,
String aValue)
| Method Detail |
public String getNamespacePrefix()
public String getName()
public String getValue()
public void setNamespacePrefix(String aNamespacePrefix)
aNamespacePrefix - The new namespace prefix.public void setName(String aName)
aName - The new name.public void setValue(String aValue)
aValue - The new value.public String toString()
toString in class Object
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||