ooc
Class AttributeConverterBoolean

java.lang.Object
  extended byooc.AttributeConverterAbstract
      extended byooc.AttributeConverterString
          extended byooc.AttributeConverterStringOption
              extended byooc.AttributeConverterBoolean
All Implemented Interfaces:
AttributeConverter

public class AttributeConverterBoolean
extends AttributeConverterStringOption


Constructor Summary
AttributeConverterBoolean()
           
AttributeConverterBoolean(boolean needsValidateCard, boolean needsValue, boolean ignoreCase)
           
 
Method Summary
 java.lang.Object convertWrapt(java.lang.String vCard, java.lang.String strValue, Tag tag, TagAttribute attribute, Dependencies dependencies)
           
 java.lang.Class getClass(java.lang.String vCard, java.lang.String strValue, Tag tag, TagAttribute attribute, TagErrorHandler teh)
          Returns the class of the instance converted by this attribute converter.
 boolean validate(java.lang.String vCard, java.lang.String strValue, TagAttribute attribute, TagErrorHandler teh)
          Return true if it is valid, else false.
 
Methods inherited from class ooc.AttributeConverterStringOption
ignoreCase
 
Methods inherited from class ooc.AttributeConverterAbstract
convert, needsValidateCard, needsValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeConverterBoolean

public AttributeConverterBoolean()

AttributeConverterBoolean

public AttributeConverterBoolean(boolean needsValidateCard,
                                 boolean needsValue,
                                 boolean ignoreCase)
Method Detail

validate

public boolean validate(java.lang.String vCard,
                        java.lang.String strValue,
                        TagAttribute attribute,
                        TagErrorHandler teh)
Description copied from interface: AttributeConverter
Return true if it is valid, else false.

Specified by:
validate in interface AttributeConverter
Overrides:
validate in class AttributeConverterStringOption

getClass

public java.lang.Class getClass(java.lang.String vCard,
                                java.lang.String strValue,
                                Tag tag,
                                TagAttribute attribute,
                                TagErrorHandler teh)
Description copied from interface: AttributeConverter
Returns the class of the instance converted by this attribute converter.

Specified by:
getClass in interface AttributeConverter
Overrides:
getClass in class AttributeConverterString

convertWrapt

public java.lang.Object convertWrapt(java.lang.String vCard,
                                     java.lang.String strValue,
                                     Tag tag,
                                     TagAttribute attribute,
                                     Dependencies dependencies)
Overrides:
convertWrapt in class AttributeConverterString