javax.servlet.jsp.tagext
Class TagData
java.lang.Object
javax.servlet.jsp.tagext.TagData
- java.lang.Cloneable
public class TagData
extends java.lang.Object
implements java.lang.Cloneable
The (translation-time only) attribute/value information for a tag instance.
TagData is only used as an argument to the isValid and getVariableInfo
methods of TagExtraInfo, which are invoked at translation time.
static java.lang.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).
|
TagData(atts[][] ) - Constructor for TagData.
|
TagData(java.util.Hashtable attrs) - Constructor for a TagData.
|
java.lang.Object | getAttribute(java.lang.String attName) - The value of the attribute.
|
java.lang.String | getAttributeString(java.lang.String attName) - Get the value for a given attribute.
|
java.util.Enumeration | getAttributes() - Enumerates the attributes.
|
java.lang.String | getId() - The value of the id attribute, if available.
|
void | setAttribute(java.lang.String attName, java.lang.Object value) - Set the value of an attribute.
|
REQUEST_TIME_VALUE
public static final java.lang.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).
TagData
public TagData(atts[][] )
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.
TagData
public TagData(java.util.Hashtable attrs)
Constructor for a TagData.
If you already have the attributes in a hashtable, use this
constructor.
attrs
- A hashtable to get the values from.
getAttribute
public java.lang.Object getAttribute(java.lang.String attName)
The value of the attribute.
Returns the distinguished object REQUEST_TIME_VALUE if
the value is request time. Returns null if the attribute is not set.
- the attribute's value object
getAttributeString
public java.lang.String getAttributeString(java.lang.String attName)
Get the value for a given attribute.
- the attribute value string
getAttributes
public java.util.Enumeration getAttributes()
Enumerates the attributes.
- An enumeration of the attributes in a TagData
getId
public java.lang.String getId()
The value of the id attribute, if available.
- the value of the id attribute or null
setAttribute
public void setAttribute(java.lang.String attName,
java.lang.Object value)
Set the value of an attribute.
attName
- the name of the attributevalue
- the value.