Class MapVar

Direct Known Subclasses:
SystemPropertiesVar

public abstract class MapVar extends DefaultingVar
A subclass of DefaultingVar that simply pulls values from a Map.
See Also:
  • Constructor Details

    • MapVar

      public MapVar(String name, Map m)
      Constructor.
      Parameters:
      name - The name of this variable.
      m - The map to pull values from.
  • Method Details

    • resolve

      public String resolve(VarResolverSession session, String varVal)
      Description copied from class: Var
      The interface that needs to be implemented for subclasses of SimpleVar.
      Specified by:
      resolve in class Var
      Parameters:
      session - The session object used for a single instance of a var resolution.
      varVal - The inside argument of the variable.
      Returns:
      The resolved value.