org.apache.xalan.xsltc.trax
Class TransformerHandlerImpl

java.lang.Object
  |
  +--org.apache.xalan.xsltc.trax.TransformerHandlerImpl

public class TransformerHandlerImpl
extends java.lang.Object
implements TransformerHandler

Implementation of a JAXP1.1 TransformerHandler


Method Summary
 void characters(char[] ch, int start, int length)
          Implements org.xml.sax.ContentHandler.characters() Receive notification of character data.
 void comment(char[] ch, int start, int length)
          Implements org.xml.sax.ext.LexicalHandler.comment() We do not handle this method, and the input is quietly ignored
 void endCDATA()
          Implements org.xml.sax.ext.LexicalHandler.endCDATA() We do not handle this method, and the input is quietly ignored
 void endDocument()
          Implements org.xml.sax.ContentHandler.endDocument() Receive notification of the end of a document.
 void endDTD()
          Implements org.xml.sax.ext.LexicalHandler.endDTD() We do not handle this method, and the input is quietly ignored
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qname)
          Implements org.xml.sax.ContentHandler.endElement() Receive notification of the end of an element.
 void endEntity(java.lang.String name)
          Implements org.xml.sax.ext.LexicalHandler.endEntity() We do not handle this method, and the input is quietly ignored
 void endPrefixMapping(java.lang.String prefix)
          Implements org.xml.sax.ContentHandler.endPrefixMapping() End the scope of a prefix-URI Namespace mapping.
 java.lang.String getSystemId()
          Implements javax.xml.transform.sax.TransformerHandler.getSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.
 Transformer getTransformer()
          Implements javax.xml.transform.sax.TransformerHandler.getTransformer() Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.
 void ignorableWhitespace(char[] ch, int start, int length)
          Implements org.xml.sax.ContentHandler.ignorableWhitespace() Receive notification of ignorable whitespace in element content.
 void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
          Implements org.xml.sax.DTDHandler.notationDecl() End the scope of a prefix-URI Namespace mapping.
 void processingInstruction(java.lang.String target, java.lang.String data)
          Implements org.xml.sax.ContentHandler.processingInstruction() Receive notification of a processing instruction.
 void setDocumentLocator(Locator locator)
          Implements org.xml.sax.ContentHandler.setDocumentLocator() Receive an object for locating the origin of SAX document events.
 void setResult(Result result)
          Implements javax.xml.transform.sax.TransformerHandler.setResult() Enables the user of the TransformerHandler to set the to set the Result for the transformation.
 void setSystemId(java.lang.String id)
          Implements javax.xml.transform.sax.TransformerHandler.setSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.
 void skippedEntity(java.lang.String name)
          Implements org.xml.sax.ContentHandler.skippedEntity() Receive notification of a skipped entity.
 void startCDATA()
          Implements org.xml.sax.ext.LexicalHandler.startCDATA() We do not handle this method, and the input is quietly ignored
 void startDocument()
          Implements org.xml.sax.ContentHandler.startDocument() Receive notification of the beginning of a document.
 void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
          Implements org.xml.sax.ext.LexicalHandler.startDTD() We do not handle this method, and the input is quietly ignored
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qname, Attributes attributes)
          Implements org.xml.sax.ContentHandler.startElement() Receive notification of the beginning of an element.
 void startEntity(java.lang.String name)
          Implements org.xml.sax.ext.LexicalHandler.startEntity() We do not handle this method, and the input is quietly ignored
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          Implements org.xml.sax.ContentHandler.startPrefixMapping() Begin the scope of a prefix-URI Namespace mapping.
 void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName)
          Implements org.xml.sax.DTDHandler.unparsedEntityDecl() End the scope of a prefix-URI Namespace mapping.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSystemId

public java.lang.String getSystemId()
Implements javax.xml.transform.sax.TransformerHandler.getSystemId() 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 setSystemId(String id)

setSystemId

public void setSystemId(java.lang.String id)
Implements javax.xml.transform.sax.TransformerHandler.setSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.
Specified by:
setSystemId in interface TransformerHandler
Parameters:
id - Base URI for this stylesheet

