An SBE message provides access to message fields via its methods.
To get/set a field value, use the corresponding method of the strongly typed message class.
The naming convention for setters is setFieldName(..)
.
To set the value of the optional field to null
, use the setFieldNameToNull()
method.
It is also possible to use NullFieldType
constants (OnixS::B3::BOE::Messaging::NullUInt32, OnixS::B3::BOE::Messaging::NullAllocID, OnixS::B3::BOE::Messaging::NullAllocReportID, OnixS::B3::BOE::Messaging::NullBusinessRejectRefID, etc.).
The naming convention for getters is fieldName()
.
Getters for optional fields return true
if the value is present, otherwise - false
.