jd.xml.xslt.trax
Class TransformerHandlerImpl

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.TransformerHandlerImpl
All Implemented Interfaces:
ContentHandler, DTDHandler, LexicalHandler, ModelLocator, TransformerHandler

class TransformerHandlerImpl
extends Sax2ParseHandler
implements TransformerHandler

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


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
TransformerHandlerImpl(TransformerImpl transformer)
           
 
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.
 Transformer getTransformer()
          Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.
 void setResult(Result result)
          Enables the user of the TransformerHandler to set the to set the Result for the transformation.
 void setSystemId(String systemId)
          Set the base ID (URI or system ID) from where relative URLs will be resolved.
 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
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 
Methods inherited from interface org.xml.sax.DTDHandler
notationDecl, unparsedEntityDecl
 

Constructor Detail

TransformerHandlerImpl

public TransformerHandlerImpl(TransformerImpl transformer)
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: TransformerHandler
Set the base ID (URI or system ID) from where relative URLs will be resolved.

Specified by:
setSystemId in interface TransformerHandler
Parameters:
systemId - Base URI for the source tree.

getSystemId

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

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

getTransformer

public Transformer getTransformer()
Description copied from interface: TransformerHandler
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.

Specified by:
getTransformer in interface TransformerHandler

setResult

public void setResult(Result result)
Description copied from interface: TransformerHandler
Enables the user of the TransformerHandler to set the to set the Result for the transformation.

Specified by:
setResult in interface TransformerHandler
Parameters:
result - A Result instance, should not be null.