|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.servlet.jsp.tagext Class TagVariableInfo
java.lang.Object javax.servlet.jsp.tagext.TagVariableInfo
public class TagVariableInfo
- extends Object
标记库中某个标记的变量信息;此类是根据标记库描述符文件 (TLD) 实例化的,仅在转换期间可用。 此对象应该是不可变的。 此信息只在 JSP 1.2 格式的 TLD 或更高版本格式的 TLD 中可用。
Variable information for a tag in a Tag Library; This class is instantiated from the Tag Library Descriptor file (TLD) and is available only at translation time. This object should be immutable. This information is only available in JSP 1.2 format TLDs or above.
Constructor Summary | |
---|---|
TagVariableInfo(String nameGiven,
String nameFromAttribute,
String className,
boolean declare,
int scope)
Constructor for TagVariableInfo. |
Method Summary | |
---|---|
String |
getClassName()
The body of the <variable-class> element. |
boolean |
getDeclare()
The body of the <declare> element. |
String |
getNameFromAttribute()
The body of the <name-from-attribute> element. |
String |
getNameGiven()
The body of the <name-given> element. |
int |
getScope()
The body of the <scope> element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public
TagVariableInfo(String nameGiven, String nameFromAttribute, String className, boolean declare, int scope)
TagVariableInfo 的构造方法。
nameGiven | <name-given> 的值 |
nameFromAttribute | <name-from-attribute> 的值 |
className | <variable-class> 的值 |
declare | <declare> 的值 |
scope | <scope> 的值 |
TagVariableInfo
public TagVariableInfo(String nameGiven, String nameFromAttribute, String className, boolean declare, int scope)
- Constructor for TagVariableInfo.
- Parameters:
nameGiven
- value of <name-given>nameFromAttribute
- value of <name-from-attribute>className
- value of <variable-class>declare
- value of <declare>scope
- value of <scope>
Method Detail |
---|
public String
getNameGiven()
<name-given> 元素的正文。
return | 常量形式的变量名称 |
getNameGiven
public String getNameGiven()
- The body of the <name-given> element.
- Returns:
- The variable name as a constant
public String
getNameFromAttribute()
<name-from-attribute> 元素的正文。这是某个属性的名称,该属性的(转换期间)值将给出变量名称。<name-given> 或 <name-from-attribute> 之一是必需的。
return | 其值定义变量名称的属性 |
getNameFromAttribute
public String getNameFromAttribute()
- The body of the <name-from-attribute> element.
This is the name of an attribute whose (translation-time)
value will give the name of the variable. One of
<name-given> or <name-from-attribute> is required.
- Returns:
- The attribute whose value defines the variable name
public String
getClassName()
<variable-class> 元素的正文。
return | 变量的类的名称,如果未在 TLD 中定义该变量类的名称,则返回 'java.lang.String'。 |
getClassName
public String getClassName()
- The body of the <variable-class> element.
- Returns:
- The name of the class of the variable or 'java.lang.String' if not defined in the TLD.
public boolean
getDeclare()
<declare> 元素的正文。
return | 是否将声明变量。如果未在 TLD 中定义是否将声明变量,则返回 'true'。 |
getDeclare
public boolean getDeclare()
- The body of the <declare> element.
- Returns:
- Whether the variable is to be declared or not. If not defined in the TLD, 'true' will be returned.
public int
getScope()
<scope> 元素的正文。
return | 给变量的范围。如果未在 TLD 中定义范围,则将返回 NESTED 范围。 |
getScope
public int getScope()
- The body of the <scope> element.
- Returns:
- The scope to give the variable. NESTED scope will be returned if not defined in the TLD.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!