Interface VariableContext

All Known Implementing Classes:
CompositeVariableContext, EmptyVariableContext, SingleVariableContext, VariableMapImpl, VariableScopeContext

public interface VariableContext
A context for variables. Allows resolving variables. An API may choose to accept a VariableContext instead of a map of concrete values in situations where passing all available variables would be expensive and lazy-loading is a desirable optimization.
Author:
Daniel Meyer
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    containsVariable(String variableName)
    Checks whether a variable with the given name is resolve through this context.
     
    resolve(String variableName)
    Resolve a value in this context.
  • Method Details

    • resolve

      TypedValue resolve(String variableName)
      Resolve a value in this context.
      Parameters:
      variableName - the name of the variable to resolve.
      Returns:
      the value of the variable or null in case the variable does not exist.
    • containsVariable

      boolean containsVariable(String variableName)
      Checks whether a variable with the given name is resolve through this context.
      Parameters:
      variableName - the name of the variable to check
      Returns:
      true if the variable is resolve.
    • keySet

      Set<String> keySet()
      Returns:
      a set of all variable names resolvable through this Context.