Package org.globus.rsl
Class Bindings
java.lang.Object
org.globus.rsl.NameValue
org.globus.rsl.Bindings
This class represnts a variable definitions in the RSL string
(see rsl_substitution attribute)
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new variable definition to the list.Evaluates the variable definitions as variable definitions can reference each other against the symbol table.boolean
removeVariable
(String varName) Removes a specific variable definition from the list of bindings.void
toRSL
(StringBuffer buf, boolean explicitConcat) Produces a RSL representation of this relation.Methods inherited from class org.globus.rsl.NameValue
clear, getAttribute, getFirstValue, getValues, merge, remove, setAttribute, setValues, toRSL, toString
-
Constructor Details
-
Bindings
-
-
Method Details
-
add
Adds a new variable definition to the list.- Parameters:
binding
- a new variable definition.
-
removeVariable
Removes a specific variable definition from the list of bindings. The variable name must match exactly to be removed (it is case sensitive).- Parameters:
varName
- variable name to remove the definition of.- Returns:
- true if the variable was successfully removed. False, otherwise.
-
evaluate
Evaluates the variable definitions as variable definitions can reference each other against the symbol table. The evaluation process updates the symbol table.- Parameters:
symbolTable
- the symbol table to evalute the variables against.- Returns:
- a new evaluted variable definition.
- Throws:
RslEvaluationException
- If an error occured during rsl evaluation.
-
toRSL
Produces a RSL representation of this relation.
-