public class CAP3ElapsedTime extends AbstractFieldsObject
ElapsedTime ::=
CHOICE {
timeGPRSIfNoTariffSwitch INTEGER (0..86400),
timeGPRSIfTariffSwitch SEQUENCE {
timeGPRSSinceLastTariffSwitch INTEGER (0..86400),
timeGPRSTariffSwitchInterval INTEGER (0..86400) OPTIONAL
}
}
Used as field type by CAP3ChargingResult.
| Modifier and Type | Class and Description |
|---|---|
static class |
CAP3ElapsedTime.Choice
API for CAP-datatypes.ElapsedTime.Choice.
|
static class |
CAP3ElapsedTime.TimeGPRSIfTariffSwitch
API for CAP-datatypes.ElapsedTime.timeGPRSIfTariffSwitch.
|
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
CAP3ElapsedTime() |
| Modifier and Type | Method and Description |
|---|---|
CAP3ElapsedTime |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CAP3ElapsedTime |
copyOf(CAP3ElapsedTime 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.
|
CAP3ElapsedTime.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 |
getTimeGPRSIfNoTariffSwitch()
Gets the value of the timeGPRSIfNoTariffSwitch choice.
|
CAP3ElapsedTime.TimeGPRSIfTariffSwitch |
getTimeGPRSIfTariffSwitch()
Gets the value of the timeGPRSIfTariffSwitch choice.
|
boolean |
isTimeGPRSIfNoTariffSwitchChosen()
Tests whether the choice is timeGPRSIfNoTariffSwitch.
|
boolean |
isTimeGPRSIfTariffSwitchChosen()
Tests whether the choice is timeGPRSIfTariffSwitch.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
CAP3ElapsedTime |
setTimeGPRSIfNoTariffSwitch(int value)
Sets the value of the timeGPRSIfNoTariffSwitch choice.
|
CAP3ElapsedTime |
setTimeGPRSIfTariffSwitch(CAP3ElapsedTime.TimeGPRSIfTariffSwitch value)
Sets the value of the timeGPRSIfTariffSwitch choice.
|
equals, hashCode, toStringcheckModify, isReadOnlypublic CAP3ElapsedTime clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static CAP3ElapsedTime copyOf(CAP3ElapsedTime from)
from - the object from which to copypublic CAP3ElapsedTime.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - ignored, as value cannot be optionalpublic int getTimeGPRSIfNoTariffSwitch()
throws IllegalStateException
IllegalStateException - if choice is not timeGPRSIfNoTariffSwitchpublic CAP3ElapsedTime.TimeGPRSIfTariffSwitch getTimeGPRSIfTariffSwitch()
public boolean isTimeGPRSIfNoTariffSwitchChosen()
public boolean isTimeGPRSIfTariffSwitchChosen()
public void setReadOnly()
setReadOnly in interface DataObjectsetReadOnly in class AbstractDataObjectpublic CAP3ElapsedTime setTimeGPRSIfNoTariffSwitch(int value) throws IllegalStateException
value - the new value for the choiceIllegalStateException - if this instance has been marked as read-onlypublic CAP3ElapsedTime setTimeGPRSIfTariffSwitch(CAP3ElapsedTime.TimeGPRSIfTariffSwitch 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