public class XmlPrettyPrinter extends AbstractTransformer
Modifier and Type | Field and Description |
---|---|
protected org.dom4j.io.OutputFormat |
outputFormat |
encoding, endpoint, logger, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
XmlPrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
protected Object |
doTransform(Object src,
String outputEncoding) |
String |
getEncoding()
Return the encoding returned by the transformer (if any).
|
boolean |
getIndentEnabled() |
int |
getIndentSize() |
String |
getIndentString() |
String |
getLineSeparator() |
int |
getNewLineAfterNTags() |
org.dom4j.io.OutputFormat |
getOutputFormat() |
boolean |
isExpandEmptyElements() |
boolean |
isNewLineAfterDeclaration() |
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 |
setNewLineAfterDeclaration(boolean newline) |
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) |
dispose, generateTransformerName, getAnnotation, getAnnotations, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, initialise, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setAnnotations, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, transform, unregisterSourceType, unregisterSourceType
public org.dom4j.io.OutputFormat getOutputFormat()
protected Object doTransform(Object src, String outputEncoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
public String getEncoding()
Transformer
getEncoding
in interface Transformer
getEncoding
in class AbstractTransformer
OutputFormat.getEncoding()
public void setEncoding(String encoding)
setEncoding
in class AbstractTransformer
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 isNewLineAfterDeclaration()
OutputFormat.isNewLineAfterDeclaration()
public void setNewLineAfterDeclaration(boolean newline)
OutputFormat.setNewLineAfterDeclaration(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–2015 MuleSoft, Inc.. All rights reserved.