|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xalan.xsltc.trax.TransformerHandlerImpl
Implementation of a JAXP1.1 TransformerHandler
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 |
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(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 |
startDocument()
Implements org.xml.sax.ContentHandler.startDocument() Receive notification of the beginning of a document. |
void |
startDTD(String name,
String publicId,
String systemId)
Implements org.xml.sax.ext.LexicalHandler.startDTD() |
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() |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransformerHandlerImpl(TransformerImpl transformer)
Method Detail |
public String getSystemId()
getSystemId
in interface TransformerHandler
public void setSystemId(String id)
setSystemId
in interface TransformerHandler
id
- Base URI for this stylesheetpublic Transformer getTransformer()
getTransformer
in interface TransformerHandler
public void setResult(Result result) throws IllegalArgumentException
setResult
in interface TransformerHandler
result
- A Result instance, should not be null
IllegalArgumentException
- if result is invalid for some reasonpublic void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.ignorableWhitespace(char[], int, int)
,
Locator
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.endDocument()
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.startDocument()
public void startElement(String uri, String localName, String qname, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
uri
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qname
- The qualified name (with prefix), or the
empty string if qualified names are not available.attributes
- The attributes attached to the element. If
there are no attributes, it shall be an empty
Attributes object.
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
,
Attributes
public void endElement(String namespaceURI, String localName, String qname) throws SAXException
endElement
in interface ContentHandler
namespaceURI
- The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.localName
- The local name (without prefix), or the
empty string if Namespace processing is not being
performed.qname
- The qualified XML 1.0 name (with prefix), or the
empty string if qualified names are not available.
SAXException
- Any SAX exception, possibly
wrapping another exception.public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
target
- The processing instruction target.data
- The processing instruction data, or null if
none was supplied. The data does not include any
whitespace separating it from the target.
SAXException
- Any SAX exception, possibly
wrapping another exception.public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
- The application may raise an exception.LexicalHandler.endCDATA()
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
- The application may raise an exception.LexicalHandler.startCDATA()
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
ch
- An array holding the characters in the comment.start
- The starting position in the array.length
- The number of characters to use from the array.
SAXException
- The application may raise an exception.public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.characters(char[], int, int)
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- An object that can return the location of
any SAX document event.Locator
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
name
- The name of the skipped entity. If it is a
parameter entity, the name will begin with '%', and if
it is the external DTD subset, it will be the string
"[dtd]".
SAXException
- Any SAX exception, possibly
wrapping another exception.public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
prefix
- The Namespace prefix being declared.
An empty string is used for the default element namespace,
which has no prefix.uri
- The Namespace URI the prefix is mapped to.
SAXException
- The client may throw
an exception during processing.ContentHandler.endPrefixMapping(java.lang.String)
,
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
prefix
- The prefix that was being mapping.
This is the empty string when a default mapping scope ends.
SAXException
- The client may throw
an exception during processing.ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
,
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
name
- The document type name.publicId
- The declared public identifier for the
external DTD subset, or null if none was declared.systemId
- The declared system identifier for the
external DTD subset, or null if none was declared.
(Note that this is not resolved against the document
base URI.)
SAXException
- The application may raise an
exception.LexicalHandler.endDTD()
,
LexicalHandler.startEntity(java.lang.String)
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
- The application may raise an exception.LexicalHandler.startDTD(java.lang.String, java.lang.String, java.lang.String)
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
name
- The name of the entity. If it is a parameter
entity, the name will begin with '%', and if it is the
external DTD subset, it will be "[dtd]".
SAXException
- The application may raise an exception.LexicalHandler.endEntity(java.lang.String)
,
DeclHandler.internalEntityDecl(java.lang.String, java.lang.String)
,
DeclHandler.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
name
- The name of the entity that is ending.
SAXException
- The application may raise an exception.LexicalHandler.startEntity(java.lang.String)
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
unparsedEntityDecl
in interface DTDHandler
name
- The unparsed entity's name.publicId
- The entity's public identifier, or null if none
was given.systemId
- The entity's system identifier.notationName
- The name of the associated notation.
SAXException
- Any SAX exception, possibly
wrapping another exception.DTDHandler.notationDecl(java.lang.String, java.lang.String, java.lang.String)
,
Attributes
public void notationDecl(String name, String publicId, String systemId) throws SAXException
notationDecl
in interface DTDHandler
name
- The notation name.publicId
- The notation's public identifier, or null if
none was given.systemId
- The notation's system identifier, or null if
none was given.
SAXException
- Any SAX exception, possibly
wrapping another exception.DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
Attributes
public void attributeDecl(String eName, String aName, String type, String valueDefault, String value) throws SAXException
attributeDecl
in interface DeclHandler
eName
- The name of the associated element.aName
- The name of the attribute.type
- A string representing the attribute type.valueDefault
- A string representing the attribute defaulting mode
("#IMPLIED", "#REQUIRED", or "#FIXED") or null if
none of these applies.value
- A string representing the attribute's default value,
or null if there is none.
SAXException
- The application may raise an exception.public void elementDecl(String name, String model) throws SAXException
elementDecl
in interface DeclHandler
name
- The element type name.model
- The content model as a normalized string.
SAXException
- The application may raise an exception.public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
externalEntityDecl
in interface DeclHandler
name
- The name of the entity. If it is a parameter
entity, the name will begin with '%'.publicId
- The declared public identifier of the entity, or
null if none was declared.systemId
- The declared system identifier of the entity.
SAXException
- The application may raise an exception.DeclHandler.internalEntityDecl(java.lang.String, java.lang.String)
,
DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void internalEntityDecl(String name, String value) throws SAXException
internalEntityDecl
in interface DeclHandler
name
- The name of the entity. If it is a parameter
entity, the name will begin with '%'.value
- The replacement text of the entity.
SAXException
- The application may raise an exception.DeclHandler.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
,
DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |