|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.fe.statemachine.ext.apploaders.sax.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(org.xml.sax.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(java.lang.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. |
java.util.Iterator |
getChildren()
|
IEvent |
getDefaultEvent()
This method returns the default event for this state. |
IEvent |
getEvent(java.lang.String name)
This method returns the event with the given name. |
java.util.Iterator |
getEvents()
This method returns an Iterator of Event objects for this state. |
IState |
getExceptionState(java.lang.String exceptionDescription)
Returns a State which can be used if the named exception occurs. |
java.lang.String |
getId()
This method retruns the name of this State. |
IInputRequirements |
getInputRequirements()
|
java.lang.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. |
java.util.Iterator |
getProcesses()
This method returns the processes used by this object. |
java.util.ArrayList |
getProcessNamesList()
Returns the processNamesList. |
java.lang.String |
getTitle()
Returns a descriptive title for this state. |
IUnitOfWork |
getUnitOfWork()
This method is currently not implemented and returns null. |
java.util.Properties |
getUserProperties()
This method is not implemented currently. |
IView |
getView()
This method returns the view class for this state |
java.util.Properties |
getViewProperties()
Returns the viewProperties. |
void |
initializeProcessUser(java.util.Map processMap)
|
void |
setParent(State parent)
Sets the parent state of this state |
void |
setProcessNamesList(java.util.ArrayList processNamesList)
Sets the processNamesList. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public State(org.xml.sax.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 IState
event
-
public boolean acceptsSession(IUserSession session)
acceptsSession
in interface IState
session
-
public void addEvent(Event event)
event
- com.bankframe.fe.sm.saxapploader.Eventpublic boolean equals(java.lang.Object obj)
obj
-
public IEvent getDefaultEvent()
getDefaultEvent
in interface IState
public IEvent getEvent(java.lang.String name)
getEvent
in interface IState
name
- java.lang.String the event name
public java.util.Iterator getEvents()
getEvents
in interface IState
public IState getExceptionState(java.lang.String exceptionDescription)
getExceptionState
in interface IState
exceptionDescription
- the exception which has been thrown to RequestManager
public java.lang.String getId()
getId
in interface IState
public java.lang.String getJSPName()
public IState getParentState()
getParentState
in interface IState
public IUnitOfWork getUnitOfWork()
getUnitOfWork
in interface IState
public java.util.Properties getUserProperties()
getUserProperties
in interface IState
public IView getView() throws ViewNotFoundException
getView
in interface IState
ViewNotFoundException
public void setParent(State parent)
public void executeStateCommand(IStateCommand command, boolean recurse) throws StateMachineException
executeStateCommand
in interface IState
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.lang.String getTitle()
IState
getTitle
in interface IState
IState.getTitle()
public IInputRequirements getInputRequirements()
getInputRequirements
in interface IState
IState.getInputRequirements()
public java.util.Iterator getProcesses()
IProcessUser
getProcesses
in interface IProcessUser
IProcessUser.getProcesses()
public java.util.Properties getViewProperties()
getViewProperties
in interface IState
public java.util.ArrayList getProcessNamesList()
public void setProcessNamesList(java.util.ArrayList processNamesList)
processNamesList
- The processNamesList to setpublic void initializeProcessUser(java.util.Map processMap)
public void addInputDefinition(IInputDefinition inputDefinition)
public java.util.Iterator getChildren()
getChildren
in interface IState
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |