org.openmrs.validator
Class PatientIdentifierTypeValidator
java.lang.Object
  
org.openmrs.validator.PatientIdentifierTypeValidator
- All Implemented Interfaces: 
 - org.springframework.validation.Validator
 
@Handler(supports=PatientIdentifierType.class,
         order=50)
public class PatientIdentifierTypeValidator- extends java.lang.Object
- implements org.springframework.validation.Validator
  
Validates attributes on the PatientIdentifierType object.
- Since:
 
  - 1.5
 
| 
Field Summary | 
protected  org.apache.commons.logging.Log | 
log
 
          Log for this class and subclasses | 
 
 
| 
Method Summary | 
 boolean | 
supports(java.lang.Class c)
 
          Determines if the command object being submitted is a valid type | 
 void | 
validate(java.lang.Object obj,
         org.springframework.validation.Errors errors)
 
          Checks the form object for any inconsistencies/errors | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
log
protected final org.apache.commons.logging.Log log
- Log for this class and subclasses
 
PatientIdentifierTypeValidator
public PatientIdentifierTypeValidator()
supports
public boolean supports(java.lang.Class c)
- Determines if the command object being submitted is a valid type
- Specified by:
 supports in interface org.springframework.validation.Validator
 
- See Also:
 Validator.supports(java.lang.Class)
 
 
validate
public void validate(java.lang.Object obj,
                     org.springframework.validation.Errors errors)
- Checks the form object for any inconsistencies/errors
- Specified by:
 validate in interface org.springframework.validation.Validator
 
- See Also:
 Validator.validate(java.lang.Object,
      org.springframework.validation.Errors)- Expected behavior: 
 
  - fail validation if name is null or empty or whitespace, fail validation if description is null or empty or whitespace, pass validation if all required fields have proper values
 
 
 
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change