Enum Cause.Location

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

    public static enum Cause.Location
    extends Enum<Cause.Location>
    Enumeration of Location constants.

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

     Location ::= ENUMERATED { 
         USER                         (0),
         PRIVATE_NETWORK_LOCAL_USER   (1),
         PUBLIC_NETWORK_LOCAL_USER    (2),
         TRANSIT_NETWORK              (3),
         PUBLIC_NETWORK_REMOTE_USER   (4),
         PRIVATE_NETWORK_REMOTE_USER  (5),
         SPARE_6                      (6),
         INTERNATIONAL_NETWORK        (7),
         SPARE_8                      (8),
         SPARE_9                      (9),
         NETWORK_BEYOND_INTERWORKING (10),
         SPARE_11                    (11),
         RESERVED_12                 (12),
         RESERVED_13                 (13),
         RESERVED_14                 (14),
         RESERVED_15                 (15)
     }
    • Enum Constant Detail

      • USER

        public static final Cause.Location USER
        Location value (0) corresponding to the user (U).
      • PRIVATE_NETWORK_LOCAL_USER

        public static final Cause.Location PRIVATE_NETWORK_LOCAL_USER
        Location value (1) corresponding to a private network serving the local user (LPN).
      • PUBLIC_NETWORK_LOCAL_USER

        public static final Cause.Location PUBLIC_NETWORK_LOCAL_USER
        Location value (2) corresponding to the public network serving the local user (LN).
      • TRANSIT_NETWORK

        public static final Cause.Location TRANSIT_NETWORK
        Location value (3) corresponding to a transit network (TN).
      • PUBLIC_NETWORK_REMOTE_USER

        public static final Cause.Location PUBLIC_NETWORK_REMOTE_USER
        Location value (4) corresponding to the public network serving the remote user (RLN).
      • PRIVATE_NETWORK_REMOTE_USER

        public static final Cause.Location PRIVATE_NETWORK_REMOTE_USER
        Location value (5) corresponding to a private network serving the remote user (RPN).
      • SPARE_6

        public static final Cause.Location SPARE_6
        Location value (6) corresponding to spare.
      • INTERNATIONAL_NETWORK

        public static final Cause.Location INTERNATIONAL_NETWORK
        Location value (7) corresponding to the international network (INTL).
      • SPARE_8

        public static final Cause.Location SPARE_8
        Location value (8) corresponding to spare.
      • SPARE_9

        public static final Cause.Location SPARE_9
        Location value (9) corresponding to spare.
      • NETWORK_BEYOND_INTERWORKING

        public static final Cause.Location NETWORK_BEYOND_INTERWORKING
        Location value (0xA) corresponding to the network beyond interworking point (BI).
      • SPARE_11

        public static final Cause.Location SPARE_11
        Location value (0xB) corresponding to spare.
      • RESERVED_12

        public static final Cause.Location RESERVED_12
        Location value (0xC) corresponding to reserved for national use.
      • RESERVED_13

        public static final Cause.Location RESERVED_13
        Location value (0xD) corresponding to reserved for national use.
      • RESERVED_14

        public static final Cause.Location RESERVED_14
        Location value (0xE) corresponding to reserved for national use.
      • RESERVED_15

        public static final Cause.Location RESERVED_15
        Location value (0xF) corresponding to reserved for national use.
    • Method Detail

      • values

        public static Cause.Location[] 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.Location c : Cause.Location.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.Location 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.Location 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