| Constructor and Description |
|---|
ConceptDrugValidator() |
| 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 that a given
Drug object is valid. |
public boolean supports(Class<?> c)
supports in interface org.springframework.validation.ValidatorShould support Drug class
Should reject classes not extending Drugpublic void validate(Object obj, org.springframework.validation.Errors errors) throws IllegalArgumentException
Drug object is valid.validate in interface org.springframework.validation.Validatorobj - the Object to validateerrors - holds the validation errorsIllegalArgumentException - Runtime Exception if the supplied argument is
null or not of type DrugShould fail if a concept is not specifiedCopyright © 2024 OpenMRS Inc.. All rights reserved.