Package org.apache.velocity.anakia
Class OutputWrapper
- java.lang.Object
-
- org.jdom.output.XMLOutputter
-
- org.apache.velocity.anakia.OutputWrapper
-
- All Implemented Interfaces:
java.lang.Cloneable
public class OutputWrapper extends org.jdom.output.XMLOutputter
This class extends XMLOutputter in order to provide a way to walk an Element tree into a String.- Version:
- $Id: OutputWrapper.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Jon S. Stevens, Sam Ruby
-
-
Constructor Summary
Constructors Constructor Description OutputWrapper()
Empty constructorOutputWrapper(org.jdom.output.Format f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
outputString(org.jdom.Element element, boolean strip)
This method walks an Element tree into a String.-
Methods inherited from class org.jdom.output.XMLOutputter
clone, escapeAttributeEntities, escapeElementEntities, getFormat, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, outputElementContent, outputElementContent, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, printAttributes, printCDATA, printComment, printDeclaration, printDocType, printElement, printEntityRef, printProcessingInstruction, printText, setFormat, toString
-
-
-
-
Method Detail
-
outputString
public java.lang.String outputString(org.jdom.Element element, boolean strip)
This method walks an Element tree into a String. The cool thing about it is that it will strip off the first Element. For example, if you have:<td> foo <strong>bar</strong> ack </td>
It will outputfoo <strong>bar</strong> ack </td>
- Parameters:
element
-strip
-- Returns:
- The output string.
-
-