|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.alsb.financial.api.ValidationAPI
public final class ValidationAPI
Facade API for validation operations.
Method Summary | |
---|---|
static XmlErrorsDocument |
validate(MessageWrapper message,
boolean throwOnError)
Validates the message in the given wrapper. |
static XmlErrorsDocument |
validate(String ruleSetName,
MessageWrapper message,
boolean throwOnError)
Validates the message in the given wrapper by applying validation rules that are part of the ruleSetName. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XmlErrorsDocument validate(MessageWrapper message, boolean throwOnError) throws ValidationException
message
- the wrapper containing the message to validate.throwOnError
- true
to throw upon encountering the first error,
false
to keep validating and collect as many errors as possible before
eventually having to abort.
throwOnError
was true
.
ValidationException
public static XmlErrorsDocument validate(String ruleSetName, MessageWrapper message, boolean throwOnError) throws ValidationException
ruleSetName
- name of the validation rule set to be applied for validationmessage
- the wrapper containing the message to validate.throwOnError
- true
to throw upon encountering the first error,
false
to keep validating and collect as many errors as possible before
eventually having to abort.
throwOnError
was true
.
ValidationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |