Package org.osgi.service.onem2m.dto
Enum ReleaseVersion
- java.lang.Object
-
- java.lang.Enum<ReleaseVersion>
-
- org.osgi.service.onem2m.dto.ReleaseVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReleaseVersion>
public enum ReleaseVersion extends java.lang.Enum<ReleaseVersion>
enum expresses oneM2M specification version.This information is introduced after Release 2.0 and oneM2M uses only R2A, R3_0 (as 2a and 3).
- See Also:
- oneM2M XSD releaseVersion
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReleaseVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReleaseVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
R1_0
public static final ReleaseVersion R1_0
Release 1
-
R1_1
public static final ReleaseVersion R1_1
Release 1.1
-
R2_0
public static final ReleaseVersion R2_0
Release 2
-
R2A
public static final ReleaseVersion R2A
Release 2A
-
R3_0
public static final ReleaseVersion R3_0
Release 3
-
R4_0
public static final ReleaseVersion R4_0
Release 4 (reserved for future)
-
R5_0
public static final ReleaseVersion R5_0
Release 5 (reserved for future)
-
-
Method Detail
-
values
public static ReleaseVersion[] 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 (ReleaseVersion c : ReleaseVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReleaseVersion valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-