Class CAP3GPRS_QoS
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CAP3GPRS_QoS extends AbstractFieldsObject
API for CAP-datatypes.GPRS-QoS. Generated from the following ASN.1 type definition.GPRS-QoS ::= CHOICE { short-QoS-format QoS-Subscribed, long-QoS-format Ext-QoS-Subscribed }
Used as field type by
CAP3QualityOfService
.Used as field type by
CAP3QualityOfService
.Used as field type by
CAP3QualityOfService
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CAP3GPRS_QoS.Choice
API for CAP-datatypes.GPRS-QoS.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3GPRS_QoS()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3GPRS_QoS
clone()
Constructs a copy of this object and everything reachable from it.static CAP3GPRS_QoS
copyOf(CAP3GPRS_QoS 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.CAP3GPRS_QoS.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.byte[]
getLong_QoS_format()
Gets the value of the long-QoS-format choice.byte[]
getShort_QoS_format()
Gets the value of the short-QoS-format choice.boolean
isLong_QoS_formatChosen()
Tests whether the choice is long-QoS-format.boolean
isShort_QoS_formatChosen()
Tests whether the choice is short-QoS-format.CAP3GPRS_QoS
setLong_QoS_format(byte[] value)
Sets the value of the long-QoS-format choice.CAP3GPRS_QoS
setShort_QoS_format(byte[] value)
Sets the value of the short-QoS-format 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 CAP3GPRS_QoS 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 CAP3GPRS_QoS copyOf(CAP3GPRS_QoS 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:
- CAP3GPRS_QoS
-
getChoice
public CAP3GPRS_QoS.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
-
getLong_QoS_format
public byte[] getLong_QoS_format()
Gets the value of the long-QoS-format choice.- Returns:
- value of the choice, if choice is long-QoS-format, else null
-
getShort_QoS_format
public byte[] getShort_QoS_format()
Gets the value of the short-QoS-format choice.- Returns:
- value of the choice, if choice is short-QoS-format, else null
-
isLong_QoS_formatChosen
public boolean isLong_QoS_formatChosen()
Tests whether the choice is long-QoS-format.- Returns:
- true if chosen, false if not
-
isShort_QoS_formatChosen
public boolean isShort_QoS_formatChosen()
Tests whether the choice is short-QoS-format.- Returns:
- true if chosen, false if not
-
setLong_QoS_format
public CAP3GPRS_QoS setLong_QoS_format(byte[] value) throws IllegalStateException, NullPointerException
Sets the value of the long-QoS-format 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
-
setShort_QoS_format
public CAP3GPRS_QoS setShort_QoS_format(byte[] value) throws IllegalStateException, NullPointerException
Sets the value of the short-QoS-format 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
-
-