Class VariableBoolean
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.VariableBase
-
- org.apache.manifoldcf.scriptengine.VariableBoolean
-
- All Implemented Interfaces:
Variable,VariableReference
public class VariableBoolean extends VariableBase
Variable class representing an integer.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanvalue-
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 VariableBoolean(boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableReferenceampersand(Variable v)VariableReferencedoubleAmpersand(Variable v)VariableReferencedoubleEquals(Variable v)VariableReferencedoublePipe(Variable v)booleanequals(java.lang.Object o)VariableReferenceexclamationEquals(Variable v)booleangetBooleanValue()Get the variable's value as a booleanjava.lang.StringgetScriptValue()Get the variable's script valuebooleanhasBooleanValue()Check if the variable has a boolean valueinthashCode()booleanhasScriptValue()Check if the variable has a script valueVariableReferencepipe(Variable v)VariableReferenceunaryExclamation()-
Methods inherited from class org.apache.manifoldcf.scriptengine.VariableBase
asterisk, composeMessage, getAttribute, getConfigurationNodeValue, getConfigurationValue, getDoubleValue, getIndexed, getIntValue, getQueryArgumentValue, getStringValue, getURLPathValue, greaterAngle, greaterAngleEquals, hasConfigurationNodeValue, hasConfigurationValue, hasDoubleValue, hasIntValue, hasQueryArgumentValue, hasStringValue, hasURLPathValue, insertAt, isNull, lesserAngle, lesserAngleEquals, minus, plus, removeAt, resolve, setReference, slash, unaryMinus
-
-
-
-
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
-
hasBooleanValue
public boolean hasBooleanValue() throws ScriptExceptionCheck if the variable has a boolean value- Specified by:
hasBooleanValuein interfaceVariable- Overrides:
hasBooleanValuein classVariableBase- Throws:
ScriptException
-
getBooleanValue
public boolean getBooleanValue() throws ScriptExceptionGet the variable's value as a boolean- Specified by:
getBooleanValuein interfaceVariable- Overrides:
getBooleanValuein classVariableBase- Throws:
ScriptException
-
doubleEquals
public VariableReference doubleEquals(Variable v) throws ScriptException
- Specified by:
doubleEqualsin interfaceVariable- Overrides:
doubleEqualsin classVariableBase- Throws:
ScriptException
-
exclamationEquals
public VariableReference exclamationEquals(Variable v) throws ScriptException
- Specified by:
exclamationEqualsin interfaceVariable- Overrides:
exclamationEqualsin classVariableBase- Throws:
ScriptException
-
doubleAmpersand
public VariableReference doubleAmpersand(Variable v) throws ScriptException
- Specified by:
doubleAmpersandin interfaceVariable- Overrides:
doubleAmpersandin classVariableBase- Throws:
ScriptException
-
doublePipe
public VariableReference doublePipe(Variable v) throws ScriptException
- Specified by:
doublePipein interfaceVariable- Overrides:
doublePipein classVariableBase- Throws:
ScriptException
-
ampersand
public VariableReference ampersand(Variable v) throws ScriptException
- Specified by:
ampersandin interfaceVariable- Overrides:
ampersandin classVariableBase- Throws:
ScriptException
-
pipe
public VariableReference pipe(Variable v) throws ScriptException
- Specified by:
pipein interfaceVariable- Overrides:
pipein classVariableBase- Throws:
ScriptException
-
unaryExclamation
public VariableReference unaryExclamation() throws ScriptException
- Specified by:
unaryExclamationin interfaceVariable- Overrides:
unaryExclamationin classVariableBase- Throws:
ScriptException
-
-