public class MAPMAP_UserAbortChoice extends AbstractFieldsObject
MAP-UserAbortChoice ::=
CHOICE {
userSpecificReason NULL,
userResourceLimitation NULL,
resourceUnavailable ResourceUnavailableReason,
applicationProcedureCancellation ProcedureCancellationReason
}
Added in ph2. Spelt MAPMAP_UserAbortChoice because it's generated from something in the MAP spec that's called MAP-UserAbortChoice.
Used as field type by MAPMAP_UserAbortInfo.
| Modifier and Type | Class and Description |
|---|---|
static class |
MAPMAP_UserAbortChoice.Choice
API for MAP-DialogueInformation.MAP-UserAbortChoice.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
MAPMAP_UserAbortChoice() |
| Modifier and Type | Method and Description |
|---|---|
MAPMAP_UserAbortChoice |
clone()
Constructs a copy of this object and everything reachable from it.
|
static MAPMAP_UserAbortChoice |
copyOf(MAPMAP_UserAbortChoice 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.
|
MAPProcedureCancellationReason |
getApplicationProcedureCancellation()
Gets the value of the applicationProcedureCancellation choice.
|
MAPMAP_UserAbortChoice.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.
|
MAPResourceUnavailableReason |
getResourceUnavailable()
Gets the value of the resourceUnavailable choice.
|
boolean |
isApplicationProcedureCancellationChosen()
Tests whether the choice is applicationProcedureCancellation.
|
boolean |
isResourceUnavailableChosen()
Tests whether the choice is resourceUnavailable.
|
boolean |
isUserResourceLimitationChosen()
Tests whether the choice is userResourceLimitation.
|
boolean |
isUserSpecificReasonChosen()
Tests whether the choice is userSpecificReason.
|
MAPMAP_UserAbortChoice |
setApplicationProcedureCancellation(MAPProcedureCancellationReason value)
Sets the value of the applicationProcedureCancellation choice.
|
MAPMAP_UserAbortChoice |
setResourceUnavailable(MAPResourceUnavailableReason value)
Sets the value of the resourceUnavailable choice.
|
MAPMAP_UserAbortChoice |
setUserResourceLimitation()
Sets the userResourceLimitation choice.
|
MAPMAP_UserAbortChoice |
setUserSpecificReason()
Sets the userSpecificReason choice.
|
equals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic MAPMAP_UserAbortChoice clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static MAPMAP_UserAbortChoice copyOf(MAPMAP_UserAbortChoice from)
from - the object from which to copypublic MAPProcedureCancellationReason getApplicationProcedureCancellation()
public MAPMAP_UserAbortChoice.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - ignored, as value cannot be optionalpublic MAPResourceUnavailableReason getResourceUnavailable()
public boolean isApplicationProcedureCancellationChosen()
public boolean isResourceUnavailableChosen()
public boolean isUserResourceLimitationChosen()
public boolean isUserSpecificReasonChosen()
public MAPMAP_UserAbortChoice setApplicationProcedureCancellation(MAPProcedureCancellationReason 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 MAPMAP_UserAbortChoice setResourceUnavailable(MAPResourceUnavailableReason 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 MAPMAP_UserAbortChoice setUserResourceLimitation() throws IllegalStateException
IllegalStateException - if this instance has been marked as read-onlypublic MAPMAP_UserAbortChoice setUserSpecificReason() throws IllegalStateException
IllegalStateException - if this instance has been marked as read-only