public class CCBasicGapCriteria extends AbstractFieldsObject
BasicGapCriteria ::= CHOICE { calledAddressValue Digits, gapOnService GapOnService, calledAddressAndService SEQUENCE { calledAddressValue Digits, serviceKey ServiceKey }, callingAddressAndService SEQUENCE { callingAddressValue Digits, serviceKey ServiceKey, locationNumber LocationNumber OPTIONAL } } CC-DataTypes { BasicGapCriteria { @extendible calledAddressAndService { calledAddressValue { @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber } } calledAddressValue { @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber } callingAddressAndService { callingAddressValue { @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber } } } }
Used as field type by CCGapCriteria
.
Modifier and Type | Class and Description |
---|---|
static class |
CCBasicGapCriteria.CalledAddressAndService
API for CC-DataTypes.BasicGapCriteria.calledAddressAndService.
|
static class |
CCBasicGapCriteria.CallingAddressAndService
API for CC-DataTypes.BasicGapCriteria.callingAddressAndService.
|
static class |
CCBasicGapCriteria.Choice
API for CC-DataTypes.BasicGapCriteria.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CCBasicGapCriteria() |
Modifier and Type | Method and Description |
---|---|
CCBasicGapCriteria |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCBasicGapCriteria |
copyOf(CCBasicGapCriteria 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.CalledAddressAndService |
getCalledAddressAndService()
Gets the value of the calledAddressAndService choice.
|
GenericNumber |
getCalledAddressValue()
Gets the value of the calledAddressValue choice.
|
CCBasicGapCriteria.CallingAddressAndService |
getCallingAddressAndService()
Gets the value of the callingAddressAndService choice.
|
CCBasicGapCriteria.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.
|
CCGapOnService |
getGapOnService()
Gets the value of the gapOnService choice.
|
boolean |
isCalledAddressAndServiceChosen()
Tests whether the choice is calledAddressAndService.
|
boolean |
isCalledAddressValueChosen()
Tests whether the choice is calledAddressValue.
|
boolean |
isCallingAddressAndServiceChosen()
Tests whether the choice is callingAddressAndService.
|
boolean |
isGapOnServiceChosen()
Tests whether the choice is gapOnService.
|
CCBasicGapCriteria |
setCalledAddressAndService(CCBasicGapCriteria.CalledAddressAndService value)
Sets the value of the calledAddressAndService choice.
|
CCBasicGapCriteria |
setCalledAddressValue(GenericNumber value)
Sets the value of the calledAddressValue choice.
|
CCBasicGapCriteria |
setCallingAddressAndService(CCBasicGapCriteria.CallingAddressAndService value)
Sets the value of the callingAddressAndService choice.
|
protected void |
setChoice(CCBasicGapCriteria.Choice arg)
Sets the discriminant of the current choice.
|
CCBasicGapCriteria |
setGapOnService(CCGapOnService value)
Sets the value of the gapOnService choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public CCBasicGapCriteria clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCBasicGapCriteria copyOf(CCBasicGapCriteria from)
from
- the object from which to copypublic CCBasicGapCriteria.CalledAddressAndService getCalledAddressAndService()
public GenericNumber getCalledAddressValue()
public CCBasicGapCriteria.CallingAddressAndService getCallingAddressAndService()
public CCBasicGapCriteria.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic CCGapOnService getGapOnService()
public boolean isCalledAddressAndServiceChosen()
public boolean isCalledAddressValueChosen()
public boolean isCallingAddressAndServiceChosen()
public boolean isGapOnServiceChosen()
public CCBasicGapCriteria setCalledAddressAndService(CCBasicGapCriteria.CalledAddressAndService 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 CCBasicGapCriteria setCalledAddressValue(GenericNumber 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 CCBasicGapCriteria setCallingAddressAndService(CCBasicGapCriteria.CallingAddressAndService 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(CCBasicGapCriteria.Choice arg)
arg
- the new discriminantpublic CCBasicGapCriteria setGapOnService(CCGapOnService 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