Package org.apache.xalan.xsltc.trax
Class TransformerHandlerImpl
java.lang.Object
org.apache.xalan.xsltc.trax.TransformerHandlerImpl
- All Implemented Interfaces:
TransformerHandler,ContentHandler,DTDHandler,DeclHandler,LexicalHandler
Implementation of a JAXP1.1 TransformerHandler
- Author:
- Morten Jorgensen
-
Constructor Summary
ConstructorsConstructorDescriptionTransformerHandlerImpl(TransformerImpl transformer) Cosntructor - pass in reference to a TransformerImpl object -
Method Summary
Modifier and TypeMethodDescriptionvoidImplements 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 commentvoidelementDecl(String name, String model) Implements org.xml.sax.ext.DeclHandler.elementDecl()voidendCDATA()Implements org.xml.sax.ext.LexicalHandler.endCDATA()voidImplements 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.voidImplements 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()Implements javax.xml.transform.sax.TransformerHandler.getSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.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.voidImplements 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.voidImplements org.xml.sax.ext.LexicalHandler.startCDATA()voidImplements org.xml.sax.ContentHandler.startDocument() Receive notification of the beginning of a document.voidImplements 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()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
TransformerHandlerImpl
Cosntructor - pass in reference to a TransformerImpl object
-
-
Method Details
-
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:
getSystemIdin interfaceTransformerHandler- Returns:
- The systemID that was set with setSystemId(String id)
-
setSystemId
Implements javax.xml.transform.sax.TransformerHandler.setSystemId() Get the base ID (URI or system ID) from where relative URLs will be resolved.- Specified by:
setSystemIdin interfaceTransformerHandler- Parameters:
id- Base URI for this stylesheet
-
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:
getTransformerin interfaceTransformerHandler- Returns:
- The Transformer object
-
setResult
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:
setResultin interfaceTransformerHandler- Parameters:
result- A Result instance, should not be null- Throws:
IllegalArgumentException- if result is invalid for some reason
-
characters
Implements org.xml.sax.ContentHandler.characters() Receive notification of character data.- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
startDocument
Implements org.xml.sax.ContentHandler.startDocument() Receive notification of the beginning of a document.- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
Implements org.xml.sax.ContentHandler.endDocument() Receive notification of the end of a document.- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
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.- Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
Implements org.xml.sax.ContentHandler.endElement() Receive notification of the end of an element.- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
processingInstruction
Implements org.xml.sax.ContentHandler.processingInstruction() Receive notification of a processing instruction.- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
startCDATA
Implements org.xml.sax.ext.LexicalHandler.startCDATA()- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
Implements org.xml.sax.ext.LexicalHandler.endCDATA()- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
Implements org.xml.sax.ext.LexicalHandler.comment() Receieve notification of a comment- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
ignorableWhitespace
Implements org.xml.sax.ContentHandler.ignorableWhitespace() Receive notification of ignorable whitespace in element content. Similar to characters(char[], int, int).- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
Implements org.xml.sax.ContentHandler.setDocumentLocator() Receive an object for locating the origin of SAX document events.- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
Implements org.xml.sax.ContentHandler.skippedEntity() Receive notification of a skipped entity.- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
Implements org.xml.sax.ContentHandler.startPrefixMapping() Begin the scope of a prefix-URI Namespace mapping.- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
Implements org.xml.sax.ContentHandler.endPrefixMapping() End the scope of a prefix-URI Namespace mapping.- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
startDTD
Implements org.xml.sax.ext.LexicalHandler.startDTD()- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
Implements org.xml.sax.ext.LexicalHandler.endDTD()- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
Implements org.xml.sax.ext.LexicalHandler.startEntity()- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
Implements org.xml.sax.ext.LexicalHandler.endEntity()- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException Implements org.xml.sax.DTDHandler.unparsedEntityDecl()- Specified by:
unparsedEntityDeclin interfaceDTDHandler- Throws:
SAXException
-
notationDecl
Implements org.xml.sax.DTDHandler.notationDecl()- Specified by:
notationDeclin interfaceDTDHandler- Throws:
SAXException
-
attributeDecl
public void attributeDecl(String eName, String aName, String type, String valueDefault, String value) throws SAXException Implements org.xml.sax.ext.DeclHandler.attributeDecl()- Specified by:
attributeDeclin interfaceDeclHandler- Throws:
SAXException
-
elementDecl
Implements org.xml.sax.ext.DeclHandler.elementDecl()- Specified by:
elementDeclin interfaceDeclHandler- Throws:
SAXException
-
externalEntityDecl
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()- Specified by:
externalEntityDeclin interfaceDeclHandler- Throws:
SAXException
-
internalEntityDecl
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl()- Specified by:
internalEntityDeclin interfaceDeclHandler- Throws:
SAXException
-