com.bankframe.fe.statemachine.ext.apploaders.sax
Class Application

java.lang.Object
  extended bycom.bankframe.fe.statemachine.ext.apploaders.sax.Application
All Implemented Interfaces:
IApplication

public class Application
extends java.lang.Object
implements IApplication

This class Application is an implementation of IApplication that is used by the xmlapploader.

Author:
engineering

Constructor Summary
Application(org.xml.sax.Attributes atts)
           
 
Method Summary
 void addState(State state)
          This method adds a state to the application.
 java.util.Vector getChildrenOfState(java.lang.String parentName)
          This method returns a Enumeration of State objects that are children of the state with the given name, will return null if the parent state can not be located.
 java.lang.String getName()
          This method returns the name of this application.
 IState getRootState()
          This method returns the root state of this application.
 IState getStartState()
          This method returns the start state for the application.
 IState getState(java.lang.String name)
          This method returns the state for the given name.
 java.util.Vector getStates()
          This method returns all the states for this application.
 void setRootStateName(java.lang.String rootStateName)
          This method sets the name of the root state for this application
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application(org.xml.sax.Attributes atts)
Parameters:
atts -
Method Detail

addState

public void addState(State state)
This method adds a state to the application.

Parameters:
state -

getChildrenOfState

public java.util.Vector getChildrenOfState(java.lang.String parentName)
This method returns a Enumeration of State objects that are children of the state with the given name, will return null if the parent state can not be located.

Parameters:
parentName -
Returns:
java.util.Enumeration of State objects

getName

public java.lang.String getName()
This method returns the name of this application.

Specified by:
getName in interface IApplication
Returns:
java.lang.String

getRootState

public IState getRootState()
This method returns the root state of this application.

Specified by:
getRootState in interface IApplication
Returns:
state

getStartState

public IState getStartState()
This method returns the start state for the application. If no start state is specified this method will return the root state of this application.

Specified by:
getStartState in interface IApplication
Returns:
start

getState

public IState getState(java.lang.String name)
This method returns the state for the given name. States retruned from this class will be an instance of com.bankframe.fe.sm.saxapploader.State

Specified by:
getState in interface IApplication
Parameters:
name - the id of the required state.
Returns:
the state with the given id

setRootStateName

public void setRootStateName(java.lang.String rootStateName)
This method sets the name of the root state for this application

Parameters:
rootStateName -

getStates

public java.util.Vector getStates()
Description copied from interface: IApplication
This method returns all the states for this application.

Specified by:
getStates in interface IApplication
Returns:
Vector


Copyright © 2004 Siebel Systems, Inc. All rights reserved.