Class CAP3ElapsedTimeRollOver
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CAP3ElapsedTimeRollOver
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CAP3ElapsedTimeRollOver extends AbstractFieldsObject
API for CAP-datatypes.ElapsedTimeRollOver. Generated from the following ASN.1 type definition.ElapsedTimeRollOver ::= CHOICE { rO-TimeGPRSIfNoTariffSwitch INTEGER (0..255), rO-TimeGPRSIfTariffSwitch SEQUENCE { rO-TimeGPRSSinceLastTariffSwitch INTEGER (0..255) OPTIONAL, rO-TimeGPRSTariffSwitchInterval 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
CAP3ElapsedTimeRollOver.Choice
API for CAP-datatypes.ElapsedTimeRollOver.Choice.static class
CAP3ElapsedTimeRollOver.RO_TimeGPRSIfTariffSwitch
API for CAP-datatypes.ElapsedTimeRollOver.rO-TimeGPRSIfTariffSwitch.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3ElapsedTimeRollOver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3ElapsedTimeRollOver
clone()
Constructs a copy of this object and everything reachable from it.static CAP3ElapsedTimeRollOver
copyOf(CAP3ElapsedTimeRollOver 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.CAP3ElapsedTimeRollOver.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_TimeGPRSIfNoTariffSwitch()
Gets the value of the rO-TimeGPRSIfNoTariffSwitch choice.CAP3ElapsedTimeRollOver.RO_TimeGPRSIfTariffSwitch
getRO_TimeGPRSIfTariffSwitch()
Gets the value of the rO-TimeGPRSIfTariffSwitch choice.boolean
isRO_TimeGPRSIfNoTariffSwitchChosen()
Tests whether the choice is rO-TimeGPRSIfNoTariffSwitch.boolean
isRO_TimeGPRSIfTariffSwitchChosen()
Tests whether the choice is rO-TimeGPRSIfTariffSwitch.void
setReadOnly()
Sets this and all its fields to be immutable.CAP3ElapsedTimeRollOver
setRO_TimeGPRSIfNoTariffSwitch(int value)
Sets the value of the rO-TimeGPRSIfNoTariffSwitch choice.CAP3ElapsedTimeRollOver
setRO_TimeGPRSIfTariffSwitch(CAP3ElapsedTimeRollOver.RO_TimeGPRSIfTariffSwitch value)
Sets the value of the rO-TimeGPRSIfTariffSwitch 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 CAP3ElapsedTimeRollOver 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 CAP3ElapsedTimeRollOver copyOf(CAP3ElapsedTimeRollOver 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:
- CAP3ElapsedTimeRollOver
-
getChoice
public CAP3ElapsedTimeRollOver.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_TimeGPRSIfNoTariffSwitch
public int getRO_TimeGPRSIfNoTariffSwitch() throws IllegalStateException
Gets the value of the rO-TimeGPRSIfNoTariffSwitch choice.- Returns:
- value of the choice, if choice is rO-TimeGPRSIfNoTariffSwitch
- Throws:
IllegalStateException
- if choice is not rO-TimeGPRSIfNoTariffSwitch
-
getRO_TimeGPRSIfTariffSwitch
public CAP3ElapsedTimeRollOver.RO_TimeGPRSIfTariffSwitch getRO_TimeGPRSIfTariffSwitch()
Gets the value of the rO-TimeGPRSIfTariffSwitch choice.- Returns:
- value of the choice, if choice is rO-TimeGPRSIfTariffSwitch, else null
-
isRO_TimeGPRSIfNoTariffSwitchChosen
public boolean isRO_TimeGPRSIfNoTariffSwitchChosen()
Tests whether the choice is rO-TimeGPRSIfNoTariffSwitch.- Returns:
- true if chosen, false if not
-
isRO_TimeGPRSIfTariffSwitchChosen
public boolean isRO_TimeGPRSIfTariffSwitchChosen()
Tests whether the choice is rO-TimeGPRSIfTariffSwitch.- Returns:
- true if chosen, false if not
-
setRO_TimeGPRSIfNoTariffSwitch
public CAP3ElapsedTimeRollOver setRO_TimeGPRSIfNoTariffSwitch(int value) throws IllegalStateException
Sets the value of the rO-TimeGPRSIfNoTariffSwitch choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setRO_TimeGPRSIfTariffSwitch
public CAP3ElapsedTimeRollOver setRO_TimeGPRSIfTariffSwitch(CAP3ElapsedTimeRollOver.RO_TimeGPRSIfTariffSwitch value) throws IllegalStateException, NullPointerException
Sets the value of the rO-TimeGPRSIfTariffSwitch 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
-
-