| org.apache.commons.scxml.io |
|
A collection of classes for reading in and writing out SCXML
documents, to and from the Commons SCXML Java object model.
Two variants of the SCXML parser are present in this package:
SCXMLDigester represents the parser that
corresponds to the July 05 Working Draft, and will be
removed in v1.0. It will be present all v0.x releases for
backwards compatability reasons.
SCXMLParser represents the newer version.
This will be updated to keep up with the more recent
Working Drafts.
|
| Java Source File Name | Type | Comment |
| IOTestSuite.java | Class | Test suite for SCXML IO package. |
| ModelUpdater.java | Class | The ModelUpdater provides the utility methods to check the Commons
SCXML model for inconsistencies, detect errors, and wire the Commons
SCXML model appropriately post document parsing by the digester to make
it executor ready. |
| SCXMLDigester.java | Class | The SCXMLDigester provides the ability to digest a SCXML document into
the Java object model provided in the model package.
The SCXMLDigester can be used for:
- Digest a SCXML file into the Commons SCXML Java object model.
- Obtain a SCXML Digester for further customization of the default
ruleset.
NOTE: The SCXMLDigester assumes that the SCXML document to be
parsed is well-formed and correct. |
| SCXMLDigesterTest.java | Class | Unit tests
org.apache.commons.scxml.SCXMLDigester . |
| SCXMLParser.java | Class | The SCXMLParser provides the ability to parse a SCXML document into
the Java object model provided in the model package.
The SCXMLParser can be used for:
- Parse a SCXML file into the Commons SCXML Java object model.
- Obtain a SCXML Parser for further customization of the default
ruleset.
If switching from
SCXMLDigester , changes need to be made to
the SCXML documents, such as:
- A <parallel> should not be wrapped in a <state> element
unless otherwise necessary
- <var> and <exit> elements continue to be supported by
Commons SCXML, but in the Commons SCXML namespace:
http://commons.apache.org/scxml
- <event> is now supported
See latest version of the SCXML Working Draft for more details.
NOTE: The SCXMLParser assumes that the SCXML document to be
parsed is well-formed and correct. |
| SCXMLParserTest.java | Class | Unit tests
org.apache.commons.scxml.SCXMLParser . |
| SCXMLSerializer.java | Class | Utility class for serializing the Commons SCXML Java object
model. |
| SCXMLSerializerTest.java | Class | |
| StateSrcTest.java | Class | Unit tests
org.apache.commons.scxml.SCXMLDigester Test white box nature of element "src" attribute. |