org.mule.module.xml.transformer
Class XmlPrettyPrinter
java.lang.Object
org.mule.transformer.AbstractTransformer
org.mule.module.xml.transformer.XmlPrettyPrinter
- All Implemented Interfaces:
- AnnotatedObject, MuleContextAware, Disposable, Initialisable, NameableObject, NamedObject, MessageProcessor, Transformer, EndpointAware
public class XmlPrettyPrinter
- extends AbstractTransformer
Field Summary |
protected org.dom4j.io.OutputFormat |
outputFormat
|
Methods inherited from class org.mule.transformer.AbstractTransformer |
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 |
outputFormat
protected org.dom4j.io.OutputFormat outputFormat
XmlPrettyPrinter
public XmlPrettyPrinter()
getOutputFormat
public org.dom4j.io.OutputFormat getOutputFormat()
doTransform
protected Object doTransform(Object src,
String outputEncoding)
throws TransformerException
- Specified by:
doTransform
in class AbstractTransformer
- Throws:
TransformerException
getEncoding
public String getEncoding()
- Description copied from interface:
Transformer
- Return the encoding returned by the transformer (if any).
- Specified by:
getEncoding
in interface Transformer
- Overrides:
getEncoding
in class AbstractTransformer
- See Also:
OutputFormat.getEncoding()
setEncoding
public void setEncoding(String encoding)
- Overrides:
setEncoding
in class AbstractTransformer
- See Also:
OutputFormat.setEncoding(String)
getIndentEnabled
public boolean getIndentEnabled()
- See Also:
OutputFormat.getIndent()
setIndentEnabled
public void setIndentEnabled(boolean doIndent)
- See Also:
OutputFormat.setIndent(boolean)
getIndentString
public String getIndentString()
- See Also:
OutputFormat.getIndent()
setIndentString
public void setIndentString(String indentString)
- See Also:
OutputFormat.setIndent(boolean)
getIndentSize
public int getIndentSize()
- See Also:
OutputFormat.setIndentSize(int)
setIndentSize
public void setIndentSize(int indentSize)
- See Also:
OutputFormat.setIndentSize(int)
getLineSeparator
public String getLineSeparator()
- See Also:
OutputFormat.getLineSeparator()
setLineSeparator
public void setLineSeparator(String separator)
- See Also:
OutputFormat.setLineSeparator(String)
getNewLineAfterNTags
public int getNewLineAfterNTags()
- See Also:
OutputFormat.getNewLineAfterNTags()
setNewLineAfterNTags
public void setNewLineAfterNTags(int tagCount)
- See Also:
OutputFormat.setNewLineAfterNTags(int)
isExpandEmptyElements
public boolean isExpandEmptyElements()
- See Also:
OutputFormat.isExpandEmptyElements()
setExpandEmptyElements
public void setExpandEmptyElements(boolean expandEmptyElements)
- See Also:
OutputFormat.setExpandEmptyElements(boolean)
isNewlines
public boolean isNewlines()
- See Also:
OutputFormat.isNewlines()
setNewlines
public void setNewlines(boolean newlines)
- See Also:
OutputFormat.setNewlines(boolean)
isNewLineAfterDeclaration
public boolean isNewLineAfterDeclaration()
- See Also:
OutputFormat.isNewLineAfterDeclaration()
setNewLineAfterDeclaration
public void setNewLineAfterDeclaration(boolean newline)
- See Also:
OutputFormat.setNewLineAfterDeclaration(boolean)
isOmitEncoding
public boolean isOmitEncoding()
- See Also:
OutputFormat.isOmitEncoding()
setOmitEncoding
public void setOmitEncoding(boolean omitEncoding)
- See Also:
OutputFormat.setOmitEncoding(boolean)
isPadText
public boolean isPadText()
- See Also:
OutputFormat.getEncoding()
setPadText
public void setPadText(boolean padText)
- See Also:
OutputFormat.getEncoding()
isSuppressDeclaration
public boolean isSuppressDeclaration()
- See Also:
OutputFormat.getEncoding()
setSuppressDeclaration
public void setSuppressDeclaration(boolean suppressDeclaration)
- See Also:
OutputFormat.getEncoding()
isTrimText
public boolean isTrimText()
- See Also:
OutputFormat.isTrimText()
setTrimText
public void setTrimText(boolean trimText)
- See Also:
OutputFormat.setTrimText(boolean)
isXHTML
public boolean isXHTML()
- See Also:
OutputFormat.isXHTML()
setXHTML
public void setXHTML(boolean xhtml)
- See Also:
OutputFormat.setXHTML(boolean)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.