Class CAP4PlayAnnouncementArg
-
- All Implemented Interfaces:
DataObject,Serializable
public class CAP4PlayAnnouncementArg extends CAP2PlayAnnouncementArg
API for CAP-gsmSCF-gsmSRF-ops-args.PlayAnnouncementArg. Generated from the following ASN.1 type definition and the adaptations below.PlayAnnouncementArg ::= SEQUENCE { informationToSend InformationToSend, disconnectFromIPForbidden BOOLEAN DEFAULT TRUE, requestAnnouncementCompleteNotification BOOLEAN DEFAULT TRUE, extensions Extensions OPTIONAL, callSegmentID CallSegmentID OPTIONAL, requestAnnouncementStartedNotification BOOLEAN DEFAULT FALSE, ... } CAP-gsmSCF-gsmSRF-ops-args { PlayAnnouncementArg { @parentType com.opencloud.slee.resources.cgin.cap_v2.CAP2PlayAnnouncementArg requestAnnouncementCompleteNotification { @rename requestAnnouncementComplete } requestAnnouncementStartedNotification { @rename requestAnnouncementStarted } } }Used as argument type by
CAP4Operations.playAnnouncement.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP4PlayAnnouncementArg()Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP4PlayAnnouncementArgclone()Constructs a copy of this object and everything reachable from it.static CAP4PlayAnnouncementArgcopyOf(CCPlayAnnouncementArg 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.intgetCallSegmentID()Gets the value of the field callSegmentID.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 field-name to field-value.booleangetRequestAnnouncementStarted()Gets the value of the field requestAnnouncementStartedNotification.booleanhasCallSegmentID()Tests whether the field callSegmentID has a value.booleanhasRequestAnnouncementStarted()Tests whether the field requestAnnouncementStartedNotification has a value.CAP4PlayAnnouncementArgsetCallSegmentID(int value)Sets the value of the field callSegmentID and marks the field as present.CAP4PlayAnnouncementArgsetCallSegmentIDPresent(boolean flag)Sets the presence or absence of the optional field callSegmentID.CAP4PlayAnnouncementArgsetDisconnectFromIPForbidden(boolean value)Sets the value of the field disconnectFromIPForbidden.CAP4PlayAnnouncementArgsetDisconnectFromIPForbiddenPresent(boolean flag)Sets the presence or absence of the optional field disconnectFromIPForbidden.CAP4PlayAnnouncementArgsetExtensions(CAP1ExtensionField[] value)Sets the value of the field extensions.CAP4PlayAnnouncementArgsetInformationToSend(CCInformationToSend value)Sets the value of the field informationToSend.CAP4PlayAnnouncementArgsetRequestAnnouncementComplete(boolean value)Sets the value of the field requestAnnouncementCompleteNotification.CAP4PlayAnnouncementArgsetRequestAnnouncementCompletePresent(boolean flag)Sets the presence or absence of the optional field requestAnnouncementCompleteNotification.CAP4PlayAnnouncementArgsetRequestAnnouncementStarted(boolean value)Sets the value of the field requestAnnouncementStartedNotification and marks the field as present.CAP4PlayAnnouncementArgsetRequestAnnouncementStartedPresent(boolean flag)Sets the presence or absence of the optional field requestAnnouncementStartedNotification.-
Methods inherited from class com.opencloud.slee.resources.cgin.cap_v2.CAP2PlayAnnouncementArg
getExtensions, hasExtensions
-
Methods inherited from class com.opencloud.slee.resources.cgin.callcontrol.CCPlayAnnouncementArg
getDisconnectFromIPForbidden, getInformationToSend, getRequestAnnouncementComplete, hasDisconnectFromIPForbidden, hasInformationToSend, hasRequestAnnouncementComplete, setReadOnly
-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly
-
-
-
-
Method Detail
-
clone
public CAP4PlayAnnouncementArg clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Overrides:
clonein classCAP2PlayAnnouncementArg- Returns:
- copy of object
-
copyOf
public static CAP4PlayAnnouncementArg copyOf(CCPlayAnnouncementArg 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:
- CAP4PlayAnnouncementArg
-
getCallSegmentID
public int getCallSegmentID()
Gets the value of the field callSegmentID.- Returns:
- value of field callSegmentID
-
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.- Overrides:
getFieldsMapin classCAP2PlayAnnouncementArg- Parameters:
withAbsents- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getRequestAnnouncementStarted
public boolean getRequestAnnouncementStarted()
Gets the value of the field requestAnnouncementStartedNotification.- Returns:
- value of field requestAnnouncementStartedNotification
-
hasCallSegmentID
public boolean hasCallSegmentID()
Tests whether the field callSegmentID has a value.- Returns:
- whether the field callSegmentID has a value
-
hasRequestAnnouncementStarted
public boolean hasRequestAnnouncementStarted()
Tests whether the field requestAnnouncementStartedNotification has a value.- Returns:
- whether the field requestAnnouncementStartedNotification has a value
-
setCallSegmentID
public CAP4PlayAnnouncementArg setCallSegmentID(int value) throws IllegalStateException
Sets the value of the field callSegmentID 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
-
setCallSegmentIDPresent
public CAP4PlayAnnouncementArg setCallSegmentIDPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field callSegmentID.- 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
-
setDisconnectFromIPForbidden
public CAP4PlayAnnouncementArg setDisconnectFromIPForbidden(boolean value) throws IllegalStateException
Sets the value of the field disconnectFromIPForbidden. If null, marks the field as absent.- Overrides:
setDisconnectFromIPForbiddenin classCAP2PlayAnnouncementArg- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setDisconnectFromIPForbiddenPresent
public CAP4PlayAnnouncementArg setDisconnectFromIPForbiddenPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field disconnectFromIPForbidden.- Overrides:
setDisconnectFromIPForbiddenPresentin classCAP2PlayAnnouncementArg- 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
-
setExtensions
public CAP4PlayAnnouncementArg setExtensions(CAP1ExtensionField[] value) throws IllegalStateException
Sets the value of the field extensions. If null, marks the field as absent.- Overrides:
setExtensionsin classCAP2PlayAnnouncementArg- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setInformationToSend
public CAP4PlayAnnouncementArg setInformationToSend(CCInformationToSend value) throws IllegalStateException
Sets the value of the field informationToSend.- Overrides:
setInformationToSendin classCAP2PlayAnnouncementArg- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setRequestAnnouncementComplete
public CAP4PlayAnnouncementArg setRequestAnnouncementComplete(boolean value) throws IllegalStateException
Sets the value of the field requestAnnouncementCompleteNotification. If null, marks the field as absent.- Overrides:
setRequestAnnouncementCompletein classCAP2PlayAnnouncementArg- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setRequestAnnouncementCompletePresent
public CAP4PlayAnnouncementArg setRequestAnnouncementCompletePresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field requestAnnouncementCompleteNotification.- Overrides:
setRequestAnnouncementCompletePresentin classCAP2PlayAnnouncementArg- 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
-
setRequestAnnouncementStarted
public CAP4PlayAnnouncementArg setRequestAnnouncementStarted(boolean value) throws IllegalStateException
Sets the value of the field requestAnnouncementStartedNotification 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
-
setRequestAnnouncementStartedPresent
public CAP4PlayAnnouncementArg setRequestAnnouncementStartedPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field requestAnnouncementStartedNotification.- 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
-
-