Class TransitionSet
java.lang.Object
org.springframework.webflow.engine.TransitionSet
- All Implemented Interfaces:
Iterable<Transition>
A typed set of transitions for use internally by artifacts that can apply transition execution logic.
- Author:
- Keith Donald
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(Transition transition) Add a transition to this set.boolean
addAll
(Transition... transitions) Add a collection of transition instances to this set.boolean
contains
(Transition transition) Tests if this transition is in this set.getTransition
(RequestContext context) Gets a transition for given flow execution request context.Returns a list of the supported transitional criteria used to match transitions in this state.boolean
hasMatchingTransition
(RequestContext context) Returns whether or not this list has a transition that will fire for given flow execution request context.iterator()
Returns an iterator over this transition set.boolean
remove
(Transition transition) Remove the transition instance from this set.int
size()
Returns the size of this transition set.toArray()
Convert this set to a typed transition array.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TransitionSet
public TransitionSet()
-
-
Method Details
-
add
Add a transition to this set.- Parameters:
transition
- the transition to add- Returns:
- true if this set's contents changed as a result of the add operation
-
addAll
Add a collection of transition instances to this set.- Parameters:
transitions
- the transitions to add- Returns:
- true if this set's contents changed as a result of the add operation
-
contains
Tests if this transition is in this set.- Parameters:
transition
- the transition- Returns:
- true if the transition is contained in this set, false otherwise
-
remove
Remove the transition instance from this set.- Parameters:
transition
- the transition to remove- Returns:
- true if this list's contents changed as a result of the remove operation
-
size
public int size()Returns the size of this transition set.- Returns:
- the exception handler set size
-
iterator
Returns an iterator over this transition set.- Specified by:
iterator
in interfaceIterable<Transition>
- Returns:
- an iterator
-
toArray
Convert this set to a typed transition array.- Returns:
- the transition set as a typed array
-
getTransitionCriterias
Returns a list of the supported transitional criteria used to match transitions in this state.- Returns:
- the list of transitional criteria
-
getTransition
Gets a transition for given flow execution request context. The first matching transition will be returned.- Parameters:
context
- a flow execution context- Returns:
- the transition, or null if no transition matches
-
hasMatchingTransition
Returns whether or not this list has a transition that will fire for given flow execution request context.- Parameters:
context
- a flow execution context
-
toString
-