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 attribute name and value pair.

Constructors

Attribute

public Attribute();

Construct empty attribute.

Attribute

public Attribute(Name n, Object v);

Construct attribute with given name and value.

Methods

getName 

public Name getName();

Return the name.

getValue 

public Object getValue();

Return the value.