|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.conversation.base.CpXmlParser
The CpXmlParser class is responsible for reading and parsing cpXML files, then initializing CpStateMachines to match the file contents.
This supports cpXML version "2.0".
Constructor Summary | |
---|---|
CpXmlParser()
Constructs a CpXmlParser object. |
Method Summary | |
---|---|
java.lang.String |
getCpXmlSchemaUri()
Returns the URI for the cpXML schema appropriate to this parser. |
java.lang.String |
getCpXmlVersion()
Returns the cpXML version name appropriate to this parser. |
void |
initCpStateMachine(CpStateMachine stateMachine)
Initializes the given CpStateMachine to match the cpXML file already read. |
void |
loadDocument(java.lang.String uri)
Reads and parses the cpXML file at the given URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CpXmlParser()
Method Detail |
public java.lang.String getCpXmlSchemaUri()
public java.lang.String getCpXmlVersion()
public void loadDocument(java.lang.String uri) throws org.xml.sax.SAXException, java.io.IOException
This is the first of the two
steps in initializing a CpStateMachine (initCpStateMachine()
is the second).
It uses a org.apache.xerces.parsers.DOMParser
to read
the URI and generate a Document object, which it stores for use when
initCpStateMachine()
is called.
The URI is presumed to point to a cpXML file.
uri
- The URI of the cpXML file.org.xml.sax.SAXException
- If the the XML parser throws one.java.io.IOException
- If the XML parser throws one.public void initCpStateMachine(CpStateMachine stateMachine)
This is the second of the two steps in initializing a CpStateMachine
(loadDocument()
is the first).
It clears the state machine and configures it according to the contents of the
Document object created and stored when loadDocument()
was called.
stateMachine
- The state machine to initialize.
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |