pl.edu.agh.cast.data.model.property.validator
Class DatePropertyValidator
java.lang.Object
pl.edu.agh.cast.data.model.property.validator.PropertyValidator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatePropertyValidator
public DatePropertyValidator()
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.