Class TagData
java.lang.Object
javax.servlet.jsp.tagext.TagData
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectDistinguished value for an attribute to indicate its value is a request-time expression (which is not yet available because TagData instances are used at translation-time). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attName) The value of the attribute.Enumerates the attributes.getAttributeString(String attName) Get the value for a given attribute.getId()The value of the id attribute, if available.voidsetAttribute(String attName, Object value) Set the value of an attribute.
-
Field Details
-
REQUEST_TIME_VALUE
Distinguished value for an attribute to indicate its value is a request-time expression (which is not yet available because TagData instances are used at translation-time).
-
-
Constructor Details
-
TagData
Constructor for TagData.A typical constructor may be
static final Object[][] att = {{"connection", "conn0"}, {"id", "query0"}}; static final TagData td = new TagData(att);All values must be Strings except for those holding the distinguished object REQUEST_TIME_VALUE.- Parameters:
atts- the static attribute and values. May be null.
-
TagData
Constructor for a TagData. If you already have the attributes in a hashtable, use this constructor.- Parameters:
attrs- A hashtable to get the values from.
-
-
Method Details
-
getId
The value of the id attribute, if available.- Returns:
- the value of the id attribute or null
-
getAttribute
-
setAttribute
-
getAttributeString
-
getAttributes
Enumerates the attributes.- Returns:
- An enumeration of the attributes in a TagData
-