Class MAPSS_Data_v1
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
MAPSS_Data
public class MAPSS_Data_v1 extends AbstractFieldsObject
API for MAP-SS-DataTypes-ph1.SS-Data-v1. Generated from the following ASN.1 type definition.SS-Data-v1 ::= SEQUENCE { ss-Code SS-Code, ss-Status SS-Status OPTIONAL, ss-SubscriptionOption-v1 SS-SubscriptionOption-v1 OPTIONAL -- Removed between ph1 and ph2. (Replaced by ss-SubscriptionOption, which has a different type.) }
Present in ph1. Evolved toMAPSS_Data
in ph2.Used as field type by
MAPSS_Information
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSS_Data_v1()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSS_Data_v1
clone()
Constructs a copy of this object and everything reachable from it.static MAPSS_Data_v1
copyOf(MAPSS_Data_v1 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.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.SSCode
getSs_Code()
Gets the value of the field ss-Code.byte[]
getSs_Status()
Gets the value of the field ss-Status.MAPSS_SubscriptionOption_v1
getSs_SubscriptionOption_v1()
Gets the value of the field ss-SubscriptionOption-v1.boolean
hasSs_Code()
Tests whether the field ss-Code has a value.boolean
hasSs_Status()
Tests whether the field ss-Status has a value.boolean
hasSs_SubscriptionOption_v1()
Tests whether the field ss-SubscriptionOption-v1 has a value.void
setReadOnly()
Sets this and all its fields to be immutable.MAPSS_Data_v1
setSs_Code(SSCode value)
Sets the value of the field ss-Code.MAPSS_Data_v1
setSs_Status(byte[] value)
Sets the value of the field ss-Status.MAPSS_Data_v1
setSs_SubscriptionOption_v1(MAPSS_SubscriptionOption_v1 value)
Sets the value of the field ss-SubscriptionOption-v1.-
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 MAPSS_Data_v1 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 MAPSS_Data_v1 copyOf(MAPSS_Data_v1 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:
- MAPSS_Data_v1
-
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
-
getSs_Code
public SSCode getSs_Code()
Gets the value of the field ss-Code.- Returns:
- value of field ss-Code, or null if not present
-
getSs_Status
public byte[] getSs_Status()
Gets the value of the field ss-Status.- Returns:
- value of field ss-Status, or null if not present
-
getSs_SubscriptionOption_v1
public MAPSS_SubscriptionOption_v1 getSs_SubscriptionOption_v1()
Gets the value of the field ss-SubscriptionOption-v1.- Returns:
- value of field ss-SubscriptionOption-v1, or null if not present
-
hasSs_Code
public boolean hasSs_Code()
Tests whether the field ss-Code has a value.- Returns:
- whether the field ss-Code has a value
-
hasSs_Status
public boolean hasSs_Status()
Tests whether the field ss-Status has a value.- Returns:
- whether the field ss-Status has a value
-
hasSs_SubscriptionOption_v1
public boolean hasSs_SubscriptionOption_v1()
Tests whether the field ss-SubscriptionOption-v1 has a value.- Returns:
- whether the field ss-SubscriptionOption-v1 has a value
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setSs_Code
public MAPSS_Data_v1 setSs_Code(SSCode value) throws IllegalStateException
Sets the value of the field ss-Code.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setSs_Status
public MAPSS_Data_v1 setSs_Status(byte[] value) throws IllegalStateException
Sets the value of the field ss-Status. 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
-
setSs_SubscriptionOption_v1
public MAPSS_Data_v1 setSs_SubscriptionOption_v1(MAPSS_SubscriptionOption_v1 value) throws IllegalStateException
Sets the value of the field ss-SubscriptionOption-v1. 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
-
-