Class MAPCUG_Information
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPCUG_Information
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPCUG_Information extends AbstractFieldsObject
API for MAP-SS-DataTypes-ph1.CUG-Information. Generated from the following ASN.1 type definition.CUG-Information ::= SEQUENCE { cug-Facilities CUG-Facilities, cug-Features CHOICE { cug-Feature CUG-Feature-v1, cug-FeatureList CUG-FeatureList-v1 } }
Present in ph1. Removed between ph1 and ph2 (replaced byMAPCUG_Info
).Used as field type by
MAPSS_Information
.Used as field type by
MAPSentParameter
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPCUG_Information.Cug_Features
API for MAP-SS-DataTypes-ph1.CUG-Information.cug-Features.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPCUG_Information()
Constructs an object with uninitialised state.MAPCUG_Information(byte[] Cug_Facilities_param, MAPCUG_Information.Cug_Features Cug_Features_param)
Constructs an object from given values for all fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPCUG_Information
clone()
Constructs a copy of this object and everything reachable from it.static MAPCUG_Information
copyOf(MAPCUG_Information 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.byte[]
getCug_Facilities()
Gets the value of the field cug-Facilities.MAPCUG_Information.Cug_Features
getCug_Features()
Gets the value of the field cug-Features.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.boolean
hasCug_Facilities()
Tests whether the field cug-Facilities has a value.boolean
hasCug_Features()
Tests whether the field cug-Features has a value.MAPCUG_Information
setCug_Facilities(byte[] value)
Sets the value of the field cug-Facilities.MAPCUG_Information
setCug_Features(MAPCUG_Information.Cug_Features value)
Sets the value of the field cug-Features.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
-
-
-
-
Constructor Detail
-
MAPCUG_Information
public MAPCUG_Information()
Constructs an object with uninitialised state.
-
MAPCUG_Information
public MAPCUG_Information(byte[] Cug_Facilities_param, MAPCUG_Information.Cug_Features Cug_Features_param)
Constructs an object from given values for all fields.- Parameters:
Cug_Facilities_param
- value for that fieldCug_Features_param
- value for that field
-
-
Method Detail
-
clone
public MAPCUG_Information 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 MAPCUG_Information copyOf(MAPCUG_Information 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_Information
-
getCug_Facilities
public byte[] getCug_Facilities()
Gets the value of the field cug-Facilities.- Returns:
- value of field cug-Facilities, or null if not present
-
getCug_Features
public MAPCUG_Information.Cug_Features getCug_Features()
Gets the value of the field cug-Features.- Returns:
- value of field cug-Features, 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
-
hasCug_Facilities
public boolean hasCug_Facilities()
Tests whether the field cug-Facilities has a value.- Returns:
- whether the field cug-Facilities has a value
-
hasCug_Features
public boolean hasCug_Features()
Tests whether the field cug-Features has a value.- Returns:
- whether the field cug-Features has a value
-
setCug_Facilities
public MAPCUG_Information setCug_Facilities(byte[] value) throws IllegalStateException
Sets the value of the field cug-Facilities.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setCug_Features
public MAPCUG_Information setCug_Features(MAPCUG_Information.Cug_Features value) throws IllegalStateException
Sets the value of the field cug-Features.- 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
-
-