public class Setting extends Object
| Constructor and Description |
|---|
Setting()
Create an empty Setting.
|
Setting(String alias, String value)
Creates a Setting for the alias and value specified.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias()
Returns the alias that identifies which custom setting you wish to set a value for.
|
String |
getValue()
Returns the value of this Setting.
|
Map<String,String> |
getVariablesAndTokensMap()
Returns a map containing the variables and tokens of this setting.
|
Setting |
setAlias(String alias)
Sets the alias that identifies which custom Setting you wish to set a value for.
|
Setting |
setValue(String value)
Sets the value of this Setting.
|
Setting |
setVariablesAndTokensMap(Map<String,String> variablesAndTokensMap)
Sets a map containing the variables and tokens of this setting
|
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 getAlias()
public String getValue()
public Map<String,String> getVariablesAndTokensMap()
public Setting setAlias(String alias)
alias - the alias that identifies which custom Setting you wish to set a value forpublic Setting setValue(String value)
value - the value of this Settingpublic Setting setVariablesAndTokensMap(Map<String,String> variablesAndTokensMap)
variablesAndTokensMap - a map containing the variables and tokens of this settingpublic String toXmlCompactString()
public String toXmlString()
public String toCompactString()