Class CAP4EventSpecificInformationBCSM.TAnswerSpecificInfo
-
- All Implemented Interfaces:
DataObject,Serializable
- Enclosing class:
- CAP4EventSpecificInformationBCSM
public static class CAP4EventSpecificInformationBCSM.TAnswerSpecificInfo extends CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo
API for CAP-datatypes.EventSpecificInformationBCSM.tAnswerSpecificInfo. Generated from the following ASN.1 type definition.tAnswerSpecificInfo ::= 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 TAnswerSpecificInfo()Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP4EventSpecificInformationBCSM.TAnswerSpecificInfoclone()Constructs a copy of this object and everything reachable from it.static CAP4EventSpecificInformationBCSM.TAnswerSpecificInfocopyOf(CCEventSpecificInformationBCSM.TAnswerSpecificInfo 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_BasicServiceCodegetExt_basicServiceCode()Gets the value of the field ext-basicServiceCode.MAPExt_BasicServiceCodegetExt_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.booleanhasChargeIndicator()Tests whether the field chargeIndicator has a value.booleanhasExt_basicServiceCode()Tests whether the field ext-basicServiceCode has a value.booleanhasExt_basicServiceCode2()Tests whether the field ext-basicServiceCode2 has a value.CAP4EventSpecificInformationBCSM.TAnswerSpecificInfosetChargeIndicator(byte[] value)Sets the value of the field chargeIndicator.CAP4EventSpecificInformationBCSM.TAnswerSpecificInfosetDestinationAddress(CalledPartyNumber value)Sets the value of the field destinationAddress.CAP4EventSpecificInformationBCSM.TAnswerSpecificInfosetExt_basicServiceCode(MAPExt_BasicServiceCode value)Sets the value of the field ext-basicServiceCode.CAP4EventSpecificInformationBCSM.TAnswerSpecificInfosetExt_basicServiceCode2(MAPExt_BasicServiceCode value)Sets the value of the field ext-basicServiceCode2.CAP4EventSpecificInformationBCSM.TAnswerSpecificInfosetForwardedCallPresent(boolean flag)Sets the presence or absence of the optional field forwardedCall.CAP4EventSpecificInformationBCSM.TAnswerSpecificInfosetOr_CallPresent(boolean flag)Sets the presence or absence of the optional field or-Call.voidsetReadOnly()Sets this and all its fields to be immutable.-
Methods inherited from class com.opencloud.slee.resources.cgin.cap_v3.CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo
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.TAnswerSpecificInfo clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Overrides:
clonein classCAP3EventSpecificInformationBCSM.TAnswerSpecificInfo- Returns:
- copy of object
-
copyOf
public static CAP4EventSpecificInformationBCSM.TAnswerSpecificInfo copyOf(CCEventSpecificInformationBCSM.TAnswerSpecificInfo 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.TAnswerSpecificInfo
-
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:
getFieldsMapin classCAP3EventSpecificInformationBCSM.TAnswerSpecificInfo- 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.TAnswerSpecificInfo 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.TAnswerSpecificInfo setDestinationAddress(CalledPartyNumber value) throws IllegalStateException
Sets the value of the field destinationAddress. If null, marks the field as absent.- Overrides:
setDestinationAddressin classCAP3EventSpecificInformationBCSM.TAnswerSpecificInfo- 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.TAnswerSpecificInfo 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.TAnswerSpecificInfo 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.TAnswerSpecificInfo setForwardedCallPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field forwardedCall.- Overrides:
setForwardedCallPresentin classCAP3EventSpecificInformationBCSM.TAnswerSpecificInfo- 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.TAnswerSpecificInfo setOr_CallPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field or-Call.- Overrides:
setOr_CallPresentin classCAP3EventSpecificInformationBCSM.TAnswerSpecificInfo- 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:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classCAP3EventSpecificInformationBCSM.TAnswerSpecificInfo
-
-