public class ShortPatientFormValidator extends Object implements org.springframework.validation.Validator
ShortPatientFormController
.Constructor and Description |
---|
ShortPatientFormValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(Class c)
Returns whether or not this validator supports validating a given class.
|
void |
validate(Object obj,
org.springframework.validation.Errors errors)
Validates the given Patient.
|
public boolean supports(Class c)
supports
in interface org.springframework.validation.Validator
c
- The class to check for support.Validator.supports(java.lang.Class)
public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
obj
- The patient to validate.errors
- The patient to validate.Validator.validate(java.lang.Object,
org.springframework.validation.Errors)
Copyright © 2015 OpenMRS Inc.. All rights reserved.