javax.servlet.jsp.tagext
public class TagData extends Object implements Cloneable
TagData is only used as an argument to the isValid, validate, and getVariableInfo methods of TagExtraInfo, which are invoked at translation time.
| Field Summary | |
|---|---|
| static Object | 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 Summary | |
|---|---|
| TagData(Object[][] atts)
Constructor for TagData.
| |
| TagData(Hashtable attrs)
Constructor for a TagData.
| |
| Method Summary | |
|---|---|
| Object | getAttribute(String attName)
The value of the attribute.
|
| Enumeration | getAttributes()
Enumerates the attributes.
|
| String | getAttributeString(String attName)
Get the value for a given attribute.
|
| String | getId()
The value of the tag's id attribute.
|
| void | setAttribute(String attName, Object value)
Set the value of an attribute.
|
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.
Parameters: attrs A hashtable to get the values from.
Parameters: attName the name of the attribute
Returns: the attribute's value
Returns: An enumeration of the attributes in a TagData
Parameters: attName the name of the attribute
Returns: the attribute value string
Throws: ClassCastException if attribute value is not a String
Returns: the value of the tag's id attribute, or null if no such attribute was specified.
Parameters: attName the name of the attribute value the value.