public class SimpleValidationExceptionHandler extends CollectingValidationExceptionHandler<Boolean> implements ValidationExceptionHandlerFactory<Boolean>
result
.Constructor and Description |
---|
SimpleValidationExceptionHandler(HapiContext context) |
Modifier and Type | Method and Description |
---|---|
ValidationExceptionHandler<Boolean> |
getNewInstance(HapiContext context) |
Boolean |
result()
Returns an overall validation result based on an aggregation of all
exceptions thrown during the validation process.
|
error, getExceptions, getMinimumSeverityToCollect, hasFailed, info, setMinimumSeverityToCollect, warning
getValidationSubject, onExceptions, setValidationSubject
getHapiContext, setHapiContext
public SimpleValidationExceptionHandler(HapiContext context)
context
- Hapi contextpublic Boolean result() throws HL7Exception
ValidationExceptionHandler
result
in interface ValidationExceptionHandler<Boolean>
HL7Exception
- if an error occurred during calculating the resultpublic ValidationExceptionHandler<Boolean> getNewInstance(HapiContext context)
getNewInstance
in interface ValidationExceptionHandlerFactory<Boolean>
context
- HAPI contextCopyright © 2001–2017 University Health Network. All rights reserved.