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 SummaryNested ClassesModifier and TypeClassDescriptionclassclassclassclassclassclassclassCustom digester rule to process Action State Descriptor.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final String(package private) Stringprivate static final Stringprivate org.apache.commons.digester.Digesterstatic final Stringprivate static final String(package private) Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final StringFields inherited from class org.chenile.stm.impl.FlowReaderBasestmFlowStoreImpl
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidvoidparse(InputStream inputStream) voidsetFilename(String filename) private voidvoidprivate voidstatic StringtransformTag(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_TAGString EVENT_ID_TAG
- 
COMPONENT_NAME_TAGString COMPONENT_NAME_TAG
- 
COMPONENT_NAME- See Also:
 
- 
EVENT_ID- See Also:
 
- 
STATES_FLOW_TAG- See Also:
 
- 
STATES_FLOW- See Also:
 
- 
COMPONENT_PROPERTIES- See Also:
 
- 
digesterprivate 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- 
setUpDigesterRulesprivate 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
 
- 
setUpDigesterpublic void setUpDigester()
- 
setRulesForStateTag
- 
transformTag
- 
main
 
-