Package javax.servlet.jsp.tagext
Class TagLibraryInfo
- java.lang.Object
- 
- javax.servlet.jsp.tagext.TagLibraryInfo
 
- 
 public abstract class TagLibraryInfo extends java.lang.ObjectTranslation-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 SummaryFields Modifier and Type Field Description protected FunctionInfo[]functionsAn array describing the functions that are defined in this tag library.protected java.lang.StringinfoInformation (documentation) for this TLD.protected java.lang.StringjspversionThe version of the JSP specification this tag library is written to.protected java.lang.StringprefixThe prefix assigned to this taglib from the taglib directive.protected java.lang.StringshortnameThe preferred short name (prefix) as indicated in the TLD.protected TagFileInfo[]tagFilesAn array describing the tag files that are defined in this tag library.protected TagInfo[]tagsAn array describing the tags that are defined in this tag library.protected java.lang.StringtlibversionThe version of the tag library.protected java.lang.StringuriThe value of the uri attribute from the taglib directive for this library.protected java.lang.StringurnThe "reliable" URN indicated in the TLD.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedTagLibraryInfo(java.lang.String prefix, java.lang.String uri)Constructor.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FunctionInfogetFunction(java.lang.String name)Get the FunctionInfo for a given function name, looking through all the functions in this tag library.FunctionInfo[]getFunctions()An array describing the functions that are defined in this tag library.java.lang.StringgetInfoString()Information (documentation) for this TLD.java.lang.StringgetPrefixString()The prefix assigned to this taglib from the taglib directivejava.lang.StringgetReliableURN()The "reliable" URN indicated in the TLD (the uri element).java.lang.StringgetRequiredVersion()A string describing the required version of the JSP container.java.lang.StringgetShortName()The preferred short name (prefix) as indicated in the TLD.TagInfogetTag(java.lang.String shortname)Get the TagInfo for a given tag name, looking through all the tags in this tag library.TagFileInfogetTagFile(java.lang.String shortname)Get the TagFileInfo for a given tag name, looking through all the tag files in this tag library.TagFileInfo[]getTagFiles()An array describing the tag files that are defined in this tag library.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.TagInfo[]getTags()An array describing the tags that are defined in this tag library.java.lang.StringgetURI()The value of the uri attribute from the taglib directive for this library.
 
- 
- 
- 
Field Detail- 
prefixprotected java.lang.String prefix The prefix assigned to this taglib from the taglib directive.
 - 
uriprotected java.lang.String uri The value of the uri attribute from the taglib directive for this library.
 - 
tagsprotected TagInfo[] tags An array describing the tags that are defined in this tag library.
 - 
tagFilesprotected TagFileInfo[] tagFiles An array describing the tag files that are defined in this tag library.- Since:
- JSP 2.0
 
 - 
functionsprotected FunctionInfo[] functions An array describing the functions that are defined in this tag library.- Since:
- JSP 2.0
 
 - 
tlibversionprotected java.lang.String tlibversion The version of the tag library.
 - 
jspversionprotected java.lang.String jspversion The version of the JSP specification this tag library is written to.
 - 
shortnameprotected java.lang.String shortname The preferred short name (prefix) as indicated in the TLD.
 - 
urnprotected java.lang.String urn The "reliable" URN indicated in the TLD.
 - 
infoprotected java.lang.String info Information (documentation) for this TLD.
 
- 
 - 
Constructor Detail- 
TagLibraryInfoprotected TagLibraryInfo(java.lang.String prefix, java.lang.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 Detail- 
getURIpublic java.lang.String getURI() The value of the uri attribute from the taglib directive for this library.- Returns:
- the value of the uri attribute
 
 - 
getPrefixStringpublic java.lang.String getPrefixString() The prefix assigned to this taglib from the taglib directive- Returns:
- the prefix assigned to this taglib from the taglib directive
 
 - 
getShortNamepublic java.lang.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
 
 - 
getReliableURNpublic java.lang.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
 
 - 
getInfoStringpublic java.lang.String getInfoString() Information (documentation) for this TLD.- Returns:
- the info string for this tag lib
 
 - 
getRequiredVersionpublic java.lang.String getRequiredVersion() A string describing the required version of the JSP container.- Returns:
- the (minimal) required version of the JSP container.
- See Also:
- JspEngineInfo
 
 - 
getTagspublic 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
 
 - 
getTagFilespublic 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
 
 - 
getTagpublic TagInfo getTag(java.lang.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
 
 - 
getTagFilepublic TagFileInfo getTagFile(java.lang.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
 
 - 
getFunctionspublic 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
 
 - 
getFunctionpublic FunctionInfo getFunction(java.lang.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
 
 - 
getTagLibraryInfospublic 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 prefixes, 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
 
 
- 
 
-