Class MAPCUG_Information.Cug_Features
-
- All Implemented Interfaces:
DataObject
,Serializable
- Enclosing class:
- MAPCUG_Information
public static class MAPCUG_Information.Cug_Features extends AbstractFieldsObject
API for MAP-SS-DataTypes-ph1.CUG-Information.cug-Features. Generated from the following ASN.1 type definition.cug-Features ::= CHOICE { cug-Feature CUG-Feature-v1, cug-FeatureList CUG-FeatureList-v1 }
Used as field type by
MAPCUG_Information
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPCUG_Information.Cug_Features.Choice
API for MAP-SS-DataTypes-ph1.CUG-Information.cug-Features.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description Cug_Features()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPCUG_Information.Cug_Features
clone()
Constructs a copy of this object and everything reachable from it.static MAPCUG_Information.Cug_Features
copyOf(MAPCUG_Information.Cug_Features 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.MAPCUG_Information.Cug_Features.Choice
getChoice()
Gets the discriminant of the current choice.MAPCUG_Feature_v1
getCug_Feature()
Gets the value of the cug-Feature choice.MAPCUG_Feature_v1[]
getCug_FeatureList()
Gets the value of the cug-FeatureList 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.boolean
isCug_FeatureChosen()
Tests whether the choice is cug-Feature.boolean
isCug_FeatureListChosen()
Tests whether the choice is cug-FeatureList.MAPCUG_Information.Cug_Features
setCug_Feature(MAPCUG_Feature_v1 value)
Sets the value of the cug-Feature choice.MAPCUG_Information.Cug_Features
setCug_FeatureList(MAPCUG_Feature_v1[] value)
Sets the value of the cug-FeatureList 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 MAPCUG_Information.Cug_Features 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.Cug_Features copyOf(MAPCUG_Information.Cug_Features 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.Cug_Features
-
getChoice
public MAPCUG_Information.Cug_Features.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
getCug_Feature
public MAPCUG_Feature_v1 getCug_Feature()
Gets the value of the cug-Feature choice.- Returns:
- value of the choice, if choice is cug-Feature, else null
-
getCug_FeatureList
public MAPCUG_Feature_v1[] getCug_FeatureList()
Gets the value of the cug-FeatureList choice.- Returns:
- value of the choice, if choice is cug-FeatureList, else null
-
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
-
isCug_FeatureChosen
public boolean isCug_FeatureChosen()
Tests whether the choice is cug-Feature.- Returns:
- true if chosen, false if not
-
isCug_FeatureListChosen
public boolean isCug_FeatureListChosen()
Tests whether the choice is cug-FeatureList.- Returns:
- true if chosen, false if not
-
setCug_Feature
public MAPCUG_Information.Cug_Features setCug_Feature(MAPCUG_Feature_v1 value) throws IllegalStateException, NullPointerException
Sets the value of the cug-Feature 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
-
setCug_FeatureList
public MAPCUG_Information.Cug_Features setCug_FeatureList(MAPCUG_Feature_v1[] value) throws IllegalStateException, NullPointerException
Sets the value of the cug-FeatureList 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
-
-