Class CS1FilteredCallTreatment

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CS1FilteredCallTreatment
    extends AbstractFieldsObject
    API for Core-INAP-CS1-DataTypes.FilteredCallTreatment. Generated from the following ASN.1 type definition and the adaptations below.
     FilteredCallTreatment ::=
         SEQUENCE {
             sFBillingChargingCharacteristics SFBillingChargingCharacteristics,
             informationToSend                InformationToSend OPTIONAL,
             maximumNumberOfCounters          MaximumNumberOfCounters OPTIONAL,
             releaseCause                     Cause OPTIONAL
         }
     Core-INAP-CS1-DataTypes {
         FilteredCallTreatment {
             sFBillingChargingCharacteristics {
                 @forceOptional
             }
         }
     }
     

    Used as field type by CS1ActivateServiceFilteringArg.

    See Also:
    Serialized Form
    • Constructor Detail

      • CS1FilteredCallTreatment

        public CS1FilteredCallTreatment()
        Constructs an object with uninitialised state.
    • Method Detail

      • copyOf

        public static CS1FilteredCallTreatment copyOf​(CS1FilteredCallTreatment 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:
        CS1FilteredCallTreatment
      • 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 field-name to field-value. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an unitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED.
        Specified by:
        getFieldsMap in class AbstractFieldsObject
        Parameters:
        withAbsents - whether to put absent optional fields into Map
        Returns:
        Map from field-name to field-value
      • getInformationToSend

        public CS1InformationToSend getInformationToSend()
        Gets the value of the field informationToSend.
        Returns:
        value of field informationToSend, or null if not present
      • getMaximumNumberOfCounters

        public int getMaximumNumberOfCounters()
        Gets the value of the field maximumNumberOfCounters.
        Returns:
        value of field maximumNumberOfCounters
      • getReleaseCause

        public Cause getReleaseCause()
        Gets the value of the field releaseCause.
        Returns:
        value of field releaseCause, or null if not present
      • getSFBillingChargingCharacteristics

        public CS1SFBillingChargingCharacteristics getSFBillingChargingCharacteristics()
        Gets the value of the field sFBillingChargingCharacteristics.
        Returns:
        value of field sFBillingChargingCharacteristics, or null if not present
      • hasInformationToSend

        public boolean hasInformationToSend()
        Tests whether the field informationToSend has a value.
        Returns:
        whether the field informationToSend has a value
      • hasMaximumNumberOfCounters

        public boolean hasMaximumNumberOfCounters()
        Tests whether the field maximumNumberOfCounters has a value.
        Returns:
        whether the field maximumNumberOfCounters has a value
      • hasReleaseCause

        public boolean hasReleaseCause()
        Tests whether the field releaseCause has a value.
        Returns:
        whether the field releaseCause has a value
      • hasSFBillingChargingCharacteristics

        public boolean hasSFBillingChargingCharacteristics()
        Tests whether the field sFBillingChargingCharacteristics has a value.
        Returns:
        whether the field sFBillingChargingCharacteristics has a value
      • setMaximumNumberOfCounters

        public CS1FilteredCallTreatment setMaximumNumberOfCounters​(int value)
                                                            throws IllegalStateException
        Sets the value of the field maximumNumberOfCounters and marks the field as present.
        Parameters:
        value - the new value for the field
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only
      • setMaximumNumberOfCountersPresent

        public CS1FilteredCallTreatment setMaximumNumberOfCountersPresent​(boolean flag)
                                                                   throws IllegalStateException
        Sets the presence or absence of the optional field maximumNumberOfCounters.
        Parameters:
        flag - either true if the field should be marked as present or false if the field should be marked as absent
        Returns:
        this
        Throws:
        IllegalStateException - if this instance has been marked as read-only