T
- the type of message data object being wrapped.public class MessageWrapper<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MessageWrapper.NullMessageDataObjectException
This exception is thrown by the API operations when the message data object is null.
|
Constructor and Description |
---|
MessageWrapper() |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.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(java.lang.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.
|
public MessageContext getMessageContext()
messageContext
property.public void setMessageContext(MessageContext messageContext)
messageContext
- the new message context in this wrapper.public java.lang.String getMessageName()
public void setMessageName(java.lang.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.