class Configuration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
baseClass
The base state machine class.
|
private boolean |
equalsPreprocessor
Generate equals preprocessor.
|
private java.lang.String |
fileHeader
File header.
|
private java.lang.String |
fsmFileSuffix
The suffix of the file name.
|
private java.lang.String |
fsmImports
The imports for state machine class.
|
private boolean |
globalStateListener
Generate global state listener.
|
private boolean |
globalTransitionListener
Generate global transition listener.
|
private java.lang.String |
javaPackage
The Java package.
|
private java.lang.String |
outputDirectory
The output directory.
|
private java.lang.String |
processorFileSuffix
The suffix of the file name.
|
private java.lang.String |
processorImports
The imports for processor class.
|
private boolean |
stateListener
Generate state listener for each state.
|
private boolean |
transitionDescriptionContainsCode
Description of transitions contains Java code.
|
private boolean |
transitionListener
Generate transition listener for each transition.
|
private boolean |
typePreprocessor
Generate type preprocessor.
|
private java.lang.String |
version
The configuration version.
|
Modifier | Constructor and Description |
---|---|
private |
Configuration()
Forbid creating objects.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseClass() |
java.lang.String |
getFileHeader() |
java.lang.String |
getFsmFileSuffix() |
java.lang.String |
getFsmImports() |
java.lang.String |
getJavaPackage() |
java.lang.String |
getOutputDirectory() |
java.lang.String |
getProcessorFileSuffix() |
java.lang.String |
getProcessorImports() |
java.lang.String |
getVersion() |
boolean |
isEqualsPreprocessor() |
boolean |
isGlobalStateListener() |
boolean |
isGlobalTransitionListener() |
boolean |
isStateListener() |
boolean |
isTransitionDescriptionContainsCode() |
boolean |
isTransitionListener() |
boolean |
isTypePreprocessor() |
static Configuration |
parse(java.io.File file)
Parse a configuration file.
|
static Configuration |
parse(java.lang.String path)
Parse a configuration file.
|
private static Configuration |
parseConfiguration(org.w3c.dom.Element configurationEl)
Parse the XML content
|
private java.lang.String version
private java.lang.String outputDirectory
private java.lang.String baseClass
private java.lang.String javaPackage
private java.lang.String fsmFileSuffix
private java.lang.String fsmImports
private boolean transitionDescriptionContainsCode
private boolean typePreprocessor
private boolean equalsPreprocessor
private boolean globalStateListener
private boolean globalTransitionListener
private boolean stateListener
private boolean transitionListener
private java.lang.String processorFileSuffix
private java.lang.String processorImports
private java.lang.String fileHeader
public java.lang.String getVersion()
public java.lang.String getOutputDirectory()
public java.lang.String getBaseClass()
public java.lang.String getJavaPackage()
public java.lang.String getFsmImports()
public boolean isTypePreprocessor()
public boolean isEqualsPreprocessor()
public boolean isGlobalStateListener()
public boolean isGlobalTransitionListener()
public boolean isStateListener()
public boolean isTransitionListener()
public java.lang.String getProcessorImports()
public java.lang.String getFileHeader()
public boolean isTransitionDescriptionContainsCode()
public java.lang.String getFsmFileSuffix()
public java.lang.String getProcessorFileSuffix()
public static Configuration parse(java.lang.String path) throws QfsmException
path
- the file system pathQfsmException
- if parsing fails for any reasonparse(File)
public static Configuration parse(java.io.File file) throws QfsmException
file
- the input fileQfsmException
- if parsing fails for any reasonprivate static Configuration parseConfiguration(org.w3c.dom.Element configurationEl) throws QfsmException
configurationEl
- the top level elementQfsmException
- if something failsCopyright 2013 Michal Turek, AnotherFSM.