public class CAP3ChargingCharacteristics extends AbstractFieldsObject
ChargingCharacteristics ::= CHOICE { maxTransferredVolume INTEGER (1..4294967295), maxElapsedTime INTEGER (1..86400) }
Used as field type by CAP3ApplyChargingGPRSArg
.
Modifier and Type | Class and Description |
---|---|
static class |
CAP3ChargingCharacteristics.Choice
API for CAP-datatypes.ChargingCharacteristics.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CAP3ChargingCharacteristics() |
Modifier and Type | Method and Description |
---|---|
CAP3ChargingCharacteristics |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CAP3ChargingCharacteristics |
copyOf(CAP3ChargingCharacteristics 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.
|
CAP3ChargingCharacteristics.Choice |
getChoice()
Gets the discriminant of the current 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.
|
int |
getMaxElapsedTime()
Gets the value of the maxElapsedTime choice.
|
long |
getMaxTransferredVolume()
Gets the value of the maxTransferredVolume choice.
|
boolean |
isMaxElapsedTimeChosen()
Tests whether the choice is maxElapsedTime.
|
boolean |
isMaxTransferredVolumeChosen()
Tests whether the choice is maxTransferredVolume.
|
CAP3ChargingCharacteristics |
setMaxElapsedTime(int value)
Sets the value of the maxElapsedTime choice.
|
CAP3ChargingCharacteristics |
setMaxTransferredVolume(long value)
Sets the value of the maxTransferredVolume choice.
|
equals, hashCode, toString
checkModify, isReadOnly, setReadOnly
public CAP3ChargingCharacteristics clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CAP3ChargingCharacteristics copyOf(CAP3ChargingCharacteristics from)
from
- the object from which to copypublic CAP3ChargingCharacteristics.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic int getMaxElapsedTime() throws IllegalStateException
IllegalStateException
- if choice is not maxElapsedTimepublic long getMaxTransferredVolume() throws IllegalStateException
IllegalStateException
- if choice is not maxTransferredVolumepublic boolean isMaxElapsedTimeChosen()
public boolean isMaxTransferredVolumeChosen()
public CAP3ChargingCharacteristics setMaxElapsedTime(int value) throws IllegalStateException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlypublic CAP3ChargingCharacteristics setMaxTransferredVolume(long value) throws IllegalStateException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-only