public class XmlFormatPreferences
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
joinLines
Join lines when reformatting text and comment blocks?
|
protected java.lang.String |
mOneIndentUnit
The string to insert for each indentation level
|
protected int |
mTabWidth
Tab width (number of spaces to display for a tab)
|
boolean |
oneAttributeOnFirstLine
Can attributes appear on the same line as the opening line if there is just one of them?
|
boolean |
reflowText
Reformat the text and comment blocks?
|
boolean |
removeEmptyLines
Remove empty lines in all cases?
|
XmlAttributeSortOrder |
sortAttributes
The sorting order to use when formatting
|
boolean |
spaceBeforeClose
Should there be a space before the closing
> ; or >/; ? |
boolean |
useEclipseIndent
Use the Eclipse indent (tab/space, indent size) settings?
|
Modifier | Constructor and Description |
---|---|
protected |
XmlFormatPreferences() |
Modifier and Type | Method and Description |
---|---|
static XmlFormatPreferences |
defaults()
Returns a new preferences object initialized with the defaults
|
java.util.Comparator<org.w3c.dom.Attr> |
getAttributeComparator()
Returns the comparator to use when formatting, or null for no sorting
|
java.lang.String |
getOneIndentUnit() |
int |
getTabWidth()
Returns the number of spaces used to display a single tab character
|
public boolean useEclipseIndent
public boolean removeEmptyLines
public boolean reflowText
public boolean joinLines
public boolean oneAttributeOnFirstLine
public XmlAttributeSortOrder sortAttributes
public boolean spaceBeforeClose
>
; or >/;
?protected java.lang.String mOneIndentUnit
protected int mTabWidth
@Nullable public java.util.Comparator<org.w3c.dom.Attr> getAttributeComparator()
@NonNull public static XmlFormatPreferences defaults()
XmlFormatPreferences
objectpublic java.lang.String getOneIndentUnit()
public int getTabWidth()