Class CAP3ApplyChargingReportGPRSArg
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- CAP3ApplyChargingReportGPRSArg
-
- All Implemented Interfaces:
DataObject
,Serializable
public class CAP3ApplyChargingReportGPRSArg extends AbstractFieldsObject
API for CAP-gprsSSF-gsmSCF-ops-args.ApplyChargingReportGPRSArg. Generated from the following ASN.1 type definition.ApplyChargingReportGPRSArg ::= SEQUENCE { chargingResult ChargingResult, qualityOfService QualityOfService OPTIONAL, active BOOLEAN DEFAULT TRUE, pDPID PDPID OPTIONAL, ... chargingRollOver ChargingRollOver OPTIONAL }
Used as argument type by
CAP3Operations.applyChargingReportGPRS
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description CAP3ApplyChargingReportGPRSArg()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CAP3ApplyChargingReportGPRSArg
clone()
Constructs a copy of this object and everything reachable from it.static CAP3ApplyChargingReportGPRSArg
copyOf(CAP3ApplyChargingReportGPRSArg 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.boolean
getActive()
Gets the value of the field active.CAP3ChargingResult
getChargingResult()
Gets the value of the field chargingResult.CAP3ChargingRollOver
getChargingRollOver()
Gets the value of the field chargingRollOver.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.byte[]
getPDPID()
Gets the value of the field pDPID.CAP3QualityOfService
getQualityOfService()
Gets the value of the field qualityOfService.boolean
hasActive()
Tests whether the field active has a value.boolean
hasChargingResult()
Tests whether the field chargingResult has a value.boolean
hasChargingRollOver()
Tests whether the field chargingRollOver has a value.boolean
hasPDPID()
Tests whether the field pDPID has a value.boolean
hasQualityOfService()
Tests whether the field qualityOfService has a value.CAP3ApplyChargingReportGPRSArg
setActive(boolean value)
Sets the value of the field active and marks the field as present.CAP3ApplyChargingReportGPRSArg
setActivePresent(boolean flag)
Sets the presence or absence of the optional field active.CAP3ApplyChargingReportGPRSArg
setChargingResult(CAP3ChargingResult value)
Sets the value of the field chargingResult.CAP3ApplyChargingReportGPRSArg
setChargingRollOver(CAP3ChargingRollOver value)
Sets the value of the field chargingRollOver.CAP3ApplyChargingReportGPRSArg
setPDPID(byte[] value)
Sets the value of the field pDPID.CAP3ApplyChargingReportGPRSArg
setQualityOfService(CAP3QualityOfService value)
Sets the value of the field qualityOfService.void
setReadOnly()
Sets this and all its fields to be immutable.-
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 CAP3ApplyChargingReportGPRSArg 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 CAP3ApplyChargingReportGPRSArg copyOf(CAP3ApplyChargingReportGPRSArg 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:
- CAP3ApplyChargingReportGPRSArg
-
getActive
public boolean getActive()
Gets the value of the field active.- Returns:
- value of field active
-
getChargingResult
public CAP3ChargingResult getChargingResult()
Gets the value of the field chargingResult.- Returns:
- value of field chargingResult, or null if not present
-
getChargingRollOver
public CAP3ChargingRollOver getChargingRollOver()
Gets the value of the field chargingRollOver.- Returns:
- value of field chargingRollOver, 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
-
getPDPID
public byte[] getPDPID()
Gets the value of the field pDPID.- Returns:
- value of field pDPID, or null if not present
-
getQualityOfService
public CAP3QualityOfService getQualityOfService()
Gets the value of the field qualityOfService.- Returns:
- value of field qualityOfService, or null if not present
-
hasActive
public boolean hasActive()
Tests whether the field active has a value.- Returns:
- whether the field active has a value
-
hasChargingResult
public boolean hasChargingResult()
Tests whether the field chargingResult has a value.- Returns:
- whether the field chargingResult has a value
-
hasChargingRollOver
public boolean hasChargingRollOver()
Tests whether the field chargingRollOver has a value.- Returns:
- whether the field chargingRollOver has a value
-
hasPDPID
public boolean hasPDPID()
Tests whether the field pDPID has a value.- Returns:
- whether the field pDPID has a value
-
hasQualityOfService
public boolean hasQualityOfService()
Tests whether the field qualityOfService has a value.- Returns:
- whether the field qualityOfService has a value
-
setActive
public CAP3ApplyChargingReportGPRSArg setActive(boolean value) throws IllegalStateException
Sets the value of the field active and marks the field as present.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setActivePresent
public CAP3ApplyChargingReportGPRSArg setActivePresent(boolean flag) throws IllegalStateException
Sets the presence or absence of the optional field active.- Parameters:
flag
- either true if the field should be marked as present or false if the field should be marked as absent- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setChargingResult
public CAP3ApplyChargingReportGPRSArg setChargingResult(CAP3ChargingResult value) throws IllegalStateException
Sets the value of the field chargingResult.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setChargingRollOver
public CAP3ApplyChargingReportGPRSArg setChargingRollOver(CAP3ChargingRollOver value) throws IllegalStateException
Sets the value of the field chargingRollOver. 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
-
setPDPID
public CAP3ApplyChargingReportGPRSArg setPDPID(byte[] value) throws IllegalStateException
Sets the value of the field pDPID. 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
-
setQualityOfService
public CAP3ApplyChargingReportGPRSArg setQualityOfService(CAP3QualityOfService value) throws IllegalStateException
Sets the value of the field qualityOfService. 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
-
-