Class VariableArray
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.VariableBase
-
- org.apache.manifoldcf.scriptengine.VariableArray
-
- All Implemented Interfaces:
Variable
,VariableReference
public class VariableArray extends VariableBase
Array variable object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
VariableArray.ElementReference
Extend VariableReference class so we capture attempts to set the reference, and actually overwrite the child when that is done
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Variable>
array
-
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 VariableArray()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
VariableReference
getAttribute(java.lang.String attributeName)
Get a named attribute of the variable; e.g.VariableReference
getIndexed(Variable index)
Get an indexed property of the variablejava.lang.String
getScriptValue()
Get the variable's script valueint
hashCode()
boolean
hasScriptValue()
Check if the variable has a script valuevoid
insertAt(Variable v, Variable index)
Insert an object into this variable at a position.void
removeAt(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, getConfigurationNodeValue, getConfigurationValue, getDoubleValue, getIntValue, getQueryArgumentValue, getStringValue, getURLPathValue, greaterAngle, greaterAngleEquals, hasBooleanValue, hasConfigurationNodeValue, hasConfigurationValue, hasDoubleValue, hasIntValue, hasQueryArgumentValue, hasStringValue, hasURLPathValue, isNull, lesserAngle, lesserAngleEquals, minus, pipe, plus, resolve, setReference, slash, unaryExclamation, unaryMinus
-
-
-
-
Field Detail
-
array
protected java.util.List<Variable> array
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hasScriptValue
public boolean hasScriptValue() throws ScriptException
Check if the variable has a script value- Specified by:
hasScriptValue
in interfaceVariable
- Overrides:
hasScriptValue
in classVariableBase
- Throws:
ScriptException
-
getScriptValue
public java.lang.String getScriptValue() throws ScriptException
Get the variable's script value- Specified by:
getScriptValue
in interfaceVariable
- Overrides:
getScriptValue
in 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:
getAttribute
in interfaceVariable
- Overrides:
getAttribute
in classVariableBase
- Throws:
ScriptException
-
getIndexed
public VariableReference getIndexed(Variable index) throws ScriptException
Get an indexed property of the variable- Specified by:
getIndexed
in interfaceVariable
- Overrides:
getIndexed
in classVariableBase
- Throws:
ScriptException
-
insertAt
public void insertAt(Variable v, Variable index) throws ScriptException
Insert an object into this variable at a position.- Specified by:
insertAt
in interfaceVariable
- Overrides:
insertAt
in classVariableBase
- Throws:
ScriptException
-
removeAt
public void removeAt(Variable index) throws ScriptException
Delete an object from this variable at a position.- Specified by:
removeAt
in interfaceVariable
- Overrides:
removeAt
in classVariableBase
- Throws:
ScriptException
-
-