Package com.ms.xml.util
 In this topic

*Constructors

*Methods

 

Packages
  PreviousThis PackageNext
Package com.ms.xml.util   Previous This
Package
Next

 


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.

Constructors

Attribute

public Attribute();

Constructs an uninitialized Attribute.

Attribute

public Attribute(Name n, Object v);

Constructs an Attribute with given Name and associated value object.

ParameterDescription
n The name of the Attribute pair.
v The value object to associate with the name.

Methods

getName

public Name getName();

Retrieves the Name of the Attribute object.

Return Value:

Returns the name of the Attribute.

getValue

public Object getValue();

Retrieves the value object of the Attribute.

Return Value:

Returns the value of the Attribute.

upnrm.gif