Class CS1FilteringCriteria

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CS1FilteringCriteria
    extends AbstractFieldsObject
    API for Core-INAP-CS1-DataTypes.FilteringCriteria. Generated from the following ASN.1 type definition and the adaptations below.
     FilteringCriteria ::=
         CHOICE {
             serviceKey        ServiceKey,
             addressAndService SEQUENCE {
                 calledAddressValue  Digits,
                 serviceKey          ServiceKey,
                 callingAddressValue Digits OPTIONAL,
                 locationNumber      LocationNumber OPTIONAL
             }
         }
     Core-INAP-CS1-DataTypes {
         FilteringCriteria {
             addressAndService {
                 calledAddressValue {
                     @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber
                 }
                 callingAddressValue {
                     @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber
                 }
             }
         }
     }
     

    Used as field type by CS1ActivateServiceFilteringArg.

    Used as field type by CS1ServiceFilteringResponseArg.

    See Also:
    Serialized Form
    • Constructor Detail

      • CS1FilteringCriteria

        public CS1FilteringCriteria()
    • Method Detail

      • copyOf

        public static CS1FilteringCriteria copyOf​(CS1FilteringCriteria 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:
        CS1FilteringCriteria
      • getAddressAndService

        public CS1FilteringCriteria.AddressAndService getAddressAndService()
        Gets the value of the addressAndService choice.
        Returns:
        value of the choice, if choice is addressAndService, else null
      • getChoice

        public CS1FilteringCriteria.Choice getChoice()
        Gets the discriminant of the current choice.
        Returns:
        the current discriminant
      • 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
      • getServiceKey

        public int getServiceKey()
                          throws IllegalStateException
        Gets the value of the serviceKey choice.
        Returns:
        value of the choice, if choice is serviceKey
        Throws:
        IllegalStateException - if choice is not serviceKey
      • isAddressAndServiceChosen

        public boolean isAddressAndServiceChosen()
        Tests whether the choice is addressAndService.
        Returns:
        true if chosen, false if not
      • isServiceKeyChosen

        public boolean isServiceKeyChosen()
        Tests whether the choice is serviceKey.
        Returns:
        true if chosen, false if not