Class CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
-
- All Implemented Interfaces:
DataObject
,Serializable
- Enclosing class:
- CAP4EventSpecificInformationBCSM
public static class CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo extends CAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
API for CAP-datatypes.EventSpecificInformationBCSM.oAnswerSpecificInfo. Generated from the following ASN.1 type definition.oAnswerSpecificInfo ::= SEQUENCE { destinationAddress CalledPartyNumber OPTIONAL, or-Call NULL OPTIONAL, forwardedCall NULL OPTIONAL, chargeIndicator ChargeIndicator OPTIONAL, ext-basicServiceCode Ext-BasicServiceCode OPTIONAL, ext-basicServiceCode2 Ext-BasicServiceCode OPTIONAL, ... }
Used as field type by
CAP4EventSpecificInformationBCSM
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description OAnswerSpecificInfo()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
clone()
Constructs a copy of this object and everything reachable from it.static CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
copyOf(CCEventSpecificInformationBCSM.OAnswerSpecificInfo 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.byte[]
getChargeIndicator()
Gets the value of the field chargeIndicator.MAPExt_BasicServiceCode
getExt_basicServiceCode()
Gets the value of the field ext-basicServiceCode.MAPExt_BasicServiceCode
getExt_basicServiceCode2()
Gets the value of the field ext-basicServiceCode2.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.boolean
hasChargeIndicator()
Tests whether the field chargeIndicator has a value.boolean
hasExt_basicServiceCode()
Tests whether the field ext-basicServiceCode has a value.boolean
hasExt_basicServiceCode2()
Tests whether the field ext-basicServiceCode2 has a value.CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
setChargeIndicator(byte[] value)
Sets the value of the field chargeIndicator.CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
setDestinationAddress(CalledPartyNumber value)
Sets the value of the field destinationAddress.CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
setExt_basicServiceCode(MAPExt_BasicServiceCode value)
Sets the value of the field ext-basicServiceCode.CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
setExt_basicServiceCode2(MAPExt_BasicServiceCode value)
Sets the value of the field ext-basicServiceCode2.CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
setForwardedCallPresent(boolean flag)
Sets the presence or absence of the optional field forwardedCall.CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
setOr_CallPresent(boolean flag)
Sets the presence or absence of the optional field or-Call.void
setReadOnly()
Sets this and all its fields to be immutable.-
Methods inherited from class com.opencloud.slee.resources.cgin.cap_v3.CAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
getDestinationAddress, hasDestinationAddress, hasForwardedCall, hasOr_Call
-
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 CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Overrides:
clone
in classCAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
- Returns:
- copy of object
-
copyOf
public static CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo copyOf(CCEventSpecificInformationBCSM.OAnswerSpecificInfo 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:
- CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo
-
getChargeIndicator
public byte[] getChargeIndicator()
Gets the value of the field chargeIndicator.- Returns:
- value of field chargeIndicator, or null if not present
-
getExt_basicServiceCode
public MAPExt_BasicServiceCode getExt_basicServiceCode()
Gets the value of the field ext-basicServiceCode.- Returns:
- value of field ext-basicServiceCode, or null if not present
-
getExt_basicServiceCode2
public MAPExt_BasicServiceCode getExt_basicServiceCode2()
Gets the value of the field ext-basicServiceCode2.- Returns:
- value of field ext-basicServiceCode2, or null if not present
-
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:
getFieldsMap
in classCAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
hasChargeIndicator
public boolean hasChargeIndicator()
Tests whether the field chargeIndicator has a value.- Returns:
- whether the field chargeIndicator has a value
-
hasExt_basicServiceCode
public boolean hasExt_basicServiceCode()
Tests whether the field ext-basicServiceCode has a value.- Returns:
- whether the field ext-basicServiceCode has a value
-
hasExt_basicServiceCode2
public boolean hasExt_basicServiceCode2()
Tests whether the field ext-basicServiceCode2 has a value.- Returns:
- whether the field ext-basicServiceCode2 has a value
-
setChargeIndicator
public CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo setChargeIndicator(byte[] value) throws IllegalStateException
Sets the value of the field chargeIndicator. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setDestinationAddress
public CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo setDestinationAddress(CalledPartyNumber value) throws IllegalStateException
Sets the value of the field destinationAddress. If null, marks the field as absent.- Overrides:
setDestinationAddress
in classCAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setExt_basicServiceCode
public CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo setExt_basicServiceCode(MAPExt_BasicServiceCode value) throws IllegalStateException
Sets the value of the field ext-basicServiceCode. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setExt_basicServiceCode2
public CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo setExt_basicServiceCode2(MAPExt_BasicServiceCode value) throws IllegalStateException
Sets the value of the field ext-basicServiceCode2. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setForwardedCallPresent
public CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo setForwardedCallPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field forwardedCall.- Overrides:
setForwardedCallPresent
in classCAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
- 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
-
setOr_CallPresent
public CAP4EventSpecificInformationBCSM.OAnswerSpecificInfo setOr_CallPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field or-Call.- Overrides:
setOr_CallPresent
in classCAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
- 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
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classCAP3EventSpecificInformationBCSM.OAnswerSpecificInfo
-
-