|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectraccoon.tibco.tibrv.badhnati.xml.TibrvToXml
public class TibrvToXml
TODO Document this class.
Constructor Summary | |
---|---|
TibrvToXml()
Default constructor. |
Method Summary | |
---|---|
protected void |
extractBusMsgParams(java.lang.StringBuilder pXmlBuffer,
com.tibco.tibrv.TibrvMsg pMessage)
Generates the parameters that are specific to a bus message. |
protected void |
extractMsgPayload(java.lang.String pIndent,
java.lang.StringBuilder pXmlBuffer,
com.tibco.tibrv.TibrvMsg mTibrvMsg)
Walks through all the fields of the given IMessage instance. |
int |
getIndent()
The number of spaces used for thie indentation. |
boolean |
isNiceXml()
Indicates whether the Renderer is in fast mode. |
java.lang.String |
marshal(com.tibco.tibrv.TibrvMsg pTibrvMsg)
Converts the contents of an TibrvMsg into an XML String. |
void |
setIndent(int pNbSpaces)
Defines the number of spaces to use for the indentation. |
void |
setNiceXml(boolean pNiceXml)
Defines the rendering mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TibrvToXml()
Method Detail |
---|
public boolean isNiceXml()
true
if in nice XML mode.public void setNiceXml(boolean pNiceXml)
pNiceXml
- true
if nice XML generation is required (slower than not nice)public void setIndent(int pNbSpaces)
pNbSpaces
- the number of spaces, ignored if less than 1.public int getIndent()
public java.lang.String marshal(com.tibco.tibrv.TibrvMsg pTibrvMsg) throws com.tibco.tibrv.TibrvException
TibrvMsg
into an XML String.
pTibrvMsg
- the message to be serialized.
com.tibco.tibrv.TibrvException
protected void extractBusMsgParams(java.lang.StringBuilder pXmlBuffer, com.tibco.tibrv.TibrvMsg pMessage)
pXmlBuffer
- the current XML Buffer to which the elements are to be added.pMessage
- the bus message instance to handle.protected final void extractMsgPayload(java.lang.String pIndent, java.lang.StringBuilder pXmlBuffer, com.tibco.tibrv.TibrvMsg mTibrvMsg) throws com.tibco.tibrv.TibrvException
IMessage
instance.
pIndent
- the current level of indentation within the XML StringpXmlBuffer
- the current XML Buffer to which the elements are to be added.mTibrvMsg
- the message whose fields are to be marshalled
com.tibco.tibrv.TibrvException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |