@Handler(supports=Encounter.class, order=50) public class EncounterValidator extends java.lang.Object implements org.springframework.validation.Validator
Encounter class| Constructor and Description |
|---|
EncounterValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(java.lang.Class c)
Returns whether or not this validator supports validating a given class.
|
void |
validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
Validates the given Encounter.
|
public boolean supports(java.lang.Class c)
supports in interface org.springframework.validation.Validatorc - The class to check for support.Validator.supports(java.lang.Class)public void validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
throws APIException
validate in interface org.springframework.validation.Validatorobj - The encounter to validate.errors - ErrorsAPIExceptionValidator.validate(java.lang.Object,
org.springframework.validation.Errors)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.