Enum 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
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      R1_0
      Release 1
      R1_1
      Release 1.1
      R2_0
      Release 2
      R2A
      Release 2A
      R3_0
      Release 3
      R4_0
      Release 4 (reserved for future)
      R5_0
      Release 5 (reserved for future)
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null