Class CAP4CAMEL_CallResult.TimeDurationChargingResult
-
- All Implemented Interfaces:
DataObject
,Serializable
- Enclosing class:
- CAP4CAMEL_CallResult
public static class CAP4CAMEL_CallResult.TimeDurationChargingResult extends CAP3CAMEL_CallResult.TimeDurationChargingResult
API for CAP-datatypes.CAMEL-CallResult.timeDurationChargingResult. Generated from the following ASN.1 type definition and the adaptations below.timeDurationChargingResult ::= SEQUENCE { partyToCharge ReceivingSideID, timeInformation TimeInformation, legActive BOOLEAN DEFAULT TRUE, callLegReleasedAtTcpExpiry NULL OPTIONAL, extensions Extensions OPTIONAL, aChChargingAddress AChChargingAddress DEFAULT legID : receivingSideID : '01'H, ... } CAP-datatypes { CAMEL-CallResult { timeDurationChargingResult { callLegReleasedAtTcpExpiry { @rename callReleasedAtTcpExpiry } legActive { @rename callActive } } } }
Used as field type by
CAP4CAMEL_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 CAP4CAMEL_CallResult.TimeDurationChargingResult
clone()
Constructs a copy of this object and everything reachable from it.static CAP4CAMEL_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.CAP4AChChargingAddress
getAChChargingAddress()
Gets the value of the field aChChargingAddress.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
hasAChChargingAddress()
Tests whether the field aChChargingAddress has a value.CAP4CAMEL_CallResult.TimeDurationChargingResult
setAChChargingAddress(CAP4AChChargingAddress value)
Sets the value of the field aChChargingAddress.CAP4CAMEL_CallResult.TimeDurationChargingResult
setCallActive(boolean value)
Sets the value of the field legActive.CAP4CAMEL_CallResult.TimeDurationChargingResult
setCallActivePresent(boolean flag)
Sets the presence or absence of the optional field legActive.CAP4CAMEL_CallResult.TimeDurationChargingResult
setCallReleasedAtTcpExpiryPresent(boolean flag)
Sets the presence or absence of the optional field callLegReleasedAtTcpExpiry.CAP4CAMEL_CallResult.TimeDurationChargingResult
setExtensions(CAP1ExtensionField[] value)
Sets the value of the field extensions.CAP4CAMEL_CallResult.TimeDurationChargingResult
setPartyToCharge(CCLegID value)
Sets the value of the field partyToCharge.void
setReadOnly()
Sets this and all its fields to be immutable.CAP4CAMEL_CallResult.TimeDurationChargingResult
setTimeInformation(CAP2TimeInformation value)
Sets the value of the field timeInformation.-
Methods inherited from class com.opencloud.slee.resources.cgin.cap_v3.CAP3CAMEL_CallResult.TimeDurationChargingResult
getExtensions, hasCallReleasedAtTcpExpiry, hasExtensions
-
Methods inherited from class com.opencloud.slee.resources.cgin.cap_v2.CAP2CAMEL_CallResult.TimeDurationChargingResult
getCallActive, getPartyToCharge, getTimeInformation, hasCallActive, hasPartyToCharge, hasTimeInformation
-
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 CAP4CAMEL_CallResult.TimeDurationChargingResult clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Overrides:
clone
in classCAP3CAMEL_CallResult.TimeDurationChargingResult
- Returns:
- copy of object
-
copyOf
public static CAP4CAMEL_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:
- CAP4CAMEL_CallResult.TimeDurationChargingResult
-
getAChChargingAddress
public CAP4AChChargingAddress getAChChargingAddress()
Gets the value of the field aChChargingAddress.- Returns:
- value of field aChChargingAddress, 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 classCAP3CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
hasAChChargingAddress
public boolean hasAChChargingAddress()
Tests whether the field aChChargingAddress has a value.- Returns:
- whether the field aChChargingAddress has a value
-
setAChChargingAddress
public CAP4CAMEL_CallResult.TimeDurationChargingResult setAChChargingAddress(CAP4AChChargingAddress value) throws IllegalStateException
Sets the value of the field aChChargingAddress. 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
-
setCallActive
public CAP4CAMEL_CallResult.TimeDurationChargingResult setCallActive(boolean value) throws IllegalStateException
Sets the value of the field legActive. If null, marks the field as absent.- Overrides:
setCallActive
in classCAP3CAMEL_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 CAP4CAMEL_CallResult.TimeDurationChargingResult setCallActivePresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field legActive.- Overrides:
setCallActivePresent
in classCAP3CAMEL_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 CAP4CAMEL_CallResult.TimeDurationChargingResult setCallReleasedAtTcpExpiryPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field callLegReleasedAtTcpExpiry.- Overrides:
setCallReleasedAtTcpExpiryPresent
in classCAP3CAMEL_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
-
setExtensions
public CAP4CAMEL_CallResult.TimeDurationChargingResult setExtensions(CAP1ExtensionField[] value) throws IllegalStateException
Sets the value of the field extensions. If null, marks the field as absent.- Overrides:
setExtensions
in classCAP3CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setPartyToCharge
public CAP4CAMEL_CallResult.TimeDurationChargingResult setPartyToCharge(CCLegID value) throws IllegalStateException
Sets the value of the field partyToCharge.- Overrides:
setPartyToCharge
in classCAP3CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
value
- the new value for the field- 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 classCAP2CAMEL_CallResult.TimeDurationChargingResult
-
setTimeInformation
public CAP4CAMEL_CallResult.TimeDurationChargingResult setTimeInformation(CAP2TimeInformation value) throws IllegalStateException
Sets the value of the field timeInformation.- Overrides:
setTimeInformation
in classCAP3CAMEL_CallResult.TimeDurationChargingResult
- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-