Class VariableConfigurationNode
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.VariableBase
-
- org.apache.manifoldcf.scriptengine.VariableConfigurationNode
-
- All Implemented Interfaces:
Variable,VariableReference
public class VariableConfigurationNode extends VariableBase
Variable wrapper for ConfigurationNode object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classVariableConfigurationNode.AttributeReferenceImplement VariableReference to allow attributes to be set or clearedprotected classVariableConfigurationNode.NodeReferenceExtend VariableReference class so we capture attempts to set the reference, and actually overwrite the child when that is doneprotected classVariableConfigurationNode.ValueReferenceImplement VariableReference to allow values to be set or cleared
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationNodeconfigurationNode-
Fields inherited from interface org.apache.manifoldcf.scriptengine.Variable
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 Summary
Constructors Constructor Description VariableConfigurationNode(java.lang.String name)VariableConfigurationNode(ConfigurationNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableReferencegetAttribute(java.lang.String attributeName)Get a named attribute of the variable; e.g.ConfigurationNodegetConfigurationNodeValue()Get the variable's value as a ConfigurationNode objectVariableReferencegetIndexed(Variable index)Get an indexed property of the variablejava.lang.StringgetScriptValue()Get the variable's script valuejava.lang.StringgetStringValue()Convert to a valuebooleanhasScriptValue()Check if the variable has a script valuebooleanhasStringValue()Check if the variable has a string valuevoidinsertAt(Variable v, Variable index)Insert an object into this variable at a position.VariableReferenceplus(Variable v)voidremoveAt(Variable index)Delete an object from this variable at a position.-
Methods inherited from class org.apache.manifoldcf.scriptengine.VariableBase
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
-
-
-
-
Field Detail
-
configurationNode
protected ConfigurationNode configurationNode
-
-
Constructor Detail
-
VariableConfigurationNode
public VariableConfigurationNode(java.lang.String name)
-
VariableConfigurationNode
public VariableConfigurationNode(ConfigurationNode node)
-
-
Method Detail
-
hasScriptValue
public boolean hasScriptValue() throws ScriptExceptionCheck if the variable has a script value- Specified by:
hasScriptValuein interfaceVariable- Overrides:
hasScriptValuein classVariableBase- Throws:
ScriptException
-
getScriptValue
public java.lang.String getScriptValue() throws ScriptExceptionGet the variable's script value- Specified by:
getScriptValuein interfaceVariable- Overrides:
getScriptValuein classVariableBase- Throws:
ScriptException
-
hasStringValue
public boolean hasStringValue() throws ScriptExceptionCheck if the variable has a string value- Specified by:
hasStringValuein interfaceVariable- Overrides:
hasStringValuein classVariableBase- Throws:
ScriptException
-
getStringValue
public java.lang.String getStringValue() throws ScriptExceptionConvert to a value- Specified by:
getStringValuein interfaceVariable- Overrides:
getStringValuein classVariableBase- Throws:
ScriptException
-
getConfigurationNodeValue
public ConfigurationNode getConfigurationNodeValue() throws ScriptException
Get the variable's value as a ConfigurationNode object- Specified by:
getConfigurationNodeValuein interfaceVariable- Overrides:
getConfigurationNodeValuein classVariableBase- Throws:
ScriptException
-
getAttribute
public VariableReference getAttribute(java.lang.String attributeName) throws ScriptException
Get a named attribute of the variable; e.g. xxx.yyy- Specified by:
getAttributein interfaceVariable- Overrides:
getAttributein classVariableBase- Throws:
ScriptException
-
getIndexed
public VariableReference getIndexed(Variable index) throws ScriptException
Get an indexed property of the variable- Specified by:
getIndexedin interfaceVariable- Overrides:
getIndexedin classVariableBase- Throws:
ScriptException
-
insertAt
public void insertAt(Variable v, Variable index) throws ScriptException
Insert an object into this variable at a position.- Specified by:
insertAtin interfaceVariable- Overrides:
insertAtin classVariableBase- Throws:
ScriptException
-
removeAt
public void removeAt(Variable index) throws ScriptException
Delete an object from this variable at a position.- Specified by:
removeAtin interfaceVariable- Overrides:
removeAtin classVariableBase- Throws:
ScriptException
-
plus
public VariableReference plus(Variable v) throws ScriptException
- Specified by:
plusin interfaceVariable- Overrides:
plusin classVariableBase- Throws:
ScriptException
-
-