@Handler(supports=LocationAttributeType.class, order=50) public class LocationAttributeTypeValidator extends BaseAttributeTypeValidator<LocationAttributeType>
LocationAttributeType
object.Constructor and Description |
---|
LocationAttributeTypeValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(Class<?> clazz) |
void |
validate(Object obj,
org.springframework.validation.Errors errors) |
public boolean supports(Class<?> clazz)
Validator.supports(java.lang.Class)
public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
validate
in class BaseAttributeTypeValidator<LocationAttributeType>
Should fail validation if name is null
Should fail validation if name already in use
Should pass validation if the location attribute type description is null or empty or whitespace
Should pass validation if all fields are correct
Should pass validation if field lengths are correct
Should fail validation if field lengths are not correct
Copyright © 2024 OpenMRS Inc.. All rights reserved.