public class CCCancelArg extends AbstractFieldsObject
CancelArg ::=
CHOICE {
invokeID InvokeID,
allRequests NULL
}
CC-DataTypes {
CancelArg {
@extendible
}
}
Used as argument type by CCOperations.cancel.
| Modifier and Type | Class and Description |
|---|---|
static class |
CCCancelArg.Choice
API for CC-DataTypes.CancelArg.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
CCCancelArg() |
| Modifier and Type | Method and Description |
|---|---|
CCCancelArg |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCCancelArg |
copyOf(CCCancelArg 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.
|
CCCancelArg.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.
|
int |
getInvokeID()
Gets the value of the invokeID choice.
|
boolean |
isAllRequestsChosen()
Tests whether the choice is allRequests.
|
boolean |
isInvokeIDChosen()
Tests whether the choice is invokeID.
|
CCCancelArg |
setAllRequests()
Sets the allRequests choice.
|
protected void |
setChoice(CCCancelArg.Choice arg)
Sets the discriminant of the current choice.
|
CCCancelArg |
setInvokeID(int value)
Sets the value of the invokeID choice.
|
equals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic CCCancelArg clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static CCCancelArg copyOf(CCCancelArg from)
from - the object from which to copypublic CCCancelArg.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - ignored, as value cannot be optionalpublic int getInvokeID()
throws IllegalStateException
IllegalStateException - if choice is not invokeIDpublic boolean isAllRequestsChosen()
public boolean isInvokeIDChosen()
public CCCancelArg setAllRequests() throws IllegalStateException
IllegalStateException - if this instance has been marked as read-onlyprotected void setChoice(CCCancelArg.Choice arg)
arg - the new discriminantpublic CCCancelArg setInvokeID(int value) throws IllegalStateException
value - the new value for the choiceIllegalStateException - if this instance has been marked as read-only