|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.alsb.financial.api.MessageWrapper<T>
T
- the type of message data object being wrapped.public class MessageWrapper<T>
This class encapsulates a parsed message along with other information: - errors that resulted from the last operation, - message name as defined in the designer - message context to define special properties when processing the message, currently not used
Nested Class Summary | |
---|---|
static class |
MessageWrapper.NullMessageDataObjectException
This exception is thrown by the API operations when the message data object is null. |
Constructor Summary | |
---|---|
MessageWrapper()
|
Method Summary | |
---|---|
XmlErrors |
getErrors()
Getter for the errors reported by the last operation on this message wrapper. |
MessageContext |
getMessageContext()
Getter for the messageContext property. |
T |
getMessageDataObject()
Getter for the message data object - the actual message being wrapped. |
String |
getMessageName()
Getter for the message name as defined in the Financial Message Designer. |
void |
setMessageContext(MessageContext messageContext)
Setter for the message context in this wrapper. |
void |
setMessageDataObject(T messageDataObject)
Setter for the message data object. |
void |
setMessageName(String messageType)
Setter for the message name as defined in the Financial Message Designer. |
void |
setXmlErrors(XmlErrors errors)
Set the errors XML for this wrapper. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageWrapper()
Method Detail |
---|
public MessageContext getMessageContext()
messageContext
property.
public void setMessageContext(MessageContext messageContext)
messageContext
- the new message context in this wrapper.public String getMessageName()
public void setMessageName(String messageType)
messageType
- the case-sensitive message name.public T getMessageDataObject()
public void setMessageDataObject(T messageDataObject)
messageDataObject
- the new message data object this wrapper will represent.public XmlErrors getErrors()
throwOnError
set to false
for anything to be captured in here.
Examples of operations storing errors in here are ParseAPI.parseText(String, String, boolean)
,
ParseAPI.parseXML(org.apache.xmlbeans.XmlObject, String, boolean)
,
ValidationAPI.validate(MessageWrapper, boolean)
,
SerializationAPI.serializeToText(MessageWrapper, boolean)
.
For more details about the xml structure refers to the schemas provided with the facade Jar file.
public void setXmlErrors(XmlErrors errors)
errors
- the XML encapsulating the errors reported by the last invoked operation on this wrapper.for more details.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |