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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
TagData(Hashtable<String,Object> attrs)
Constructor for a TagData.
|
TagData(Object[][] atts)
Constructor for TagData.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attName)
The value of the attribute.
|
Enumeration<String> |
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.
|
public static final Object REQUEST_TIME_VALUE
public TagData(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.public String getId()
public Object getAttribute(String attName)
attName
- the name of the attributepublic void setAttribute(String attName, Object value)
attName
- the name of the attributevalue
- the value.public String getAttributeString(String attName)
attName
- the name of the attributeClassCastException
- if attribute value is not a Stringpublic Enumeration<String> getAttributes()
Comments to: jsp-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.