@Handler(supports=VisitAttributeType.class, order=50) public class VisitAttributeTypeValidator extends BaseAttributeTypeValidator<VisitAttributeType>
VisitAttributeType
object.Constructor and Description |
---|
VisitAttributeTypeValidator() |
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)
Should pass validation if field lengths are correct
Should fail validation if field lengths are not correct
|
public boolean supports(Class<?> c)
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<VisitAttributeType>
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.