com.xensource.xenapi
Enum APIVersion
java.lang.Object
java.lang.Enum<APIVersion>
com.xensource.xenapi.APIVersion
- All Implemented Interfaces:
- Serializable, Comparable<APIVersion>
public enum APIVersion
- extends Enum<APIVersion>
API_1_1
public static final APIVersion API_1_1
API_1_2
public static final APIVersion API_1_2
API_1_3
public static final APIVersion API_1_3
API_1_4
public static final APIVersion API_1_4
API_1_5
public static final APIVersion API_1_5
API_1_6
public static final APIVersion API_1_6
API_1_7
public static final APIVersion API_1_7
API_1_8
public static final APIVersion API_1_8
API_1_9
public static final APIVersion API_1_9
API_1_10
public static final APIVersion API_1_10
API_2_0
public static final APIVersion API_2_0
UNKNOWN
public static final APIVersion UNKNOWN
values
public static APIVersion[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (APIVersion c : APIVersion.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static APIVersion valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
latest
public static APIVersion latest()
fromMajorMinor
public static APIVersion fromMajorMinor(long major,
long minor)
toString
public String toString()
- Overrides:
toString
in class Enum<APIVersion>