|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.result.ResultBuilder
A ResultBuilder takes care for the output of a XSLT transformation.
Constructor Summary | |
ResultBuilder(String uri)
Create a ResultBuilder. |
Method Summary | |
void |
addAttribute(String name,
String value)
|
abstract void |
addAttribute(String name,
String prefix,
String uri,
String value)
Add an attribute to the output. |
abstract void |
addComment(String value)
Add a comment to the output. |
abstract void |
addNamespace(String prefix,
String uri,
boolean test)
Add a namespace node to the output. |
abstract void |
addProcessingInstruction(String target,
String data)
Add a processing instruction to the output. |
abstract void |
addText(String text)
Add text to the output. |
abstract void |
addTextUnescaped(String text)
Add text to the output without escaping. |
void |
cleanup()
Cleanup any resources. |
protected void |
convertException(Exception e)
Convert a thrown exception to a XsltException. |
abstract void |
endDocument()
End the document output. |
abstract void |
endElement()
End an element output. |
abstract String |
getNamespacePrefix(String uri)
Return the current namespace prefix of the namespace with the given uri |
ResultBuilder |
getSubResultBuilder(String href,
OutputFormat outputFormat)
Create a ResultBuilder to output a subdocument. |
String |
getUri()
Return the document uri. |
abstract void |
startDocument(OutputFormat outputFormat)
Start the document output. |
void |
startElement(String name)
Start an element output. |
abstract void |
startElement(String namespaceUri,
String name,
NamespaceContext namespaceContext,
boolean isCDataSectionElement)
Start an element output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultBuilder(String uri)
uri
- the document uri.Method Detail |
public final String getUri()
public abstract void startDocument(OutputFormat outputFormat) throws XsltException
outputFormat
- the output format
XsltException
public abstract void endDocument() throws XsltException
XsltException
public void startElement(String name) throws XsltException
XsltException
public abstract void startElement(String namespaceUri, String name, NamespaceContext namespaceContext, boolean isCDataSectionElement) throws XsltException
namespaceUri
- the namespace of the element or null if it has nonename
- the element namenamespaceContext
- the namespace context of the element.
XsltException
public abstract void endElement() throws XsltException
XsltException
public abstract void addNamespace(String prefix, String uri, boolean test) throws XsltException
prefix
- 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.
XsltException
public abstract String getNamespacePrefix(String uri)
public abstract void addAttribute(String name, String prefix, String uri, String value) throws XsltException
name
- the qnameprefix
- the prefixuri
- the namespace urivalue
- the value
XsltException
public void addAttribute(String name, String value) throws XsltException
XsltException
public abstract void addText(String text) throws XsltException
XsltException
public abstract void addTextUnescaped(String text) throws XsltException
XsltException
public abstract void addComment(String value) throws XsltException
XsltException
public abstract void addProcessingInstruction(String target, String data) throws XsltException
XsltException
public ResultBuilder getSubResultBuilder(String href, OutputFormat outputFormat)
public void cleanup()
protected void convertException(Exception e) throws XsltException
XsltException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |