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

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

public class IntegerPropertyValidator
extends PropertyValidator

Class for validating integer property types.

Author:
AGH CAST Team

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

IntegerPropertyValidator

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