Class LegType.EncodedValue

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

    public static final class LegType.EncodedValue
    extends NamedInteger
    Leg type constants.

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

     EncodedValue ::= ENUMERATED {
         ... ,
         CALLING_PARTY (1),
         CALLED_PARTY  (2),
         ...
     }
    See Also:
    Serialized Form
    • Field Detail

      • _UNSPECIFIED

        public static final int _UNSPECIFIED
        Leg type value corresponding to initial value until explicitly set.
        See Also:
        Constant Field Values
      • _CALLING_PARTY

        public static final int _CALLING_PARTY
        Leg type value corresponding to the calling party, present when InitialDP is sent to the SCF.
        See Also:
        Constant Field Values
      • _CALLED_PARTY

        public static final int _CALLED_PARTY
        Leg type value corresponding to the called party, created as a result of the InitialDP operation, followed by the Connect, Continue or ContinueWithArgument operation.
        See Also:
        Constant Field Values
      • UNSPECIFIED

        public static final LegType.EncodedValue UNSPECIFIED
        Leg type value corresponding to initial value until explicitly set.
      • CALLING_PARTY

        public static final LegType.EncodedValue CALLING_PARTY
        Leg type value corresponding to the calling party, present when InitialDP is sent to the SCF.
      • CALLED_PARTY

        public static final LegType.EncodedValue CALLED_PARTY
        Leg type value corresponding to the called party, created as a result of the InitialDP operation, followed by the Connect, Continue or ContinueWithArgument operation.
      • MIN_VALUE

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

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

      • fromValue

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

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