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 {
                 callingAddressValue {

    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.
        from - the object from which to copy
      • getAddressAndService

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

        public CS1FilteringCriteria.Choice getChoice()
        Gets the discriminant of the current choice.
        the current discriminant
      • getFieldAccessors

        public static FieldAccessor[] getFieldAccessors()
        Gets a new array of the accessors for fields of this type.
      • 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
        withAbsents - ignored, as value cannot be optional
        Map from :discriminant-name to associated-value
      • getServiceKey

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

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

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