Class MAPServiceType
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPServiceType extends AbstractFieldsObject
API for MAP-MS-DataTypes.ServiceType. Generated from the following ASN.1 type definition.ServiceType ::= SEQUENCE { serviceTypeIdentity LCSServiceTypeID, gmlc-Restriction GMLC-Restriction OPTIONAL, notificationToMSUser NotificationToMSUser OPTIONAL, -- If notificationToMSUser is not received, the default value according to 3GPP TS 23.271 shall be assumed. extensionContainer ExtensionContainer OPTIONAL, ... }
Added in release 5.Used in array as field type by
MAPLCS_PrivacyClass
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPServiceType()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPServiceType
clone()
Constructs a copy of this object and everything reachable from it.static MAPServiceType
copyOf(MAPServiceType 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.MAPExtensionContainer
getExtensionContainer()
Gets the value of the field extensionContainer.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.MAPGMLC_Restriction
getGmlc_Restriction()
Gets the value of the field gmlc-Restriction.MAPNotificationToMSUser
getNotificationToMSUser()
Gets the value of the field notificationToMSUser.int
getServiceTypeIdentity()
Gets the value of the field serviceTypeIdentity.boolean
hasExtensionContainer()
Tests whether the field extensionContainer has a value.boolean
hasGmlc_Restriction()
Tests whether the field gmlc-Restriction has a value.boolean
hasNotificationToMSUser()
Tests whether the field notificationToMSUser has a value.boolean
hasServiceTypeIdentity()
Tests whether the field serviceTypeIdentity has a value.MAPServiceType
setExtensionContainer(MAPExtensionContainer value)
Sets the value of the field extensionContainer.MAPServiceType
setGmlc_Restriction(MAPGMLC_Restriction value)
Sets the value of the field gmlc-Restriction.MAPServiceType
setNotificationToMSUser(MAPNotificationToMSUser value)
Sets the value of the field notificationToMSUser.void
setReadOnly()
Sets this and all its fields to be immutable.MAPServiceType
setServiceTypeIdentity(int value)
Sets the value of the field serviceTypeIdentity 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 MAPServiceType 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 MAPServiceType copyOf(MAPServiceType 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:
- MAPServiceType
-
getExtensionContainer
public MAPExtensionContainer getExtensionContainer()
Gets the value of the field extensionContainer.- Returns:
- value of field extensionContainer, 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:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getGmlc_Restriction
public MAPGMLC_Restriction getGmlc_Restriction()
Gets the value of the field gmlc-Restriction.- Returns:
- value of field gmlc-Restriction, or null if not present
-
getNotificationToMSUser
public MAPNotificationToMSUser getNotificationToMSUser()
Gets the value of the field notificationToMSUser.- Returns:
- value of field notificationToMSUser, or null if not present
-
getServiceTypeIdentity
public int getServiceTypeIdentity()
Gets the value of the field serviceTypeIdentity.- Returns:
- value of field serviceTypeIdentity
-
hasExtensionContainer
public boolean hasExtensionContainer()
Tests whether the field extensionContainer has a value.- Returns:
- whether the field extensionContainer has a value
-
hasGmlc_Restriction
public boolean hasGmlc_Restriction()
Tests whether the field gmlc-Restriction has a value.- Returns:
- whether the field gmlc-Restriction has a value
-
hasNotificationToMSUser
public boolean hasNotificationToMSUser()
Tests whether the field notificationToMSUser has a value.- Returns:
- whether the field notificationToMSUser has a value
-
hasServiceTypeIdentity
public boolean hasServiceTypeIdentity()
Tests whether the field serviceTypeIdentity has a value.- Returns:
- whether the field serviceTypeIdentity has a value
-
setExtensionContainer
public MAPServiceType setExtensionContainer(MAPExtensionContainer value) throws IllegalStateException
Sets the value of the field extensionContainer. 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
-
setGmlc_Restriction
public MAPServiceType setGmlc_Restriction(MAPGMLC_Restriction value) throws IllegalStateException
Sets the value of the field gmlc-Restriction. 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
-
setNotificationToMSUser
public MAPServiceType setNotificationToMSUser(MAPNotificationToMSUser value) throws IllegalStateException
Sets the value of the field notificationToMSUser. 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:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setServiceTypeIdentity
public MAPServiceType setServiceTypeIdentity(int value) throws IllegalStateException
Sets the value of the field serviceTypeIdentity 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
-
-