Class CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo
-
- All Implemented Interfaces:
DataObject,Serializable
- Direct Known Subclasses:
CAP4EventSpecificInformationBCSM.TAnswerSpecificInfo
- Enclosing class:
- CAP3EventSpecificInformationBCSM
public static class CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo extends CCEventSpecificInformationBCSM.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, ... }Used as field type by
CAP3EventSpecificInformationBCSM.- 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 CAP3EventSpecificInformationBCSM.TAnswerSpecificInfoclone()Constructs a copy of this object and everything reachable from it.static CAP3EventSpecificInformationBCSM.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.CalledPartyNumbergetDestinationAddress()Gets the value of the field destinationAddress.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.booleanhasDestinationAddress()Tests whether the field destinationAddress has a value.booleanhasForwardedCall()Tests whether the field forwardedCall is present.booleanhasOr_Call()Tests whether the field or-Call is present.CAP3EventSpecificInformationBCSM.TAnswerSpecificInfosetDestinationAddress(CalledPartyNumber value)Sets the value of the field destinationAddress.CAP3EventSpecificInformationBCSM.TAnswerSpecificInfosetForwardedCallPresent(boolean flag)Sets the presence or absence of the optional field forwardedCall.CAP3EventSpecificInformationBCSM.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.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly
-
-
-
-
Method Detail
-
clone
public CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Overrides:
clonein classCCEventSpecificInformationBCSM.TAnswerSpecificInfo- Returns:
- copy of object
-
copyOf
public static CAP3EventSpecificInformationBCSM.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:
- CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo
-
getDestinationAddress
public CalledPartyNumber getDestinationAddress()
Gets the value of the field destinationAddress.- Returns:
- value of field destinationAddress, 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 classCCEventSpecificInformationBCSM.TAnswerSpecificInfo- Parameters:
withAbsents- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
hasDestinationAddress
public boolean hasDestinationAddress()
Tests whether the field destinationAddress has a value.- Returns:
- whether the field destinationAddress has a value
-
hasForwardedCall
public boolean hasForwardedCall()
Tests whether the field forwardedCall is present.- Returns:
- whether the field forwardedCall is present
-
hasOr_Call
public boolean hasOr_Call()
Tests whether the field or-Call is present.- Returns:
- whether the field or-Call is present
-
setDestinationAddress
public CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo setDestinationAddress(CalledPartyNumber value) throws IllegalStateException
Sets the value of the field destinationAddress. 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 CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo setForwardedCallPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field forwardedCall.- 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 CAP3EventSpecificInformationBCSM.TAnswerSpecificInfo setOr_CallPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field or-Call.- 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 classAbstractDataObject
-
-