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.
|
java.util.Map<java.lang.String,java.lang.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, toString
checkModify, isReadOnly
public CCGapTreatment clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCGapTreatment copyOf(CCGapTreatment from)
from
- the object from which to copypublic CCGapTreatment.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public java.util.Map<java.lang.String,java.lang.Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- 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 java.lang.IllegalStateException, java.lang.NullPointerException
value
- the new value for the choicejava.lang.IllegalStateException
- if this instance has been marked as read-onlyjava.lang.NullPointerException
- if the given value is nullpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public CCGapTreatment setReleaseCause(Cause value) throws java.lang.IllegalStateException, java.lang.NullPointerException
value
- the new value for the choicejava.lang.IllegalStateException
- if this instance has been marked as read-onlyjava.lang.NullPointerException
- if the given value is null