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. 
 | 
| 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 JSON format. 
 | 
String | 
toString()
Returns a string representation of the object in JSON 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 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 toCompactString()