Class CS1GapTreatment
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CS1GapTreatment extends CCGapTreatment
API for Core-INAP-CS1-DataTypes.GapTreatment. Generated from the following ASN.1 type definition and the adaptations below.GapTreatment ::= CHOICE { informationToSend InformationToSend, releaseCause Cause, both SEQUENCE { informationToSend InformationToSend, releaseCause Cause } } Core-INAP-CS1-DataTypes { GapTreatment { @parentType com.opencloud.slee.resources.cgin.callcontrol.CCGapTreatment } }
Used as field type by
CS1CallGapArg
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CS1GapTreatment.Both
API for Core-INAP-CS1-DataTypes.GapTreatment.both.static class
CS1GapTreatment.Choice
API for Core-INAP-CS1-DataTypes.GapTreatment.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CS1GapTreatment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CS1GapTreatment
clone()
Constructs a copy of this object and everything reachable from it.static CS1GapTreatment
copyOf(CCGapTreatment 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.CS1GapTreatment.Both
getBoth()
Gets the value of the both 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
isBothChosen()
Tests whether the choice is both.CS1GapTreatment
setBoth(CS1GapTreatment.Both value)
Sets the value of the both choice.CS1GapTreatment
setInformationToSend(CS1InformationToSend value)
Sets the value of the informationToSend choice.void
setReadOnly()
Sets this and all its fields to be immutable.CS1GapTreatment
setReleaseCause(Cause value)
Sets the value of the releaseCause choice.-
Methods inherited from class com.opencloud.slee.resources.cgin.callcontrol.CCGapTreatment
getChoice, getInformationToSend, getReleaseCause, isInformationToSendChosen, isReleaseCauseChosen, setChoice, setInformationToSend
-
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 CS1GapTreatment clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Overrides:
clone
in classCCGapTreatment
- Returns:
- copy of object
-
copyOf
public static CS1GapTreatment copyOf(CCGapTreatment 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:
- CS1GapTreatment
-
getBoth
public CS1GapTreatment.Both getBoth()
Gets the value of the both choice.- Returns:
- value of the choice, if choice is both, else null
-
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.- Overrides:
getFieldsMap
in classCCGapTreatment
- Parameters:
withAbsents
- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
isBothChosen
public boolean isBothChosen()
Tests whether the choice is both.- Returns:
- true if chosen, false if not
-
setBoth
public CS1GapTreatment setBoth(CS1GapTreatment.Both value) throws IllegalStateException, NullPointerException
Sets the value of the both 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
-
setInformationToSend
public CS1GapTreatment setInformationToSend(CS1InformationToSend value) throws IllegalStateException, NullPointerException
Sets the value of the informationToSend 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:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classCCGapTreatment
-
setReleaseCause
public CS1GapTreatment setReleaseCause(Cause value) throws IllegalStateException, NullPointerException
Sets the value of the releaseCause choice.- Overrides:
setReleaseCause
in classCCGapTreatment
- 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
-
-