javax.servlet.jsp.tagext

Class TagLibraryInfo


public abstract class TagLibraryInfo
extends java.lang.Object

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 String
info
protected String
jspversion
protected String
prefix
protected String
shortname
protected TagInfo[]
tags
protected String
tlibversion
protected String
uri
protected String
urn

Constructor Summary

TagLibraryInfo(String prefix, String uri)
Constructor.

Method Summary

String
getInfoString()
Information (documentation) for this TLD.
String
getPrefixString()
The prefix assigned to this taglib from the <%taglib directive
String
getReliableURN()
The "reliable" URN indicated in the TLD.
String
getRequiredVersion()
A string describing the required version of the JSP container.
String
getShortName()
The preferred short name (prefix) as indicated in the TLD.
TagInfo
getTag(String shortname)
Get the TagInfo for a given tag name, looking through all the tags in this tag library.
TagInfo[]
getTags()
An array describing the tags that are defined in this tag library.
String
getURI()
The value of the uri attribute from the <%@ taglib directive for this library.

Field Details

info

protected String info

jspversion

protected String jspversion

prefix

protected String prefix

shortname

protected String shortname

tags

protected TagInfo[] tags

tlibversion

protected String tlibversion

uri

protected String uri

urn

protected String urn

Constructor Details

TagLibraryInfo

protected TagLibraryInfo(String prefix,
                         String uri)
Constructor. This will invoke the constructors for TagInfo, and TagAttributeInfo after parsing the TLD file.
Parameters:
prefix - the prefix actually used by the taglib directive
uri - the URI actually used by the taglib directive

Method Details

getInfoString

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

getPrefixString

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

getReliableURN

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

getRequiredVersion

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

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 include directive for this library.

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

getTags

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

getURI

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