net.sourceforge.stripes.tools
Class EventInfo

java.lang.Object
  extended by net.sourceforge.stripes.tools.EventInfo

public class EventInfo
extends Object

Encapsulates meta-information about a single event within an ActionBean. This class is not used at runtime in Stripes, but is used by the SiteStructureTool to collect and report on information about ActionBeans.

Since:
Stripes 1.1.2
Author:
Tim Fennell

Constructor Summary
EventInfo()
           
 
Method Summary
 void addResolution(String outcome)
          Adds a resolution to the set of possible resolutions for the event.
 String getMethodName()
          The name of the method in the ActionBean that handles the event.
 String getName()
          The name of the event (possibly null in the case of default events).
 Collection<String> getResolutions()
          The set of all possible resolutions for the event.
 boolean isDefaultEvent()
          True if the event is the default event for the ActionBean, false otherwise.
 void setDefaultEvent(boolean defaultEvent)
          True if the event is the default event for the ActionBean, false otherwise.
 void setMethodName(String methodName)
          The name of the method in the ActionBean that handles the event.
 void setName(String name)
          The name of the event (possibly null in the case of default events).
 void setResolutions(Collection<String> resolutions)
          The set of all possible resolutions for the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventInfo

public EventInfo()
Method Detail

getName

public String getName()
The name of the event (possibly null in the case of default events).


setName

public void setName(String name)
The name of the event (possibly null in the case of default events).


getMethodName

public String getMethodName()
The name of the method in the ActionBean that handles the event.


setMethodName

public void setMethodName(String methodName)
The name of the method in the ActionBean that handles the event.


isDefaultEvent

public boolean isDefaultEvent()
True if the event is the default event for the ActionBean, false otherwise.


setDefaultEvent

public void setDefaultEvent(boolean defaultEvent)
True if the event is the default event for the ActionBean, false otherwise.


addResolution

public void addResolution(String outcome)
Adds a resolution to the set of possible resolutions for the event.


getResolutions

public Collection<String> getResolutions()
The set of all possible resolutions for the event.


setResolutions

public void setResolutions(Collection<String> resolutions)
The set of all possible resolutions for the event.



? Copyright 2005-2006, Stripes Development Team.