|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object raccoon.core.badhnati.xml.XmlToMessage
public class XmlToMessage
Converts any XML source into a valid IMessage
instance.
Constructor Summary | |
---|---|
XmlToMessage()
Default constructor. |
Method Summary | |
---|---|
IFactory |
getFactory()
Retrieves the factory instance used to instanciate empty message objects. |
boolean |
isFastMode()
Determines if the fast mode is active. |
boolean |
isInitialised()
Is this component initialised or not? |
boolean |
isStable(boolean pThrowOnError)
Checks the state of the component. |
void |
load()
Loads this component and initializes all dependant components. |
IMessage |
marshal(org.xml.sax.InputSource pInputSource)
Converts the content of an XML input source into a IMessage instance. |
IMessage |
marshal(java.io.Reader pXmlReader)
Converts the contents of an XML Reader into a IMessage instance. |
IMessage |
marshal(java.lang.String pXmlMsg)
Converts a given XML compliant string into a IMessage instance. |
void |
setFactory(IFactory pFactory)
Assigns the IFactory used to instanciate empty message objects. |
void |
setFastMode(boolean pFastMode)
Defines whether or not the fast mode is to be used. |
void |
unload()
Unloads this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlToMessage()
Method Detail |
---|
public boolean isFastMode()
MessageToXml
then it is
acceptable to use the fast mode.
true
if the fast mode is active.public void setFastMode(boolean pFastMode)
MessageToXml
then it is
acceptable to use the fast mode.
pFastMode
- the mode of the analysis to use for the XML Document.public IFactory getFactory()
IFactory
instance usedpublic void setFactory(IFactory pFactory)
IFactory
used to instanciate empty message objects.
pFactory
- the factory instance to use.public boolean isInitialised()
true
if the method load()
has been invoked.public IMessage marshal(java.lang.String pXmlMsg) throws RaccoonException
IMessage
instance.
pXmlMsg
- the XML string
IMessage
instance.
RaccoonException
- if the XML string is invalid.public IMessage marshal(java.io.Reader pXmlReader) throws RaccoonException
IMessage
instance.
pXmlReader
- the XML string
IMessage
instance.
RaccoonException
- if the XML string is invalid.public IMessage marshal(org.xml.sax.InputSource pInputSource) throws RaccoonException
IMessage
instance.
pInputSource
- the XML input source
IMessage
instance.
RaccoonException
- if the XML string is invalid.public void load() throws RaccoonException
RaccoonException
- if the loading fails or if the component is already loaded.public void unload() throws RaccoonException
RaccoonException
- if the unloading fails, or if the component isn't running.public boolean isStable(boolean pThrowOnError) throws RaccoonException
pThrowOnError
- if the component is unstable should an exception be thrown?
true
if the component is in a stable state.
RaccoonException
- if pThrowOnError
is true
and if the component is in an unstable
state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |