Class CCBasicGapCriteria.CallingAddressAndService
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CallingAddressAndService
-
- All Implemented Interfaces:
DataObject,Serializable
- Enclosing class:
- CCBasicGapCriteria
public static class CCBasicGapCriteria.CallingAddressAndService extends AbstractFieldsObject
API for CC-DataTypes.BasicGapCriteria.callingAddressAndService. Generated from the following ASN.1 type definition and the adaptations below.callingAddressAndService ::= SEQUENCE { callingAddressValue Digits, serviceKey ServiceKey, locationNumber LocationNumber OPTIONAL } CC-DataTypes { BasicGapCriteria { callingAddressAndService { callingAddressValue { @import com.opencloud.slee.resources.in.datatypes.cc.GenericNumber } } } }Used as field type by
CCBasicGapCriteria.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CallingAddressAndService()Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CCBasicGapCriteria.CallingAddressAndServiceclone()Constructs a copy of this object and everything reachable from it.static CCBasicGapCriteria.CallingAddressAndServicecopyOf(CCBasicGapCriteria.CallingAddressAndService 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.GenericNumbergetCallingAddressValue()Gets the value of the field callingAddressValue.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 field-name to field-value.LocationNumbergetLocationNumber()Gets the value of the field locationNumber.intgetServiceKey()Gets the value of the field serviceKey.booleanhasCallingAddressValue()Tests whether the field callingAddressValue has a value.booleanhasLocationNumber()Tests whether the field locationNumber has a value.booleanhasServiceKey()Tests whether the field serviceKey has a value.CCBasicGapCriteria.CallingAddressAndServicesetCallingAddressValue(GenericNumber value)Sets the value of the field callingAddressValue.CCBasicGapCriteria.CallingAddressAndServicesetLocationNumber(LocationNumber value)Sets the value of the field locationNumber.voidsetReadOnly()Sets this and all its fields to be immutable.CCBasicGapCriteria.CallingAddressAndServicesetServiceKey(int value)Sets the value of the field serviceKey and marks the field as present.-
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.CallingAddressAndService clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Specified by:
clonein classAbstractDataObject- Returns:
- copy of object
-
copyOf
public static CCBasicGapCriteria.CallingAddressAndService copyOf(CCBasicGapCriteria.CallingAddressAndService 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.CallingAddressAndService
-
getCallingAddressValue
public GenericNumber getCallingAddressValue()
Gets the value of the field callingAddressValue.- Returns:
- value of field callingAddressValue, or null if not present
-
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 field-name to field-value. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an unitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMapin classAbstractFieldsObject- Parameters:
withAbsents- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getLocationNumber
public LocationNumber getLocationNumber()
Gets the value of the field locationNumber.- Returns:
- value of field locationNumber, or null if not present
-
getServiceKey
public int getServiceKey()
Gets the value of the field serviceKey.- Returns:
- value of field serviceKey
-
hasCallingAddressValue
public boolean hasCallingAddressValue()
Tests whether the field callingAddressValue has a value.- Returns:
- whether the field callingAddressValue has a value
-
hasLocationNumber
public boolean hasLocationNumber()
Tests whether the field locationNumber has a value.- Returns:
- whether the field locationNumber has a value
-
hasServiceKey
public boolean hasServiceKey()
Tests whether the field serviceKey has a value.- Returns:
- whether the field serviceKey has a value
-
setCallingAddressValue
public CCBasicGapCriteria.CallingAddressAndService setCallingAddressValue(GenericNumber value) throws IllegalStateException
Sets the value of the field callingAddressValue.- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setLocationNumber
public CCBasicGapCriteria.CallingAddressAndService setLocationNumber(LocationNumber value) throws IllegalStateException
Sets the value of the field locationNumber. If null, marks the field as absent.- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
setServiceKey
public CCBasicGapCriteria.CallingAddressAndService setServiceKey(int value) throws IllegalStateException
Sets the value of the field serviceKey and marks the field as present.- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
-