TagFileInfo (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.servlet.jsp.tagext Class TagFileInfo

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

public class TagFileInfo
extends Object

Tag information for a tag file in a Tag Library; This class is instantiated from the Tag Library Descriptor file (TLD) and is available only at translation time.

从以下版本开始:
JSP 2.0

构造器摘要
TagFileInfo(String name, String path, TagInfo tagInfo)
          Constructor for TagFileInfo from data in the JSP 2.0 format for TLD.
 
方法摘要
 String getName()
          The unique action name of this tag.
 String getPath()
          Where to find the .tag file implementing this action.
 TagInfo getTagInfo()
          Returns information about this tag, parsed from the directives in the tag file.
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

TagFileInfo

public TagFileInfo(String name,
                   String path,
                   TagInfo tagInfo)
Constructor for TagFileInfo from data in the JSP 2.0 format for TLD. This class is to be instantiated only from the TagLibrary code under request from some JSP code that is parsing a TLD (Tag Library Descriptor). Note that, since TagLibibraryInfo reflects both TLD information and taglib directive information, a TagFileInfo instance is dependent on a taglib directive. This is probably a design error, which may be fixed in the future.

参数:
name - The unique action name of this tag
path - Where to find the .tag file implementing this action, relative to the location of the TLD file.
tagInfo - The detailed information about this tag, as parsed from the directives in the tag file.

方法详细信息

getName

public String getName()
The unique action name of this tag.

返回:
The (short) name of the tag.

getPath

public String getPath()
Where to find the .tag file implementing this action.

返回:
The path of the tag file, relative to the TLD, or "." if the tag file was defined in an implicit tag file.

getTagInfo

public TagInfo getTagInfo()
Returns information about this tag, parsed from the directives in the tag file.

返回:
a TagInfo object containing information about this tag

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.