public class MAPSystemFailureParam extends AbstractFieldsObject
SystemFailureParam ::= CHOICE { networkResource NetworkResource, -- networkResource must not be used in version 3. extensibleSystemFailureParam ExtensibleSystemFailureParam -- Added in R96. }Present in ph1 (anonymous before ph2).
Used as parameter type by MAPErrors.systemFailure
.
Modifier and Type | Class and Description |
---|---|
static class |
MAPSystemFailureParam.Choice
API for MAP-ER-DataTypes.SystemFailureParam.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
MAPSystemFailureParam() |
Modifier and Type | Method and Description |
---|---|
MAPSystemFailureParam |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MAPSystemFailureParam |
copyOf(MAPSystemFailureParam 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.
|
MAPSystemFailureParam.Choice |
getChoice()
Gets the discriminant of the current choice.
|
MAPExtensibleSystemFailureParam |
getExtensibleSystemFailureParam()
Gets the value of the extensibleSystemFailureParam 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.
|
MAPNetworkResource |
getNetworkResource()
Gets the value of the networkResource choice.
|
boolean |
isExtensibleSystemFailureParamChosen()
Tests whether the choice is extensibleSystemFailureParam.
|
boolean |
isNetworkResourceChosen()
Tests whether the choice is networkResource.
|
MAPSystemFailureParam |
setExtensibleSystemFailureParam(MAPExtensibleSystemFailureParam value)
Sets the value of the extensibleSystemFailureParam choice.
|
MAPSystemFailureParam |
setNetworkResource(MAPNetworkResource value)
Sets the value of the networkResource choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public MAPSystemFailureParam clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static MAPSystemFailureParam copyOf(MAPSystemFailureParam from)
from
- the object from which to copypublic MAPSystemFailureParam.Choice getChoice()
public MAPExtensibleSystemFailureParam getExtensibleSystemFailureParam()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic MAPNetworkResource getNetworkResource()
public boolean isExtensibleSystemFailureParamChosen()
public boolean isNetworkResourceChosen()
public MAPSystemFailureParam setExtensibleSystemFailureParam(MAPExtensibleSystemFailureParam 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 MAPSystemFailureParam setNetworkResource(MAPNetworkResource 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 void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject