Class TagLibraryDescriptor

java.lang.Object
com.sun.ts.tests.common.taglibsig.TagLibraryDescriptor

public class TagLibraryDescriptor extends Object
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 Details

    • getInstance

      public static TagLibraryDescriptor getInstance(String jarUrl, String taglibUri)
      Returns a TagLibraryDescriptor instance based on the URI the tag library is known by (i.e. the element 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 instance
      taglibUri - - 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

      public TagEntry[] getTagEntries()
      Returns the tags of this tag library.
      Returns:
      the tags of this tag library
    • getFunctionEntries

      public FunctionEntry[] getFunctionEntries()
      Returns the functions of this tag library.
      Returns:
      the functions of this tag library
    • getValidatorEntries

      public ValidatorEntry[] getValidatorEntries()
      The validators of this tag library.
      Returns:
      the validators of this tag library
    • getRequiredContainerVersion

      public String getRequiredContainerVersion()
      Returns the minimum container version required to use this tag libary.
      Returns:
      the minimum container version required to use this tag library
    • getTaglibraryVersion

      public String getTaglibraryVersion()
      Returns the version of this tag library.
      Returns:
      the version of this tag library
    • getURI

      public String getURI()
      Returns the URI that identifies this tag library
      Returns:
      the URI that identifies this tag library