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(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
VariableReference |
getAttribute(java.lang.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
|
java.lang.String |
getScriptValue()
Get the variable's script value
|
java.lang.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, unaryMinus
protected ConfigurationNode configurationNode
public VariableConfigurationNode(java.lang.String name)
public VariableConfigurationNode(ConfigurationNode node)
public boolean hasScriptValue() throws ScriptException
hasScriptValue
in interface Variable
hasScriptValue
in class VariableBase
ScriptException
public java.lang.String getScriptValue() throws ScriptException
getScriptValue
in interface Variable
getScriptValue
in class VariableBase
ScriptException
public boolean hasStringValue() throws ScriptException
hasStringValue
in interface Variable
hasStringValue
in class VariableBase
ScriptException
public java.lang.String getStringValue() throws ScriptException
getStringValue
in interface Variable
getStringValue
in class VariableBase
ScriptException
public ConfigurationNode getConfigurationNodeValue() throws ScriptException
getConfigurationNodeValue
in interface Variable
getConfigurationNodeValue
in class VariableBase
ScriptException
public VariableReference getAttribute(java.lang.String attributeName) throws ScriptException
getAttribute
in interface Variable
getAttribute
in class VariableBase
ScriptException
public VariableReference getIndexed(Variable index) throws ScriptException
getIndexed
in interface Variable
getIndexed
in class VariableBase
ScriptException
public void insertAt(Variable v, Variable index) throws ScriptException
insertAt
in interface Variable
insertAt
in class VariableBase
ScriptException
public void removeAt(Variable index) throws ScriptException
removeAt
in interface Variable
removeAt
in class VariableBase
ScriptException
public VariableReference plus(Variable v) throws ScriptException
plus
in interface Variable
plus
in class VariableBase
ScriptException