public class Attribute { // Constructors public Attribute(); public Attribute(Name n, Object v); // Methods public Name getName(); public Object getValue(); }
This class encapsulates an attribute name and value pair.
public Attribute();Construct empty attribute.
public Attribute(Name n, Object v);Construct attribute with given name and value.
public Name getName();Return the name.
public Object getValue();Return the value.