public enum EXMLSerializeIndent extends Enum<EXMLSerializeIndent> implements IHasID<String>
| Enum Constant and Description |
|---|
ALIGN_ONLY
No indent but align
|
INDENT_AND_ALIGN
Both indent and align.
|
INDENT_ONLY
Indent but no align.
|
NONE
Neither indent nor align
|
| Modifier and Type | Method and Description |
|---|---|
static EXMLSerializeIndent |
getFromIDOrNull(String sID) |
String |
getID()
Get the unique ID of this object.
|
EXMLSerializeIndent |
getWithAlign() |
EXMLSerializeIndent |
getWithIndent() |
EXMLSerializeIndent |
getWithoutAlign() |
EXMLSerializeIndent |
getWithoutIndent() |
boolean |
isAlign() |
boolean |
isIndent() |
static EXMLSerializeIndent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EXMLSerializeIndent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EXMLSerializeIndent NONE
public static final EXMLSerializeIndent ALIGN_ONLY
public static final EXMLSerializeIndent INDENT_ONLY
public static final EXMLSerializeIndent INDENT_AND_ALIGN
public static EXMLSerializeIndent[] values()
for (EXMLSerializeIndent c : EXMLSerializeIndent.values()) System.out.println(c);
public static EXMLSerializeIndent 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 null@Nonnull @Nonempty public String getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!public boolean isIndent()
true if the XML output should be formatted nicelypublic boolean isAlign()
true if newlines should be emitted@Nonnull public EXMLSerializeIndent getWithoutIndent()
@Nonnull public EXMLSerializeIndent getWithIndent()
@Nonnull public EXMLSerializeIndent getWithoutAlign()
@Nonnull public EXMLSerializeIndent getWithAlign()
@Nullable public static EXMLSerializeIndent getFromIDOrNull(@Nullable String sID)
Copyright © 2014–2015 Philip Helger. All rights reserved.