|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.trax.TransformerHandlerImpl
public class TransformerHandlerImpl
Implementation of a JAXP1.1 TransformerHandler
Field Summary | |
---|---|
private org.xml.sax.ext.DeclHandler |
_declHandler
|
private SAXImpl |
_dom
|
private boolean |
_done
|
private org.xml.sax.DTDHandler |
_dtdHandler
|
private org.xml.sax.ContentHandler |
_handler
|
private boolean |
_isIdentity
A flag indicating whether this transformer handler implements the identity transform. |
private org.xml.sax.ext.LexicalHandler |
_lexHandler
|
private org.xml.sax.Locator |
_locator
|
private javax.xml.transform.Result |
_result
|
private java.lang.String |
_systemId
|
private TransformerImpl |
_transformer
|
private AbstractTranslet |
_translet
|
Constructor Summary | |
---|---|
TransformerHandlerImpl(TransformerImpl transformer)
Cosntructor - pass in reference to a TransformerImpl object |
Method Summary | |
---|---|
void |
attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String valueDefault,
java.lang.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(java.lang.String name,
java.lang.String model)
Implements org.xml.sax.ext.DeclHandler.elementDecl() |
void |
endCDATA()
Implements org.xml.sax.ext.LexicalHandler.endCDATA() |
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() |
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() |
void |
endPrefixMapping(java.lang.String prefix)
Implements org.xml.sax.ContentHandler.endPrefixMapping() End the scope of a prefix-URI Namespace mapping. |
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl() |
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. |
javax.xml.transform.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(java.lang.String name,
java.lang.String value)
Implements org.xml.sax.ext.DeclHandler.externalEntityDecl() |
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
Implements org.xml.sax.DTDHandler.notationDecl() |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Implements org.xml.sax.ContentHandler.processingInstruction() Receive notification of a processing instruction. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
Implements org.xml.sax.ContentHandler.setDocumentLocator() Receive an object for locating the origin of SAX document events. |
void |
setResult(javax.xml.transform.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() |
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() |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qname,
org.xml.sax.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() |
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() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TransformerImpl _transformer
private AbstractTranslet _translet
private java.lang.String _systemId
private SAXImpl _dom
private org.xml.sax.ContentHandler _handler
private org.xml.sax.ext.LexicalHandler _lexHandler
private org.xml.sax.DTDHandler _dtdHandler
private org.xml.sax.ext.DeclHandler _declHandler
private javax.xml.transform.Result _result
private org.xml.sax.Locator _locator
private boolean _done
private boolean _isIdentity
Constructor Detail |
---|
public TransformerHandlerImpl(TransformerImpl transformer)
Method Detail |
---|
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.sax.TransformerHandler
public void setSystemId(java.lang.String id)
setSystemId
in interface javax.xml.transform.sax.TransformerHandler
id
- Base URI for this stylesheetpublic javax.xml.transform.Transformer getTransformer()
getTransformer
in interface javax.xml.transform.sax.TransformerHandler
public void setResult(javax.xml.transform.Result result) throws java.lang.IllegalArgumentException
setResult
in interface javax.xml.transform.sax.TransformerHandler
result
- A Result instance, should not be null
java.lang.IllegalArgumentException
- if result is invalid for some reasonpublic void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qname) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
startCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
comment
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
startDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
endDTD
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
startEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
endEntity
in interface org.xml.sax.ext.LexicalHandler
org.xml.sax.SAXException
public void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName) throws org.xml.sax.SAXException
unparsedEntityDecl
in interface org.xml.sax.DTDHandler
org.xml.sax.SAXException
public void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
notationDecl
in interface org.xml.sax.DTDHandler
org.xml.sax.SAXException
public void attributeDecl(java.lang.String eName, java.lang.String aName, java.lang.String type, java.lang.String valueDefault, java.lang.String value) throws org.xml.sax.SAXException
attributeDecl
in interface org.xml.sax.ext.DeclHandler
org.xml.sax.SAXException
public void elementDecl(java.lang.String name, java.lang.String model) throws org.xml.sax.SAXException
elementDecl
in interface org.xml.sax.ext.DeclHandler
org.xml.sax.SAXException
public void externalEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
externalEntityDecl
in interface org.xml.sax.ext.DeclHandler
org.xml.sax.SAXException
public void internalEntityDecl(java.lang.String name, java.lang.String value) throws org.xml.sax.SAXException
internalEntityDecl
in interface org.xml.sax.ext.DeclHandler
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |