@Handler(supports=Program.class, order=50) public class ProgramValidator extends Object implements org.springframework.validation.Validator
Program
object.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
ProgramValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(Class c)
Determines if the command object being submitted is a valid type
|
void |
validate(Object obj,
org.springframework.validation.Errors errors)
Checks the form object for any inconsistencies/errors
|
public boolean supports(Class c)
supports
in interface org.springframework.validation.Validator
Validator.supports(java.lang.Class)
public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
Validator.validate(java.lang.Object,
org.springframework.validation.Errors)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.