public class CCReceivedInformationArg extends AbstractFieldsObject
ReceivedInformationArg ::= CHOICE { digitsResponse Digits } CC-DataTypes { ReceivedInformationArg { @extendible digitsResponse { @import com.opencloud.slee.resources.in.datatypes.cc.GenericDigits } } }
Used as result type by CCOperations.promptAndCollectUserInformation
.
Modifier and Type | Class and Description |
---|---|
static class |
CCReceivedInformationArg.Choice
API for CC-DataTypes.ReceivedInformationArg.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CCReceivedInformationArg() |
Modifier and Type | Method and Description |
---|---|
CCReceivedInformationArg |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCReceivedInformationArg |
copyOf(CCReceivedInformationArg 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.
|
CCReceivedInformationArg.Choice |
getChoice()
Gets the discriminant of the current choice.
|
GenericDigits |
getDigitsResponse()
Gets the value of the digitsResponse 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 |
isDigitsResponseChosen()
Tests whether the choice is digitsResponse.
|
protected void |
setChoice(CCReceivedInformationArg.Choice arg)
Sets the discriminant of the current choice.
|
CCReceivedInformationArg |
setDigitsResponse(GenericDigits value)
Sets the value of the digitsResponse choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public CCReceivedInformationArg clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCReceivedInformationArg copyOf(CCReceivedInformationArg from)
from
- the object from which to copypublic CCReceivedInformationArg.Choice getChoice()
public GenericDigits getDigitsResponse()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic boolean isDigitsResponseChosen()
protected void setChoice(CCReceivedInformationArg.Choice arg)
arg
- the new discriminantpublic CCReceivedInformationArg setDigitsResponse(GenericDigits 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 nullpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject