com.ca.jcs.validator.core
Class DateValidator

java.lang.Object
  extended by com.ca.jcs.validator.core.DateValidator
All Implemented Interfaces:
StringValidator

public class DateValidator
extends Object
implements StringValidator

Validator for the xsd:date type $Id: DateValidator.java 41664 2009-03-03 02:35:53Z khaam03 $


Field Summary
static String NOT_DATE_MSG
           
static String TZ_DATE_MSG
           
 
Constructor Summary
DateValidator()
           
 
Method Summary
 ErrorMessages validate(String value)
          Validate the provided value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_DATE_MSG

public static final String NOT_DATE_MSG
See Also:
Constant Field Values

TZ_DATE_MSG

public static final String TZ_DATE_MSG
See Also:
Constant Field Values
Constructor Detail

DateValidator

public DateValidator()
Method Detail

validate

public ErrorMessages validate(String value)
Description copied from interface: StringValidator
Validate the provided value.

Specified by:
validate in interface StringValidator
Parameters:
value - Value to be validated.
Returns:
Null if value has desired format, and otherwise one or more error messages where only their msgFormatId field needs to be set.


Created 2009-10-09 16:43 EST