|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
boolean |
acceptsEvent(IEvent event)
Returns trus if the given event is a valid event to be throws from this state. |
boolean |
acceptsSession(IUserSession session)
Returns true if the given user session has permission to be in this state. |
void |
executeStateCommand(IStateCommand command,
boolean recurse)
This method executes the given command on this state and (optionally) all child states. |
java.util.Iterator |
getChildren()
|
IEvent |
getDefaultEvent()
Returns a default Event for this state. |
IEvent |
getEvent(java.lang.String name)
Returns the Event with the given name. |
java.util.Iterator |
getEvents()
Returns an iterator over all the events that can be thrown from this state. |
IState |
getExceptionState(java.lang.String exceptionDescription)
Returns a State which can be used if the named exception occurs. |
java.lang.String |
getId()
Returns this states Id. |
IState |
getParentState()
Returns this state's parent state. |
java.lang.String |
getTitle()
Returns a descriptive title for this state. |
IUnitOfWork |
getUnitOfWork()
Gets the UnitOfWork which contains this state. |
java.util.Properties |
getUserProperties()
Returns a Properties for this state. |
IView |
getView()
Returns the IView implementor for this state. |
Method Detail |
public IEvent getEvent(java.lang.String name)
name
- the name of the required event.
public boolean acceptsSession(IUserSession session)
session
- the user session attempting to access this state.
public IState getExceptionState(java.lang.String exceptionDescription)
exceptionDescription
- the exception which has been thrown to RequestManager
public IState getParentState()
public java.lang.String getId()
public java.lang.String getTitle()
public java.util.Properties getUserProperties()
userProperties can be used to store information about the state of particular interest to your application.
public IEvent getDefaultEvent()
May return null if no default event exists in this state.
public IView getView() throws ViewNotFoundException
ViewNotFoundException
public IUnitOfWork getUnitOfWork()
May be null.
public boolean acceptsEvent(IEvent event)
event
- the event to be checked
public java.util.Iterator getEvents()
public void executeStateCommand(IStateCommand command, boolean recurse) throws StateMachineException
command
- an IStateCommand implementor that performs some operation
on states.recurse
- set true if the command is to be executed on the state tree,
or false if the command is to be executed on this state only.
StateMachineException
public java.util.Iterator getChildren()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |