Class TagLibraryInfoImpl

java.lang.Object
javax.servlet.jsp.tagext.TagLibraryInfo
org.apache.jasper.compiler.TagLibraryInfoImpl
All Implemented Interfaces:
TagConstants

public class TagLibraryInfoImpl extends javax.servlet.jsp.tagext.TagLibraryInfo implements TagConstants
Implementation of the TagLibraryInfo class from the JSP spec.
Author:
Anil K. Vijendran, Mandar Raje, Pierre Delisle, Kin-man Chung, Jan Luehe
  • Field Details

    • tagLibraryValidator

      protected javax.servlet.jsp.tagext.TagLibraryValidator tagLibraryValidator
  • Constructor Details

    • TagLibraryInfoImpl

      public TagLibraryInfoImpl(String prefix, String uri, TagLibraryInfoImpl delegate, PageInfo pageInfo)
      Constructor which populates a TagLibraryInfoImpl from a given TagLibraryInfoImpl, and associates the new TagLibraryInfoImpl with the given translation unit (pageInfo).
      Parameters:
      prefix - The taglib's namespace prefix
      uri - The taglib's uri
      delegate - The taglib from which the new TagLibraryInfoImpl is populated
      pageInfo - The translation unit with which the new TagLibraryInfoImpl is to be associated
    • TagLibraryInfoImpl

      public TagLibraryInfoImpl(JspCompilationContext ctxt, org.apache.jasper.compiler.ParserController pc, String prefix, String uriIn, String[] location, ErrorDispatcher err) throws JasperException
      Constructor which builds a TagLibraryInfoImpl by parsing a TLD.
      Throws:
      JasperException
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTagLibraryInfos

      public javax.servlet.jsp.tagext.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 prefices, only the TagLibraryInfo bound to the first prefix must be included in the returned array.
      Specified by:
      getTagLibraryInfos in class javax.servlet.jsp.tagext.TagLibraryInfo
      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:
      2.1
    • getTagLibraryValidator

      public javax.servlet.jsp.tagext.TagLibraryValidator getTagLibraryValidator()
      The instance (if any) for the TagLibraryValidator class.
      Returns:
      The TagLibraryValidator instance, if any.
    • validate

      public javax.servlet.jsp.tagext.ValidationMessage[] validate(javax.servlet.jsp.tagext.PageData thePage)
      Translation-time validation of the XML document associated with the JSP page. This is a convenience method on the associated TagLibraryValidator class.
      Parameters:
      thePage - The JSP page object
      Returns:
      A string indicating whether the page is valid or not.