Class VariableResolver.Union<V>

java.lang.Object
org.ow2.proactive.process_tree_killer.VariableResolver.Union<V>
All Implemented Interfaces:
VariableResolver<V>
Enclosing interface:
VariableResolver<V>

public static final class VariableResolver.Union<V>
extends java.lang.Object
implements VariableResolver<V>
Union of multiple VariableResolver.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.ow2.proactive.process_tree_killer.VariableResolver

    VariableResolver.ByMap<V>, VariableResolver.Union<V>
  • Field Summary

    Fields inherited from interface org.ow2.proactive.process_tree_killer.VariableResolver

    NONE
  • Constructor Summary

    Constructors 
    Constructor Description
    Union​(java.util.Collection<? extends VariableResolver<? extends V>> resolvers)  
    Union​(VariableResolver<? extends V>... resolvers)  
  • Method Summary

    Modifier and Type Method Description
    V resolve​(java.lang.String name)
    Receives a variable name and obtains the value associated with the name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • resolve

      public V resolve​(java.lang.String name)
      Description copied from interface: VariableResolver
      Receives a variable name and obtains the value associated with the name.

      This can be implemented simply on top of a Map (see VariableResolver.ByMap), or this can be used like an expression evaluator.

      Specified by:
      resolve in interface VariableResolver<V>
      Parameters:
      name - Name of the variable to be resolved. Never null, never empty. The name shouldn't include the syntactic marker of an expression. IOW, it should be "foo" but not "${foo}". A part of the goal of this design is to abstract away the expression marker syntax.
      Returns:
      Object referenced by the name. Null if not found.