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.
-
Attribute(String)
- Constructs a new Attribute with the given name.
-
Attribute(String, String)
- Constructs a new Attribute with the given name and value.
-
getName()
- Gets the Attribute's name.
-
getValue()
- Gets the Attribute's value.
-
setValue(String)
- Sets the Attribute's value.
Attribute
public Attribute(String name)
- Constructs a new Attribute with the given name.
- Parameters:
- name - the Attribute's non-null name.
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.
getName
public String getName()
- Gets the Attribute's name.
- Returns:
- The Attribute's name.
getValue
public String getValue()
- Gets the Attribute's value.
- Returns:
- The Attribute's value or null if none has been set.
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