Enum Cause.CodingStandard

  • All Implemented Interfaces:
    Serializable, Comparable<Cause.CodingStandard>
    Enclosing class:
    Cause

    public static enum Cause.CodingStandard
    extends Enum<Cause.CodingStandard>
    Enumeration of Coding Standard constants.

    The API offered by this class is as if the type were specified in ASN.1 as follows.

     CodingStandard ::= ENUMERATED { 
         ITU_T             (0),
         ISO_IEC           (1),
         NATIONAL          (2),
         LOCATION_SPECIFIC (3)
     }
    The ITU_T coding standard should be used unless the desired cause value cannot be represented using this standard.
    • Enum Constant Detail

      • ITU_T

        public static final Cause.CodingStandard ITU_T
        Coding standard value (0) corresponding to ITU-T standardised coding.
      • ISO_IEC

        public static final Cause.CodingStandard ISO_IEC
        Coding standard value (1) corresponding to the ISO/IEC standard.
      • NATIONAL

        public static final Cause.CodingStandard NATIONAL
        Coding standard value (2) corresponding to the national standard.
      • LOCATION_SPECIFIC

        public static final Cause.CodingStandard LOCATION_SPECIFIC
        Coding standard value (3) corresponding to the standard specific to the identified location.
    • Method Detail

      • values

        public static Cause.CodingStandard[] 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 (Cause.CodingStandard c : Cause.CodingStandard.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Cause.CodingStandard 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
      • intValue

        public int intValue()
        Gets the integer ASN.1 encoded value of this enumeration constant.
        Returns:
        encoded value
      • fromValue

        public static Cause.CodingStandard fromValue​(int value)
        Returns the enumeration constant for a given encoded value.
        Parameters:
        value - encoded value
        Returns:
        the appropriate enumeration constant for the encoded value
        Throws:
        IllegalArgumentException - if there is no enumeration constant with the given encoded value