TagLibraryInfo (Java EE 5)

Java EE API


javax.servlet.jsp.tagext Class TagLibraryInfo

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagLibraryInfo

public abstract class TagLibraryInfo
extends Object


与 taglib 指令及其底层 TLD 文件关联的转换期间信息。 多数信息直接来自 TLD,除了 taglib 指令中使用的前缀和 uri 值
英文文档:

Translation-time information associated with a taglib directive, and its underlying TLD file. Most of the information is directly from the TLD, except for the prefix and the uri values used in the taglib directive


Field Summary
protected  FunctionInfo[]
protected  String
protected  String
protected  String
protected  String
protected  TagFileInfo[]
protected  TagInfo[]
protected  String
protected  String
protected  String
 
Constructor Summary
protected
 
Method Summary
 FunctionInfo
 FunctionInfo[]
 String
 String
 String
 String
 String
 TagInfo
 TagFileInfo
 TagFileInfo[]
abstract  TagLibraryInfo[]
 TagInfo[]
 String
 
Methods inherited from class java.lang.Object
 

Field Detail

英文文档:

prefix

protected String prefix
The prefix assigned to this taglib from the taglib directive.


英文文档:

uri

protected String uri
The value of the uri attribute from the taglib directive for this library.


英文文档:

tags

protected TagInfo[] tags
An array describing the tags that are defined in this tag library.


英文文档:

tagFiles

protected TagFileInfo[] tagFiles
An array describing the tag files that are defined in this tag library.

Since:
JSP 2.0


英文文档:

functions

protected FunctionInfo[] functions
An array describing the functions that are defined in this tag library.

Since:
JSP 2.0


英文文档:

tlibversion

protected String tlibversion
The version of the tag library.


英文文档:

jspversion

protected String jspversion
The version of the JSP specification this tag library is written to.


英文文档:

shortname

protected String shortname
The preferred short name (prefix) as indicated in the TLD.


英文文档:

urn

protected String urn
The "reliable" URN indicated in the TLD.


英文文档:

info

protected String info
Information (documentation) for this TLD.

Constructor Detail

protected TagLibraryInfo(String prefix, String uri)
构造方法。 此方法将调用 TagInfo 的构造方法,并在解析 TLD 文件后调用 TagAttributeInfo。
prefix taglib 指令实际使用的前缀
uri taglib 指令实际使用的 URI
英文文档:

TagLibraryInfo

protected TagLibraryInfo(String prefix,
                         String uri)
Constructor.

Parameters:
prefix - the prefix actually used by the taglib directive
uri - the URI actually used by the taglib directive

Method Detail

public String getURI()
此库的 taglib 指令中的 uri 属性值。
return uri 属性的值
英文文档:

getURI

public String getURI()
The value of the uri attribute from the taglib directive for this library.

Returns:
the value of the uri attribute

public String getPrefixString()
从 taglib 指令分配给此 taglib 的前缀。
return 从 taglib 指令分配给此 taglib 的前缀
英文文档:

getPrefixString

public String getPrefixString()
The prefix assigned to this taglib from the taglib directive

Returns:
the prefix assigned to this taglib from the taglib directive

public String getShortName()
TLD 中指示的首选短名称(前缀)。编写工具可以将此短名称用作首选前缀,以便在创建此库的 taglib 指令时使用。
return 库的首选短名称
英文文档:

getShortName

public String getShortName()
The preferred short name (prefix) as indicated in the TLD. This may be used by authoring tools as the preferred prefix to use when creating an taglib directive for this library.

Returns:
the preferred short name for the library

public String getReliableURN()
TLD 中指示的“可靠”URN(uri 元素)。编写工具可以将此 URN 用作全局标识符,以便在创建此库的 taglib 指令时使用。
return 此 TLD 中的可靠 URN
英文文档:

getReliableURN

public String getReliableURN()
The "reliable" URN indicated in the TLD (the uri element). This may be used by authoring tools as a global identifier to use when creating a taglib directive for this library.

Returns:
a reliable URN to a TLD like this

public String getInfoString()
此 TLD 的信息(文档)。
return 此标记库的信息字符串
英文文档:

getInfoString

public String getInfoString()
Information (documentation) for this TLD.

