public enum ODataServiceVersion extends Enum<ODataServiceVersion>
Modifier and Type | Class and Description |
---|---|
static class |
ODataServiceVersion.JsonKey |
static class |
ODataServiceVersion.NamespaceKey |
Modifier and Type | Method and Description |
---|---|
String |
getJsonName(ODataServiceVersion.JsonKey key) |
String |
getNamespace(ODataServiceVersion.NamespaceKey key) |
static boolean |
isBiggerThan(String actual,
String comparedTo)
actual > comparedTo
|
String |
toString() |
static boolean |
validateDataServiceVersion(String version)
Validates format and range of a data service version string.
|
static ODataServiceVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ODataServiceVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ODataServiceVersion V10
public static final ODataServiceVersion V20
public static final ODataServiceVersion V30
public static final ODataServiceVersion V40
public static ODataServiceVersion[] values()
for (ODataServiceVersion c : ODataServiceVersion.values()) System.out.println(c);
public static ODataServiceVersion 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 nullpublic static boolean validateDataServiceVersion(String version)
version
- version stringtrue
for a valid versionpublic static boolean isBiggerThan(String actual, String comparedTo)
actual
- comparedTo
- true
if actual is bigger than comparedTopublic String getNamespace(ODataServiceVersion.NamespaceKey key)
public String getJsonName(ODataServiceVersion.JsonKey key)
public String toString()
toString
in class Enum<ODataServiceVersion>
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.