public enum EXMLSerializeXMLDeclaration extends Enum<EXMLSerializeXMLDeclaration> implements com.helger.commons.id.IHasID<String>
<?xml version=... encoding=...?>) should be
emitted or ignored.| Enum Constant and Description |
|---|
EMIT
Emit all fields: version, encoding, standalone
|
EMIT_NO_STANDALONE
Emit fields: version, encoding
|
IGNORE
Do not emit any XML declaration at all
|
| Modifier and Type | Method and Description |
|---|---|
static EXMLSerializeXMLDeclaration |
getFromIDOrNull(String sID) |
String |
getID() |
boolean |
isEmit() |
boolean |
isEmitStandalone() |
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.
|
public static final EXMLSerializeXMLDeclaration EMIT
public static final EXMLSerializeXMLDeclaration EMIT_NO_STANDALONE
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()
getID in interface com.helger.commons.id.IHasID<String>public boolean isEmit()
true it emit is enabledpublic boolean isEmitStandalone()
true if the "standalone" part of the XML declaration
should be printed or not.@Nullable public static EXMLSerializeXMLDeclaration getFromIDOrNull(@Nullable String sID)
Copyright © 2014–2023 Philip Helger. All rights reserved.