Class VariableString
- java.lang.Object
-
- org.apache.manifoldcf.scriptengine.VariableBase
-
- org.apache.manifoldcf.scriptengine.VariableString
-
- All Implemented Interfaces:
Variable,VariableReference
public class VariableString extends VariableBase
Variable class representing an integer.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringvalue-
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 VariableString(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableReferencedoubleEquals(Variable v)booleanequals(java.lang.Object o)VariableReferenceexclamationEquals(Variable v)doublegetDoubleValue()Get the variable's value as a doubleintgetIntValue()Get the variable's value as an integerjava.lang.StringgetScriptValue()Get the variable's script valuejava.lang.StringgetStringValue()Get the variable's value as a stringjava.lang.StringgetURLPathValue()Get the variable's value as a URL path componentbooleanhasDoubleValue()Check if the variable has a double valueinthashCode()booleanhasIntValue()Check if the variable has an int valuebooleanhasScriptValue()Check if the variable has a script valuebooleanhasStringValue()Check if the variable has a string valuebooleanhasURLPathValue()Check if the variable has a URL path valueVariableReferenceplus(Variable v)-
Methods inherited from class org.apache.manifoldcf.scriptengine.VariableBase
ampersand, asterisk, composeMessage, doubleAmpersand, doublePipe, getAttribute, getBooleanValue, getConfigurationNodeValue, getConfigurationValue, getIndexed, getQueryArgumentValue, greaterAngle, greaterAngleEquals, hasBooleanValue, hasConfigurationNodeValue, hasConfigurationValue, hasQueryArgumentValue, insertAt, isNull, lesserAngle, lesserAngleEquals, minus, pipe, removeAt, resolve, setReference, slash, unaryExclamation, 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
-
hasStringValue
public boolean hasStringValue() throws ScriptExceptionCheck if the variable has a string value- Specified by:
hasStringValuein interfaceVariable- Overrides:
hasStringValuein classVariableBase- Throws:
ScriptException
-
hasScriptValue
public boolean hasScriptValue() throws ScriptExceptionCheck if the variable has a script value- Specified by:
hasScriptValuein interfaceVariable- Overrides:
hasScriptValuein classVariableBase- Throws:
ScriptException
-
hasIntValue
public boolean hasIntValue() throws ScriptExceptionCheck if the variable has an int value- Specified by:
hasIntValuein interfaceVariable- Overrides:
hasIntValuein classVariableBase- Throws:
ScriptException
-
hasDoubleValue
public boolean hasDoubleValue() throws ScriptExceptionCheck if the variable has a double value- Specified by:
hasDoubleValuein interfaceVariable- Overrides:
hasDoubleValuein classVariableBase- Throws:
ScriptException
-
hasURLPathValue
public boolean hasURLPathValue() throws ScriptExceptionCheck if the variable has a URL path value- Specified by:
hasURLPathValuein interfaceVariable- Overrides:
hasURLPathValuein classVariableBase- Throws:
ScriptException
-
getURLPathValue
public java.lang.String getURLPathValue() throws ScriptExceptionGet the variable's value as a URL path component- Specified by:
getURLPathValuein interfaceVariable- Overrides:
getURLPathValuein 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
-
getStringValue
public java.lang.String getStringValue() throws ScriptExceptionGet the variable's value as a string- Specified by:
getStringValuein interfaceVariable- Overrides:
getStringValuein classVariableBase- Throws:
ScriptException
-
getIntValue
public int getIntValue() throws ScriptExceptionGet the variable's value as an integer- Specified by:
getIntValuein interfaceVariable- Overrides:
getIntValuein classVariableBase- Throws:
ScriptException
-
getDoubleValue
public double getDoubleValue() throws ScriptExceptionGet the variable's value as a double- Specified by:
getDoubleValuein interfaceVariable- Overrides:
getDoubleValuein classVariableBase- Throws:
ScriptException
-
plus
public VariableReference plus(Variable v) throws ScriptException
- Specified by:
plusin interfaceVariable- Overrides:
plusin 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
-
-