Class CAP3ChargingResult
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CAP3ChargingResult
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CAP3ChargingResult extends AbstractFieldsObject
API for CAP-datatypes.ChargingResult. Generated from the following ASN.1 type definition.ChargingResult ::= CHOICE { transferredVolume TransferredVolume, elapsedTime ElapsedTime }
Used as field type by
CAP3ApplyChargingReportGPRSArg
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CAP3ChargingResult.Choice
API for CAP-datatypes.ChargingResult.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3ChargingResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3ChargingResult
clone()
Constructs a copy of this object and everything reachable from it.static CAP3ChargingResult
copyOf(CAP3ChargingResult 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.CAP3ChargingResult.Choice
getChoice()
Gets the discriminant of the current choice.CAP3ElapsedTime
getElapsedTime()
Gets the value of the elapsedTime choice.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 :discriminant-name to associated-value.CAP3TransferredVolume
getTransferredVolume()
Gets the value of the transferredVolume choice.boolean
isElapsedTimeChosen()
Tests whether the choice is elapsedTime.boolean
isTransferredVolumeChosen()
Tests whether the choice is transferredVolume.CAP3ChargingResult
setElapsedTime(CAP3ElapsedTime value)
Sets the value of the elapsedTime choice.void
setReadOnly()
Sets this and all its fields to be immutable.CAP3ChargingResult
setTransferredVolume(CAP3TransferredVolume value)
Sets the value of the transferredVolume choice.-
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 CAP3ChargingResult clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Specified by:
clone
in classAbstractDataObject
- Returns:
- copy of object
-
copyOf
public static CAP3ChargingResult copyOf(CAP3ChargingResult 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:
- CAP3ChargingResult
-
getChoice
public CAP3ChargingResult.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
getElapsedTime
public CAP3ElapsedTime getElapsedTime()
Gets the value of the elapsedTime choice.- Returns:
- value of the choice, if choice is elapsedTime, else null
-
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 :discriminant-name to associated-value. For a value of primitive type, the value is boxed. If choice is not set, returns a map from : to AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
getTransferredVolume
public CAP3TransferredVolume getTransferredVolume()
Gets the value of the transferredVolume choice.- Returns:
- value of the choice, if choice is transferredVolume, else null
-
isElapsedTimeChosen
public boolean isElapsedTimeChosen()
Tests whether the choice is elapsedTime.- Returns:
- true if chosen, false if not
-
isTransferredVolumeChosen
public boolean isTransferredVolumeChosen()
Tests whether the choice is transferredVolume.- Returns:
- true if chosen, false if not
-
setElapsedTime
public CAP3ChargingResult setElapsedTime(CAP3ElapsedTime value) throws IllegalStateException, NullPointerException
Sets the value of the elapsedTime choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setTransferredVolume
public CAP3ChargingResult setTransferredVolume(CAP3TransferredVolume value) throws IllegalStateException, NullPointerException
Sets the value of the transferredVolume choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
-