Class CAP3GapCriteria
-
- All Implemented Interfaces:
DataObject,Serializable
public class CAP3GapCriteria extends CCGapCriteria
API for CAP-datatypes.GapCriteria. Generated from the following ASN.1 type definition and the adaptations below.GapCriteria ::= CHOICE { basicGapCriteria BasicGapCriteria, compoundGapCriteria CompoundCriteria } CAP-datatypes { GapCriteria { @parentType com.opencloud.slee.resources.cgin.callcontrol.CCGapCriteria } }Used as field type by
CAP3CallGapArg.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCAP3GapCriteria.ChoiceAPI for CAP-datatypes.GapCriteria.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3GapCriteria()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3GapCriteriaclone()Constructs a copy of this object and everything reachable from it.static CAP3GapCriteriacopyOf(CCGapCriteria 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.CAP3CompoundCriteriagetCompoundGapCriteria()Gets the value of the compoundGapCriteria 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.booleanisCompoundGapCriteriaChosen()Tests whether the choice is compoundGapCriteria.CAP3GapCriteriasetBasicGapCriteria(CCBasicGapCriteria value)Sets the value of the basicGapCriteria choice.CAP3GapCriteriasetCompoundGapCriteria(CAP3CompoundCriteria value)Sets the value of the compoundGapCriteria choice.voidsetReadOnly()Sets this and all its fields to be immutable.-
Methods inherited from class com.opencloud.slee.resources.cgin.callcontrol.CCGapCriteria
getBasicGapCriteria, getChoice, isBasicGapCriteriaChosen, setChoice
-
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 CAP3GapCriteria clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Overrides:
clonein classCCGapCriteria- Returns:
- copy of object
-
copyOf
public static CAP3GapCriteria copyOf(CCGapCriteria 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:
- CAP3GapCriteria
-
getCompoundGapCriteria
public CAP3CompoundCriteria getCompoundGapCriteria()
Gets the value of the compoundGapCriteria choice.- Returns:
- value of the choice, if choice is compoundGapCriteria, 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:
getFieldsMapin classCCGapCriteria- Parameters:
withAbsents- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
isCompoundGapCriteriaChosen
public boolean isCompoundGapCriteriaChosen()
Tests whether the choice is compoundGapCriteria.- Returns:
- true if chosen, false if not
-
setBasicGapCriteria
public CAP3GapCriteria setBasicGapCriteria(CCBasicGapCriteria value) throws IllegalStateException, NullPointerException
Sets the value of the basicGapCriteria choice.- Overrides:
setBasicGapCriteriain classCCGapCriteria- 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
-
setCompoundGapCriteria
public CAP3GapCriteria setCompoundGapCriteria(CAP3CompoundCriteria value) throws IllegalStateException, NullPointerException
Sets the value of the compoundGapCriteria 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 classCCGapCriteria
-
-