Class CCBasicGapCriteria
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CCBasicGapCriteria
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CCBasicGapCriteria extends AbstractFieldsObject
API for CC-DataTypes.BasicGapCriteria. Generated from the following ASN.1 type definition and the adaptations below.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
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CCBasicGapCriteria()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly
-
-
-
-
Method Detail
-
clone
public CCBasicGapCriteria clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Specified by:
clone
in classAbstractDataObject
- Returns:
- copy of object
-
copyOf
public 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.- Parameters:
from
- the object from which to copy- Returns:
- CCBasicGapCriteria
-
getCalledAddressAndService
public CCBasicGapCriteria.CalledAddressAndService getCalledAddressAndService()
Gets the value of the calledAddressAndService choice.- Returns:
- value of the choice, if choice is calledAddressAndService, else null
-
getCalledAddressValue
public GenericNumber getCalledAddressValue()
Gets the value of the calledAddressValue choice.- Returns:
- value of the choice, if choice is calledAddressValue, else null
-
getCallingAddressAndService
public CCBasicGapCriteria.CallingAddressAndService getCallingAddressAndService()
Gets the value of the callingAddressAndService choice.- Returns:
- value of the choice, if choice is callingAddressAndService, else null
-
getChoice
public CCBasicGapCriteria.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
getFieldAccessors
public static FieldAccessor[] getFieldAccessors()
Gets a new array of the accessors for fields of this type.- Returns:
- FieldAccessor[]
-
getFieldsMap
public Map<String,Object> getFieldsMap(boolean withAbsents)
Gets a Map from :discriminant-name to associated-value. For a value of primitive type, the value is boxed. If choice is not set, returns a map from : to AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
getGapOnService
public CCGapOnService getGapOnService()
Gets the value of the gapOnService choice.- Returns:
- value of the choice, if choice is gapOnService, else null
-
isCalledAddressAndServiceChosen
public boolean isCalledAddressAndServiceChosen()
Tests whether the choice is calledAddressAndService.- Returns:
- true if chosen, false if not
-
isCalledAddressValueChosen
public boolean isCalledAddressValueChosen()
Tests whether the choice is calledAddressValue.- Returns:
- true if chosen, false if not
-
isCallingAddressAndServiceChosen
public boolean isCallingAddressAndServiceChosen()
Tests whether the choice is callingAddressAndService.- Returns:
- true if chosen, false if not
-
isGapOnServiceChosen
public boolean isGapOnServiceChosen()
Tests whether the choice is gapOnService.- Returns:
- true if chosen, false if not
-
setCalledAddressAndService
public CCBasicGapCriteria setCalledAddressAndService(CCBasicGapCriteria.CalledAddressAndService value) throws IllegalStateException, NullPointerException
Sets the value of the calledAddressAndService choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setCalledAddressValue
public CCBasicGapCriteria setCalledAddressValue(GenericNumber value) throws IllegalStateException, NullPointerException
Sets the value of the calledAddressValue choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setCallingAddressAndService
public CCBasicGapCriteria setCallingAddressAndService(CCBasicGapCriteria.CallingAddressAndService value) throws IllegalStateException, NullPointerException
Sets the value of the callingAddressAndService choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setChoice
protected void setChoice(CCBasicGapCriteria.Choice arg)
Sets the discriminant of the current choice.- Parameters:
arg
- the new discriminant
-
setGapOnService
public CCBasicGapCriteria setGapOnService(CCGapOnService value) throws IllegalStateException, NullPointerException
Sets the value of the gapOnService choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
-