Class MAPCUG_Feature
-
- All Implemented Interfaces:
DataObject,Serializable
public class MAPCUG_Feature extends AbstractFieldsObject
API for MAP-MS-DataTypes.CUG-Feature. Generated from the following ASN.1 type definition.CUG-Feature ::= SEQUENCE { basicService Ext-BasicServiceCode OPTIONAL, preferentialCUG-Indicator CUG-Index OPTIONAL, interCUG-Restrictions InterCUG-Restrictions, extensionContainer ExtensionContainer OPTIONAL, -- Added in R96. ... }Added in ph2. Moved from MAP-SS-DataTypes between ph2 and R96.Used in array as field type by
MAPCUG_Info.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPCUG_Feature()Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPCUG_Featureclone()Constructs a copy of this object and everything reachable from it.static MAPCUG_FeaturecopyOf(MAPCUG_Feature 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.MAPExt_BasicServiceCodegetBasicService()Gets the value of the field basicService.MAPExtensionContainergetExtensionContainer()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.byte[]getInterCUG_Restrictions()Gets the value of the field interCUG-Restrictions.intgetPreferentialCUG_Indicator()Gets the value of the field preferentialCUG-Indicator.booleanhasBasicService()Tests whether the field basicService has a value.booleanhasExtensionContainer()Tests whether the field extensionContainer has a value.booleanhasInterCUG_Restrictions()Tests whether the field interCUG-Restrictions has a value.booleanhasPreferentialCUG_Indicator()Tests whether the field preferentialCUG-Indicator has a value.MAPCUG_FeaturesetBasicService(MAPExt_BasicServiceCode value)Sets the value of the field basicService.MAPCUG_FeaturesetExtensionContainer(MAPExtensionContainer value)Sets the value of the field extensionContainer.MAPCUG_FeaturesetInterCUG_Restrictions(byte[] value)Sets the value of the field interCUG-Restrictions.MAPCUG_FeaturesetPreferentialCUG_Indicator(int value)Sets the value of the field preferentialCUG-Indicator and marks the field as present.MAPCUG_FeaturesetPreferentialCUG_IndicatorPresent(boolean flag)Sets the presence or absence of the optional field preferentialCUG-Indicator.voidsetReadOnly()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 MAPCUG_Feature 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 MAPCUG_Feature copyOf(MAPCUG_Feature 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:
- MAPCUG_Feature
-
getBasicService
public MAPExt_BasicServiceCode getBasicService()
Gets the value of the field basicService.- Returns:
- value of field basicService, or null if not present
-
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:
getFieldsMapin classAbstractFieldsObject- Parameters:
withAbsents- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getInterCUG_Restrictions
public byte[] getInterCUG_Restrictions()
Gets the value of the field interCUG-Restrictions.- Returns:
- value of field interCUG-Restrictions, or null if not present
-
getPreferentialCUG_Indicator
public int getPreferentialCUG_Indicator()
Gets the value of the field preferentialCUG-Indicator.- Returns:
- value of field preferentialCUG-Indicator
-
hasBasicService
public boolean hasBasicService()
Tests whether the field basicService has a value.- Returns:
- whether the field basicService has a value
-
hasExtensionContainer
public boolean hasExtensionContainer()
Tests whether the field extensionContainer has a value.- Returns:
- whether the field extensionContainer has a value
-
hasInterCUG_Restrictions
public boolean hasInterCUG_Restrictions()
Tests whether the field interCUG-Restrictions has a value.- Returns:
- whether the field interCUG-Restrictions has a value
-
hasPreferentialCUG_Indicator
public boolean hasPreferentialCUG_Indicator()
Tests whether the field preferentialCUG-Indicator has a value.- Returns:
- whether the field preferentialCUG-Indicator has a value
-
setBasicService
public MAPCUG_Feature setBasicService(MAPExt_BasicServiceCode value) throws IllegalStateException
Sets the value of the field basicService. 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
-
setExtensionContainer
public MAPCUG_Feature 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
-
setInterCUG_Restrictions
public MAPCUG_Feature setInterCUG_Restrictions(byte[] value) throws IllegalStateException
Sets the value of the field interCUG-Restrictions.- Parameters:
value- the new value for the field- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setPreferentialCUG_Indicator
public MAPCUG_Feature setPreferentialCUG_Indicator(int value) throws IllegalStateException
Sets the value of the field preferentialCUG-Indicator 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
-
setPreferentialCUG_IndicatorPresent
public MAPCUG_Feature setPreferentialCUG_IndicatorPresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field preferentialCUG-Indicator.- Parameters:
flag- either true if the field should be marked as present or false if the field should be marked as absent- 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
-
-