@Handler(supports=ConceptAttributeType.class, order=50) public class ConceptAttributeTypeValidator extends BaseAttributeTypeValidator<ConceptAttributeType>
ConceptAttributeType object.| Constructor and Description |
|---|
ConceptAttributeTypeValidator() |
| 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) |
public boolean supports(Class<?> c)
org.springframework.validation.Validator#T)
Should pass validation if field lengths are correct
Should fail validation if field lengths are not correctpublic void validate(Object obj, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorvalidate in class BaseAttributeTypeValidator<ConceptAttributeType>Should require name
Should require minOccurs
Should not allow maxOccurs less than 1
Should not allow maxOccurs less than minOccurs
Should require datatypeClassname
Should require DatatypeConfiguration if Datatype equals Regex-Validated Text
Should pass validation if all required values are set
Should pass validation if field lengths are correct
Should fail validation if field lengths are not correctCopyright © 2024 OpenMRS Inc.. All rights reserved.