Class AddressString.Nature

  • All Implemented Interfaces:
    DataObject, Immutable, Serializable
    Enclosing class:
    AddressString

    public static final class AddressString.Nature
    extends NamedInteger
    Nature of Address indicator constants.

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

     Nature ::= ENUMERATED {
         UNKNOWN          (0),
         INTERNATIONAL    (1),
         NATIONAL         (2),
         NETWORK_SPECIFIC (3),
         SUBSCRIBER       (4),
         RESERVED_5       (5),
         ABBREVIATED      (6),
         RESERVED_7       (7)
     }
    @extendible -- to be like 7-bit Nature values specified for other types
    See Also:
    Serialized Form
    • Field Detail

      • _UNKNOWN

        public static final int _UNKNOWN
        Nature of Address indicator value corresponding to unknown.
        See Also:
        Constant Field Values
      • _INTERNATIONAL

        public static final int _INTERNATIONAL
        Nature of Address indicator value corresponding to an international number.
        See Also:
        Constant Field Values
      • _NATIONAL

        public static final int _NATIONAL
        Nature of Address indicator value corresponding to a national (significant) number.
        See Also:
        Constant Field Values
      • _NETWORK_SPECIFIC

        public static final int _NETWORK_SPECIFIC
        Nature of Address indicator value corresponding to a network-specific number.
        See Also:
        Constant Field Values
      • _SUBSCRIBER

        public static final int _SUBSCRIBER
        Nature of Address indicator value corresponding to a subscriber number.
        See Also:
        Constant Field Values
      • _RESERVED_5

        public static final int _RESERVED_5
        Nature of Address indicator value corresponding to a reserved indicator value (5).
        See Also:
        Constant Field Values
      • _ABBREVIATED

        public static final int _ABBREVIATED
        Nature of Address indicator value corresponding to an abbreviated number.
        See Also:
        Constant Field Values
      • _RESERVED_7

        public static final int _RESERVED_7
        Nature of Address indicator value corresponding to a reserved indicator value (7).
        See Also:
        Constant Field Values
      • UNKNOWN

        public static final AddressString.Nature UNKNOWN
        Nature of Address indicator value corresponding to unknown.
      • INTERNATIONAL

        public static final AddressString.Nature INTERNATIONAL
        Nature of Address indicator value corresponding to an international number.
      • NATIONAL

        public static final AddressString.Nature NATIONAL
        Nature of Address indicator value corresponding to a national (significant) number.
      • NETWORK_SPECIFIC

        public static final AddressString.Nature NETWORK_SPECIFIC
        Nature of Address indicator value corresponding to a network-specific number.
      • SUBSCRIBER

        public static final AddressString.Nature SUBSCRIBER
        Nature of Address indicator value corresponding to a subscriber number.
      • RESERVED_5

        public static final AddressString.Nature RESERVED_5
        Nature of Address indicator value corresponding to a reserved indicator value (5).
      • ABBREVIATED

        public static final AddressString.Nature ABBREVIATED
        Nature of Address indicator value corresponding to an abbreviated number.
      • RESERVED_7

        public static final AddressString.Nature RESERVED_7
        Nature of Address indicator value corresponding to a reserved indicator value (7).
      • MIN_VALUE

        public static final int MIN_VALUE
        Minimum value that a Nature instance may take (0).
        See Also:
        Constant Field Values
      • MAX_VALUE

        public static final int MAX_VALUE
        Maximum value that a Nature instance may take (7).
        See Also:
        Constant Field Values
    • Method Detail

      • fromValue

        public static AddressString.Nature fromValue​(int value)
        Returns a Nature for a particular integer value.
        Returns:
        any known instance, or a new object
      • namedValues

        public static AddressString.Nature[] namedValues()
        Returns an array containing all of Nature's named numbers.
        Returns:
        a new Nature[]