|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IState
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. |
Iterator |
getChildren()
|
IEvent |
getDefaultEvent()
Returns a default Event for this state. |
IEvent |
getEvent(String name)
Returns the Event with the given name. |
Iterator |
getEvents()
Returns an iterator over all the events that can be thrown from this state. |
IState |
getExceptionState(String exceptionDescription)
Returns a State which can be used if the named exception occurs. |
String |
getId()
Returns this states Id. |
IState |
getParentState()
Returns this state's parent state. |
String |
getTitle()
Returns a descriptive title for this state. |
IUnitOfWork |
getUnitOfWork()
Gets the UnitOfWork which contains this state. |
Properties |
getUserProperties()
Returns a Properties for this state. |
IView |
getView()
Returns the IView implementor for this state. |
Method Detail |
---|
IEvent getEvent(String name)
name
- the name of the required event.
boolean acceptsSession(IUserSession session)
session
- the user session attempting to access this state.
IState getExceptionState(String exceptionDescription)
exceptionDescription
- the exception which has been thrown to RequestManager
IState getParentState()
String getId()
String getTitle()
Properties getUserProperties()
userProperties can be used to store information about the state of particular interest to your application.
IEvent getDefaultEvent()
May return null if no default event exists in this state.
IView getView() throws ViewNotFoundException
ViewNotFoundException
IUnitOfWork getUnitOfWork()
May be null.
boolean acceptsEvent(IEvent event)
event
- the event to be checked
Iterator getEvents()
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
Iterator getChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |