Class Attribute
public class Attribute
{
// Constructors
public Attribute();
public Attribute(Name n, Object v);
// Methods
public Name getName();
public Object getValue();
}
This class encapsulates an XML Name and value pair.
public Attribute();
Constructs an uninitialized Attribute.
public Attribute(Name n, Object v);
Constructs an Attribute with given Name and associated value object.
Parameter | Description |
n
| The name of the Attribute pair.
|
v
| The value object to associate with the name.
|
public Name getName();
Retrieves the Name of the Attribute object.
Return Value:
Returns the name of the Attribute.
public Object getValue();
Retrieves the value object of the Attribute.
Return Value:
Returns the value of the Attribute.