Class TransitionCriteriaChain

java.lang.Object
org.springframework.webflow.engine.support.TransitionCriteriaChain
All Implemented Interfaces:
TransitionCriteria

public class TransitionCriteriaChain extends Object implements TransitionCriteria
An ordered chain of TransitionCriteria. Iterates over each element in the chain, continues until one returns false or the list is exhausted. So in effect it will do a logical AND between the contained criteria.
Author:
Keith Donald
  • Constructor Details

    • TransitionCriteriaChain

      public TransitionCriteriaChain()
      Creates an initially empty transition criteria chain.
      See Also:
    • TransitionCriteriaChain

      public TransitionCriteriaChain(TransitionCriteria... criteria)
      Creates a transition criteria chain with the specified criteria.
      Parameters:
      criteria - the criteria
  • Method Details

    • add

      Add given criteria object to the end of the chain.
      Parameters:
      criteria - the criteria
      Returns:
      this object, so multiple criteria can be added in a single statement
    • test

      public boolean test(RequestContext context)
      Description copied from interface: TransitionCriteria
      Check if the transition should fire based on the given flow execution request context.
      Specified by:
      test in interface TransitionCriteria
      Parameters:
      context - the flow execution request context
      Returns:
      true if the transition should fire, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • criteriaChainFor

      public static TransitionCriteria criteriaChainFor(Action... actions)
      Create a transition criteria chain chaining given list of actions.
      Parameters:
      actions - the actions (and their execution properties) to chain together