Class CCRequestedInformationValue
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CCRequestedInformationValue
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
CS1RequestedInformationValue
public class CCRequestedInformationValue extends AbstractFieldsObject
API for CC-DataTypes.RequestedInformationValue. Generated from the following ASN.1 type definition and the adaptations below.RequestedInformationValue ::= CHOICE { callAttemptElapsedTimeValue INTEGER (0..255), callStopTimeValue DateAndTime, callConnectedElapsedTimeValue Integer4, releaseCauseValue Cause } CC-DataTypes { RequestedInformationValue { @extendible } }
Used as field type by
CCRequestedInformation
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CCRequestedInformationValue.Choice
API for CC-DataTypes.RequestedInformationValue.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CCRequestedInformationValue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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 CCRequestedInformationValue 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 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.- Parameters:
from
- the object from which to copy- Returns:
- CCRequestedInformationValue
-
getCallAttemptElapsedTimeValue
public int getCallAttemptElapsedTimeValue() throws IllegalStateException
Gets the value of the callAttemptElapsedTimeValue choice.- Returns:
- value of the choice, if choice is callAttemptElapsedTimeValue
- Throws:
IllegalStateException
- if choice is not callAttemptElapsedTimeValue
-
getCallConnectedElapsedTimeValue
public int getCallConnectedElapsedTimeValue() throws IllegalStateException
Gets the value of the callConnectedElapsedTimeValue choice.- Returns:
- value of the choice, if choice is callConnectedElapsedTimeValue
- Throws:
IllegalStateException
- if choice is not callConnectedElapsedTimeValue
-
getCallStopTimeValue
public DateAndTime getCallStopTimeValue()
Gets the value of the callStopTimeValue choice.- Returns:
- value of the choice, if choice is callStopTimeValue, else null
-
getChoice
public CCRequestedInformationValue.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
-
getReleaseCauseValue
public Cause getReleaseCauseValue()
Gets the value of the releaseCauseValue choice.- Returns:
- value of the choice, if choice is releaseCauseValue, else null
-
isCallAttemptElapsedTimeValueChosen
public boolean isCallAttemptElapsedTimeValueChosen()
Tests whether the choice is callAttemptElapsedTimeValue.- Returns:
- true if chosen, false if not
-
isCallConnectedElapsedTimeValueChosen
public boolean isCallConnectedElapsedTimeValueChosen()
Tests whether the choice is callConnectedElapsedTimeValue.- Returns:
- true if chosen, false if not
-
isCallStopTimeValueChosen
public boolean isCallStopTimeValueChosen()
Tests whether the choice is callStopTimeValue.- Returns:
- true if chosen, false if not
-
isReleaseCauseValueChosen
public boolean isReleaseCauseValueChosen()
Tests whether the choice is releaseCauseValue.- Returns:
- true if chosen, false if not
-
setCallAttemptElapsedTimeValue
public CCRequestedInformationValue setCallAttemptElapsedTimeValue(int value) throws IllegalStateException
Sets the value of the callAttemptElapsedTimeValue choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setCallConnectedElapsedTimeValue
public CCRequestedInformationValue setCallConnectedElapsedTimeValue(int value) throws IllegalStateException
Sets the value of the callConnectedElapsedTimeValue choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setCallStopTimeValue
public CCRequestedInformationValue setCallStopTimeValue(DateAndTime value) throws IllegalStateException, NullPointerException
Sets the value of the callStopTimeValue 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
-
setChoice
protected void setChoice(CCRequestedInformationValue.Choice arg)
Sets the discriminant of the current choice.- Parameters:
arg
- the new discriminant
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setReleaseCauseValue
public CCRequestedInformationValue setReleaseCauseValue(Cause value) throws IllegalStateException, NullPointerException
Sets the value of the releaseCauseValue 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
-
-