Package org.chenile.stm.impl
Class XmlFlowReader
java.lang.Object
org.chenile.stm.impl.FlowReaderBase
org.chenile.stm.impl.XmlFlowReader
- All Implemented Interfaces:
FlowReader
Provides an xml implementation of the FlowStoreReader. Supports flexible
custom xml tags for specific action state components. Custom properties are
made available to actions registered. These two features provide a powerful
extension making this parser support an XML based DSL.
- Author:
- Raja Shankar Kolluru
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
Custom digester rule to process Action State Descriptor. -
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
(package private) String
private static final String
private org.apache.commons.digester.Digester
static final String
private static final String
(package private) String
static final String
static final String
static final String
static final String
static final String
static final String
private static final String
private static final String
private static final String
private static final String
Fields inherited from class org.chenile.stm.impl.FlowReaderBase
stmFlowStoreImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
parse
(InputStream inputStream) void
setFilename
(String filename) private void
void
private void
static String
transformTag
(String tagName)
-
Field Details
-
STATES_ADD_STATE_TAG
- See Also:
-
STATES_ADD_TRANSITION_TAG
- See Also:
-
ENTRY_ACTION
- See Also:
-
EXIT_ACTION
- See Also:
-
EVENT_ID_TAG
String EVENT_ID_TAG -
COMPONENT_NAME_TAG
String COMPONENT_NAME_TAG -
COMPONENT_NAME
- See Also:
-
EVENT_ID
- See Also:
-
STATES_FLOW_TAG
- See Also:
-
STATES_FLOW
- See Also:
-
COMPONENT_PROPERTIES
- See Also:
-
digester
private org.apache.commons.digester.Digester digester -
META_PREFIX
- See Also:
-
NEW_FLOW_ID
- See Also:
-
NEW_STATE_ID
- See Also:
-
NEW_FLOW_ID_TAG
- See Also:
-
NEW_STATE_ID_TAG
- See Also:
-
-
Constructor Details
-
XmlFlowReader
- Parameters:
stmFlowStoreImpl
- the store
-
-
Method Details
-
setUpDigesterRules
private void setUpDigesterRules() -
setFilename
- Parameters:
filename
- the XML file name- Throws:
Exception
- if it cannot read the file
-
parse
- Parameters:
inputStream
- the input stream to parse- Throws:
Exception
- if any error occurs in parsing the stream
-
setUpDigester
public void setUpDigester() -
setRulesForStateTag
-
transformTag
-
main
-