Returns:
the info string for this tag lib

public String getRequiredVersion()
描述所需 JSP 容器版本的字符串。
return (最低)所需的 JSP 容器版本。
See also javax.servlet.jsp.JspEngineInfo
英文文档:

getRequiredVersion

public String getRequiredVersion()
A string describing the required version of the JSP container.

Returns:
the (minimal) required version of the JSP container.
See Also:
JspEngineInfo

public TagInfo[] getTags()
描述此标记库中定义的标记的数组。
return 与此标记库定义的标记相对应的 TagInfo 对象,如果此标记库没有定义标记,则返回长度为 0 的数组
英文文档:

getTags

public TagInfo[] getTags()
An array describing the tags that are defined in this tag library.

Returns:
the TagInfo objects corresponding to the tags defined by this tag library, or a zero length array if this tag library defines no tags

public TagFileInfo[] getTagFiles()
描述此标记库中定义的标记文件的数组。
return 与此标记库定义的标记文件相对应的 TagFileInfo 对象,如果此标记库没有定义标记文件,则返回长度为 0 的数组
since2.0
英文文档:

getTagFiles

public TagFileInfo[] getTagFiles()
An array describing the tag files that are defined in this tag library.

Returns:
the TagFileInfo objects corresponding to the tag files defined by this tag library, or a zero length array if this tag library defines no tags files
Since:
JSP 2.0

public TagInfo getTag(String shortname)
获取给定标记名称的 TagInfo,查看此标记库中的所有标记。
shortname 标记的短名称(无前缀)
return 具有指定短名称的标记的 TagInfo,如果未找到这样的标记,则返回 null
英文文档:

getTag

public TagInfo getTag(String shortname)
Get the TagInfo for a given tag name, looking through all the tags in this tag library.

Parameters:
shortname - The short name (no prefix) of the tag
Returns:
the TagInfo for the tag with the specified short name, or null if no such tag is found

public TagFileInfo getTagFile(String shortname)
获取给定标记名称的 TagFileInfo,查看此标记库中的所有标记文件。
shortname 标记的短名称(无前缀)
return 指定标记文件的 TagFileInfo,如果未找到标记文件,则返回 null
since2.0
英文文档:

getTagFile

public TagFileInfo getTagFile(String shortname)
Get the TagFileInfo for a given tag name, looking through all the tag files in this tag library.

Parameters:
shortname - The short name (no prefix) of the tag
Returns:
the TagFileInfo for the specified Tag file, or null if no Tag file is found
Since:
JSP 2.0

public FunctionInfo[] getFunctions()
描述此标记库中定义的函数的数组。
return 此标记库中定义的函数,如果该标记库没有定义任何函数,则返回长度为 0 的数组。
since2.0
英文文档:

getFunctions

public FunctionInfo[] getFunctions()
An array describing the functions that are defined in this tag library.

Returns:
the functions defined in this tag library, or a zero length array if the tag library defines no functions.
Since:
JSP 2.0

public FunctionInfo getFunction(String name)
获取给定函数名称的 FunctionInfo,查看此标记库中的所有函数。
name 函数的名称(无前缀)
return 具有给定名称的函数的 FunctionInfo,如果不存在这样的函数,则返回 null
since2.0
英文文档:

getFunction

public FunctionInfo getFunction(String name)
Get the FunctionInfo for a given function name, looking through all the functions in this tag library.

Parameters:
name - The name (no prefix) of the function
Returns:
the FunctionInfo for the function with the given name, or null if no such function exists
Since:
JSP 2.0

英文文档:

getTagLibraryInfos

public abstract TagLibraryInfo[] getTagLibraryInfos()
Returns an array of TagLibraryInfo objects representing the entire set of tag libraries (including this TagLibraryInfo) imported by taglib directives in the translation unit that references this TagLibraryInfo. If a tag library is imported more than once and bound to different prefices, only the TagLibraryInfo bound to the first prefix must be included in the returned array.

Returns:
Array of TagLibraryInfo objects representing the entire set of tag libraries (including this TagLibraryInfo) imported by taglib directives in the translation unit that references this TagLibraryInfo.
Since:
JSP 2.1


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!