pl.edu.agh.cast.data.model.property.validator
Class DatePropertyValidator

java.lang.Object
  extended by pl.edu.agh.cast.data.model.property.validator.PropertyValidator
      extended by pl.edu.agh.cast.data.model.property.validator.DatePropertyValidator

public class DatePropertyValidator
extends PropertyValidator

Class for validating date property types. It accepts dates formats defined in SupportedDateFormat. Note that because of value caching the validator is not thread safe.

Author:
AGH CAST Team

Constructor Summary
DatePropertyValidator()
           
 
Method Summary
protected  boolean checkFormat(String value)
          
protected  Object convert(String value)
          
 Class<?> getTypeClass()
          Gets class associated with specific property type.
 
Methods inherited from class pl.edu.agh.cast.data.model.property.validator.PropertyValidator
convertFromStringFormat, convertToStringFormat, isValidClass, isValidStringFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePropertyValidator

public DatePropertyValidator()
Method Detail

checkFormat

protected boolean checkFormat(String value)

Specified by:
checkFormat in class PropertyValidator
See Also:
PropertyValidator.checkFormat(java.lang.String)

convert

protected Object convert(String value)

Specified by:
convert in class PropertyValidator
See Also:
PropertyValidator.convert(java.lang.String)

getTypeClass

public Class<?> getTypeClass()
Gets class associated with specific property type.

Specified by:
getTypeClass in class PropertyValidator
Returns:
class associated with property type
See Also:
PropertyValidator.getTypeClass()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.