Class CCCancelArg
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
CAP4CancelArg
public class CCCancelArg extends AbstractFieldsObject
API for CC-DataTypes.CancelArg. Generated from the following ASN.1 type definition and the adaptations below.CancelArg ::= CHOICE { invokeID InvokeID, allRequests NULL } CC-DataTypes { CancelArg { @extendible } }
Used as argument type by
CCOperations.cancel
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CCCancelArg.Choice
API for CC-DataTypes.CancelArg.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CCCancelArg()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly, setReadOnly
-
-
-
-
Method Detail
-
clone
public CCCancelArg 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 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.- Parameters:
from
- the object from which to copy- Returns:
- CCCancelArg
-
getChoice
public CCCancelArg.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
-
getInvokeID
public int getInvokeID() throws IllegalStateException
Gets the value of the invokeID choice.- Returns:
- value of the choice, if choice is invokeID
- Throws:
IllegalStateException
- if choice is not invokeID
-
isAllRequestsChosen
public boolean isAllRequestsChosen()
Tests whether the choice is allRequests.- Returns:
- true if chosen, false if not
-
isInvokeIDChosen
public boolean isInvokeIDChosen()
Tests whether the choice is invokeID.- Returns:
- true if chosen, false if not
-
setAllRequests
public CCCancelArg setAllRequests() throws IllegalStateException
Sets the allRequests choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setChoice
protected void setChoice(CCCancelArg.Choice arg)
Sets the discriminant of the current choice.- Parameters:
arg
- the new discriminant
-
setInvokeID
public CCCancelArg setInvokeID(int value) throws IllegalStateException
Sets the value of the invokeID choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-