Class CCSpecializedResourceReportArg
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CCSpecializedResourceReportArg
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CCSpecializedResourceReportArg extends AbstractFieldsObject
API for CC-DataTypes.SpecializedResourceReportArg. Generated from the following ASN.1 type definition.SpecializedResourceReportArg ::= CHOICE { allAnnouncementsComplete NULL, firstAnnouncementStarted NULL, ... }
Used as argument type by
CCOperations.specializedResourceReport
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CCSpecializedResourceReportArg.Choice
API for CC-DataTypes.SpecializedResourceReportArg.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CCSpecializedResourceReportArg()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CCSpecializedResourceReportArg
clone()
Constructs a copy of this object and everything reachable from it.static CCSpecializedResourceReportArg
copyOf(CCSpecializedResourceReportArg 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.CCSpecializedResourceReportArg.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.boolean
isAllAnnouncementsCompleteChosen()
Tests whether the choice is allAnnouncementsComplete.boolean
isFirstAnnouncementStartedChosen()
Tests whether the choice is firstAnnouncementStarted.CCSpecializedResourceReportArg
setAllAnnouncementsComplete()
Sets the allAnnouncementsComplete choice.protected void
setChoice(CCSpecializedResourceReportArg.Choice arg)
Sets the discriminant of the current choice.CCSpecializedResourceReportArg
setFirstAnnouncementStarted()
Sets the firstAnnouncementStarted 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 CCSpecializedResourceReportArg 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 CCSpecializedResourceReportArg copyOf(CCSpecializedResourceReportArg 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:
- CCSpecializedResourceReportArg
-
getChoice
public CCSpecializedResourceReportArg.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
-
isAllAnnouncementsCompleteChosen
public boolean isAllAnnouncementsCompleteChosen()
Tests whether the choice is allAnnouncementsComplete.- Returns:
- true if chosen, false if not
-
isFirstAnnouncementStartedChosen
public boolean isFirstAnnouncementStartedChosen()
Tests whether the choice is firstAnnouncementStarted.- Returns:
- true if chosen, false if not
-
setAllAnnouncementsComplete
public CCSpecializedResourceReportArg setAllAnnouncementsComplete() throws IllegalStateException
Sets the allAnnouncementsComplete choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setChoice
protected void setChoice(CCSpecializedResourceReportArg.Choice arg)
Sets the discriminant of the current choice.- Parameters:
arg
- the new discriminant
-
setFirstAnnouncementStarted
public CCSpecializedResourceReportArg setFirstAnnouncementStarted() throws IllegalStateException
Sets the firstAnnouncementStarted choice.- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-