com.stateforge.statebuilder.java
Class StateBuilderJava
java.lang.Object
com.stateforge.statebuilder.StateBuilderAppBase
com.stateforge.statebuilder.java.StateBuilderJava
public class StateBuilderJava
- extends StateBuilderAppBase
| Fields inherited from class com.stateforge.statebuilder.StateBuilderAppBase |
_fileList, appName, cliArgs, cmd, DIRECTORY, DIRECTORY_SHORT, fileExtension, FSM_SUFFIX, HELP, HELP_SHORT, m_bShowHelp, m_fsmCompilerList, m_logger, m_outputDirectory, m_prependFile, OPTION_OBSERVER, OPTION_OFF, OPTION_ON, OPTION_PATH, OPTION_PREFIX, OPTION_PREPEND, options, pomProperties, PREPEND_FILE, PREPEND_FILE_SHORT, VERSION, VERSION_SHORT |
|
Method Summary |
org.apache.commons.cli.CommandLine |
commandLineParse(String[] args)
Parse the command line and exit on error |
void |
generate(String inputFileName,
org.apache.commons.cli.CommandLine cmd)
generate the code from one input file |
static int |
run(String[] args)
entry point of the program |
| Methods inherited from class com.stateforge.statebuilder.StateBuilderAppBase |
computeDefaultOutputDirectory, createCommandLine, createModel, createOptions, generate, generateAll, generatePrependFile, getAbsoluteStateMachinePath, getAppName, getCmd, getErrorCode, getFileExtension, getOptions, getOutputDirectory, getPomProperties, getPrependFile, getSchemaName, getVersion, hasConfigFile, processCliCommon, readConfigLine, setAppName, setCmd, setErrorCode, setFileExtension, setOptions, setOutputDirectory, setPomProperties, setPrependFile, setSchemaName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateBuilderJava
public StateBuilderJava()
- Default constructor
run
public static int run(String[] args)
- entry point of the program
- Parameters:
args - command line parameters
generate
public void generate(String inputFileName,
org.apache.commons.cli.CommandLine cmd)
throws StateBuilderException,
ParserConfigurationException,
SAXException,
IOException
- generate the code from one input file
- Overrides:
generate in class StateBuilderAppBase
- Parameters:
inputFileName - input filecmd - the command line argument
- Throws:
StateBuilderException
SAXException - parsing exception
IOException
Exception
ParserConfigurationException
commandLineParse
public org.apache.commons.cli.CommandLine commandLineParse(String[] args)
throws org.apache.commons.cli.ParseException
- Parse the command line and exit on error
- Overrides:
commandLineParse in class StateBuilderAppBase
- Parameters:
args -
- Returns:
- CommandLine
- Throws:
org.apache.commons.cli.ParseException
Copyright © 2015. All rights reserved.