org.apache.xalan.xsltc.trax

Class TransformerHandlerImpl

public class TransformerHandlerImpl extends 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
voidattributeDecl(String eName, String aName, String type, String valueDefault, String value)
Implements org.xml.sax.ext.DeclHandler.attributeDecl()
voidcharacters(char[] ch, int start, int length)
Implements org.xml.sax.ContentHandler.characters() Receive notification of character data.
voidcomment(char[] ch, int start, int length)
Implements org.xml.sax.ext.LexicalHandler.comment() Receieve notification of a comment
voidelementDecl(String name, String model)
Implements org.xml.sax.ext.DeclHandler.elementDecl()
voidendCDATA()
Implements org.xml.sax.ext.LexicalHandler.endCDATA()
voidendDocument()
Implements org.xml.sax.ContentHandler.endDocument() Receive notification of the end of a document.
voidendDTD()
Implements org.xml.sax.ext.LexicalHandler.endDTD()
voidendElement(String namespaceURI, String localName, String qname)
Implements org.xml.sax.ContentHandler.endElement() Receive notification of the end of an element.
voidendEntity(String name)
Implements org.xml.sax.ext.LexicalHandler.endEntity()
voidendPrefixMapping(String prefix)
Implements org.xml.sax.ContentHandler.endPrefixMapping() End the scope of a prefix-URI Namespace mapping.
voidexternalEntityDecl(String name, String publicId, String systemId)
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()
StringgetSystemId()
Implements javax.xml.transform.sax.TransformerHandler.getSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.
TransformergetTransformer()
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.
voidignorableWhitespace(char[] ch, int start, int length)
Implements org.xml.sax.ContentHandler.ignorableWhitespace() Receive notification of ignorable whitespace in element content.
voidinternalEntityDecl(String name, String value)
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()
voidnotationDecl(String name, String publicId, String systemId)
Implements org.xml.sax.DTDHandler.notationDecl()
voidprocessingInstruction(String target, String data)
Implements org.xml.sax.ContentHandler.processingInstruction() Receive notification of a processing instruction.
voidsetDocumentLocator(Locator locator)
Implements org.xml.sax.ContentHandler.setDocumentLocator() Receive an object for locating the origin of SAX document events.
voidsetResult(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.
voidsetSystemId(String id)
Implements javax.xml.transform.sax.TransformerHandler.setSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.
voidskippedEntity(String name)
Implements org.xml.sax.ContentHandler.skippedEntity() Receive notification of a skipped entity.
voidstartCDATA()
Implements org.xml.sax.ext.LexicalHandler.startCDATA()
voidstartDocument()
Implements org.xml.sax.ContentHandler.startDocument() Receive notification of the beginning of a document.
voidstartDTD(String name, String publicId, String systemId)
Implements org.xml.sax.ext.LexicalHandler.startDTD()
voidstartElement(String uri, String localName, String qname, Attributes attributes)
Implements org.xml.sax.ContentHandler.startElement() Receive notification of the beginning of an element.
voidstartEntity(String name)
Implements org.xml.sax.ext.LexicalHandler.startEntity()
voidstartPrefixMapping(String prefix, String uri)
Implements org.xml.sax.ContentHandler.startPrefixMapping() Begin the scope of a prefix-URI Namespace mapping.
voidunparsedEntityDecl(String name, String publicId, String systemId, String notationName)
Implements org.xml.sax.DTDHandler.unparsedEntityDecl()

Constructor Detail

TransformerHandlerImpl

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

Method Detail

attributeDecl

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

characters

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

comment

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

elementDecl

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

endCDATA

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

endDocument

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

endDTD

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

endElement

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

endEntity

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

endPrefixMapping

public void endPrefixMapping(String prefix)
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)
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)
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)
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()

notationDecl

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

processingInstruction

public void processingInstruction(String target, String data)
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)
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

Throws: IllegalArgumentException if result is invalid for some reason

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)
Implements org.xml.sax.ContentHandler.skippedEntity() Receive notification of a skipped entity.

startCDATA

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

startDocument

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

startDTD

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

startElement

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

startEntity

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

startPrefixMapping

public void startPrefixMapping(String prefix, String uri)
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)
Implements org.xml.sax.DTDHandler.unparsedEntityDecl()
Copyright B) 2006 Apache XML Project. All Rights Reserved.