public enum XmlFormatStyle extends java.lang.Enum<XmlFormatStyle>
<item>
tags is
included on the same line whereas for other layout styles the children are typically
placed on a line of their own.Enum Constant and Description |
---|
FILE
Similar to layout formatting style, but no blank lines inside opening elements
|
LAYOUT
Layout formatting style: blank lines between elements, attributes on separate lines
|
MANIFEST
Similar to layout style, but no newlines between related elements such as
successive
<uses-permission> declarations, and no newlines inside
the second level elements (so an <activity> declaration appears as a
single block with no whitespace within it) |
RESOURCE
Resource style: one line per complete element including text child content
|
Modifier and Type | Method and Description |
---|---|
static XmlFormatStyle |
get(org.w3c.dom.Node node) |
static XmlFormatStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XmlFormatStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlFormatStyle LAYOUT
public static final XmlFormatStyle FILE
public static final XmlFormatStyle RESOURCE
public static final XmlFormatStyle MANIFEST
<uses-permission>
declarations, and no newlines inside
the second level elements (so an <activity>
declaration appears as a
single block with no whitespace within it)public static XmlFormatStyle[] values()
for (XmlFormatStyle c : XmlFormatStyle.values()) System.out.println(c);
public static XmlFormatStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@NonNull public static XmlFormatStyle get(@Nullable org.w3c.dom.Node node)