pl.edu.agh.cast.model.attributes.validation
Class DateAttributeValidator

java.lang.Object
  extended by pl.edu.agh.cast.model.attributes.validation.AttributeValidator
      extended by pl.edu.agh.cast.model.attributes.validation.DateAttributeValidator
All Implemented Interfaces:
Serializable

public class DateAttributeValidator
extends AttributeValidator
implements Serializable

Class for validating date value type.

Author:
AGH CAST Team
See Also:
Serialized Form

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

Constructor Detail

DateAttributeValidator

public DateAttributeValidator()
Method Detail

convert

public Object convert(String value)

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

checkFormat

public boolean checkFormat(String value)

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

getTypeClass

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

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


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