org.jasig.cas.web.flow
Class ModelAndEvent

java.lang.Object
  extended byorg.jasig.cas.web.flow.ModelAndEvent

public class ModelAndEvent
extends java.lang.Object

Holder for both Model and Event in the CAS work flow. Note that these are entirely distinct. This class merely holds both to make it possible for a action to return both model and event in a single return value.

Since:
3.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Constructor Summary
ModelAndEvent(org.springframework.webflow.Event event)
          Constructs a new ModelAndEvent with a blank Model and the supplied event.
ModelAndEvent(org.springframework.webflow.Event event, java.util.Map model)
          Constructs a new ModelAndEvent with the supplied event and map.
ModelAndEvent(org.springframework.webflow.Event event, java.lang.String attribute, java.lang.Object value)
          Constructs a new ModelAndEent with the supplied event and populating a map with the supplied attribute/value pair.
 
Method Summary
 org.springframework.webflow.Event getEvent()
          Return the triggered event.
 java.util.Map getModel()
          Return the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelAndEvent

public ModelAndEvent(org.springframework.webflow.Event event)
Constructs a new ModelAndEvent with a blank Model and the supplied event.

Parameters:
event - the event that was triggered.

ModelAndEvent

public ModelAndEvent(org.springframework.webflow.Event event,
                     java.util.Map model)
Constructs a new ModelAndEvent with the supplied event and map.

Parameters:
event - the event that was triggered.
model - the map containing all the elements for the Model.

ModelAndEvent

public ModelAndEvent(org.springframework.webflow.Event event,
                     java.lang.String attribute,
                     java.lang.Object value)
Constructs a new ModelAndEent with the supplied event and populating a map with the supplied attribute/value pair.

Parameters:
event - the event that was triggered.
attribute - the single attribute for our model.
value - the single value associated with the attribue.
Method Detail

getModel

public final java.util.Map getModel()
Return the model.

Returns:
the model.

getEvent

public final org.springframework.webflow.Event getEvent()
Return the triggered event.

Returns:
the triggered event.


Copyright © 2004-2005 Java Architectures Special Interest Group. All Rights Reserved.