Class CCBasicGapCriteria

  • All Implemented Interfaces:
    DataObject, Serializable

    public class CCBasicGapCriteria
    extends AbstractFieldsObject
    API for CC-DataTypes.BasicGapCriteria. Generated from the following ASN.1 type definition and the adaptations below.
     BasicGapCriteria ::=
         CHOICE {
             calledAddressValue       Digits,
             gapOnService             GapOnService,
             calledAddressAndService  SEQUENCE {
                 calledAddressValue Digits,
                 serviceKey         ServiceKey
             },
             callingAddressAndService SEQUENCE {
                 callingAddressValue Digits,
                 serviceKey          ServiceKey,
                 locationNumber      LocationNumber OPTIONAL
             }
         }
     CC-DataTypes {
         BasicGapCriteria {
             @extendible
             calledAddressAndService {
                 calledAddressValue {
                     @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber
                 }
             }
             calledAddressValue {
                 @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber
             }
             callingAddressAndService {
                 callingAddressValue {
                     @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber
                 }
             }
         }
     }
     

    Used as field type by CCGapCriteria.

    See Also:
    Serialized Form
    • Constructor Detail

      • CCBasicGapCriteria

        public CCBasicGapCriteria()
    • Method Detail

      • copyOf

        public static CCBasicGapCriteria copyOf​(CCBasicGapCriteria 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:
        CCBasicGapCriteria
      • getCalledAddressAndService

        public CCBasicGapCriteria.CalledAddressAndService getCalledAddressAndService()
        Gets the value of the calledAddressAndService choice.
        Returns:
        value of the choice, if choice is calledAddressAndService, else null
      • getCalledAddressValue

        public GenericNumber getCalledAddressValue()
        Gets the value of the calledAddressValue choice.
        Returns:
        value of the choice, if choice is calledAddressValue, else null
      • getCallingAddressAndService

        public CCBasicGapCriteria.CallingAddressAndService getCallingAddressAndService()
        Gets the value of the callingAddressAndService choice.
        Returns:
        value of the choice, if choice is callingAddressAndService, else null
      • getChoice

        public CCBasicGapCriteria.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
      • getGapOnService

        public CCGapOnService getGapOnService()
        Gets the value of the gapOnService choice.
        Returns:
        value of the choice, if choice is gapOnService, else null
      • isCalledAddressAndServiceChosen

        public boolean isCalledAddressAndServiceChosen()
        Tests whether the choice is calledAddressAndService.
        Returns:
        true if chosen, false if not
      • isCalledAddressValueChosen

        public boolean isCalledAddressValueChosen()
        Tests whether the choice is calledAddressValue.
        Returns:
        true if chosen, false if not
      • isCallingAddressAndServiceChosen

        public boolean isCallingAddressAndServiceChosen()
        Tests whether the choice is callingAddressAndService.
        Returns:
        true if chosen, false if not
      • isGapOnServiceChosen

        public boolean isGapOnServiceChosen()
        Tests whether the choice is gapOnService.
        Returns:
        true if chosen, false if not
      • setChoice

        protected void setChoice​(CCBasicGapCriteria.Choice arg)
        Sets the discriminant of the current choice.
        Parameters:
        arg - the new discriminant