|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.fe.statemachine.ext.apploaders.sax.State
public class State
This State class is used by the saxapploader to represent a State in the application. The loader will create an instance of this class and add it to the application as it finds State elements in the xml document.
| Constructor Summary | |
|---|---|
State(Attributes atts,
Application application)
This constructor creates a new State, the State is initialised with the attribute set given. |
|
| Method Summary | |
|---|---|
boolean |
acceptsEvent(IEvent event)
This method is currently not implemented and returns true; |
boolean |
acceptsSession(IUserSession session)
Returns true if the user session passed in can be in this state. |
void |
addEvent(Event event)
This method adds an event to this state if the event indicates that it is a default event then the given event becomes the default event for this state. |
void |
addInputDefinition(IInputDefinition inputDefinition)
|
boolean |
equals(Object obj)
This method returns state Id |
void |
executeStateCommand(IStateCommand command,
boolean recurse)
This method executes the given command on this state and (optionally) all child states. |
Iterator |
getChildren()
|
IEvent |
getDefaultEvent()
This method returns the default event for this state. |
IEvent |
getEvent(String name)
This method returns the event with the given name. |
Iterator |
getEvents()
This method returns an Iterator of Event objects for this state. |
IState |
getExceptionState(String exceptionDescription)
Returns a State which can be used if the named exception occurs. |
String |
getId()
This method retruns the name of this State. |
IInputRequirements |
getInputRequirements()
|
String |
getJSPName()
This method returns the value of the jspName attribute if one were found in the xml chart. |
IState |
getParentState()
This method retruns the parent of this stateor null if none is set. |
Iterator |
getProcesses()
This method returns the processes used by this object. |
ArrayList |
getProcessNamesList()
Returns the processNamesList. |
String |
getTitle()
Returns a descriptive title for this state. |
IUnitOfWork |
getUnitOfWork()
This method is currently not implemented and returns null. |
Properties |
getUserProperties()
This method is not implemented currently. |
IView |
getView()
This method returns the view class for this state |
Properties |
getViewProperties()
Returns the viewProperties. |
void |
initializeProcessUser(Map processMap)
|
void |
setParent(State parent)
Sets the parent state of this state |
void |
setProcessNamesList(ArrayList processNamesList)
Sets the processNamesList. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public State(Attributes atts,
Application application)
The attribute set should contain the following attributes:
name, the state id
viewName, the view class used to display this state
atts - org.xml.sax.Attributesapplication - com.bankframe.fe.sm.saxapploader.Application the application this State belongs to.| Method Detail |
|---|
public boolean acceptsEvent(IEvent event)
acceptsEvent in interface IStateevent -
public boolean acceptsSession(IUserSession session)
acceptsSession in interface IStatesession -
public void addEvent(Event event)
event - com.bankframe.fe.sm.saxapploader.Eventpublic boolean equals(Object obj)
equals in class Objectobj -
public IEvent getDefaultEvent()
getDefaultEvent in interface IStatepublic IEvent getEvent(String name)
getEvent in interface IStatename - java.lang.String the event name
public Iterator getEvents()
getEvents in interface IStatepublic IState getExceptionState(String exceptionDescription)
getExceptionState in interface IStateexceptionDescription - java.lang.string
public String getId()
getId in interface IStatepublic String getJSPName()
public IState getParentState()
getParentState in interface IStatepublic IUnitOfWork getUnitOfWork()
getUnitOfWork in interface IStatepublic Properties getUserProperties()
getUserProperties in interface IState
public IView getView()
throws ViewNotFoundException
getView in interface IStateViewNotFoundExceptionpublic void setParent(State parent)
parent - com.bankframe.fe.sm.saxapploader.State the parent if this state
public void executeStateCommand(IStateCommand command,
boolean recurse)
throws StateMachineException
executeStateCommand in interface IStatecommand - 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.
StateMachineExceptionpublic String getTitle()
IState
getTitle in interface IStateIState.getTitle()public IInputRequirements getInputRequirements()
IState.getInputRequirements()public Iterator getProcesses()
IProcessUser
getProcesses in interface IProcessUserIProcessUser.getProcesses()public Properties getViewProperties()
public ArrayList getProcessNamesList()
public void setProcessNamesList(ArrayList processNamesList)
processNamesList - The processNamesList to setpublic void initializeProcessUser(Map processMap)
public void addInputDefinition(IInputDefinition inputDefinition)
public Iterator getChildren()
getChildren in interface IState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||