Package ca.uhn.hl7v2.validation
Class MessageValidator
Validation utilities for parsed and encoded messages. The
ValidationExceptionHandler logs all ValidationExceptions and
throws a HL7Exception if theFailOnErrorFlag has been set to
true.
This class is kept for backwards compatibility.
- Author:
- Bryan Tripp, Christian Ohr
-
Constructor Summary
ConstructorsConstructorDescriptionMessageValidator(ValidationContext context) MessageValidator(ValidationContext theContext, boolean theFailOnErrorFlag) -
Method Summary
Modifier and TypeMethodDescriptionprotected ValidationContextprotected ValidationExceptionHandler<Boolean>For backwards compatibility, always returns a new instance ofReportingValidationExceptionHandlerMethods inherited from class ca.uhn.hl7v2.validation.AbstractValidator
isValidatePrimitives, setValidatePrimitives, validate, validate, validate, validate
-
Constructor Details
-
MessageValidator
-
MessageValidator
- Parameters:
theContext- context that determines which validation rules applytheFailOnErrorFlag- true if an exception shall be thrown on validation errors
-
-
Method Details
-
initializeHandler
For backwards compatibility, always returns a new instance ofReportingValidationExceptionHandler- Specified by:
initializeHandlerin classAbstractValidator<Boolean>
-
getValidationContext
- Specified by:
getValidationContextin classAbstractValidator<Boolean>
-