@Handler(supports=ConceptMapType.class, order=50) public class ConceptMapTypeValidator extends Object implements org.springframework.validation.Validator
ConceptMapType
objects.Constructor and Description |
---|
ConceptMapTypeValidator() |
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 concept map type object is valid.
|
public boolean supports(Class<?> c)
supports
in interface org.springframework.validation.Validator
Validator.supports(java.lang.Class)
public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
Should fail if the concept map type object is null
Should fail if the name is null
Should fail if the name is an empty string
Should fail if the name is a white space character
Should fail if the concept map type name is a duplicate
Should pass if the name is unique amongst all concept map type names
Should pass validation if field lengths are correct
Should fail validation if field lengths are not correct
Copyright © 2024 OpenMRS Inc.. All rights reserved.