Class CS1RequestedInformationValue
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CCRequestedInformationValue
-
- CS1RequestedInformationValue
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CS1RequestedInformationValue extends CCRequestedInformationValue
API for Core-INAP-CS1-DataTypes.RequestedInformationValue. Generated from the following ASN.1 type definition and the adaptations below.RequestedInformationValue ::= CHOICE { callAttemptElapsedTimeValue INTEGER (0..255), callStopTimeValue DateAndTime, callConnectedElapsedTimeValue Integer4, calledAddressValue Digits, releaseCauseValue Cause } Core-INAP-CS1-DataTypes { RequestedInformationValue { @parentType com.opencloud.slee.resources.cgin.callcontrol.CCRequestedInformationValue calledAddressValue { @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber } } }
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CS1RequestedInformationValue.Choice
API for Core-INAP-CS1-DataTypes.RequestedInformationValue.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CS1RequestedInformationValue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CS1RequestedInformationValue
clone()
Constructs a copy of this object and everything reachable from it.static CS1RequestedInformationValue
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.GenericNumber
getCalledAddressValue()
Gets the value of the calledAddressValue 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.boolean
isCalledAddressValueChosen()
Tests whether the choice is calledAddressValue.CS1RequestedInformationValue
setCallAttemptElapsedTimeValue(int value)
Sets the value of the callAttemptElapsedTimeValue choice.CS1RequestedInformationValue
setCallConnectedElapsedTimeValue(int value)
Sets the value of the callConnectedElapsedTimeValue choice.CS1RequestedInformationValue
setCalledAddressValue(GenericNumber value)
Sets the value of the calledAddressValue choice.CS1RequestedInformationValue
setCallStopTimeValue(DateAndTime value)
Sets the value of the callStopTimeValue choice.void
setReadOnly()
Sets this and all its fields to be immutable.CS1RequestedInformationValue
setReleaseCauseValue(Cause value)
Sets the value of the releaseCauseValue choice.-
Methods inherited from class com.opencloud.slee.resources.cgin.callcontrol.CCRequestedInformationValue
getCallAttemptElapsedTimeValue, getCallConnectedElapsedTimeValue, getCallStopTimeValue, getChoice, getReleaseCauseValue, isCallAttemptElapsedTimeValueChosen, isCallConnectedElapsedTimeValueChosen, isCallStopTimeValueChosen, isReleaseCauseValueChosen, setChoice
-
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 CS1RequestedInformationValue clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Overrides:
clone
in classCCRequestedInformationValue
- Returns:
- copy of object
-
copyOf
public static CS1RequestedInformationValue 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:
- CS1RequestedInformationValue
-
getCalledAddressValue
public GenericNumber getCalledAddressValue()
Gets the value of the calledAddressValue choice.- Returns:
- value of the choice, if choice is calledAddressValue, else null
-
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.- Overrides:
getFieldsMap
in classCCRequestedInformationValue
- Parameters:
withAbsents
- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
isCalledAddressValueChosen
public boolean isCalledAddressValueChosen()
Tests whether the choice is calledAddressValue.- Returns:
- true if chosen, false if not
-
setCallAttemptElapsedTimeValue
public CS1RequestedInformationValue setCallAttemptElapsedTimeValue(int value) throws IllegalStateException
Sets the value of the callAttemptElapsedTimeValue choice.- Overrides:
setCallAttemptElapsedTimeValue
in classCCRequestedInformationValue
- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setCallConnectedElapsedTimeValue
public CS1RequestedInformationValue setCallConnectedElapsedTimeValue(int value) throws IllegalStateException
Sets the value of the callConnectedElapsedTimeValue choice.- Overrides:
setCallConnectedElapsedTimeValue
in classCCRequestedInformationValue
- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setCallStopTimeValue
public CS1RequestedInformationValue setCallStopTimeValue(DateAndTime value) throws IllegalStateException, NullPointerException
Sets the value of the callStopTimeValue choice.- Overrides:
setCallStopTimeValue
in classCCRequestedInformationValue
- 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
-
setCalledAddressValue
public CS1RequestedInformationValue setCalledAddressValue(GenericNumber value) throws IllegalStateException, NullPointerException
Sets the value of the calledAddressValue 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 classCCRequestedInformationValue
-
setReleaseCauseValue
public CS1RequestedInformationValue setReleaseCauseValue(Cause value) throws IllegalStateException, NullPointerException
Sets the value of the releaseCauseValue choice.- Overrides:
setReleaseCauseValue
in classCCRequestedInformationValue
- 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
-
-