Class MAPSS_SubscriptionOption
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPSS_SubscriptionOption_v1
-
- MAPSS_SubscriptionOption
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPSS_SubscriptionOption extends MAPSS_SubscriptionOption_v1
API for MAP-SS-DataTypes.SS-SubscriptionOption. Generated from the following ASN.1 type definition and the adaptations below.SS-SubscriptionOption ::= CHOICE { cliRestrictionOption CliRestrictionOption, overrideCategory OverrideCategory } MAP-SS-DataTypes { SS-SubscriptionOption { @parentASN1Type MAP-SS-DataTypes-ph1.SS-SubscriptionOption-v1 } }
Added in ph2 as an extension of SS-SubscriptionOption-v1. Note that all of the parent's components are for use only in -v1 contexts.Used as field type by
MAPSS_Data
.Used as field type by
MAPExt_SS_Data
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPSS_SubscriptionOption.Choice
API for MAP-SS-DataTypes.SS-SubscriptionOption.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSS_SubscriptionOption()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSS_SubscriptionOption
clone()
Constructs a copy of this object and everything reachable from it.static MAPSS_SubscriptionOption
copyOf(MAPSS_SubscriptionOption_v1 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.MAPCliRestrictionOption
getCliRestrictionOption()
Gets the value of the cliRestrictionOption choice.static FieldAccessor[]
getFieldAccessors()
Gets a new array of the accessors for fields of this type.Map<String,Object>
getFieldsMap(boolean withAbsents)
Gets a Map from :discriminant-name to associated-value.MAPOverrideCategory
getOverrideCategory()
Gets the value of the overrideCategory choice.boolean
isCliRestrictionOptionChosen()
Tests whether the choice is cliRestrictionOption.boolean
isOverrideCategoryChosen()
Tests whether the choice is overrideCategory.MAPSS_SubscriptionOption
setCliRestrictionOption(MAPCliRestrictionOption value)
Sets the value of the cliRestrictionOption choice.MAPSS_SubscriptionOption
setOverrideCategory(MAPOverrideCategory value)
Sets the value of the overrideCategory choice.-
Methods inherited from class com.opencloud.slee.resources.cgin.map.MAPSS_SubscriptionOption_v1
getChoice, getHuntGroupAccessSelectionOrder, getMaximumConfereesNumber, getNotificationToHeldRetrievedParty, getPerCallBasis, getUserToUserServiceIndicator, isHuntGroupAccessSelectionOrderChosen, isMaximumConfereesNumberChosen, isNotificationToHeldRetrievedPartyChosen, isPerCallBasisChosen, isUserToUserServiceIndicatorChosen, setChoice, setHuntGroupAccessSelectionOrder, setMaximumConfereesNumber, setNotificationToHeldRetrievedParty, setPerCallBasis, setUserToUserServiceIndicator
-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly, setReadOnly
-
-
-
-
Method Detail
-
clone
public MAPSS_SubscriptionOption clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Overrides:
clone
in classMAPSS_SubscriptionOption_v1
- Returns:
- copy of object
-
copyOf
public static MAPSS_SubscriptionOption copyOf(MAPSS_SubscriptionOption_v1 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:
- MAPSS_SubscriptionOption
-
getCliRestrictionOption
public MAPCliRestrictionOption getCliRestrictionOption()
Gets the value of the cliRestrictionOption choice.- Returns:
- value of the choice, if choice is cliRestrictionOption, 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.- Overrides:
getFieldsMap
in classMAPSS_SubscriptionOption_v1
- Parameters:
withAbsents
- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
getOverrideCategory
public MAPOverrideCategory getOverrideCategory()
Gets the value of the overrideCategory choice.- Returns:
- value of the choice, if choice is overrideCategory, else null
-
isCliRestrictionOptionChosen
public boolean isCliRestrictionOptionChosen()
Tests whether the choice is cliRestrictionOption.- Returns:
- true if chosen, false if not
-
isOverrideCategoryChosen
public boolean isOverrideCategoryChosen()
Tests whether the choice is overrideCategory.- Returns:
- true if chosen, false if not
-
setCliRestrictionOption
public MAPSS_SubscriptionOption setCliRestrictionOption(MAPCliRestrictionOption value) throws IllegalStateException, NullPointerException
Sets the value of the cliRestrictionOption choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setOverrideCategory
public MAPSS_SubscriptionOption setOverrideCategory(MAPOverrideCategory value) throws IllegalStateException, NullPointerException
Sets the value of the overrideCategory choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
-