public class XmlPrettyPrinter extends AbstractTransformer
Modifier and Type | Field and Description |
---|---|
protected org.dom4j.io.OutputFormat |
outputFormat |
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
PHASE_NAME
Constructor and Description |
---|
XmlPrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
protected Object |
doTransform(Object src,
String encoding) |
String |
getEncoding() |
boolean |
getIndentEnabled() |
int |
getIndentSize() |
String |
getIndentString() |
String |
getLineSeparator() |
int |
getNewLineAfterNTags() |
org.dom4j.io.OutputFormat |
getOutputFormat() |
boolean |
isExpandEmptyElements() |
boolean |
isNewlines() |
boolean |
isOmitEncoding() |
boolean |
isPadText() |
boolean |
isSuppressDeclaration() |
boolean |
isTrimText() |
boolean |
isXHTML() |
void |
setEncoding(String encoding) |
void |
setExpandEmptyElements(boolean expandEmptyElements) |
void |
setIndentEnabled(boolean doIndent) |
void |
setIndentSize(int indentSize) |
void |
setIndentString(String indentString) |
void |
setLineSeparator(String separator) |
void |
setNewLineAfterNTags(int tagCount) |
void |
setNewlines(boolean newlines) |
void |
setOmitEncoding(boolean omitEncoding) |
void |
setPadText(boolean padText) |
void |
setSuppressDeclaration(boolean suppressDeclaration) |
void |
setTrimText(boolean trimText) |
void |
setXHTML(boolean xhtml) |
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
public org.dom4j.io.OutputFormat getOutputFormat()
protected Object doTransform(Object src, String encoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
public String getEncoding()
OutputFormat.getEncoding()
public void setEncoding(String encoding)
OutputFormat.setEncoding(String)
public boolean getIndentEnabled()
OutputFormat.getIndent()
public void setIndentEnabled(boolean doIndent)
OutputFormat.setIndent(boolean)
public String getIndentString()
OutputFormat.getIndent()
public void setIndentString(String indentString)
OutputFormat.setIndent(boolean)
public int getIndentSize()
OutputFormat.setIndentSize(int)
public void setIndentSize(int indentSize)
OutputFormat.setIndentSize(int)
public String getLineSeparator()
OutputFormat.getLineSeparator()
public void setLineSeparator(String separator)
OutputFormat.setLineSeparator(String)
public int getNewLineAfterNTags()
OutputFormat.getNewLineAfterNTags()
public void setNewLineAfterNTags(int tagCount)
OutputFormat.setNewLineAfterNTags(int)
public boolean isExpandEmptyElements()
OutputFormat.isExpandEmptyElements()
public void setExpandEmptyElements(boolean expandEmptyElements)
OutputFormat.setExpandEmptyElements(boolean)
public boolean isNewlines()
OutputFormat.isNewlines()
public void setNewlines(boolean newlines)
OutputFormat.setNewlines(boolean)
public boolean isOmitEncoding()
OutputFormat.isOmitEncoding()
public void setOmitEncoding(boolean omitEncoding)
OutputFormat.setOmitEncoding(boolean)
public boolean isPadText()
OutputFormat.getEncoding()
public void setPadText(boolean padText)
OutputFormat.getEncoding()
public boolean isSuppressDeclaration()
OutputFormat.getEncoding()
public void setSuppressDeclaration(boolean suppressDeclaration)
OutputFormat.getEncoding()
public boolean isTrimText()
OutputFormat.isTrimText()
public void setTrimText(boolean trimText)
OutputFormat.setTrimText(boolean)
public boolean isXHTML()
OutputFormat.isXHTML()
public void setXHTML(boolean xhtml)
OutputFormat.setXHTML(boolean)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.