|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagData
Tag instance attribute(s)/value(s); often this data is fully static in the case where none of the attributes have runtime expresssions as their values. Thus this class is intended to expose an immutable interface to a set of immutable attribute/value pairs. This class is cloneable so implementations can create a static instance and then just clone it before adding the request-time expressions.
Field Summary | |
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 this TagData instance is being used at translation-time. |
Constructor Summary | |
TagData(java.util.Hashtable attrs)
Constructor for a TagData If you already have the attributes in a hashtable, use this constructor. |
|
TagData(java.lang.Object[][] atts)
Constructor for a TagData For simplicity and speed, we are just using primitive types. |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String attName)
|
java.util.Enumeration |
getAttributes()
Enumerates the attributes |
java.lang.String |
getAttributeString(java.lang.String attName)
|
java.lang.String |
getId()
|
void |
setAttribute(java.lang.String attName,
java.lang.Object value)
Set the value of this attribute to be |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.Object REQUEST_TIME_VALUE
Constructor Detail |
public TagData(java.lang.Object[][] atts)
atts
- the static attribute and values. May be null.public TagData(java.util.Hashtable attrs)
Method Detail |
public java.lang.String getId()
public java.lang.Object getAttribute(java.lang.String attName)
public void setAttribute(java.lang.String attName, java.lang.Object value)
public java.lang.String getAttributeString(java.lang.String attName)
public java.util.Enumeration getAttributes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |