jd.xml.xslt.trax
Class TemplatesHandlerImpl

java.lang.Object
  extended byjd.xml.xpath.model.parse.ParseHandler
      extended byjd.xml.xpath.model.parse.SaxParseHandler
          extended byjd.xml.xpath.model.parse.Sax2ParseHandler
              extended byjd.xml.xslt.trax.TemplatesHandlerImpl
All Implemented Interfaces:
ContentHandler, DTDHandler, LexicalHandler, ModelLocator, TemplatesHandler

class TemplatesHandlerImpl
extends Sax2ParseHandler
implements TemplatesHandler

An implementation of javax.xml.transform.sax.TemplatesHandler.


Field Summary
 
Fields inherited from class jd.xml.xpath.model.parse.SaxParseHandler
locator_
 
Fields inherited from class jd.xml.xpath.model.parse.ParseHandler
elementInfo_, modelBuilder_, nodeNamePool_, preserveSpaceStack_, preserveWhitespace_, text_
 
Constructor Summary
TemplatesHandlerImpl(TransformerFactoryImpl factory)
           
 
Method Summary
 void endDocument()
          Receive notification of the end of a document.
 String getSystemId()
          Get the base ID (URI or system ID) from where relative URLs will be resolved.
 Templates getTemplates()
          When a TemplatesHandler object is used as a ContentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed.
 void setSystemId(String systemId)
          Set the base ID (URI or system ID) for the Templates object created by this builder.
 void startDocument()
          Receive notification of the beginning of a document.
 
Methods inherited from class jd.xml.xpath.model.parse.Sax2ParseHandler
comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getEntityResolver, getParser, isValidating, parse, processingInstruction, setEntityResolver, setValidating, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class jd.xml.xpath.model.parse.SaxParseHandler
characters, getInputSource, getLineNumber, ignorableWhitespace, notationDecl, setDocumentLocator, unparsedEntityDecl
 
Methods inherited from class jd.xml.xpath.model.parse.ParseHandler
flushTextNode, getNodeName, getNodeName, parse, popPreserveWhitespace, pushPreserveWhitespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
 

Constructor Detail

TemplatesHandlerImpl

public TemplatesHandlerImpl(TransformerFactoryImpl factory)
Method Detail

startDocument

public void startDocument()
                   throws SAXException
Description copied from interface: ContentHandler
Receive notification of the beginning of a document.

The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).

Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class SaxParseHandler
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Description copied from interface: ContentHandler
Receive notification of the end of a document.

The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.

Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class SaxParseHandler
Throws:
SAXException

setSystemId

public void setSystemId(String systemId)
Description copied from interface: TemplatesHandler
Set the base ID (URI or system ID) for the Templates object created by this builder. This must be set in order to resolve relative URIs in the stylesheet. This must be called before the startDocument event.

Specified by:
setSystemId in interface TemplatesHandler

getSystemId

public String getSystemId()
Description copied from interface: TemplatesHandler
Get the base ID (URI or system ID) from where relative URLs will be resolved.

Specified by:
getSystemId in interface TemplatesHandler
Returns:
The systemID that was set with TemplatesHandler.setSystemId(java.lang.String).

getTemplates

public Templates getTemplates()
Description copied from interface: TemplatesHandler
When a TemplatesHandler object is used as a ContentHandler for the parsing of transformation instructions, it creates a Templates object, which the caller can get once the SAX events have been completed.

Specified by:
getTemplates in interface TemplatesHandler
Returns:
The Templates object that was created during the SAX event process, or null if no Templates object has been created.