Java Globus API: Class Binding
org.globus.rsl
Class Binding
java.lang.Object
|
+--org.globus.rsl.Binding
- public class Binding
- extends java.lang.Object
This class represents a single variable definition in RSL
(see rsl_substitution attribute)
|
Constructor Summary |
Binding(java.lang.String name,
java.lang.String value)
|
Binding(java.lang.String name,
Value value)
|
|
Method Summary |
Binding |
evaluate(java.util.Map symbolTable)
Evaluates the variable definition with the specified
symbol table. |
java.lang.String |
getName()
Returns the name of the variable. |
Value |
getValue()
Returns the variable value. |
java.lang.String |
toRSL(boolean explicitConcat)
Returns a RSL representation of this variable definition. |
void |
toRSL(java.lang.StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this variable definition. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_name
protected java.lang.String _name
_value
protected Value _value
Binding
public Binding(java.lang.String name,
Value value)
Binding
public Binding(java.lang.String name,
java.lang.String value)
getName
public java.lang.String getName()
- Returns the name of the variable.
- Returns:
- the variable name.
getValue
public Value getValue()
- Returns the variable value.
- Returns:
- the variable value.
evaluate
public Binding evaluate(java.util.Map symbolTable)
throws RslEvaluationException
- Evaluates the variable definition with the specified
symbol table.
- Parameters:
symbolTable - the symbol table to evaluate
the value against.- Returns:
- an evaluated string.
- Throws:
RslEvaluationException - If an error occured during
rsl evaluation.
toRSL
public java.lang.String toRSL(boolean explicitConcat)
- Returns a RSL representation of this variable definition.
- Parameters:
explicitConcat - if true explicit concatination will
be used in RSL strings.- Returns:
- RSL representation of this variable definition.
toRSL
public void toRSL(java.lang.StringBuffer buf,
boolean explicitConcat)
- Produces a RSL representation of this variable definition.
- Parameters:
buf - buffer to add the RSL representation to.explicitConcat - if true explicit concatination will
be used in RSL strings.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object