Class CAP3ChargingCharacteristics
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CAP3ChargingCharacteristics
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CAP3ChargingCharacteristics extends AbstractFieldsObject
API for CAP-datatypes.ChargingCharacteristics. Generated from the following ASN.1 type definition.ChargingCharacteristics ::= CHOICE { maxTransferredVolume INTEGER (1..4294967295), maxElapsedTime INTEGER (1..86400) }
Used as field type by
CAP3ApplyChargingGPRSArg
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CAP3ChargingCharacteristics.Choice
API for CAP-datatypes.ChargingCharacteristics.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3ChargingCharacteristics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly, setReadOnly
-
-
-
-
Method Detail
-
clone
public CAP3ChargingCharacteristics 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 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.- Parameters:
from
- the object from which to copy- Returns:
- CAP3ChargingCharacteristics
-
getChoice
public CAP3ChargingCharacteristics.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
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
-
getMaxElapsedTime
public int getMaxElapsedTime() throws IllegalStateException
Gets the value of the maxElapsedTime choice.- Returns:
- value of the choice, if choice is maxElapsedTime
- Throws:
IllegalStateException
- if choice is not maxElapsedTime
-
getMaxTransferredVolume
public long getMaxTransferredVolume() throws IllegalStateException
Gets the value of the maxTransferredVolume choice.- Returns:
- value of the choice, if choice is maxTransferredVolume
- Throws:
IllegalStateException
- if choice is not maxTransferredVolume
-
isMaxElapsedTimeChosen
public boolean isMaxElapsedTimeChosen()
Tests whether the choice is maxElapsedTime.- Returns:
- true if chosen, false if not
-
isMaxTransferredVolumeChosen
public boolean isMaxTransferredVolumeChosen()
Tests whether the choice is maxTransferredVolume.- Returns:
- true if chosen, false if not
-
setMaxElapsedTime
public CAP3ChargingCharacteristics setMaxElapsedTime(int value) throws IllegalStateException
Sets the value of the maxElapsedTime choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setMaxTransferredVolume
public CAP3ChargingCharacteristics setMaxTransferredVolume(long value) throws IllegalStateException
Sets the value of the maxTransferredVolume choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-