ooc
Interface AttributeConverter

All Known Implementing Classes:
AttributeConverterAbstract

public interface AttributeConverter

Instances implementing this interface are responsible for converting attribute values to Java instances. Validation is done by respective attribute converter.


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.
 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 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.
 

Method Detail

needsValidateCard

public boolean needsValidateCard()
Returns true if the attribute must have a validation card, else false.


needsValue

public boolean needsValue()
Returns true if the attribute must have a value, else false.


validate

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


getClass

public 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.


convert

public 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.