Class CAP3TransferredVolumeRollOver
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CAP3TransferredVolumeRollOver
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CAP3TransferredVolumeRollOver extends AbstractFieldsObject
API for CAP-datatypes.TransferredVolumeRollOver. Generated from the following ASN.1 type definition.TransferredVolumeRollOver ::= CHOICE { rO-VolumeIfNoTariffSwitch INTEGER (0..255), rO-VolumeIfTariffSwitch SEQUENCE { rO-VolumeSinceLastTariffSwitch INTEGER (0..255) OPTIONAL, rO-VolumeTariffSwitchInterval INTEGER (0..255) OPTIONAL } }
Used as field type by
CAP3ChargingRollOver
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CAP3TransferredVolumeRollOver.Choice
API for CAP-datatypes.TransferredVolumeRollOver.Choice.static class
CAP3TransferredVolumeRollOver.RO_VolumeIfTariffSwitch
API for CAP-datatypes.TransferredVolumeRollOver.rO-VolumeIfTariffSwitch.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3TransferredVolumeRollOver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3TransferredVolumeRollOver
clone()
Constructs a copy of this object and everything reachable from it.static CAP3TransferredVolumeRollOver
copyOf(CAP3TransferredVolumeRollOver 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.CAP3TransferredVolumeRollOver.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
getRO_VolumeIfNoTariffSwitch()
Gets the value of the rO-VolumeIfNoTariffSwitch choice.CAP3TransferredVolumeRollOver.RO_VolumeIfTariffSwitch
getRO_VolumeIfTariffSwitch()
Gets the value of the rO-VolumeIfTariffSwitch choice.boolean
isRO_VolumeIfNoTariffSwitchChosen()
Tests whether the choice is rO-VolumeIfNoTariffSwitch.boolean
isRO_VolumeIfTariffSwitchChosen()
Tests whether the choice is rO-VolumeIfTariffSwitch.void
setReadOnly()
Sets this and all its fields to be immutable.CAP3TransferredVolumeRollOver
setRO_VolumeIfNoTariffSwitch(int value)
Sets the value of the rO-VolumeIfNoTariffSwitch choice.CAP3TransferredVolumeRollOver
setRO_VolumeIfTariffSwitch(CAP3TransferredVolumeRollOver.RO_VolumeIfTariffSwitch value)
Sets the value of the rO-VolumeIfTariffSwitch 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 CAP3TransferredVolumeRollOver 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 CAP3TransferredVolumeRollOver copyOf(CAP3TransferredVolumeRollOver 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:
- CAP3TransferredVolumeRollOver
-
getChoice
public CAP3TransferredVolumeRollOver.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
-
getRO_VolumeIfNoTariffSwitch
public int getRO_VolumeIfNoTariffSwitch() throws IllegalStateException
Gets the value of the rO-VolumeIfNoTariffSwitch choice.- Returns:
- value of the choice, if choice is rO-VolumeIfNoTariffSwitch
- Throws:
IllegalStateException
- if choice is not rO-VolumeIfNoTariffSwitch
-
getRO_VolumeIfTariffSwitch
public CAP3TransferredVolumeRollOver.RO_VolumeIfTariffSwitch getRO_VolumeIfTariffSwitch()
Gets the value of the rO-VolumeIfTariffSwitch choice.- Returns:
- value of the choice, if choice is rO-VolumeIfTariffSwitch, else null
-
isRO_VolumeIfNoTariffSwitchChosen
public boolean isRO_VolumeIfNoTariffSwitchChosen()
Tests whether the choice is rO-VolumeIfNoTariffSwitch.- Returns:
- true if chosen, false if not
-
isRO_VolumeIfTariffSwitchChosen
public boolean isRO_VolumeIfTariffSwitchChosen()
Tests whether the choice is rO-VolumeIfTariffSwitch.- Returns:
- true if chosen, false if not
-
setRO_VolumeIfNoTariffSwitch
public CAP3TransferredVolumeRollOver setRO_VolumeIfNoTariffSwitch(int value) throws IllegalStateException
Sets the value of the rO-VolumeIfNoTariffSwitch choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setRO_VolumeIfTariffSwitch
public CAP3TransferredVolumeRollOver setRO_VolumeIfTariffSwitch(CAP3TransferredVolumeRollOver.RO_VolumeIfTariffSwitch value) throws IllegalStateException, NullPointerException
Sets the value of the rO-VolumeIfTariffSwitch 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
-
-