| java.lang.Object com.bostechcorp.cbesb.runtime.parser.impl.LegacyDataParser
All known Subclasses: com.bostechcorp.cbesb.runtime.parser.impl.VariantParser,
LegacyDataParser | public class LegacyDataParser (Code) | | The LegacyDataParser class is the main interface to parse a non-xml message.
All other classes in this API are used by this class to provide the different
parsing functions. The class that instantiates the LegacyDataParser should
also have an instance of MDLDocumentFactory to load the MessageDefinition
object used to parse the data.
The parse method of this class takes an InputStream containing the message data
and the MessageDefinition as input. If no errors occur, then the fully parsed
DOM Document is returned.
Basic flow of the parse method:
1. Create a new empty DOM Document.
2. Retrieve the appropriate ElementParser implementation from the
ElementParserFactory.
3. Call the ElementParser.parse method passing in the same InputStream and
MessageDefinition.
4. If the ElementParser returns successfully, it will return a DOM Element.
This is the root Element and is then appended to the Document.
5. Return the Document.
|
LegacyDataParser | public LegacyDataParser()(Code) | | |
getFsmClassName | public String getFsmClassName()(Code) | | the fsmClassName |
setFsmClassName | public void setFsmClassName(String fsmClassName)(Code) | | Parameters: fsmClassName - the fsmClassName to set |
setSaName | public void setSaName(String saName)(Code) | | Parameters: saName - the saName to set |
|
|