jd.xml.xslt.result
Class TextResultBuilder

java.lang.Object
  extended byjd.xml.xslt.result.ResultBuilder
      extended byjd.xml.xslt.result.TextResultBuilder

public class TextResultBuilder
extends ResultBuilder

A ResultBuilder for the "text" output method.


Constructor Summary
TextResultBuilder(XsltResult result)
          Create a TextResultBuilder.
 
Method Summary
 void addAttribute(String name, String prefix, String uri, String value)
          Does nothing.
 void addComment(String value)
          Does nothing.
 void addNamespace(String prefix, String uri, boolean test)
          Does nothing.
 void addProcessingInstruction(String target, String data)
          Does nothing.
 void addText(String text)
          Adds the text as it is to the output.
 void addTextUnescaped(String text)
          Adds the text to the output.
 void cleanup()
          Cleanup any resources.
 void endDocument()
          End the document output.
 void endElement()
          Does nothing.
 String getNamespacePrefix(String uri)
          Return null.
 void startDocument(OutputFormat outputFormat)
          Start the document.
 void startElement(String namespaceUri, String name, NamespaceContext namespaceContext, boolean isCDataSectionElement)
          Does nothing.
 
Methods inherited from class jd.xml.xslt.result.ResultBuilder
addAttribute, convertException, getSubResultBuilder, getUri, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextResultBuilder

public TextResultBuilder(XsltResult result)
Create a TextResultBuilder.

Method Detail

startDocument

public void startDocument(OutputFormat outputFormat)
Start the document.

Specified by:
startDocument in class ResultBuilder
Parameters:
outputFormat - the output format

endDocument

public void endDocument()
End the document output.

Specified by:
endDocument in class ResultBuilder

startElement

public void startElement(String namespaceUri,
                         String name,
                         NamespaceContext namespaceContext,
                         boolean isCDataSectionElement)
Does nothing.

Specified by:
startElement in class ResultBuilder
Parameters:
namespaceUri - the namespace of the element or null if it has none
name - the element name
namespaceContext - the namespace context of the element.

endElement

public void endElement()
Does nothing.

Specified by:
endElement in class ResultBuilder

addNamespace

public void addNamespace(String prefix,
                         String uri,
                         boolean test)
Does nothing.

Specified by:
addNamespace in class ResultBuilder
Parameters:
prefix - the namespace prefix
uri - the namespace uri
test - flag if it should be tested that the namespace can be inserted in the output tree at this place.

getNamespacePrefix

public String getNamespacePrefix(String uri)
Return null.

Specified by:
getNamespacePrefix in class ResultBuilder
Returns:
the prefix or null if no such namespace is declared

addAttribute

public void addAttribute(String name,
                         String prefix,
                         String uri,
                         String value)
Does nothing.

Specified by:
addAttribute in class ResultBuilder
Parameters:
name - the qname
prefix - the prefix
uri - the namespace uri
value - the value

addComment

public void addComment(String value)
Does nothing.

Specified by:
addComment in class ResultBuilder

addProcessingInstruction

public void addProcessingInstruction(String target,
                                     String data)
Does nothing.

Specified by:
addProcessingInstruction in class ResultBuilder

addText

public void addText(String text)
Adds the text as it is to the output.

Specified by:
addText in class ResultBuilder

addTextUnescaped

public void addTextUnescaped(String text)
Adds the text to the output.

Specified by:
addTextUnescaped in class ResultBuilder

cleanup

public void cleanup()
Description copied from class: ResultBuilder
Cleanup any resources.

Overrides:
cleanup in class ResultBuilder