Package org.globus.rsl
Class VarRef
java.lang.Object
org.globus.rsl.Value
org.globus.rsl.VarRef
This class represents a variable reference in the RSL string.
The reference can be concatinated by other values.
-
Field Summary
FieldsFields inherited from class org.globus.rsl.Value
concatValue, value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluates the variable reference with the specified symbol table.Returns a complete string representation of this value.int
hashCode()
void
setDefaultValue
(Value value) Sets the default value of this reference.void
toRSL
(StringBuffer buf, boolean explicitConcat) Produces a RSL representation of this variable reference.toString()
-
Field Details
-
defValue
-
-
Constructor Details
-
VarRef
-
VarRef
-
VarRef
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
setDefaultValue
Sets the default value of this reference.- Parameters:
value
- the default value.
-
evaluate
Evaluates the variable reference with the specified symbol table. The value of the reference is first looked up in the symbol table. If not found, then the default value is used. If the default value is not specified, the reference is evaluated to an empty string.- Overrides:
evaluate
in classValue
- Parameters:
symbolTable
- the symbol table to evaluate the variabled reference against.- Returns:
- an evaluated string.
- Throws:
RslEvaluationException
- If an error occured during rsl evaluation.
-
toRSL
Produces a RSL representation of this variable reference. -
getCompleteValue
Returns a complete string representation of this value.- Overrides:
getCompleteValue
in classValue
- Returns:
- a complete string representation of this value.
-
toString
-