public enum ServiceVersion extends java.lang.Enum<ServiceVersion>
| Enum Constant and Description |
|---|
LATEST
The latest version.
|
NO_VERSION
Added only for legacy reasons.
|
VERSION_1_0
The same as NO_VERSION, but v1.0 is specified in the URL.
|
VERSION_2_0
Version 2.0.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceVersion |
fromCode(java.lang.String version)
Returns enumeration value by version number as it appears in URI.
|
java.lang.String |
getCode()
Returns the version as in appears in URI.
|
FeatureSet |
getFeatureSet()
Gets a
FeatureSet related to this service version. |
static boolean |
hasCode(java.lang.String code)
Checks if ServiceVersion with given code exists.
|
static ServiceVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ServiceVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceVersion NO_VERSION
public static final ServiceVersion VERSION_1_0
public static final ServiceVersion VERSION_2_0
public static final ServiceVersion LATEST
public static ServiceVersion[] values()
for (ServiceVersion c : ServiceVersion.values()) System.out.println(c);
public static ServiceVersion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getCode()
public static ServiceVersion fromCode(java.lang.String version) throws java.lang.IllegalArgumentException
version - version as it appears in URI.java.lang.IllegalArgumentException - in case that the passed code does not match any enumeration value.public FeatureSet getFeatureSet()
FeatureSet related to this service version.FeatureSet related to this version.public static boolean hasCode(java.lang.String code)
code - Code to check.