public class CCRequestedInformationValue extends AbstractFieldsObject
RequestedInformationValue ::= CHOICE { callAttemptElapsedTimeValue INTEGER (0..255), callStopTimeValue DateAndTime, callConnectedElapsedTimeValue Integer4, releaseCauseValue Cause } CC-DataTypes { RequestedInformationValue { @extendible } }
Used as field type by CCRequestedInformation
.
Modifier and Type | Class and Description |
---|---|
static class |
CCRequestedInformationValue.Choice
API for CC-DataTypes.RequestedInformationValue.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CCRequestedInformationValue() |
Modifier and Type | Method and Description |
---|---|
CCRequestedInformationValue |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCRequestedInformationValue |
copyOf(CCRequestedInformationValue 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.
|
int |
getCallAttemptElapsedTimeValue()
Gets the value of the callAttemptElapsedTimeValue choice.
|
int |
getCallConnectedElapsedTimeValue()
Gets the value of the callConnectedElapsedTimeValue choice.
|
DateAndTime |
getCallStopTimeValue()
Gets the value of the callStopTimeValue choice.
|
CCRequestedInformationValue.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.
|
Cause |
getReleaseCauseValue()
Gets the value of the releaseCauseValue choice.
|
boolean |
isCallAttemptElapsedTimeValueChosen()
Tests whether the choice is callAttemptElapsedTimeValue.
|
boolean |
isCallConnectedElapsedTimeValueChosen()
Tests whether the choice is callConnectedElapsedTimeValue.
|
boolean |
isCallStopTimeValueChosen()
Tests whether the choice is callStopTimeValue.
|
boolean |
isReleaseCauseValueChosen()
Tests whether the choice is releaseCauseValue.
|
CCRequestedInformationValue |
setCallAttemptElapsedTimeValue(int value)
Sets the value of the callAttemptElapsedTimeValue choice.
|
CCRequestedInformationValue |
setCallConnectedElapsedTimeValue(int value)
Sets the value of the callConnectedElapsedTimeValue choice.
|
CCRequestedInformationValue |
setCallStopTimeValue(DateAndTime value)
Sets the value of the callStopTimeValue choice.
|
protected void |
setChoice(CCRequestedInformationValue.Choice arg)
Sets the discriminant of the current choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
CCRequestedInformationValue |
setReleaseCauseValue(Cause value)
Sets the value of the releaseCauseValue choice.
|
equals, hashCode, toString
checkModify, isReadOnly
public CCRequestedInformationValue clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCRequestedInformationValue copyOf(CCRequestedInformationValue from)
from
- the object from which to copypublic int getCallAttemptElapsedTimeValue() throws IllegalStateException
IllegalStateException
- if choice is not callAttemptElapsedTimeValuepublic int getCallConnectedElapsedTimeValue() throws IllegalStateException
IllegalStateException
- if choice is not callConnectedElapsedTimeValuepublic DateAndTime getCallStopTimeValue()
public CCRequestedInformationValue.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic Cause getReleaseCauseValue()
public boolean isCallAttemptElapsedTimeValueChosen()
public boolean isCallConnectedElapsedTimeValueChosen()
public boolean isCallStopTimeValueChosen()
public boolean isReleaseCauseValueChosen()
public CCRequestedInformationValue setCallAttemptElapsedTimeValue(int value) throws IllegalStateException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlypublic CCRequestedInformationValue setCallConnectedElapsedTimeValue(int value) throws IllegalStateException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlypublic CCRequestedInformationValue setCallStopTimeValue(DateAndTime 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 nullprotected void setChoice(CCRequestedInformationValue.Choice arg)
arg
- the new discriminantpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public CCRequestedInformationValue setReleaseCauseValue(Cause 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