org.apache.wink.common.model
Class XmlFormattingOptions
java.lang.Object
org.apache.wink.common.model.XmlFormattingOptions
- All Implemented Interfaces:
- java.lang.Cloneable
public class XmlFormattingOptions
- extends java.lang.Object
- implements java.lang.Cloneable
Holds the following XML Formatting Options:
- omitXmlDeclaration - indicates if xml declaration should be omitted.
Default value true - omitted.
- indenting - indicates if xml should be indented. Default value true -
indented.
Can be used by XML representations to give a control over the formation of
XML output.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlFormattingOptions
public XmlFormattingOptions()
XmlFormattingOptions
public XmlFormattingOptions(boolean omitXmlDeclaration,
boolean indenting)
isIndenting
public boolean isIndenting()
setIndenting
public void setIndenting(boolean indenting)
getDefaultXmlFormattingOptions
public static XmlFormattingOptions getDefaultXmlFormattingOptions()
setDefaultXmlFormattingOptions
public static void setDefaultXmlFormattingOptions(XmlFormattingOptions defaultXmlFormattingOptions)
setOmitXmlDeclaration
public void setOmitXmlDeclaration(boolean omitXmlDeclaration)
isOmitXmlDeclaration
public boolean isOmitXmlDeclaration()
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.