public class MessageValidator extends AbstractValidator<Boolean>
ValidationExceptionHandler logs all ValidationExceptions and
throws a HL7Exception if theFailOnErrorFlag has been set to
true.
This class is kept for backwards compatibility.
| Constructor and Description |
|---|
MessageValidator(ValidationContext context) |
MessageValidator(ValidationContext theContext,
boolean theFailOnErrorFlag) |
| Modifier and Type | Method and Description |
|---|---|
protected ValidationContext |
getValidationContext() |
protected ValidationExceptionHandler<Boolean> |
initializeHandler()
For backwards compatibility, always returns a new instance of
ReportingValidationExceptionHandler |
isValidatePrimitives, setValidatePrimitives, validate, validate, validate, validatepublic MessageValidator(ValidationContext context)
public MessageValidator(ValidationContext theContext, boolean theFailOnErrorFlag)
theContext - context that determines which validation rules applytheFailOnErrorFlag - true if an exception shall be thrown on validation errorsprotected ValidationExceptionHandler<Boolean> initializeHandler()
ReportingValidationExceptionHandlerinitializeHandler in class AbstractValidator<Boolean>protected ValidationContext getValidationContext()
getValidationContext in class AbstractValidator<Boolean>Copyright © 2001–2017 University Health Network. All rights reserved.