Class CAP3CAMEL_CallResult.TimeDurationChargingResult
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
CAP4CAMEL_CallResult.TimeDurationChargingResult
- Enclosing class:
- CAP3CAMEL_CallResult
public static class CAP3CAMEL_CallResult.TimeDurationChargingResult extends CAP2CAMEL_CallResult.TimeDurationChargingResult
API for CAP-datatypes.CAMEL-CallResult.timeDurationChargingResult. Generated from the following ASN.1 type definition.timeDurationChargingResult ::= SEQUENCE { partyToCharge ReceivingSideID, timeInformation TimeInformation, callActive BOOLEAN DEFAULT TRUE, callReleasedAtTcpExpiry NULL OPTIONAL, extensions Extensions OPTIONAL, ... }
Used as field type by
CAP3CAMEL_CallResult
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description TimeDurationChargingResult()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3CAMEL_CallResult.TimeDurationChargingResult
clone()
Constructs a copy of this object and everything reachable from it.static CAP3CAMEL_CallResult.TimeDurationChargingResult
copyOf(CAP2CAMEL_CallResult.TimeDurationChargingResult 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.CAP1ExtensionField[]
getExtensions()
Gets the value of the field extensions.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
hasCallReleasedAtTcpExpiry()
Tests whether the field callReleasedAtTcpExpiry is present.boolean
hasExtensions()
Tests whether the field extensions has a value.CAP3CAMEL_CallResult.TimeDurationChargingResult
setCallActive(boolean value)
Sets the value of the field callActive.CAP3CAMEL_CallResult.TimeDurationChargingResult
setCallActivePresent(boolean flag)
Sets the presence or absence of the optional field callActive.CAP3CAMEL_CallResult.TimeDurationChargingResult
setCallReleasedAtTcpExpiryPresent(boolean flag)
Sets the presence or absence of the optional field callReleasedAtTcpExpiry.CAP3CAMEL_CallResult.TimeDurationChargingResult
setExtensions(CAP1ExtensionField[] value)
Sets the value of the field extensions.CAP3CAMEL_CallResult.TimeDurationChargingResult
setPartyToCharge(CCLegID value)
Sets the value of the field partyToCharge.CAP3CAMEL_CallResult.TimeDurationChargingResult
setTimeInformation(CAP2TimeInformation value)
Sets the value of the field timeInformation.-
Methods inherited from class com.opencloud.slee.resources.cgin.cap_v2.CAP2CAMEL_CallResult.TimeDurationChargingResult
getCallActive, getPartyToCharge, getTimeInformation, hasCallActive, hasPartyToCharge, hasTimeInformation, 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 CAP3CAMEL_CallResult.TimeDurationChargingResult clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Overrides:
clone
in classCAP2CAMEL_CallResult.TimeDurationChargingResult
- Returns:
- copy of object
-
copyOf
public static CAP3CAMEL_CallResult.TimeDurationChargingResult copyOf(CAP2CAMEL_CallResult.TimeDurationChargingResult 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:
- CAP3CAMEL_CallResult.TimeDurationChargingResult
-
getExtensions
public CAP1ExtensionField[] getExtensions()
Gets the value of the field extensions.- Returns:
- value of field extensions, 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 classCAP2CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
hasCallReleasedAtTcpExpiry
public boolean hasCallReleasedAtTcpExpiry()
Tests whether the field callReleasedAtTcpExpiry is present.- Returns:
- whether the field callReleasedAtTcpExpiry is present
-
hasExtensions
public boolean hasExtensions()
Tests whether the field extensions has a value.- Returns:
- whether the field extensions has a value
-
setCallActive
public CAP3CAMEL_CallResult.TimeDurationChargingResult setCallActive(boolean value) throws IllegalStateException
Sets the value of the field callActive. If null, marks the field as absent.- Overrides:
setCallActive
in classCAP2CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setCallActivePresent
public CAP3CAMEL_CallResult.TimeDurationChargingResult setCallActivePresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field callActive.- Overrides:
setCallActivePresent
in classCAP2CAMEL_CallResult.TimeDurationChargingResult
- 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
-
setCallReleasedAtTcpExpiryPresent
public CAP3CAMEL_CallResult.TimeDurationChargingResult setCallReleasedAtTcpExpiryPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field callReleasedAtTcpExpiry.- 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 CAP3CAMEL_CallResult.TimeDurationChargingResult setExtensions(CAP1ExtensionField[] value) throws IllegalStateException
Sets the value of the field extensions. 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
-
setPartyToCharge
public CAP3CAMEL_CallResult.TimeDurationChargingResult setPartyToCharge(CCLegID value) throws IllegalStateException
Sets the value of the field partyToCharge.- Overrides:
setPartyToCharge
in classCAP2CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setTimeInformation
public CAP3CAMEL_CallResult.TimeDurationChargingResult setTimeInformation(CAP2TimeInformation value) throws IllegalStateException
Sets the value of the field timeInformation.- Overrides:
setTimeInformation
in classCAP2CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-