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 boolean
value
-
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 VariableReference
ampersand(Variable v)
VariableReference
doubleAmpersand(Variable v)
VariableReference
doubleEquals(Variable v)
VariableReference
doublePipe(Variable v)
boolean
equals(java.lang.Object o)
VariableReference
exclamationEquals(Variable v)
boolean
getBooleanValue()
Get the variable's value as a booleanjava.lang.String
getScriptValue()
Get the variable's script valueboolean
hasBooleanValue()
Check if the variable has a boolean valueint
hashCode()
boolean
hasScriptValue()
Check if the variable has a script valueVariableReference
pipe(Variable v)
VariableReference
unaryExclamation()
-
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:
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
-
hasBooleanValue
public boolean hasBooleanValue() throws ScriptException
Check if the variable has a boolean value- Specified by:
hasBooleanValue
in interfaceVariable
- Overrides:
hasBooleanValue
in classVariableBase
- Throws:
ScriptException
-
getBooleanValue
public boolean getBooleanValue() throws ScriptException
Get the variable's value as a boolean- Specified by:
getBooleanValue
in interfaceVariable
- Overrides:
getBooleanValue
in classVariableBase
- Throws:
ScriptException
-
doubleEquals
public VariableReference doubleEquals(Variable v) throws ScriptException
- Specified by:
doubleEquals
in interfaceVariable
- Overrides:
doubleEquals
in classVariableBase
- Throws:
ScriptException
-
exclamationEquals
public VariableReference exclamationEquals(Variable v) throws ScriptException
- Specified by:
exclamationEquals
in interfaceVariable
- Overrides:
exclamationEquals
in classVariableBase
- Throws:
ScriptException
-
doubleAmpersand
public VariableReference doubleAmpersand(Variable v) throws ScriptException
- Specified by:
doubleAmpersand
in interfaceVariable
- Overrides:
doubleAmpersand
in classVariableBase
- Throws:
ScriptException
-
doublePipe
public VariableReference doublePipe(Variable v) throws ScriptException
- Specified by:
doublePipe
in interfaceVariable
- Overrides:
doublePipe
in classVariableBase
- Throws:
ScriptException
-
ampersand
public VariableReference ampersand(Variable v) throws ScriptException
- Specified by:
ampersand
in interfaceVariable
- Overrides:
ampersand
in classVariableBase
- Throws:
ScriptException
-
pipe
public VariableReference pipe(Variable v) throws ScriptException
- Specified by:
pipe
in interfaceVariable
- Overrides:
pipe
in classVariableBase
- Throws:
ScriptException
-
unaryExclamation
public VariableReference unaryExclamation() throws ScriptException
- Specified by:
unaryExclamation
in interfaceVariable
- Overrides:
unaryExclamation
in classVariableBase
- Throws:
ScriptException
-
-