@Handler(supports=ServiceOrder.class, order=50) @Component(value="serviceOrderValidator") public class ServiceOrderValidator extends OrderValidator implements org.springframework.validation.Validator
ServiceOrder class.| Constructor and Description |
|---|
ServiceOrderValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(Class<?> c)
Determines if the 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.Validatorsupports in class OrderValidatorValidator.supports(Class)public void validate(Object obj, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorvalidate in class OrderValidatorShould fail validation if the specimen source is invalid
Should pass validation if the specimen source is validCopyright © 2024 OpenMRS Inc.. All rights reserved.