|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.servlet.jsp.tagext Class TagData
java.lang.Object javax.servlet.jsp.tagext.TagData
- 所有已实现的接口:
- Cloneable
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.
字段摘要 | |
---|---|
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). |
构造器摘要 | |
---|---|
TagData(Hashtable<String,Object> attrs)
Constructor for a TagData. |
|
TagData(Object[][] atts)
Constructor for TagData. |
方法摘要 | |
---|---|
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. |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
REQUEST_TIME_VALUE
public static final 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).
构造器详细信息 |
---|
TagData
public TagData(Object[][] atts)
- Constructor for TagData.
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.
TagData
public TagData(Hashtable<String,Object> attrs)
- Constructor for a TagData.
If you already have the attributes in a hashtable, use this
constructor.
- 参数:
attrs
- A hashtable to get the values from.
方法详细信息 |
---|
getId
public String getId()
- The value of the tag's id attribute.
- 返回:
- the value of the tag's id attribute, or null if no such attribute was specified.
getAttribute
public Object getAttribute(String attName)
- The value of the attribute.
If a static value is specified for an attribute that accepts a
request-time attribute expression then that static value is returned,
even if the value is provided in the body of a <jsp:attribute> action.
The distinguished object REQUEST_TIME_VALUE is only returned if
the value is specified as a request-time attribute expression
or via the <jsp:attribute> action with a body that contains
dynamic content (scriptlets, scripting expressions, EL expressions,
standard actions, or custom actions). Returns null if the attribute
is not set.
- 参数:
attName
- the name of the attribute- 返回:
- the attribute's value
setAttribute
public void setAttribute(String attName, Object value)
- Set the value of an attribute.
- 参数:
attName
- the name of the attributevalue
- the value.
getAttributeString
public String getAttributeString(String attName)
- Get the value for a given attribute.
- 参数:
attName
- the name of the attribute- 返回:
- the attribute value string
- 抛出异常:
ClassCastException
- if attribute value is not a String
getAttributes
public Enumeration<String> getAttributes()
- Enumerates the attributes.
- 返回:
- An enumeration of the attributes in a TagData
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.