public class MAPSM_DeliveryFailureCause extends AbstractFieldsObject
SM-DeliveryFailureCause ::= CHOICE { sm-DeliveryFailureCauseWithDiagnostic SM-DeliveryFailureCauseWithDiagnostic, sm-EnumeratedDeliveryFailureCause SM-EnumeratedDeliveryFailureCause }
Used as parameter type by MAPErrors.sm_DeliveryFailure
.
Modifier and Type | Class and Description |
---|---|
static class |
MAPSM_DeliveryFailureCause.Choice
API for MAP-ER-DataTypes.SM-DeliveryFailureCause.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
MAPSM_DeliveryFailureCause() |
Modifier and Type | Method and 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.
|
equals, hashCode, toString
checkModify, isReadOnly
public MAPSM_DeliveryFailureCause clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static MAPSM_DeliveryFailureCause copyOf(MAPSM_DeliveryFailureCause from)
from
- the object from which to copypublic MAPSM_DeliveryFailureCause.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic MAPSM_DeliveryFailureCauseWithDiagnostic getSm_DeliveryFailureCauseWithDiagnostic()
public MAPSM_EnumeratedDeliveryFailureCause getSm_EnumeratedDeliveryFailureCause()
public boolean isSm_DeliveryFailureCauseWithDiagnosticChosen()
public boolean isSm_EnumeratedDeliveryFailureCauseChosen()
public void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public MAPSM_DeliveryFailureCause setSm_DeliveryFailureCauseWithDiagnostic(MAPSM_DeliveryFailureCauseWithDiagnostic value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is nullpublic MAPSM_DeliveryFailureCause setSm_EnumeratedDeliveryFailureCause(MAPSM_EnumeratedDeliveryFailureCause value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null