|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproper.xml.Attribute
public class Attribute
This class represents an XML attribute. The values are automatically transformed into XML conform strings.
Constructor Summary | |
---|---|
Attribute(java.lang.String name)
initializes the attribute with empty value |
|
Attribute(java.lang.String name,
java.lang.String value)
initializes the attribute with name and value |
Method Summary | |
---|---|
java.lang.String |
getName()
returns the name of the attribute |
java.lang.String |
getValue()
returns the current value |
static void |
main(java.lang.String[] args)
for testing only |
void |
setValue(java.lang.String value)
sets the value of this attribute |
java.lang.String |
toString()
returns the attribute as a string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Attribute(java.lang.String name)
public Attribute(java.lang.String name, java.lang.String value)
Method Detail |
---|
public java.lang.String getName()
public void setValue(java.lang.String value)
public java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |