Class TagLibraryDescriptor
java.lang.Object
com.sun.ts.tests.common.taglibsig.TagLibraryDescriptor
Represents a TLD from a JAR file allowing access to the tag and function and validator entries as well as TLD level
metatdata such as support container version and version of the taglibrary itself.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the functions of this tag library.static TagLibraryDescriptor
getInstance
(String jarUrl, String taglibUri) Returns a TagLibraryDescriptor instance based on the URI the tag library is known by (i.e.Returns the minimum container version required to use this tag libary.TagEntry[]
Returns the tags of this tag library.Returns the version of this tag library.getURI()
Returns the URI that identifies this tag libraryThe validators of this tag library.
-
Method Details
-
getInstance
Returns a TagLibraryDescriptor instance based on the URI the tag library is known by (i.e. theelement of the TLD). If the TagLibraryDescriptor is not found in the cache, the this method will use the URL to the jar file and scan the JAR file for TLDs. Any TLD's found will be processed and added cache. If, after scanning the JAR file, no TLD's matching the specified ttaglib uri can be found, this method will return null. - Parameters:
jarUrl
- - The file URL of the JAR file to scan for TLDs if the cache doesn't contain the requested TagLibraryDescriptor instancetaglibUri
- - The uri of the tag library of interest- Returns:
- a TagLibraryDescriptor for the provided uri, or null if no tag library can be found
-
getTagEntries
Returns the tags of this tag library.- Returns:
- the tags of this tag library
-
getFunctionEntries
Returns the functions of this tag library.- Returns:
- the functions of this tag library
-
getValidatorEntries
The validators of this tag library.- Returns:
- the validators of this tag library
-
getRequiredContainerVersion
Returns the minimum container version required to use this tag libary.- Returns:
- the minimum container version required to use this tag library
-
getTaglibraryVersion
Returns the version of this tag library.- Returns:
- the version of this tag library
-
getURI
Returns the URI that identifies this tag library- Returns:
- the URI that identifies this tag library
-