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

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

public class IntegerAttributeValidator
extends AttributeValidator
implements Serializable

Class validating integer value type.

Author:
AGH CAST Team
See Also:
Serialized Form

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

IntegerAttributeValidator

public IntegerAttributeValidator()
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.