public final class ParseAPI
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MessageWrapper |
parseText(java.lang.String message, java.lang.String messageName, boolean throwOnError)
Parses a text message and creates a wrapper containing the message data object and the encountered errors (if any and throwOnError was
false ). |
static MessageWrapper |
parseXML(XmlObject xmlObject, java.lang.String messageName, boolean throwOnError)
Parses the given XML Bean and creates a wrapper containing the message data object and the encountered errors (if any and throwOnError was
false ). |
public static MessageWrapper parseText(java.lang.String message, java.lang.String messageName, boolean throwOnError) throws ParseException
false
).message
- the message text to parse.messageName
- the name of the message as defined in the Financial Message Designer - case sensitive.throwOnError
- true
to throw upon encountering the first error, false
to keep parsing and collect as many errors as possible before eventually having to abort.ParseException
- for any parse errors (typically thrown when throwOnError
is true
).public static MessageWrapper parseXML(XmlObject xmlObject, java.lang.String messageName, boolean throwOnError) throws ParseException
false
).xmlObject
- the message XML Bean to parse.messageName
- the name of the message as defined in the Financial Message Designer - case sensitive.throwOnError
- true
to throw upon encountering the first error, false
to keep parsing and collect as many errors as possible before eventually having to abort.ParseException
- for any parse errors (typically thrown when throwOnError
is true
).