public class CCCollectedInfo extends AbstractFieldsObject
CollectedInfo ::=
CHOICE {
collectedDigits CollectedDigits
}
CC-DataTypes {
CollectedInfo {
@extendible
}
}
Used as field type by CCPromptAndCollectUserInformationArg.
| Modifier and Type | Class and Description |
|---|---|
static class |
CCCollectedInfo.Choice
API for CC-DataTypes.CollectedInfo.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
CCCollectedInfo() |
| Modifier and Type | Method and Description |
|---|---|
CCCollectedInfo |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCCollectedInfo |
copyOf(CCCollectedInfo 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.
|
CCCollectedInfo.Choice |
getChoice()
Gets the discriminant of the current choice.
|
CCCollectedDigits |
getCollectedDigits()
Gets the value of the collectedDigits 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 |
isCollectedDigitsChosen()
Tests whether the choice is collectedDigits.
|
protected void |
setChoice(CCCollectedInfo.Choice arg)
Sets the discriminant of the current choice.
|
CCCollectedInfo |
setCollectedDigits(CCCollectedDigits value)
Sets the value of the collectedDigits choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toStringcheckModify, isReadOnlypublic CCCollectedInfo clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static CCCollectedInfo copyOf(CCCollectedInfo from)
from - the object from which to copypublic CCCollectedInfo.Choice getChoice()
public CCCollectedDigits getCollectedDigits()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - ignored, as value cannot be optionalpublic boolean isCollectedDigitsChosen()
protected void setChoice(CCCollectedInfo.Choice arg)
arg - the new discriminantpublic CCCollectedInfo setCollectedDigits(CCCollectedDigits 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 DataObjectsetReadOnly in class AbstractDataObject