public class DefaultValidationExceptionHandler extends AbstractValidationExceptionHandler<Boolean> implements ValidationExceptionHandlerFactory<Boolean>
error(ValidationException) has been called at least once.| Constructor and Description |
|---|
DefaultValidationExceptionHandler() |
DefaultValidationExceptionHandler(HapiContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(ValidationException exception)
If the validation process encounters a violation, this method is called.
|
ValidationExceptionHandler<Boolean> |
getNewInstance(HapiContext theContext) |
boolean |
hasFailed()
Returns a boolean flag indicating whether a validation was successful or not.
|
Boolean |
result()
Called after the validation process.
|
getValidationSubject, info, onExceptions, setValidationSubject, warninggetHapiContext, setHapiContextpublic DefaultValidationExceptionHandler()
public DefaultValidationExceptionHandler(HapiContext context)
public void error(ValidationException exception)
error in class AbstractValidationExceptionHandler<Boolean>exception - a ValidationException of error severity.public Boolean result() throws HL7Exception
result in interface ValidationExceptionHandler<Boolean>false if AbstractValidationExceptionHandler.onExceptions(ValidationException[]) has been
called at least once.HL7ExceptionDefaultValidationExceptionHandler}public boolean hasFailed()
ValidationExceptionHandlerValidationExceptionHandler.result() which may return a more complex
object.hasFailed in interface ValidationExceptionHandler<Boolean>public ValidationExceptionHandler<Boolean> getNewInstance(HapiContext theContext)
getNewInstance in interface ValidationExceptionHandlerFactory<Boolean>theContext - HAPI contextCopyright © 2001–2017 University Health Network. All rights reserved.