Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.iicm.xpg.statemachine
Class InitInitializeStateMachine  view InitInitializeStateMachine download InitInitializeStateMachine.java

java.lang.Object
  extended byedu.iicm.xpg.statemachine.InitInitializeStateMachine
All Implemented Interfaces:
Initializer

public class InitInitializeStateMachine
extends java.lang.Object
implements Initializer

This class implements the Initializer Interface. It registers the States and Transitions for the Statemachine which is used to initialize the Document Statemachine. The States and Transisitions are hardcoded in this class. The Initialized Statemachine is able to process a statemachine config file and initialize the Document Statemachine.

Version:
$Revision: 1.5 $

Field Summary
protected static java.lang.String STATE_BEGINSTATE
           
protected static java.lang.String STATE_CLASSNAME
           
protected static java.lang.String STATE_ELEMENT
           
protected static java.lang.String STATE_FINISHED
           
protected  PrimitiveStateMachine state_machine_
           
protected static java.lang.String STATE_NEXTSTATE
           
protected static java.lang.String STATE_PATH_DEF
           
protected static java.lang.String STATE_START_STATE_DEF
           
protected static java.lang.String STATE_STATE_DEF
           
protected static java.lang.String STATE_STATE_LIST
           
protected static java.lang.String STATE_TOP_LEVEL_DOC_TYPE
           
protected static java.lang.String STATE_TOP_LEVEL_FILE
           
protected static java.lang.String STATE_TRANSITION_DEF
           
protected static java.lang.String STATE_TRANSITION_LIST
           
protected static java.lang.String XML_BEGINSTATE
           
protected static java.lang.String XML_CLASSNAME
           
protected static java.lang.String XML_ELEMENT
           
protected static java.lang.String XML_NEXTSTATE
           
protected static java.lang.String XML_PATH_DEF
           
protected static java.lang.String XML_START_STATE_DEF
           
protected static java.lang.String XML_STATE_DEF
           
protected static java.lang.String XML_STATE_LIST
           
protected static java.lang.String XML_STM_CONFIG
           
protected static java.lang.String XML_TRANSITION_DEF
           
protected static java.lang.String XML_TRANSITION_LIST
           
 
Constructor Summary
InitInitializeStateMachine()
           
 
Method Summary
 PrimitiveStateMachine getStateMachine()
          get the (initialized) statemachine
 void initialize(PrimitiveStateMachine state_machine)
          initialize the 'hardcoded' statemachine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state_machine_

protected PrimitiveStateMachine state_machine_

XML_STM_CONFIG

protected static final java.lang.String XML_STM_CONFIG
See Also:
Constant Field Values

XML_PATH_DEF

protected static final java.lang.String XML_PATH_DEF
See Also:
Constant Field Values

XML_STATE_LIST

protected static final java.lang.String XML_STATE_LIST
See Also:
Constant Field Values

XML_START_STATE_DEF

protected static final java.lang.String XML_START_STATE_DEF
See Also:
Constant Field Values

XML_STATE_DEF

protected static final java.lang.String XML_STATE_DEF
See Also:
Constant Field Values

XML_TRANSITION_LIST

protected static final java.lang.String XML_TRANSITION_LIST
See Also:
Constant Field Values

XML_TRANSITION_DEF

protected static final java.lang.String XML_TRANSITION_DEF
See Also:
Constant Field Values

XML_BEGINSTATE

protected static final java.lang.String XML_BEGINSTATE
See Also:
Constant Field Values

XML_NEXTSTATE

protected static final java.lang.String XML_NEXTSTATE
See Also:
Constant Field Values

XML_ELEMENT

protected static final java.lang.String XML_ELEMENT
See Also:
Constant Field Values

XML_CLASSNAME

protected static final java.lang.String XML_CLASSNAME
See Also:
Constant Field Values

STATE_TOP_LEVEL_FILE

protected static final java.lang.String STATE_TOP_LEVEL_FILE
See Also:
Constant Field Values

STATE_TOP_LEVEL_DOC_TYPE

protected static final java.lang.String STATE_TOP_LEVEL_DOC_TYPE
See Also:
Constant Field Values

STATE_PATH_DEF

protected static final java.lang.String STATE_PATH_DEF
See Also:
Constant Field Values

STATE_STATE_LIST

protected static final java.lang.String STATE_STATE_LIST
See Also:
Constant Field Values

STATE_START_STATE_DEF

protected static final java.lang.String STATE_START_STATE_DEF
See Also:
Constant Field Values

STATE_STATE_DEF

protected static final java.lang.String STATE_STATE_DEF
See Also:
Constant Field Values

STATE_TRANSITION_LIST

protected static final java.lang.String STATE_TRANSITION_LIST
See Also:
Constant Field Values

STATE_TRANSITION_DEF

protected static final java.lang.String STATE_TRANSITION_DEF
See Also:
Constant Field Values

STATE_BEGINSTATE

protected static final java.lang.String STATE_BEGINSTATE
See Also:
Constant Field Values

STATE_NEXTSTATE

protected static final java.lang.String STATE_NEXTSTATE
See Also:
Constant Field Values

STATE_ELEMENT

protected static final java.lang.String STATE_ELEMENT
See Also:
Constant Field Values

STATE_CLASSNAME

protected static final java.lang.String STATE_CLASSNAME
See Also:
Constant Field Values

STATE_FINISHED

protected static final java.lang.String STATE_FINISHED
See Also:
Constant Field Values
Constructor Detail

InitInitializeStateMachine

public InitInitializeStateMachine()
Method Detail

getStateMachine

public PrimitiveStateMachine getStateMachine()
                                      throws java.lang.IllegalStateException
get the (initialized) statemachine

Specified by:
getStateMachine in interface Initializer

initialize

public void initialize(PrimitiveStateMachine state_machine)
                throws java.lang.IllegalArgumentException
initialize the 'hardcoded' statemachine

Specified by:
initialize in interface Initializer