ooc
Class AttributeConverterAbstract

java.lang.Object
  extended byooc.AttributeConverterAbstract
All Implemented Interfaces:
AttributeConverter
Direct Known Subclasses:
AttributeConverterList, AttributeConverterMethod, AttributeConverterNumber, AttributeConverterString, AttributeConverterStringList, AttributeConverterTag

public abstract class AttributeConverterAbstract
extends java.lang.Object
implements AttributeConverter


Constructor Summary
AttributeConverterAbstract()
           
AttributeConverterAbstract(boolean needsValidateCard, boolean needsValue)
           
 
Method Summary
 java.lang.Object convert(java.lang.String vCard, java.lang.String strValue, Tag tag, TagAttribute attribute, Dependencies dependencies)
          Return the java instance constructed using the attribute at hand.
abstract  java.lang.Object convertWrapt(java.lang.String vCard, java.lang.String strValue, Tag tag, TagAttribute attribute, Dependencies dependencies)
           
 boolean needsValidateCard()
          Returns true if the attribute must have a validation card, else false.
 boolean needsValue()
          Returns true if the attribute must have a value, else false.
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ooc.AttributeConverter
getClass
 

Constructor Detail

AttributeConverterAbstract

public AttributeConverterAbstract()

AttributeConverterAbstract

public AttributeConverterAbstract(boolean needsValidateCard,
                                  boolean needsValue)
Method Detail

needsValidateCard

public boolean needsValidateCard()
Description copied from interface: AttributeConverter
Returns true if the attribute must have a validation card, else false.

Specified by:
needsValidateCard in interface AttributeConverter

needsValue

public boolean needsValue()
Description copied from interface: AttributeConverter
Returns true if the attribute must have a value, else false.

Specified by:
needsValue in interface AttributeConverter

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

convert

public java.lang.Object convert(java.lang.String vCard,
                                java.lang.String strValue,
                                Tag tag,
                                TagAttribute attribute,
                                Dependencies dependencies)
Description copied from interface: AttributeConverter
Return the java instance constructed using the attribute at hand.

Specified by:
convert in interface AttributeConverter

convertWrapt

public abstract java.lang.Object convertWrapt(java.lang.String vCard,
                                              java.lang.String strValue,
                                              Tag tag,
                                              TagAttribute attribute,
                                              Dependencies dependencies)