public enum EXMLVersion extends Enum<EXMLVersion>
| Enum Constant and Description |
|---|
XML_10
XML 1.0 - this should be the default
|
XML_11
XML 1.1
|
| Modifier and Type | Method and Description |
|---|---|
static EXMLVersion |
getFromVersionOrDefault(String sVersion,
EXMLVersion eDefault)
Find the
EXMLVersion object matching the passed version string. |
static EXMLVersion |
getFromVersionOrNull(String sVersion)
Find the
EXMLVersion object matching the passed version string. |
String |
getVersion() |
static EXMLVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EXMLVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EXMLVersion XML_10
public static final EXMLVersion XML_11
public static EXMLVersion[] values()
for (EXMLVersion c : EXMLVersion.values()) System.out.println(c);
public static EXMLVersion 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 getVersion()
@Nullable public static EXMLVersion getFromVersionOrNull(@Nullable String sVersion)
EXMLVersion object matching the passed version string.sVersion - The version string to search. May be null.null if no such EXMLVersion object is present.@Nullable public static EXMLVersion getFromVersionOrDefault(@Nullable String sVersion, @Nullable EXMLVersion eDefault)
EXMLVersion object matching the passed version string.sVersion - The version string to search. May be null.eDefault - The default version to be returned, if no such enum value is
present. May be null.null) if no
such EXMLVersion object is present.Copyright © 2014–2016 Philip Helger. All rights reserved.