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

Quick Search    Search Deep

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

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

public class InitParser
extends Parser
implements Initializer

Version:
$revision$

Field Summary
protected  java.lang.String config_file_
           
protected static java.lang.String[] DEFAULT_SEARCH_PATH
           
protected  Initializer initializer_
           
 
Fields inherited from class edu.iicm.xpg.statemachine.Parser
data_, handler_, PARSER_FEATURE_SCHEMA, PARSER_FEATURE_VALIDATING, PARSER_FEATURE_VALIDATING_DYNAMIC, reader_, STATE_MACHINE, state_machine_, TRANSITION_FATORY, XML_READER
 
Constructor Summary
InitParser(java.lang.String config_file)
           
InitParser(java.lang.String config_file, java.lang.String xml_reader)
           
 
Method Summary
 PrimitiveStateMachine getStateMachine()
          get the initialized statemachine
protected  void init(java.lang.String config_file)
           
 void initialize(PrimitiveStateMachine new_state_machine)
          initialize the statemachine with the initializer
 
Methods inherited from class edu.iicm.xpg.statemachine.Parser
parseFile, setFeatures, setHandlers, setHandlers, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config_file_

protected java.lang.String config_file_

initializer_

protected Initializer initializer_

DEFAULT_SEARCH_PATH

protected static final java.lang.String[] DEFAULT_SEARCH_PATH
Constructor Detail

InitParser

public InitParser(java.lang.String config_file)
           throws java.lang.IllegalArgumentException,
                  org.xml.sax.SAXException

InitParser

public InitParser(java.lang.String config_file,
                  java.lang.String xml_reader)
           throws java.lang.IllegalArgumentException,
                  org.xml.sax.SAXException
Method Detail

init

protected void init(java.lang.String config_file)
             throws java.lang.IllegalArgumentException

initialize

public void initialize(PrimitiveStateMachine new_state_machine)
                throws java.lang.IllegalArgumentException,
                       org.xml.sax.SAXException,
                       java.io.IOException
initialize the statemachine with the initializer

Specified by:
initialize in interface Initializer

getStateMachine

public PrimitiveStateMachine getStateMachine()
get the initialized statemachine

Specified by:
getStateMachine in interface Initializer