public class CAP3ChargingResult extends AbstractFieldsObject
ChargingResult ::= CHOICE { transferredVolume TransferredVolume, elapsedTime ElapsedTime }
Used as field type by CAP3ApplyChargingReportGPRSArg
.
Modifier and Type | Class and Description |
---|---|
static class |
CAP3ChargingResult.Choice
API for CAP-datatypes.ChargingResult.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CAP3ChargingResult() |
Modifier and Type | Method and 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.
|
equals, hashCode, toString
checkModify, isReadOnly
public CAP3ChargingResult clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CAP3ChargingResult copyOf(CAP3ChargingResult from)
from
- the object from which to copypublic CAP3ChargingResult.Choice getChoice()
public CAP3ElapsedTime getElapsedTime()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic CAP3TransferredVolume getTransferredVolume()
public boolean isElapsedTimeChosen()
public boolean isTransferredVolumeChosen()
public CAP3ChargingResult setElapsedTime(CAP3ElapsedTime value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is nullpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public CAP3ChargingResult setTransferredVolume(CAP3TransferredVolume value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null