|
|||||||||||
| 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.ResultTreeRecorder
A ResultBuilder which records its method calls and can write them to another ResultBuilder.
| Constructor Summary | |
ResultTreeRecorder()
|
|
| 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 value)
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 without escaping. |
void |
endDocument()
End the document output. |
void |
endElement()
End an element output. |
String |
getNamespacePrefix(String uri)
Return the current namespace prefix of the namespace with the given uri |
String |
getStringContent()
|
ResultBuilder |
getSubResultBuilder(String uri,
OutputFormat format)
Create a ResultBuilder to output a subdocument. |
boolean |
isEmpty()
|
void |
startDocument(OutputFormat outputFormat)
Start the document output. |
void |
startElement(String namespaceUri,
String name,
NamespaceContext namespaceContext,
boolean isCDataSectionElement)
Start an element output. |
void |
writeTo(ResultBuilder builder)
Write the recorded content to another ResultBuilder. |
| Methods inherited from class jd.xml.xslt.result.ResultBuilder |
addAttribute, cleanup, convertException, getUri, startElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResultTreeRecorder()
| Method Detail |
public void startDocument(OutputFormat outputFormat)
ResultBuilder
startDocument in class ResultBuilderoutputFormat - the output formatpublic void endDocument()
ResultBuilder
endDocument in class ResultBuilder
public void startElement(String namespaceUri,
String name,
NamespaceContext namespaceContext,
boolean isCDataSectionElement)
ResultBuilder
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()
ResultBuilder
endElement in class ResultBuilder
public void addAttribute(String name,
String prefix,
String uri,
String value)
ResultBuilder
addAttribute in class ResultBuildername - the qnameprefix - the prefixuri - the namespace urivalue - the value
public void addNamespace(String prefix,
String uri,
boolean test)
ResultBuilder
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)
ResultBuilder
getNamespacePrefix in class ResultBuilderpublic void addComment(String value)
ResultBuilder
addComment in class ResultBuilder
public void addProcessingInstruction(String target,
String value)
ResultBuilder
addProcessingInstruction in class ResultBuilderpublic void addText(String text)
ResultBuilder
addText in class ResultBuilderpublic void addTextUnescaped(String text)
ResultBuilder
addTextUnescaped in class ResultBuilderpublic boolean isEmpty()
public String getStringContent()
public void writeTo(ResultBuilder builder)
public ResultBuilder getSubResultBuilder(String uri,
OutputFormat format)
ResultBuilder
getSubResultBuilder in class ResultBuilder
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||