Java Globus API: Class VarRef
org.globus.rsl
Class VarRef
java.lang.Object
|
+--org.globus.rsl.Value
|
+--org.globus.rsl.VarRef
public class VarRef extends Value
This class represents a variable reference in the RSL string.
The reference can be concatinated by other values.
Constructor Summary
VarRef (java.lang.String varReference)
VarRef (java.lang.String varReference,
Value defValue)
VarRef (java.lang.String varReference,
Value defValue,
Value concatVal)
Method Summary
java.lang.String
evaluate (java.util.Map symbolTable)
Evaluates the variable reference with the specified
symbol table.
java.lang.String
getCompleteValue ()
Returns a complete string representation of this
value.
void
setDefaultValue (Value value)
Sets the default value of this reference.
void
toRSL (java.lang.StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this variable reference.
java.lang.String
toString ()
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
defValue
protected Value defValue
VarRef
public VarRef (java.lang.String varReference)
VarRef
public VarRef (java.lang.String varReference,
Value defValue)
VarRef
public VarRef (java.lang.String varReference,
Value defValue,
Value concatVal)
setDefaultValue
public void setDefaultValue (Value value)
Sets the default value of this reference.
Parameters: value - the default value.
evaluate
public java.lang.String evaluate (java.util.Map symbolTable)
throws RslEvaluationException
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 class Value
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
public void toRSL (java.lang.StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this variable reference.
Overrides: toRSL in class Value
Parameters: buf - buffer to add the RSL representation to.explicitConcat - if true explicit concatination will
be used in RSL strings.
getCompleteValue
public java.lang.String getCompleteValue ()
Returns a complete string representation of this
value.
Overrides: getCompleteValue in class Value
Returns: a complete string representation of this
value.
toString
public java.lang.String toString ()
Overrides: toString in class Value