| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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, validate, and getVariableInfo methods of TagExtraInfo, which are invoked at translation time.
| Field Summary | |
| static java.lang.Object | REQUEST_TIME_VALUEDistinguished 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 Summary | |
| TagData(java.util.Hashtable attrs)Constructor for a TagData. | |
| TagData(java.lang.Object[][] atts)Constructor for TagData. | |
| Method Summary | |
|  java.lang.Object | getAttribute(java.lang.String attName)The value of the attribute. | 
|  java.util.Enumeration | 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. | 
| 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)
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 attrs)
attrs - A hashtable to get the values from.| Method Detail | 
public java.lang.String getId()
public java.lang.Object getAttribute(java.lang.String attName)
attName - the name of the attribute
public 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 attribute
java.lang.ClassCastException - if attribute value is not a Stringpublic java.util.Enumeration getAttributes()
| 
 | J2EE1.4 SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved.