public class TransitionSet extends java.lang.Object implements java.lang.Iterable<Transition>
TransitionableState.getTransitionSet()
,
Flow.getGlobalTransitionSet()
Constructor and Description |
---|
TransitionSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
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.
|
Transition |
getTransition(RequestContext context)
Gets a transition for given flow execution request context.
|
TransitionCriteria[] |
getTransitionCriterias()
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.
|
java.util.Iterator<Transition> |
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.
|
Transition[] |
toArray()
Convert this set to a typed transition array.
|
java.lang.String |
toString() |
public boolean add(Transition transition)
transition
- the transition to addpublic boolean addAll(Transition... transitions)
transitions
- the transitions to addpublic boolean contains(Transition transition)
transition
- the transitionpublic boolean remove(Transition transition)
transition
- the transition to removepublic int size()
public java.util.Iterator<Transition> iterator()
iterator
in interface java.lang.Iterable<Transition>
public Transition[] toArray()
public TransitionCriteria[] getTransitionCriterias()
public Transition getTransition(RequestContext context)
context
- a flow execution contextpublic boolean hasMatchingTransition(RequestContext context)
context
- a flow execution contextpublic java.lang.String toString()
toString
in class java.lang.Object