|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xslt.result.ResultBuilder
jd.xml.xslt.result.SaxResultBuilder
A SaxResultBuilder feeds the output into a Sax ContentHandler.
| Constructor Summary | |
SaxResultBuilder(String uri,
ContentHandler contentHandler)
Create a SaxResultBuilder. |
|
SaxResultBuilder(String uri,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Create a SaxResultBuilder. |
|
| Method Summary | |
void |
addAttribute(String name,
String prefix,
String uri,
String value)
Add an attribute to the output. |
void |
addComment(String value)
Add a comment to the output. |
void |
addNamespace(String prefix,
String uri,
boolean test)
Add a namespace node to the output. |
void |
addProcessingInstruction(String target,
String data)
Add a processing instruction to the output. |
void |
addText(String text)
Add text to the output. |
void |
addTextUnescaped(String text)
Add text to the output. |
void |
endDocument()
End the document output. |
void |
endElement()
End an element output. |
ContentHandler |
getContentHandler()
Return the ContentHandler. |
String |
getNamespacePrefix(String uri)
Return the current namespace prefix of the namespace with the given uri |
void |
startDocument(OutputFormat outputFormat)
Start the document. |
void |
startElement(String namespaceUri,
String name,
NamespaceContext namespaceContext,
boolean isCDataSectionElement)
Start an element output. |
| Methods inherited from class jd.xml.xslt.result.ResultBuilder |
addAttribute, cleanup, convertException, getSubResultBuilder, getUri, startElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SaxResultBuilder(String uri,
ContentHandler contentHandler)
uri - the document uri.contentHandler - the contentHandler
public SaxResultBuilder(String uri,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
uri - the document uri.contentHandler - the contentHandlerlexicalHandler - the lexicalHandler. Can be null.| Method Detail |
public ContentHandler getContentHandler()
public void startDocument(OutputFormat outputFormat)
startDocument in class ResultBuilderoutputFormat - the output format
public void endDocument()
throws XsltException
endDocument in class ResultBuilderXsltException
public void startElement(String namespaceUri,
String name,
NamespaceContext namespaceContext,
boolean isCDataSectionElement)
startElement in class ResultBuildernamespaceUri - the namespace of the element or null if it has nonename - the element namenamespaceContext - the namespace context of the element.
public void endElement()
throws XsltException
endElement in class ResultBuilderXsltException
public void addNamespace(String prefix,
String uri,
boolean test)
addNamespace in class ResultBuilderprefix - the namespace prefixuri - the namespace uritest - flag if it should be tested that the namespace can be inserted
in the output tree at this place.public String getNamespacePrefix(String uri)
getNamespacePrefix in class ResultBuilder
public void addAttribute(String name,
String prefix,
String uri,
String value)
throws XsltException
addAttribute in class ResultBuildername - the qnameprefix - the prefixuri - the namespace urivalue - the value
XsltExceptionpublic void addText(String text)
addText in class ResultBuilderpublic void addTextUnescaped(String text)
addTextUnescaped in class ResultBuilder
public void addComment(String value)
throws XsltException
addComment in class ResultBuilderXsltException
public void addProcessingInstruction(String target,
String data)
throws XsltException
addProcessingInstruction in class ResultBuilderXsltException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||