Class CS1ExtensionField
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CS1ExtensionField
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CS1ExtensionField extends AbstractFieldsObject
API for Core-INAP-CS1-DataTypes.ExtensionField. Generated from the following ASN.1 type definition.ExtensionField ::= SEQUENCE { type ExtensionType, criticality Criticality DEFAULT ignore, value OpenType }
Used in array as field type by
CS1InitialDPArg
.Used in array as field type by
CS1EventNotificationChargingArg
.Used in array as field type by
CS1EventReportBCSMArg
.Used in array as field type by
CS1CallInformationReportArg
.Used in array as field type by
CS1ApplyChargingArg
.Used in array as field type by
CS1ResetTimerArg
.Used in array as field type by
CS1CallGapArg
.Used in array as field type by
CS1SendChargingInformationArg
.Used in array as field type by
CS1PlayAnnouncementArg
.Used in array as field type by
CS1CallInformationRequestArg
.Used in array as field type by
CS1ConnectToResourceArg
.Used in array as field type by
CS1PromptAndCollectUserInformationArg
.Used in array as field type by
CS1EstablishTemporaryConnectionArg
.Used in array as field type by
CS1RequestReportBCSMEventArg
.Used in array as field type by
CS1ConnectArg
.Used in array as field type by
CS1CollectInformationArg
.Used in array as field type by
CS1AssistRequestInstructionsArg
.Used in array as field type by
CS1InitiateCallAttemptArg
.Used in array as field type by
CS1ActivateServiceFilteringArg
.Used in array as field type by
CS1ServiceFilteringResponseArg
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CS1ExtensionField()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CS1ExtensionField
clone()
Constructs a copy of this object and everything reachable from it.static CS1ExtensionField
copyOf(CS1ExtensionField 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.CS1Criticality
getCriticality()
Gets the value of the field criticality.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 field-name to field-value.OpenId
getType()
Gets the value of the field type.ContainingOctetString
getValue()
Gets the value of the field value.boolean
hasCriticality()
Tests whether the field criticality has a value.boolean
hasType()
Tests whether the field type has a value.boolean
hasValue()
Tests whether the field value has a value.CS1ExtensionField
setCriticality(CS1Criticality value)
Sets the value of the field criticality.void
setReadOnly()
Sets this and all its fields to be immutable.CS1ExtensionField
setType(OpenId value)
Sets the value of the field type.CS1ExtensionField
setValue(ContainingOctetString value)
Sets the value of the field value.-
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 CS1ExtensionField 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 CS1ExtensionField copyOf(CS1ExtensionField 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:
- CS1ExtensionField
-
getCriticality
public CS1Criticality getCriticality()
Gets the value of the field criticality.- Returns:
- value of field criticality, or null if not present
-
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 field-name to field-value. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an unitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getType
public OpenId getType()
Gets the value of the field type.- Returns:
- value of field type, or null if not present
-
getValue
public ContainingOctetString getValue()
Gets the value of the field value.- Returns:
- value of field value, or null if not present
-
hasCriticality
public boolean hasCriticality()
Tests whether the field criticality has a value.- Returns:
- whether the field criticality has a value
-
hasType
public boolean hasType()
Tests whether the field type has a value.- Returns:
- whether the field type has a value
-
hasValue
public boolean hasValue()
Tests whether the field value has a value.- Returns:
- whether the field value has a value
-
setCriticality
public CS1ExtensionField setCriticality(CS1Criticality value) throws IllegalStateException
Sets the value of the field criticality. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setType
public CS1ExtensionField setType(OpenId value) throws IllegalStateException
Sets the value of the field type.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setValue
public CS1ExtensionField setValue(ContainingOctetString value) throws IllegalStateException
Sets the value of the field value.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-