public class TagData
extends java.lang.Object
implements java.lang.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 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).
|
| Constructor and Description |
|---|
TagData(java.util.Hashtable<java.lang.String,java.lang.Object> attrs)
Constructor for a TagData.
|
TagData(java.lang.Object[][] atts)
Constructor for TagData.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attName)
The value of the attribute.
|
java.util.Enumeration<java.lang.String> |
getAttributes()
Enumerates the attributes.
|
java.lang.String |
getAttributeString(java.lang.String attName)
Get the value for a given attribute.
|
java.lang.String |
getId()
The value of the tag's id attribute.
|
void |
setAttribute(java.lang.String attName,
java.lang.Object value)
Set the value of an attribute.
|
public static final java.lang.Object REQUEST_TIME_VALUE
public TagData(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.public TagData(java.util.Hashtable<java.lang.String,java.lang.Object> attrs)
attrs - A hashtable to get the values from.public java.lang.String getId()
public java.lang.Object getAttribute(java.lang.String attName)
attName - the name of the attributepublic void setAttribute(java.lang.String attName,
java.lang.Object value)
attName - the name of the attributevalue - the value.public java.lang.String getAttributeString(java.lang.String attName)
attName - the name of the attributejava.lang.ClassCastException - if attribute value is not a Stringpublic java.util.Enumeration<java.lang.String> getAttributes()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.