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