Class CAP3EventSpecificInformationSMS
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CAP3EventSpecificInformationSMS
-
- All Implemented Interfaces:
DataObject,Serializable
- Direct Known Subclasses:
CAP4EventSpecificInformationSMS
public class CAP3EventSpecificInformationSMS extends AbstractFieldsObject
API for CAP-datatypes.EventSpecificInformationSMS. Generated from the following ASN.1 type definition and the adaptations below.EventSpecificInformationSMS ::= CHOICE { o-smsFailureSpecificInfo SEQUENCE { failureCause SMSCause OPTIONAL, ... }, o-smsSubmittedSpecificInfo SEQUENCE { ... } } CAP-datatypes { EventSpecificInformationSMS { @extendible } }Used as field type by
CAP3EventReportSMSArg.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCAP3EventSpecificInformationSMS.ChoiceAPI for CAP-datatypes.EventSpecificInformationSMS.Choice.static classCAP3EventSpecificInformationSMS.O_smsFailureSpecificInfoAPI for CAP-datatypes.EventSpecificInformationSMS.o-smsFailureSpecificInfo.static classCAP3EventSpecificInformationSMS.O_smsSubmittedSpecificInfoAPI for CAP-datatypes.EventSpecificInformationSMS.o-smsSubmittedSpecificInfo.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3EventSpecificInformationSMS()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3EventSpecificInformationSMSclone()Constructs a copy of this object and everything reachable from it.static CAP3EventSpecificInformationSMScopyOf(CAP3EventSpecificInformationSMS 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.CAP3EventSpecificInformationSMS.ChoicegetChoice()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.CAP3EventSpecificInformationSMS.O_smsFailureSpecificInfogetO_smsFailureSpecificInfo()Gets the value of the o-smsFailureSpecificInfo choice.CAP3EventSpecificInformationSMS.O_smsSubmittedSpecificInfogetO_smsSubmittedSpecificInfo()Gets the value of the o-smsSubmittedSpecificInfo choice.booleanisO_smsFailureSpecificInfoChosen()Tests whether the choice is o-smsFailureSpecificInfo.booleanisO_smsSubmittedSpecificInfoChosen()Tests whether the choice is o-smsSubmittedSpecificInfo.protected voidsetChoice(CAP3EventSpecificInformationSMS.Choice arg)Sets the discriminant of the current choice.CAP3EventSpecificInformationSMSsetO_smsFailureSpecificInfo(CAP3EventSpecificInformationSMS.O_smsFailureSpecificInfo value)Sets the value of the o-smsFailureSpecificInfo choice.CAP3EventSpecificInformationSMSsetO_smsSubmittedSpecificInfo(CAP3EventSpecificInformationSMS.O_smsSubmittedSpecificInfo value)Sets the value of the o-smsSubmittedSpecificInfo choice.voidsetReadOnly()Sets this and all its fields to be immutable.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly
-
-
-
-
Method Detail
-
clone
public CAP3EventSpecificInformationSMS clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Specified by:
clonein classAbstractDataObject- Returns:
- copy of object
-
copyOf
public static CAP3EventSpecificInformationSMS copyOf(CAP3EventSpecificInformationSMS 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:
- CAP3EventSpecificInformationSMS
-
getChoice
public CAP3EventSpecificInformationSMS.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:
getFieldsMapin classAbstractFieldsObject- Parameters:
withAbsents- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
getO_smsFailureSpecificInfo
public CAP3EventSpecificInformationSMS.O_smsFailureSpecificInfo getO_smsFailureSpecificInfo()
Gets the value of the o-smsFailureSpecificInfo choice.- Returns:
- value of the choice, if choice is o-smsFailureSpecificInfo, else null
-
getO_smsSubmittedSpecificInfo
public CAP3EventSpecificInformationSMS.O_smsSubmittedSpecificInfo getO_smsSubmittedSpecificInfo()
Gets the value of the o-smsSubmittedSpecificInfo choice.- Returns:
- value of the choice, if choice is o-smsSubmittedSpecificInfo, else null
-
isO_smsFailureSpecificInfoChosen
public boolean isO_smsFailureSpecificInfoChosen()
Tests whether the choice is o-smsFailureSpecificInfo.- Returns:
- true if chosen, false if not
-
isO_smsSubmittedSpecificInfoChosen
public boolean isO_smsSubmittedSpecificInfoChosen()
Tests whether the choice is o-smsSubmittedSpecificInfo.- Returns:
- true if chosen, false if not
-
setChoice
protected void setChoice(CAP3EventSpecificInformationSMS.Choice arg)
Sets the discriminant of the current choice.- Parameters:
arg- the new discriminant
-
setO_smsFailureSpecificInfo
public CAP3EventSpecificInformationSMS setO_smsFailureSpecificInfo(CAP3EventSpecificInformationSMS.O_smsFailureSpecificInfo value) throws IllegalStateException, NullPointerException
Sets the value of the o-smsFailureSpecificInfo choice.- Parameters:
value- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-onlyNullPointerException- if the given value is null
-
setO_smsSubmittedSpecificInfo
public CAP3EventSpecificInformationSMS setO_smsSubmittedSpecificInfo(CAP3EventSpecificInformationSMS.O_smsSubmittedSpecificInfo value) throws IllegalStateException, NullPointerException
Sets the value of the o-smsSubmittedSpecificInfo choice.- Parameters:
value- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-onlyNullPointerException- if the given value is null
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
-