Package org.apache.jasper.compiler
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 Summary
Fields Modifier and Type Field Description protected javax.servlet.jsp.tagext.TagLibraryValidator
tagLibraryValidator
-
Fields inherited from class javax.servlet.jsp.tagext.TagLibraryInfo
functions, info, jspversion, prefix, shortname, tagFiles, tags, tlibversion, uri, urn
-
Fields inherited from interface org.apache.jasper.compiler.TagConstants
ATTRIBUTE_ACTION, ATTRIBUTE_DIRECTIVE_ACTION, BODY_ACTION, DECLARATION_ACTION, DIRECTIVE_ACTION, DOBODY_ACTION, ELEMENT_ACTION, EXPRESSION_ACTION, FALLBACK_ACTION, FORWARD_ACTION, GET_PROPERTY_ACTION, INCLUDE_ACTION, INCLUDE_DIRECTIVE_ACTION, INVOKE_ACTION, JSP_ATTRIBUTE_ACTION, JSP_ATTRIBUTE_DIRECTIVE_ACTION, JSP_BODY_ACTION, JSP_DECLARATION_ACTION, JSP_DOBODY_ACTION, JSP_ELEMENT_ACTION, JSP_EXPRESSION_ACTION, JSP_FALLBACK_ACTION, JSP_FORWARD_ACTION, JSP_GET_PROPERTY_ACTION, JSP_INCLUDE_ACTION, JSP_INCLUDE_DIRECTIVE_ACTION, JSP_INVOKE_ACTION, JSP_OUTPUT_ACTION, JSP_PAGE_DIRECTIVE_ACTION, JSP_PARAM_ACTION, JSP_PARAMS_ACTION, JSP_PLUGIN_ACTION, JSP_ROOT_ACTION, JSP_SCRIPTLET_ACTION, JSP_SET_PROPERTY_ACTION, JSP_TAG_DIRECTIVE_ACTION, JSP_TAGLIB_DIRECTIVE_ACTION, JSP_TEXT_ACTION, JSP_TEXT_ACTION_END, JSP_URI, JSP_USE_BEAN_ACTION, JSP_VARIABLE_DIRECTIVE_ACTION, OUTPUT_ACTION, PAGE_DIRECTIVE_ACTION, PARAM_ACTION, PARAMS_ACTION, PLUGIN_ACTION, ROOT_ACTION, SCRIPTLET_ACTION, SET_PROPERTY_ACTION, TAG_DIRECTIVE_ACTION, TAGLIB_DIRECTIVE_ACTION, TEXT_ACTION, URN_JSPTAGDIR, URN_JSPTLD, USE_BEAN_ACTION, VARIABLE_DIRECTIVE_ACTION
-
-
Constructor Summary
Constructors Constructor Description 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).TagLibraryInfoImpl(JspCompilationContext ctxt, org.apache.jasper.compiler.ParserController pc, String prefix, String uriIn, String[] location, ErrorDispatcher err)
Constructor which builds a TagLibraryInfoImpl by parsing a TLD.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.javax.servlet.jsp.tagext.TagLibraryValidator
getTagLibraryValidator()
The instance (if any) for the TagLibraryValidator class.String
toString()
javax.servlet.jsp.tagext.ValidationMessage[]
validate(javax.servlet.jsp.tagext.PageData thePage)
Translation-time validation of the XML document associated with the JSP page.
-
-
-
Constructor Detail
-
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 prefixuri
- The taglib's uridelegate
- The taglib from which the new TagLibraryInfoImpl is populatedpageInfo
- 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 Detail
-
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 classjavax.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.
-
-