public class Variable extends Object
Constructor and Description |
---|
Variable()
Creates an instance of Variable.
|
Variable(String name,
String value)
Creates an instance of Variable with the name and value initialized.
|
Variable(Variable original)
Create a new Variable by copying an existing Variable
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the Variable name.
|
String |
getValue()
Returns the Variable value.
|
Variable |
setName(String name)
Sets the name of this Variable.
|
Variable |
setValue(String value)
Sets the value of this Variable.
|
String |
toCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toJsonCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toJsonString()
Returns a string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in XML format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
public Variable()
public Variable(Variable original)
original
- the existing Variable to be copiedpublic String getName()
public String getValue()
public Variable setName(String name)
name
- the name of this Variablepublic Variable setValue(String value)
value
- the value of this Variablepublic String toXmlCompactString()
public String toXmlString()
public String toJsonCompactString()
public String toJsonString()
public String toCompactString()