java.lang.Object | +--javax.servlet.jsp.tagext.TagData
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.
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(java.util.Hashtable attrs) Constructor for a TagData. | |
TagData(java.lang.Object[][] atts) Constructor for TagData. |
getAttribute(java.lang.String attName) The value of the attribute. | |
getAttributes() Enumerates the attributes. | |
getAttributeString(java.lang.String attName) Get the value for a given attribute. | |
getId() The value of the id attribute, if available. | |
setAttribute(java.lang.String attName, java.lang.Object value) Set the value of an attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public static final java.lang.ObjectREQUEST_TIME_VALUE
publicTagData(java.lang.Object[][] atts)
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.
atts
- the static attribute and values. May be null.publicTagData(java.util.Hashtable attrs)
attrs
- A hashtable to get the values from.public java.lang.StringgetId()
public java.lang.ObjectgetAttribute(java.lang.String attName)
public voidsetAttribute(java.lang.String attName, java.lang.Object value)
attName
- the name of the attributevalue
- the value.public java.lang.StringgetAttributeString(java.lang.String attName)
public java.util.EnumerationgetAttributes()