public class VariableConfiguration extends VariableBase
| Modifier and Type | Class and Description |
|---|---|
protected class |
VariableConfiguration.NodeReference
Extend VariableReference class so we capture attempts to set the reference, and actually overwrite the child when that is done
|
| Modifier and Type | Field and Description |
|---|---|
protected Configuration |
configuration |
ATTRIBUTE_BOOLEAN, ATTRIBUTE_CREATEDSTATUS, ATTRIBUTE_DICT, ATTRIBUTE_FLOAT, ATTRIBUTE_INT, ATTRIBUTE_NOTFOUNDSTATUS, ATTRIBUTE_OKSTATUS, ATTRIBUTE_SCRIPT, ATTRIBUTE_SIZE, ATTRIBUTE_STRING, ATTRIBUTE_TYPE, ATTRIBUTE_UNAUTHORIZEDSTATUS, ATTRIBUTE_VALUE| Constructor and Description |
|---|
VariableConfiguration() |
VariableConfiguration(Configuration c) |
VariableConfiguration(String json) |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
getAttribute(String attributeName)
Get a named attribute of the variable; e.g.
|
Configuration |
getConfigurationValue()
Get the variable's value as a Configuration object
|
VariableReference |
getIndexed(Variable index)
Get an indexed property of the variable
|
String |
getScriptValue()
Get the variable's script value
|
boolean |
hasConfigurationValue()
Check if the variable has a Configuration value
|
boolean |
hasScriptValue()
Check if the variable has a script value
|
void |
insertAt(Variable v,
Variable index)
Insert an object into this variable at a position.
|
VariableReference |
plus(Variable v) |
void |
removeAt(Variable index)
Delete an object from this variable at a position.
|
ampersand, asterisk, composeMessage, doubleAmpersand, doubleEquals, doublePipe, exclamationEquals, getBooleanValue, getConfigurationNodeValue, getDoubleValue, getIntValue, getQueryArgumentValue, getStringValue, getURLPathValue, greaterAngle, greaterAngleEquals, hasBooleanValue, hasConfigurationNodeValue, hasDoubleValue, hasIntValue, hasQueryArgumentValue, hasStringValue, hasURLPathValue, isNull, lesserAngle, lesserAngleEquals, minus, pipe, resolve, setReference, slash, unaryExclamation, unaryMinusprotected Configuration configuration
public VariableConfiguration()
public VariableConfiguration(Configuration c)
public VariableConfiguration(String json) throws ScriptException
ScriptExceptionpublic boolean hasScriptValue()
throws ScriptException
hasScriptValue in interface VariablehasScriptValue in class VariableBaseScriptExceptionpublic String getScriptValue() throws ScriptException
getScriptValue in interface VariablegetScriptValue in class VariableBaseScriptExceptionpublic boolean hasConfigurationValue()
throws ScriptException
hasConfigurationValue in interface VariablehasConfigurationValue in class VariableBaseScriptExceptionpublic Configuration getConfigurationValue() throws ScriptException
getConfigurationValue in interface VariablegetConfigurationValue in class VariableBaseScriptExceptionpublic VariableReference getAttribute(String attributeName) throws ScriptException
getAttribute in interface VariablegetAttribute in class VariableBaseScriptExceptionpublic VariableReference getIndexed(Variable index) throws ScriptException
getIndexed in interface VariablegetIndexed in class VariableBaseScriptExceptionpublic void insertAt(Variable v, Variable index) throws ScriptException
insertAt in interface VariableinsertAt in class VariableBaseScriptExceptionpublic void removeAt(Variable index) throws ScriptException
removeAt in interface VariableremoveAt in class VariableBaseScriptExceptionpublic VariableReference plus(Variable v) throws ScriptException
plus in interface Variableplus in class VariableBaseScriptException