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

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

public class BooleanAttributeValidator
extends AttributeValidator

Class for validating boolean value type.

Author:
AGH CAST Team
See Also:
Serialized Form

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

BooleanAttributeValidator

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