com.sun.tlddoc
Class TagDirImplicitTagLibrary

java.lang.Object
  extended bycom.sun.tlddoc.TagLibrary
      extended bycom.sun.tlddoc.TagDirImplicitTagLibrary

public class TagDirImplicitTagLibrary
extends TagLibrary

Implicit Tag Library for a directory of tag files.

Author:
mroth

Constructor Summary
TagDirImplicitTagLibrary(java.io.File dir)
          Creates a new instance of TagDirImplicitTagLibrary
 
Method Summary
protected static org.w3c.dom.Element createRootTaglibNode(org.w3c.dom.Document result, java.lang.String path)
          Creates an implicit tag library root node, with default values.
 java.lang.String getPathDescription()
          Returns a String that the user would recognize as a location for this tag library.
 java.io.InputStream getResource(java.lang.String path)
          Returns an input stream for the given resource, or null if the resource could not be found.
 org.w3c.dom.Document getTLDDocument(javax.xml.parsers.DocumentBuilder documentBuilder)
          Returns a Document of the effective tag library descriptor for this tag library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagDirImplicitTagLibrary

public TagDirImplicitTagLibrary(java.io.File dir)
Creates a new instance of TagDirImplicitTagLibrary

Method Detail

getPathDescription

public java.lang.String getPathDescription()
Returns a String that the user would recognize as a location for this tag library.

Specified by:
getPathDescription in class TagLibrary

getResource

public java.io.InputStream getResource(java.lang.String path)
                                throws java.io.IOException
Returns an input stream for the given resource, or null if the resource could not be found.

Specified by:
getResource in class TagLibrary
Throws:
java.io.IOException

getTLDDocument

public org.w3c.dom.Document getTLDDocument(javax.xml.parsers.DocumentBuilder documentBuilder)
                                    throws java.io.IOException,
                                           org.xml.sax.SAXException,
                                           javax.xml.parsers.ParserConfigurationException,
                                           javax.xml.transform.TransformerConfigurationException,
                                           javax.xml.transform.TransformerException,
                                           GeneratorException
Returns a Document of the effective tag library descriptor for this tag library. This might come from a file or be implicitly generated.

Specified by:
getTLDDocument in class TagLibrary
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
GeneratorException

createRootTaglibNode

protected static org.w3c.dom.Element createRootTaglibNode(org.w3c.dom.Document result,
                                                          java.lang.String path)
Creates an implicit tag library root node, with default values. Shared by WARTagDirImplicitTagLibrary.