Class Binding


  • public class Binding
    extends Object
    This class represents a single variable definition in RSL (see rsl_substitution attribute)
    • Field Detail

      • _name

        protected String _name
      • _value

        protected Value _value
    • Constructor Detail

      • Binding

        public Binding​(String name,
                       Value value)
    • Method Detail

      • getName

        public 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​(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 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​(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.