|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraccoon.core.types.AbsComponent
raccoon.core.types.AbsLoadable
raccoon.core.types.AbsConfigurableLoadable
raccoon.tibco.tibrv.badhnati.xml.TibrvMsgParser
public class TibrvMsgParser
TODO Document this class.
Field Summary | |
---|---|
static java.lang.String |
PTY_FAST_MODE
The fast XML Rendering mode property. |
static java.lang.String |
PTY_XML_INDENTATION
The indentation |
Fields inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
mConfigurableManager |
Fields inherited from class raccoon.core.types.AbsLoadable |
---|
mIsLoaded |
Fields inherited from class raccoon.core.types.AbsComponent |
---|
mIsInError |
Constructor Summary | |
---|---|
TibrvMsgParser()
|
Method Summary | |
---|---|
java.lang.String |
bindFrom(com.tibco.tibrv.TibrvMsg pTibrvMsg)
Converts the provided TibrvMsg instance into the corresponding XML Message instance. |
com.tibco.tibrv.TibrvMsg |
bindTo(java.lang.String pXmlMessage)
Converts an XML message instance into a valid TIB/Rendezvous message. |
void |
configureParameters()
Configures the various parameters for this component. |
int |
getXmlIndentation()
Retrieves the number of spaces used for the XML indentation. |
boolean |
isFastMode()
Indicates whether the Renderer is in fast mode. |
void |
load()
Loads or initializes the component. |
com.tibco.tibrv.TibrvMsg |
marshal(java.io.Reader pReader)
|
void |
setFastMode(boolean pFastMode)
Defines the rendering mode. |
void |
setXmlIndentation(int pXmlIndentation)
Defines the number of spaces to use for the XML indentation. |
Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
isStable, setConfigurableManager, setLogger |
Methods inherited from class raccoon.core.types.AbsLoadable |
---|
getLog, isInError, isInitialised, isRunning, unload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PTY_FAST_MODE
public static final java.lang.String PTY_XML_INDENTATION
Constructor Detail |
---|
public TibrvMsgParser()
Method Detail |
---|
public boolean isFastMode()
true
if in fast mode.public void setFastMode(boolean pFastMode) throws ResourceNotFoundException
pFastMode
- true
if fast XML generation is required (not beautiful)
ResourceNotFoundException
- if there is an internal error.public void configureParameters()
IConfigurableManager
provided during the invocation of AbsConfigurableLoadable.setConfigurableManager(IConfigurableManager)
.
configureParameters
in interface IConfigurable
configureParameters
in class AbsConfigurableLoadable
public int getXmlIndentation()
-1
if using default.public void setXmlIndentation(int pXmlIndentation) throws java.lang.IllegalArgumentException, RaccoonException
pXmlIndentation
- the number of spaces when indenting the XML string.
java.lang.IllegalArgumentException
- if the indentation isn't greater than 0
RaccoonException
- if this component is already running: the component can't be changed. Error code
is ErrorCodes.COMPONENT_INITIALISED
public void load() throws java.lang.IllegalStateException, LoadableException
load
in interface ILoadable
load
in class AbsConfigurableLoadable
LoadableException
- if the component couldn't load itself.
java.lang.IllegalStateException
- if the component isn't in a state to load itself. for example it is already loaded.public java.lang.String bindFrom(com.tibco.tibrv.TibrvMsg pTibrvMsg) throws RaccoonException
TibrvMsg
instance into the corresponding XML Message instance.
bindFrom
in interface IXmlToTibrvMsg
pTibrvMsg
- the TIB/Rendezvous message to be serialized.
RaccoonException
- in case of an error.public com.tibco.tibrv.TibrvMsg bindTo(java.lang.String pXmlMessage) throws RaccoonException
bindTo
in interface IXmlToTibrvMsg
pXmlMessage
- the XML Message to convert into a TIB/Rendezvous message.
RaccoonException
- if the conversion process fails.public com.tibco.tibrv.TibrvMsg marshal(java.io.Reader pReader) throws RaccoonException
RaccoonException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |