Plumtree Tags API  
 

OptionalTagAttribute Class

This class provides programmatic access to the tag meta data for optional attributes, including name, description, type, and default values.

Tag classes need to have one public static final OptionalTagAttribute member variable for every attribute that this tag supports, but does not require.

E.G.
<pt:thistag pt:firstattribute="foo" pt:secondattribute="bar"/>
would need
public static final OptionalTagAttribute = new OptionalTagAttribute( "firstattribute", "This optional attribute is used to ...", AttributeType.STRING, "first default value");
public static final OptionalTagAttribute = new OptionalTagAttribute( "secondattribute", "This optional attribute is used to ...", AttributeType.STRING, "second default value");

The OptionalTagAttribute objects are used for programmatic access to tag meta data, as well as to pre-process tags for tag attributes (presence, correct type, and default values). If the attribute values are not correct, the default values will be used instead. An error will be logged, but the tag and its children will still be displayed.

For a list of all members of this type, see OptionalTagAttribute Members.

System.Object
   com.plumtree.portaluiinfrastructure.tags.metadata.ATagAttribute
      com.plumtree.portaluiinfrastructure.tags.metadata.OptionalTagAttribute

public class OptionalTagAttribute : ATagAttribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: com.plumtree.portaluiinfrastructure.tags.metadata

Assembly: portaluiinfrastructure (in portaluiinfrastructure.dll)

See Also

OptionalTagAttribute Members | com.plumtree.portaluiinfrastructure.tags.metadata Namespace | RequiredTagAttribute