public class VariableConfigurationNode extends VariableBase
| Modifier and Type | Class and Description |
|---|---|
protected class |
VariableConfigurationNode.AttributeReference
Implement VariableReference to allow attributes to be set or cleared
|
protected class |
VariableConfigurationNode.NodeReference
Extend VariableReference class so we capture attempts to set the reference, and actually overwrite the child when that is done
|
protected class |
VariableConfigurationNode.ValueReference
Implement VariableReference to allow values to be set or cleared
|
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationNode |
configurationNode |
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 |
|---|
VariableConfigurationNode(ConfigurationNode node) |
VariableConfigurationNode(String name) |
| Modifier and Type | Method and Description |
|---|---|
VariableReference |
getAttribute(String attributeName)
Get a named attribute of the variable; e.g.
|
ConfigurationNode |
getConfigurationNodeValue()
Get the variable's value as a ConfigurationNode object
|
VariableReference |
getIndexed(Variable index)
Get an indexed property of the variable
|
String |
getScriptValue()
Get the variable's script value
|
String |
getStringValue()
Convert to a value
|
boolean |
hasScriptValue()
Check if the variable has a script value
|
boolean |
hasStringValue()
Check if the variable has a string 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, getConfigurationValue, getDoubleValue, getIntValue, getQueryArgumentValue, getURLPathValue, greaterAngle, greaterAngleEquals, hasBooleanValue, hasConfigurationNodeValue, hasConfigurationValue, hasDoubleValue, hasIntValue, hasQueryArgumentValue, hasURLPathValue, isNull, lesserAngle, lesserAngleEquals, minus, pipe, resolve, setReference, slash, unaryExclamation, unaryMinusprotected ConfigurationNode configurationNode
public VariableConfigurationNode(String name)
public VariableConfigurationNode(ConfigurationNode node)
public boolean hasScriptValue()
throws ScriptException
hasScriptValue in interface VariablehasScriptValue in class VariableBaseScriptExceptionpublic String getScriptValue() throws ScriptException
getScriptValue in interface VariablegetScriptValue in class VariableBaseScriptExceptionpublic boolean hasStringValue()
throws ScriptException
hasStringValue in interface VariablehasStringValue in class VariableBaseScriptExceptionpublic String getStringValue() throws ScriptException
getStringValue in interface VariablegetStringValue in class VariableBaseScriptExceptionpublic ConfigurationNode getConfigurationNodeValue() throws ScriptException
getConfigurationNodeValue in interface VariablegetConfigurationNodeValue 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