@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.Validator
supports
in class OrderValidator
Validator.supports(Class)
public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
validate
in class OrderValidator
Should fail validation if the specimen source is invalid
Should pass validation if the specimen source is valid
Copyright © 2024 OpenMRS Inc.. All rights reserved.