public class CS1FilteringCriteria extends AbstractFieldsObject
FilteringCriteria ::= CHOICE { serviceKey ServiceKey, addressAndService SEQUENCE { calledAddressValue Digits, serviceKey ServiceKey, callingAddressValue Digits OPTIONAL, locationNumber LocationNumber OPTIONAL } } Core-INAP-CS1-DataTypes { FilteringCriteria { addressAndService { calledAddressValue { @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber } callingAddressValue { @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber } } } }
Used as field type by CS1ActivateServiceFilteringArg
.
Used as field type by CS1ServiceFilteringResponseArg
.
Modifier and Type | Class and Description |
---|---|
static class |
CS1FilteringCriteria.AddressAndService
API for Core-INAP-CS1-DataTypes.FilteringCriteria.addressAndService.
|
static class |
CS1FilteringCriteria.Choice
API for Core-INAP-CS1-DataTypes.FilteringCriteria.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CS1FilteringCriteria() |
Modifier and Type | Method and Description |
---|---|
CS1FilteringCriteria |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CS1FilteringCriteria |
copyOf(CS1FilteringCriteria 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.
|
CS1FilteringCriteria.AddressAndService |
getAddressAndService()
Gets the value of the addressAndService choice.
|
CS1FilteringCriteria.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.
|
int |
getServiceKey()
Gets the value of the serviceKey choice.
|
boolean |
isAddressAndServiceChosen()
Tests whether the choice is addressAndService.
|
boolean |
isServiceKeyChosen()
Tests whether the choice is serviceKey.
|
CS1FilteringCriteria |
setAddressAndService(CS1FilteringCriteria.AddressAndService value)
Sets the value of the addressAndService choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
CS1FilteringCriteria |
setServiceKey(int value)
Sets the value of the serviceKey choice.
|
equals, hashCode, toString
checkModify, isReadOnly
public CS1FilteringCriteria clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CS1FilteringCriteria copyOf(CS1FilteringCriteria from)
from
- the object from which to copypublic CS1FilteringCriteria.AddressAndService getAddressAndService()
public CS1FilteringCriteria.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic int getServiceKey() throws IllegalStateException
IllegalStateException
- if choice is not serviceKeypublic boolean isAddressAndServiceChosen()
public boolean isServiceKeyChosen()
public CS1FilteringCriteria setAddressAndService(CS1FilteringCriteria.AddressAndService 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
public CS1FilteringCriteria setServiceKey(int value) throws IllegalStateException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-only