public class CAP4CAP_GPRS_ReferenceNumber extends AbstractFieldsObject
CAP-GPRS-ReferenceNumber ::= SEQUENCE { destinationReference Integer4 OPTIONAL, originationReference Integer4 OPTIONAL }
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CAP4CAP_GPRS_ReferenceNumber()
Constructs an object with uninitialised state.
|
Modifier and Type | Method and Description |
---|---|
CAP4CAP_GPRS_ReferenceNumber |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CAP4CAP_GPRS_ReferenceNumber |
copyOf(CAP4CAP_GPRS_ReferenceNumber 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.
|
int |
getDestinationReference()
Gets the value of the field destinationReference.
|
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.
|
int |
getOriginationReference()
Gets the value of the field originationReference.
|
boolean |
hasDestinationReference()
Tests whether the field destinationReference has a value.
|
boolean |
hasOriginationReference()
Tests whether the field originationReference has a value.
|
CAP4CAP_GPRS_ReferenceNumber |
setDestinationReference(int value)
Sets the value of the field destinationReference and marks the field as present.
|
CAP4CAP_GPRS_ReferenceNumber |
setDestinationReferencePresent(boolean flag)
Sets the presence or absence of the optional field destinationReference.
|
CAP4CAP_GPRS_ReferenceNumber |
setOriginationReference(int value)
Sets the value of the field originationReference and marks the field as present.
|
CAP4CAP_GPRS_ReferenceNumber |
setOriginationReferencePresent(boolean flag)
Sets the presence or absence of the optional field originationReference.
|
equals, hashCode, toString
checkModify, isReadOnly, setReadOnly
public CAP4CAP_GPRS_ReferenceNumber()
public CAP4CAP_GPRS_ReferenceNumber clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CAP4CAP_GPRS_ReferenceNumber copyOf(CAP4CAP_GPRS_ReferenceNumber from)
from
- the object from which to copypublic int getDestinationReference()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- whether to put absent optional fields into Mappublic int getOriginationReference()
public boolean hasDestinationReference()
public boolean hasOriginationReference()
public CAP4CAP_GPRS_ReferenceNumber setDestinationReference(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4CAP_GPRS_ReferenceNumber setDestinationReferencePresent(boolean flag) throws IllegalStateException
flag
- either true if the field should be marked as present or false if the field should be marked as absentIllegalStateException
- if this instance has been marked as read-onlypublic CAP4CAP_GPRS_ReferenceNumber setOriginationReference(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4CAP_GPRS_ReferenceNumber setOriginationReferencePresent(boolean flag) throws IllegalStateException
flag
- either true if the field should be marked as present or false if the field should be marked as absentIllegalStateException
- if this instance has been marked as read-only