public abstract class BaseAttributeTypeValidator<T extends AttributeType<?>> extends Object implements org.springframework.validation.Validator
Constructor and Description |
---|
BaseAttributeTypeValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(Object target,
org.springframework.validation.Errors errors) |
public void validate(Object target, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
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 correct
Copyright © 2024 OpenMRS Inc.. All rights reserved.