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.
|
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.
|
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_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 isAlign()
true if newlines should be emittedpublic boolean isIndent()
true if the XML output should be formatted nicely@Nullable public static EXMLSerializeIndent getFromIDOrNull(@Nullable String sID)
Copyright © 2006–2015 phloc systems. All rights reserved.