@Handler(supports=TestOrder.class, order=50) @Component(value="testOrderValidator") public class TestOrderValidator extends OrderValidator implements org.springframework.validation.Validator
TestOrder class.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log
Log for this class and subclasses
|
| Constructor and Description |
|---|
TestOrderValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(java.lang.Class c)
Determines if the object being submitted is a valid type
|
void |
validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
Checks the form object for any inconsistencies/errors
|
protected final org.apache.commons.logging.Log log
public boolean supports(java.lang.Class c)
supports in interface org.springframework.validation.Validatorsupports in class OrderValidatorValidator.supports(Class)public void validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorvalidate in class OrderValidatorValidator.validate(Object,
org.springframework.validation.Errors)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.