Class ExtendibleOctetString
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- ExtendibleOctetString
-
- All Implemented Interfaces:
DataObject
,Serializable
- Direct Known Subclasses:
CAP3FurnishChargingInformationGPRSArg
,CAP3FurnishChargingInformationSMSArg
,CAP3SCIGPRSBillingChargingCharacteristics
,CCAChBillingChargingCharacteristics
,CCApplyChargingReportArg
,CCFurnishChargingInformationArg.FCIBCCcs1
,CCIPSSPCapabilities
,CCMessageID.Text.Attributes
,CCScfID
,CCSCIBillingChargingCharacteristics
,ContainingOctetString
,CS1EventSpecificInformationCharging
,CS1EventTypeCharging
,CS1IPAvailable
,CS1ServiceInteractionIndicators
,CS1SFBillingChargingCharacteristics
public abstract class ExtendibleOctetString extends AbstractFieldsObject
An ExtendibleOctetString is an AbstractFieldsObject whose first field is the encoded byte array form of the OCTET STRING. In subclasses, a contained value may be added as a second field.ExtendibleOctetString ::= SEQUENCE { byteArray : SEQUENCE OF INTEGER (-128 .. 127) OPTIONAL }
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExtendibleOctetString()
Nullary constructor.protected
ExtendibleOctetString(byte[] byteArray)
Constructs from a given initial byte array.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getByteArray()
Gets the value of the field byteArray.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 containing just the byte array field.boolean
hasByteArray()
Tests whether the field byteArray has a value.ExtendibleOctetString
setByteArray(byte[] value)
Sets the value of the field byteArray.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, clone, isReadOnly, setReadOnly
-
-
-
-
Method Detail
-
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 containing just the byte array field.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getByteArray
public byte[] getByteArray()
Gets the value of the field byteArray.- Returns:
- value of field byteArray, or null if not present
-
hasByteArray
public boolean hasByteArray()
Tests whether the field byteArray has a value.- Returns:
- true iff the field byteArray has a value
-
setByteArray
public ExtendibleOctetString setByteArray(byte[] value) throws IllegalStateException
Sets the value of the field byteArray.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-