All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnet.markup.Attribute

java.lang.Object
   |
   +----vnet.markup.Attribute

public class Attribute
extends Object
A Element's attribute.

Note: vnet.markup classes are not thread safe. Locking must be performed by the application.


Constructor Index

 o Attribute(String)
Constructs a new Attribute with the given name.
 o Attribute(String, String)
Constructs a new Attribute with the given name and value.

Method Index

 o getName()
Gets the Attribute's name.
 o getValue()
Gets the Attribute's value.
 o setValue(String)
Sets the Attribute's value.

Constructors

 o Attribute
 public Attribute(String name)
Constructs a new Attribute with the given name.

Parameters:
name - the Attribute's non-null name.
 o Attribute
 public Attribute(String name,
                  String value)
Constructs a new Attribute with the given name and value.

Parameters:
name - the Attribute's non-null name.
value - the Attribute's value.

Methods

 o getName
 public String getName()
Gets the Attribute's name.

Returns:
The Attribute's name.
 o getValue
 public String getValue()
Gets the Attribute's value.

Returns:
The Attribute's value or null if none has been set.
 o setValue
 public void setValue(String value)
Sets the Attribute's value.

Parameters:
string - The Attribute's (new) value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index