public class CCGapCriteria extends AbstractFieldsObject
GapCriteria ::= CHOICE { basicGapCriteria BasicGapCriteria, ... } CC-DataTypes { GapCriteria { @extendible } }
Used as field type by CCCallGapArg
.
Modifier and Type | Class and Description |
---|---|
static class |
CCGapCriteria.Choice
API for CC-DataTypes.GapCriteria.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CCGapCriteria() |
Modifier and Type | Method and Description |
---|---|
CCGapCriteria |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCGapCriteria |
copyOf(CCGapCriteria 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.
|
CCBasicGapCriteria |
getBasicGapCriteria()
Gets the value of the basicGapCriteria choice.
|
CCGapCriteria.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.
|
boolean |
isBasicGapCriteriaChosen()
Tests whether the choice is basicGapCriteria.
|
CCGapCriteria |
setBasicGapCriteria(CCBasicGapCriteria value)
Sets the value of the basicGapCriteria choice.
|
protected void |
setChoice(CCGapCriteria.Choice arg)
Sets the discriminant of the current choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public CCGapCriteria clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCGapCriteria copyOf(CCGapCriteria from)
from
- the object from which to copypublic CCBasicGapCriteria getBasicGapCriteria()
public CCGapCriteria.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic boolean isBasicGapCriteriaChosen()
public CCGapCriteria setBasicGapCriteria(CCBasicGapCriteria 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 nullprotected void setChoice(CCGapCriteria.Choice arg)
arg
- the new discriminantpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject