com.caucho.jsp
Class Taglib

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagLibraryInfo
      extended by com.caucho.jsp.Taglib

public class Taglib
extends TagLibraryInfo

Stores the entire information for a tag library.


Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagLibraryInfo
functions, info, jspversion, prefix, shortname, tagFiles, tags, tlibversion, uri, urn
 
Method Summary
 void addTaglib(Taglib taglib)
           
 Taglib copy()
           
 Taglib create(java.lang.String prefix)
           
 java.lang.Class getClass(java.lang.String tagName)
          Returns the tag class for the given tag qname
 java.util.ArrayList<TldFunction> getFunctionList()
          Returns the functions.
 Path getPath()
          Gets the path.
 java.util.ArrayList<java.lang.String> getSingleTagClassNames()
          Return the class names of all tags that are outside of packages.
 TagInfo getTag(java.lang.String name)
          Hack to avoid JSDK problem.
 java.lang.String getTagFilePath(java.lang.String name)
          Returns a matching tag file.
 TagLibraryInfo[] getTagLibraryInfos()
          Returns the information from the tag file.
 TagLibraryValidator getValidator()
          Gets a new instance of the validator to check the page.
 java.lang.String toString()
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagLibraryInfo
getFunction, getFunctions, getInfoString, getPrefixString, getReliableURN, getRequiredVersion, getShortName, getTagFile, getTagFiles, getTags, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public Taglib create(java.lang.String prefix)
              throws JspParseException
Throws:
JspParseException

getValidator

public TagLibraryValidator getValidator()
                                 throws JspParseException
Gets a new instance of the validator to check the page.

Throws:
JspParseException

getFunctionList

public java.util.ArrayList<TldFunction> getFunctionList()
Returns the functions.


getPath

public Path getPath()
Gets the path.


getClass

public java.lang.Class getClass(java.lang.String tagName)
                         throws java.lang.Exception
Returns the tag class for the given tag qname

Parameters:
tagName - the tag's qname
Returns:
the matching class or null
Throws:
java.lang.Exception

getSingleTagClassNames

public java.util.ArrayList<java.lang.String> getSingleTagClassNames()
Return the class names of all tags that are outside of packages.


getTag

public TagInfo getTag(java.lang.String name)
Hack to avoid JSDK problem.

Overrides:
getTag in class TagLibraryInfo

getTagFilePath

public java.lang.String getTagFilePath(java.lang.String name)
Returns a matching tag file.


addTaglib

public void addTaglib(Taglib taglib)

copy

public Taglib copy()
            throws JspParseException
Throws:
JspParseException

getTagLibraryInfos

public TagLibraryInfo[] getTagLibraryInfos()
Description copied from class: TagLibraryInfo
Returns the information from the tag file.

Specified by:
getTagLibraryInfos in class TagLibraryInfo

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object