public enum FormatType extends Enum<FormatType>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
ANALYSIS |
ANALYSIS_INDENT |
AS_IS |
CLASSIC |
CLASSIC_INDENT |
Modifier and Type | Field and Description |
---|---|
private boolean |
analytic |
private boolean |
classic |
private boolean |
indented |
private boolean |
multiline |
Modifier and Type | Method and Description |
---|---|
boolean |
isAnalytic()
Whether added whitespace is inside tags.
|
boolean |
isClassic()
Whether added whitespace is between tags.
|
boolean |
isIndented()
Whether indents are introduced into the document.
|
boolean |
isMultiline()
Whether newlines are introduced into the document.
|
static FormatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FormatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatType AS_IS
public static final FormatType ANALYSIS
public static final FormatType CLASSIC
public static final FormatType ANALYSIS_INDENT
public static final FormatType CLASSIC_INDENT
private boolean indented
private boolean multiline
private boolean analytic
private boolean classic
public static FormatType[] values()
for (FormatType c : FormatType.values()) System.out.println(c);
public static FormatType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean isMultiline()
public boolean isIndented()
public boolean isAnalytic()
public boolean isClassic()