Class MAPSM_DeliveryFailureCause
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPSM_DeliveryFailureCause
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPSM_DeliveryFailureCause extends AbstractFieldsObject
API for MAP-ER-DataTypes.SM-DeliveryFailureCause. Generated from the following ASN.1 type definition.SM-DeliveryFailureCause ::= CHOICE { sm-DeliveryFailureCauseWithDiagnostic SM-DeliveryFailureCauseWithDiagnostic, sm-EnumeratedDeliveryFailureCause SM-EnumeratedDeliveryFailureCause }
Used as parameter type by
MAPErrors.sm_DeliveryFailure
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPSM_DeliveryFailureCause.Choice
API for MAP-ER-DataTypes.SM-DeliveryFailureCause.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPSM_DeliveryFailureCause()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPSM_DeliveryFailureCause
clone()
Constructs a copy of this object and everything reachable from it.static MAPSM_DeliveryFailureCause
copyOf(MAPSM_DeliveryFailureCause 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.MAPSM_DeliveryFailureCause.Choice
getChoice()
Gets the discriminant of the current 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.MAPSM_DeliveryFailureCauseWithDiagnostic
getSm_DeliveryFailureCauseWithDiagnostic()
Gets the value of the sm-DeliveryFailureCauseWithDiagnostic choice.MAPSM_EnumeratedDeliveryFailureCause
getSm_EnumeratedDeliveryFailureCause()
Gets the value of the sm-EnumeratedDeliveryFailureCause choice.boolean
isSm_DeliveryFailureCauseWithDiagnosticChosen()
Tests whether the choice is sm-DeliveryFailureCauseWithDiagnostic.boolean
isSm_EnumeratedDeliveryFailureCauseChosen()
Tests whether the choice is sm-EnumeratedDeliveryFailureCause.void
setReadOnly()
Sets this and all its fields to be immutable.MAPSM_DeliveryFailureCause
setSm_DeliveryFailureCauseWithDiagnostic(MAPSM_DeliveryFailureCauseWithDiagnostic value)
Sets the value of the sm-DeliveryFailureCauseWithDiagnostic choice.MAPSM_DeliveryFailureCause
setSm_EnumeratedDeliveryFailureCause(MAPSM_EnumeratedDeliveryFailureCause value)
Sets the value of the sm-EnumeratedDeliveryFailureCause choice.-
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 MAPSM_DeliveryFailureCause 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 MAPSM_DeliveryFailureCause copyOf(MAPSM_DeliveryFailureCause 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:
- MAPSM_DeliveryFailureCause
-
getChoice
public MAPSM_DeliveryFailureCause.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
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
-
getSm_DeliveryFailureCauseWithDiagnostic
public MAPSM_DeliveryFailureCauseWithDiagnostic getSm_DeliveryFailureCauseWithDiagnostic()
Gets the value of the sm-DeliveryFailureCauseWithDiagnostic choice.- Returns:
- value of the choice, if choice is sm-DeliveryFailureCauseWithDiagnostic, else null
-
getSm_EnumeratedDeliveryFailureCause
public MAPSM_EnumeratedDeliveryFailureCause getSm_EnumeratedDeliveryFailureCause()
Gets the value of the sm-EnumeratedDeliveryFailureCause choice.- Returns:
- value of the choice, if choice is sm-EnumeratedDeliveryFailureCause, else null
-
isSm_DeliveryFailureCauseWithDiagnosticChosen
public boolean isSm_DeliveryFailureCauseWithDiagnosticChosen()
Tests whether the choice is sm-DeliveryFailureCauseWithDiagnostic.- Returns:
- true if chosen, false if not
-
isSm_EnumeratedDeliveryFailureCauseChosen
public boolean isSm_EnumeratedDeliveryFailureCauseChosen()
Tests whether the choice is sm-EnumeratedDeliveryFailureCause.- Returns:
- true if chosen, false if not
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setSm_DeliveryFailureCauseWithDiagnostic
public MAPSM_DeliveryFailureCause setSm_DeliveryFailureCauseWithDiagnostic(MAPSM_DeliveryFailureCauseWithDiagnostic value) throws IllegalStateException, NullPointerException
Sets the value of the sm-DeliveryFailureCauseWithDiagnostic 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
-
setSm_EnumeratedDeliveryFailureCause
public MAPSM_DeliveryFailureCause setSm_EnumeratedDeliveryFailureCause(MAPSM_EnumeratedDeliveryFailureCause value) throws IllegalStateException, NullPointerException
Sets the value of the sm-EnumeratedDeliveryFailureCause 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
-
-