Class MultipartVar

Direct Known Subclasses:
IfVar, LenVar, LocalizationVar, PatternExtractVar, PatternMatchVar, PatternReplaceVar, SubstringVar, SwitchVar

public abstract class MultipartVar extends SimpleVar
Interface for the resolution of vars that consist of a comma-delimited list.
Example:

"$X{foo, bar, baz}"

See Also:
  • Constructor Details

    • MultipartVar

      public MultipartVar(String name)
      Constructor.
      Parameters:
      name - The name of this variable.
  • Method Details

    • resolve

      public abstract String resolve(VarResolverSession session, String[] args)
      The interface that needs to be implemented for this interface.
      Parameters:
      session - The session object used for a single instance of a string resolution.
      args - The arguments inside the variable.
      Returns:
      The resolved variable.
    • resolve

      public String resolve(VarResolverSession session, String s)
      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.
      s - The inside argument of the variable.
      Returns:
      The resolved value.