com.bareflow
Interface IRuntimeValue


public interface IRuntimeValue

This interface represents a value object that can be evaluated only at runtime and in a runtime context. Runtime value is constructed by runtime factory from a lexical representation (see IRuntimeFactory.createValue(String)).

Runtime value is similar to expression: both can be evaluated only at runtime and in a runtime context. The difference between them is in their lexical representations. Lexical representation of the expression is restricted by expression language. Lexical representation of the runtime value has a free-text format with special syntax for elements that can be evaluated only at runtime. This special syntax can be different for different runtime implementations.

For example the following lexical representation

  One, Two, ${a}
will be resolved by the default runtime implementation to "One, Two, Three". Entry ${a} will be substituted by the actual value of the attribute a in the runtime context, in this case "Three".

See Also:
IRuntimeFactory

Method Summary
 java.lang.Object getValue(IRuntimeContext ctx)
          Resolves this runtime value in the runtime context.
 

Method Detail

getValue

java.lang.Object getValue(IRuntimeContext ctx)
                          throws BareflowException
Resolves this runtime value in the runtime context.

Parameters:
ctx - runtime context to resolve this value in.
Returns:
this runtime value in the runtime context.
Throws:
BareflowException - if runtime value cannot be resolved