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

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

public class StringAttributeValidator
extends AttributeValidator
implements Serializable

Class for validating string value type.

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
StringAttributeValidator()
           
 
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.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

StringAttributeValidator

public StringAttributeValidator()
Method Detail

checkFormat

protected boolean checkFormat(String value)

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

convert

protected Object convert(String value)

Specified by:
convert in class AttributeValidator
See Also:
AttributeValidator.convert(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.