getTransformer

public Transformer getTransformer()
Implements javax.xml.transform.sax.TransformerHandler.getTransformer() Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.
Specified by:
getTransformer in interface TransformerHandler
Returns:
The Transformer object

setResult

public void setResult(Result result)
               throws java.lang.IllegalArgumentException
Implements javax.xml.transform.sax.TransformerHandler.setResult() 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
Throws:
java.lang.IllegalArgumentException - if result is invalid for some reason

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Implements org.xml.sax.ContentHandler.characters() Receive notification of character data.

startDocument

public void startDocument()
                   throws SAXException
Implements org.xml.sax.ContentHandler.startDocument() Receive notification of the beginning of a document.

endDocument

public void endDocument()
                 throws SAXException
Implements org.xml.sax.ContentHandler.endDocument() Receive notification of the end of a document.

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qname,
                         Attributes attributes)
                  throws SAXException
Implements org.xml.sax.ContentHandler.startElement() Receive notification of the beginning of an element.

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qname)
                throws SAXException
Implements org.xml.sax.ContentHandler.endElement() Receive notification of the end of an element.

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws SAXException
Implements org.xml.sax.ContentHandler.processingInstruction() Receive notification of a processing instruction.

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException
Implements org.xml.sax.ContentHandler.ignorableWhitespace() Receive notification of ignorable whitespace in element content. Similar to characters(char[], int, int).

setDocumentLocator

public void setDocumentLocator(Locator locator)
Implements org.xml.sax.ContentHandler.setDocumentLocator() Receive an object for locating the origin of SAX document events. We do not handle this method, and the input is quietly ignored

skippedEntity

public void skippedEntity(java.lang.String name)
Implements org.xml.sax.ContentHandler.skippedEntity() Receive notification of a skipped entity. We do not handle this method, and the input is quietly ignored

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws SAXException
Implements org.xml.sax.ContentHandler.startPrefixMapping() Begin the scope of a prefix-URI Namespace mapping.

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
                      throws SAXException
Implements org.xml.sax.ContentHandler.endPrefixMapping() End the scope of a prefix-URI Namespace mapping.

notationDecl

public void notationDecl(java.lang.String name,
                         java.lang.String publicId,
                         java.lang.String systemId)
Implements org.xml.sax.DTDHandler.notationDecl() End the scope of a prefix-URI Namespace mapping. We do not handle this method, and the input is quietly ignored.

unparsedEntityDecl

public void unparsedEntityDecl(java.lang.String name,
                               java.lang.String publicId,
                               java.lang.String systemId,
                               java.lang.String notationName)
                        throws SAXException
Implements org.xml.sax.DTDHandler.unparsedEntityDecl() End the scope of a prefix-URI Namespace mapping.

startDTD

public void startDTD(java.lang.String name,
                     java.lang.String publicId,
                     java.lang.String systemId)
Implements org.xml.sax.ext.LexicalHandler.startDTD() We do not handle this method, and the input is quietly ignored

endDTD

public void endDTD()
Implements org.xml.sax.ext.LexicalHandler.endDTD() We do not handle this method, and the input is quietly ignored

startEntity

public void startEntity(java.lang.String name)
Implements org.xml.sax.ext.LexicalHandler.startEntity() We do not handle this method, and the input is quietly ignored

endEntity

public void endEntity(java.lang.String name)
Implements org.xml.sax.ext.LexicalHandler.endEntity() We do not handle this method, and the input is quietly ignored

startCDATA

public void startCDATA()
Implements org.xml.sax.ext.LexicalHandler.startCDATA() We do not handle this method, and the input is quietly ignored

endCDATA

public void endCDATA()
Implements org.xml.sax.ext.LexicalHandler.endCDATA() We do not handle this method, and the input is quietly ignored

comment

public void comment(char[] ch,
                    int start,
                    int length)
Implements org.xml.sax.ext.LexicalHandler.comment() We do not handle this method, and the input is quietly ignored


Copyright © 2001 Apache XML Project. All Rights Reserved.