Class CCRequestedInformationValue

  • All Implemented Interfaces:
    DataObject, Serializable
    Direct Known Subclasses:
    CS1RequestedInformationValue

    public class CCRequestedInformationValue
    extends AbstractFieldsObject
    API for CC-DataTypes.RequestedInformationValue. Generated from the following ASN.1 type definition and the adaptations below.
     RequestedInformationValue ::=
         CHOICE {
             callAttemptElapsedTimeValue   INTEGER (0..255),
             callStopTimeValue             DateAndTime,
             callConnectedElapsedTimeValue Integer4,
             releaseCauseValue             Cause
         }
     CC-DataTypes {
         RequestedInformationValue {
             @extendible
         }
     }
     

    Used as field type by CCRequestedInformation.

    See Also:
    Serialized Form
    • Constructor Detail

      • CCRequestedInformationValue

        public CCRequestedInformationValue()
    • Method Detail

      • copyOf

        public static CCRequestedInformationValue copyOf​(CCRequestedInformationValue from)
        Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
        Parameters:
        from - the object from which to copy
        Returns:
        CCRequestedInformationValue
      • getCallAttemptElapsedTimeValue

        public int getCallAttemptElapsedTimeValue()
                                           throws IllegalStateException
        Gets the value of the callAttemptElapsedTimeValue choice.
        Returns:
        value of the choice, if choice is callAttemptElapsedTimeValue
        Throws:
        IllegalStateException - if choice is not callAttemptElapsedTimeValue
      • getCallConnectedElapsedTimeValue

        public int getCallConnectedElapsedTimeValue()
                                             throws IllegalStateException
        Gets the value of the callConnectedElapsedTimeValue choice.
        Returns:
        value of the choice, if choice is callConnectedElapsedTimeValue
        Throws:
        IllegalStateException - if choice is not callConnectedElapsedTimeValue
      • getCallStopTimeValue

        public DateAndTime getCallStopTimeValue()
        Gets the value of the callStopTimeValue choice.
        Returns:
        value of the choice, if choice is callStopTimeValue, else null
      • getFieldAccessors

        public static FieldAccessor[] getFieldAccessors()
        Gets a new array of the accessors for fields of this type.
        Returns:
        FieldAccessor[]
      • getFieldsMap

        public Map<String,​Object> getFieldsMap​(boolean withAbsents)
        Gets a Map from :discriminant-name to associated-value. For a value of primitive type, the value is boxed. If choice is not set, returns a map from : to AbstractFieldsObject.FIELD_UNINITIALISED.
        Specified by:
        getFieldsMap in class AbstractFieldsObject
        Parameters:
        withAbsents - ignored, as value cannot be optional
        Returns:
        Map from :discriminant-name to associated-value
      • getReleaseCauseValue

        public Cause getReleaseCauseValue()
        Gets the value of the releaseCauseValue choice.
        Returns:
        value of the choice, if choice is releaseCauseValue, else null
      • isCallAttemptElapsedTimeValueChosen

        public boolean isCallAttemptElapsedTimeValueChosen()
        Tests whether the choice is callAttemptElapsedTimeValue.
        Returns:
        true if chosen, false if not
      • isCallConnectedElapsedTimeValueChosen

        public boolean isCallConnectedElapsedTimeValueChosen()
        Tests whether the choice is callConnectedElapsedTimeValue.
        Returns:
        true if chosen, false if not
      • isCallStopTimeValueChosen

        public boolean isCallStopTimeValueChosen()
        Tests whether the choice is callStopTimeValue.
        Returns:
        true if chosen, false if not
      • isReleaseCauseValueChosen

        public boolean isReleaseCauseValueChosen()
        Tests whether the choice is releaseCauseValue.
        Returns:
        true if chosen, false if not
      • setCallConnectedElapsedTimeValue

        public CCRequestedInformationValue setCallConnectedElapsedTimeValue​(int value)
                                                                     throws IllegalStateException
        Sets the value of the callConnectedElapsedTimeValue choice.
        Parameters:
        value - the new value for the choice
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only