org.springframework.webflow.engine.support
Class EventIdTransitionCriteria

java.lang.Object
  extended by org.springframework.webflow.engine.support.EventIdTransitionCriteria
All Implemented Interfaces:
java.io.Serializable, TransitionCriteria

public class EventIdTransitionCriteria
extends java.lang.Object
implements TransitionCriteria, java.io.Serializable

Simple transition criteria that matches on an eventId and nothing else. Specifically, if the id of the last event that occured equals getEventId() this criteria will return true.

Author:
Erwin Vervaet, Keith Donald
See Also:
RequestContext.getLastEvent(), Serialized Form

Constructor Summary
EventIdTransitionCriteria(java.lang.String eventId)
          Create a new event id matching criteria object.
 
Method Summary
 java.lang.String getEventId()
          Returns the event id to match.
 void setCaseSensitive(boolean caseSensitive)
          Set whether or not the event id should be matched in a case sensitve manner.
 boolean test(RequestContext context)
          Check if the transition should fire based on the given flow execution request context.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventIdTransitionCriteria

public EventIdTransitionCriteria(java.lang.String eventId)
Create a new event id matching criteria object.

Parameters:
eventId - the event id
Method Detail

getEventId

public java.lang.String getEventId()
Returns the event id to match.


setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
Set whether or not the event id should be matched in a case sensitve manner. Defaults to true.


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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2007. All Rights Reserved.