public enum Version extends Enum<Version>
Java class for version.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="version"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="1.5"/> <enumeration value="1.6"/> <enumeration value="2.0"/> <enumeration value="2.1"/> <enumeration value="2.2"/> <enumeration value="2.4"/> <enumeration value="2.2.1"/> <enumeration value="2.5"/> </restriction> </simpleType>
Enum Constant and Description |
---|
V1_5 |
V1_6 |
V2_0 |
V2_1 |
V2_2 |
V2_2_1 |
V2_4 |
V2_5 |
Modifier and Type | Method and Description |
---|---|
static Version |
fromValue(String v) |
String |
value() |
static Version |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Version[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Version V1_5
public static final Version V1_6
public static final Version V2_0
public static final Version V2_1
public static final Version V2_2
public static final Version V2_4
public static final Version V2_2_1
public static final Version V2_5
public static Version[] values()
for (Version c : Version.values()) System.out.println(c);
public static Version 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 String value()
Copyright © 2015 OpenEstate. All rights reserved.