Class TagAttributeDescriptor

  extended by java.beans.FeatureDescriptor
      extended by atg.droplet.TagAttributeDescriptor

public class TagAttributeDescriptor
extends java.beans.FeatureDescriptor

This class describes an attribute which is used as an argument to a TagConverter. This contains a description of the attribute as well as flags indicating whether or not the attribute is required or optional for the use of that converter. An attribute can also be "automatic" which means that the converter is implied by the use of that attribute in one of the tags which accepts TagConverters. If a converter does not have any automatic attributes, you must always specify the name of the converter using the converter attribute.

See Also:

Field Summary
static java.lang.String CLASS_VERSION
Constructor Summary
TagAttributeDescriptor(java.lang.String pName, java.lang.String pDescription, boolean pOptional, boolean pAutomatic)
Method Summary
 boolean isAutomatic()
          Returns property Automatic
 boolean isOptional()
          Returns property Optional
 void setAutomatic(boolean pAutomatic)
          Sets property Automatic.
 void setOptional(boolean pOptional)
          Sets property Optional
 java.lang.String toString()
          String representation
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


public static java.lang.String CLASS_VERSION
Constructor Detail


public TagAttributeDescriptor()


public TagAttributeDescriptor(java.lang.String pName,
                              java.lang.String pDescription,
                              boolean pOptional,
                              boolean pAutomatic)
Method Detail


public void setOptional(boolean pOptional)
Sets property Optional


public boolean isOptional()
Returns property Optional


public void setAutomatic(boolean pAutomatic)
Sets property Automatic. This indicates whether or not the use of this attribute in a tag should imply the use of a converter. For example, the DateTagConverter is implied by the use of the date attribute. If no automatic attribute exists for a particular converter, it must always be specified by name using the converter attribute.


public boolean isAutomatic()
Returns property Automatic


public java.lang.String toString()
String representation

toString in class java.lang.Object