org.apache.jasper.compiler
类 TagLibraryInfoImpl

java.lang.Object
  继承者 javax.servlet.jsp.tagext.TagLibraryInfo
      继承者 org.apache.jasper.compiler.TagLibraryInfoImpl
所有已实现的接口:
TagConstants

public class TagLibraryInfoImpl
extends TagLibraryInfo
implements TagConstants

Implementation of the TagLibraryInfo class from the JSP spec.

作者:
Anil K. Vijendran, Mandar Raje, Pierre Delisle, Kin-man Chung, Jan Luehe

字段摘要
protected  TagLibraryValidator tagLibraryValidator
           
 
从类 javax.servlet.jsp.tagext.TagLibraryInfo 继承的字段
functions, info, jspversion, prefix, shortname, tagFiles, tags, tlibversion, uri, urn
 
从接口 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
 
构造方法摘要
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.
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).
 
方法摘要
 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.
 TagLibraryValidator getTagLibraryValidator()
          The instance (if any) for the TagLibraryValidator class.
 String toString()
           
 ValidationMessage[] validate(PageData thePage)
          Translation-time validation of the XML document associated with the JSP page.
 
从类 javax.servlet.jsp.tagext.TagLibraryInfo 继承的方法
getFunction, getFunctions, getInfoString, getPrefixString, getReliableURN, getRequiredVersion, getShortName, getTag, getTagFile, getTagFiles, getTags, getURI
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

tagLibraryValidator

protected TagLibraryValidator tagLibraryValidator
构造方法详细信息

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).

参数:
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.

抛出:
JasperException
方法详细信息

toString

public String toString()
覆盖:
Object 中的 toString

getTagLibraryInfos

public 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.

指定者:
TagLibraryInfo 中的 getTagLibraryInfos
返回:
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.
从以下版本开始:
2.1

getTagLibraryValidator

public TagLibraryValidator getTagLibraryValidator()
The instance (if any) for the TagLibraryValidator class.

返回:
The TagLibraryValidator instance, if any.

validate

public ValidationMessage[] validate(PageData thePage)
Translation-time validation of the XML document associated with the JSP page. This is a convenience method on the associated TagLibraryValidator class.

参数:
thePage - The JSP page object
返回:
A string indicating whether the page is valid or not.


Copyright © 2013. All Rights Reserved.