net.sourceforge.stripes.tools
Class ActionBeanInfo

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

public class ActionBeanInfo
extends Object

Encapsulates meta-information about an ActionBean, namely it's UrlBinding and set of events to which it responds. 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
ActionBeanInfo()
           
 
Method Summary
 void addEvent(EventInfo eventInfo)
          Adds the supplied event to the events for this ActionBean.
 String getClassName()
          The class name of the ActionBean that this object describes.
 EventInfo getDefaultEvent()
          Gets the default event for this ActionBean, if there is one.
 Map<String,EventInfo> getEvents()
          Gets a Map of event name to EventInfo, excluding the default event.
 UrlBinding getUrlBinding()
          The UrlBinding extracted from the ActionBean.
 void setClassName(String className)
          The class name of the ActionBean that this object describes.
 void setUrlBinding(UrlBinding urlBinding)
          The UrlBinding extracted from the ActionBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBeanInfo

public ActionBeanInfo()
Method Detail

getClassName

public String getClassName()
The class name of the ActionBean that this object describes.


setClassName

public void setClassName(String className)
The class name of the ActionBean that this object describes.


getUrlBinding

public UrlBinding getUrlBinding()
The UrlBinding extracted from the ActionBean.


setUrlBinding

public void setUrlBinding(UrlBinding urlBinding)
The UrlBinding extracted from the ActionBean.


addEvent

public void addEvent(EventInfo eventInfo)
Adds the supplied event to the events for this ActionBean. If the event is the default event it will be stored separately, and not as part of the Map of events.


getEvents

public Map<String,EventInfo> getEvents()
Gets a Map of event name to EventInfo, excluding the default event.


getDefaultEvent

public EventInfo getDefaultEvent()
Gets the default event for this ActionBean, if there is one.



? Copyright 2005-2006, Stripes Development Team.