org.apache.xalan.xsltc.trax

Class TransformerHandlerImpl

Implemented Interfaces:
DeclHandler, TransformerHandler

public class TransformerHandlerImpl
extends java.lang.Object
implements TransformerHandler, DeclHandler

Implementation of a JAXP1.1 TransformerHandler
Author:
Morten Jorgensen

Constructor Summary

TransformerHandlerImpl(TransformerImpl transformer)
Cosntructor - pass in reference to a TransformerImpl object

Method Summary

void
attributeDecl(String eName, String aName, String type, String valueDefault, String value)
Implements org.xml.sax.ext.DeclHandler.attributeDecl()
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() Receieve notification of a comment
void
elementDecl(String name, String model)
Implements org.xml.sax.ext.DeclHandler.elementDecl()
void
endCDATA()
Implements org.xml.sax.ext.LexicalHandler.endCDATA()
void
endDTD()
Implements org.xml.sax.ext.LexicalHandler.endDTD()
void
endDocument()
Implements org.xml.sax.ContentHandler.endDocument() Receive notification of the end of a document.
void
endElement(String namespaceURI, String localName, String qname)
Implements org.xml.sax.ContentHandler.endElement() Receive notification of the end of an element.
void
endEntity(String name)
Implements org.xml.sax.ext.LexicalHandler.endEntity()
void
endPrefixMapping(String prefix)
Implements org.xml.sax.ContentHandler.endPrefixMapping() End the scope of a prefix-URI Namespace mapping.
void
externalEntityDecl(String name, String publicId, String systemId)
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()
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
internalEntityDecl(String name, String value)
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()
void
notationDecl(String name, String publicId, String systemId)
Implements org.xml.sax.DTDHandler.notationDecl()
void
processingInstruction(String target, 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(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(String name)
Implements org.xml.sax.ContentHandler.skippedEntity() Receive notification of a skipped entity.
void
startCDATA()
Implements org.xml.sax.ext.LexicalHandler.startCDATA()
void
startDTD(String name, String publicId, String systemId)
Implements org.xml.sax.ext.LexicalHandler.startDTD()
void
startDocument()
Implements org.xml.sax.ContentHandler.startDocument() Receive notification of the beginning of a document.
void
startElement(String uri, String localName, String qname, Attributes attributes)
Implements org.xml.sax.ContentHandler.startElement() Receive notification of the beginning of an element.
void
startEntity(String name)
Implements org.xml.sax.ext.LexicalHandler.startEntity()
void
startPrefixMapping(String prefix, String uri)
Implements org.xml.sax.ContentHandler.startPrefixMapping() Begin the scope of a prefix-URI Namespace mapping.
void
unparsedEntityDecl(String name, String publicId, String systemId, String notationName)
Implements org.xml.sax.DTDHandler.unparsedEntityDecl()

Constructor Details

TransformerHandlerImpl

public TransformerHandlerImpl(TransformerImpl transformer)
Cosntructor - pass in reference to a TransformerImpl object

Method Details

attributeDecl

public void attributeDecl(String eName,
                          String aName,
                          String type,
                          String valueDefault,
                          String value)
            throws SAXException
Implements org.xml.sax.ext.DeclHandler.attributeDecl()

characters

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

comment

public void comment(char[] ch,
                    int start,
                    int length)
            throws SAXException
Implements org.xml.sax.ext.LexicalHandler.comment() Receieve notification of a comment

elementDecl

public void elementDecl(String name,
                        String model)
            throws SAXException
Implements org.xml.sax.ext.DeclHandler.elementDecl()

endCDATA

public void endCDATA()
            throws SAXException
Implements org.xml.sax.ext.LexicalHandler.endCDATA()

endDTD

public void endDTD()
            throws SAXException
Implements org.xml.sax.ext.LexicalHandler.endDTD()

endDocument

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

endElement

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

endEntity

public void endEntity(String name)
            throws SAXException
Implements org.xml.sax.ext.LexicalHandler.endEntity()

endPrefixMapping

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

externalEntityDecl

public void externalEntityDecl(String name,
                               String publicId,
                               String systemId)
            throws SAXException
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()

getSystemId

public String getSystemId()
Implements javax.xml.transform.sax.TransformerHandler.getSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.
Returns:
The systemID that was set with setSystemId(String id)

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.
Returns:
The Transformer object

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).

internalEntityDecl

public void internalEntityDecl(String name,
                               String value)
            throws SAXException
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()

notationDecl

public void notationDecl(String name,
                         String publicId,
                         String systemId)
            throws SAXException
Implements org.xml.sax.DTDHandler.notationDecl()

processingInstruction

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

setDocumentLocator

public void setDocumentLocator(Locator locator)
Implements org.xml.sax.ContentHandler.setDocumentLocator() Receive an object for locating the origin of SAX document events.

setResult

public void setResult(Result result)
            throws IllegalArgumentException
Implements javax.xml.transform.sax.TransformerHandler.setResult() Enables the user of the TransformerHandler to set the to set the Result for the transformation.
Parameters:
result - A Result instance, should not be null

setSystemId

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

skippedEntity

public void skippedEntity(String name)
            throws SAXException
Implements org.xml.sax.ContentHandler.skippedEntity() Receive notification of a skipped entity.

startCDATA

public void startCDATA()
            throws SAXException
Implements org.xml.sax.ext.LexicalHandler.startCDATA()

startDTD

public void startDTD(String name,
                     String publicId,
                     String systemId)
            throws SAXException
Implements org.xml.sax.ext.LexicalHandler.startDTD()

startDocument

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

startElement

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

startEntity

public void startEntity(String name)
            throws SAXException
Implements org.xml.sax.ext.LexicalHandler.startEntity()

startPrefixMapping

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

unparsedEntityDecl

public void unparsedEntityDecl(String name,
                               String publicId,
                               String systemId,
                               String notationName)
            throws SAXException
Implements org.xml.sax.DTDHandler.unparsedEntityDecl()

Copyright B) 2005 Apache XML Project. All Rights Reserved.