public enum EXMLSerializeXMLDeclaration extends Enum<EXMLSerializeXMLDeclaration> implements IHasID<String>
<?xml version=... encoding=...?>) should be
emitted or ignored.| Modifier and Type | Method and Description |
|---|---|
static EXMLSerializeXMLDeclaration |
getFromIDOrNull(String sID) |
String |
getID()
Get the unique ID of this object.
|
boolean |
isEmit() |
static EXMLSerializeXMLDeclaration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EXMLSerializeXMLDeclaration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetComparatorIDpublic static final EXMLSerializeXMLDeclaration EMIT
public static final EXMLSerializeXMLDeclaration IGNORE
public static EXMLSerializeXMLDeclaration[] values()
for (EXMLSerializeXMLDeclaration c : EXMLSerializeXMLDeclaration.values()) System.out.println(c);
public static EXMLSerializeXMLDeclaration 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 isEmit()
true it emit is enabled@Nullable public static EXMLSerializeXMLDeclaration getFromIDOrNull(@Nullable String sID)
Copyright © 2014–2016 Philip Helger. All rights reserved.