java.lang.Object
org.cybergarage.xml.Attribute
Represents an XML attribute with name and value.
This class provides a simple container for XML attribute name-value pairs. Attributes can be created independently or copied from existing attributes.
Field Summary
Constructor Summary
Method Summary
Field Details
name
The attribute's name.value
The attribute's value.
Constructor Details
Attribute
public Attribute()Creates an empty Attribute with empty name and value.Attribute
Attribute
Creates a copy of an existing Attribute.- Parameters:
otherAttr- the attribute to copy
Method Details
setName
Sets the name of this attribute.- Parameters:
name- the attribute name
getName
setValue
Sets the value of this attribute.- Parameters:
value- the attribute value
getValue
set
Copies the name and value from another attribute to this attribute.- Parameters:
otherAttr- the attribute to copy from