Class 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.
    • Constructor Detail

      • TagLibraryInfoImpl

        public TagLibraryInfoImpl​(java.lang.String prefix,
                                  java.lang.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
    • Method Detail

      • print

        private final void print​(java.lang.String name,
                                 java.lang.String value,
                                 java.io.PrintWriter w)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.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
      • createTagFileInfo

        private javax.servlet.jsp.tagext.TagFileInfo createTagFileInfo​(TreeNode elem,
                                                                       java.lang.String uri,
                                                                       java.net.URL jarFileUrl)
                                                                throws JasperException
        Throws:
        JasperException
      • 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.