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 classVariableArray.ElementReferenceExtend 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 booleanequals(java.lang.Object o)VariableReferencegetAttribute(java.lang.String attributeName)Get a named attribute of the variable; e.g.VariableReferencegetIndexed(Variable index)Get an indexed property of the variablejava.lang.StringgetScriptValue()Get the variable's script valueinthashCode()booleanhasScriptValue()Check if the variable has a script valuevoidinsertAt(Variable v, Variable index)Insert an object into this variable at a position.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, 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
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
-
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
-
-