Schema object model
The SBE toolset builds SBE schema object model from the SBE SML template. This model keeps all information about SBE data types, message structures, field offsets, etc.
The user code should not modify this model, but it can use it to analyze the SBE template without XML parsing, and to perform additional actions regarding SBE messages.
Basic principles
Top-level object
The Top-level embracing object for the object model is MessageSchema. This object contains definitions for all messages, groups and types of the given SBE XML template.
Unified metadata class
Most of the metadata is represented by instances of the UnifiedMetaData class. The real kind of the data is marked in its kind field using the Kind enumeration.
Also, this class contains a set of methods to simplify search paticular data.
Message and group
Messages are represented by separate instances of the UnifiedMetaData. Repeating groups are incorporated into the upper-level messages or groups (in the case of nested groups).
Direct links of encoding types
The encoding types are always resolved to direct references instead of names and are available via the getResolvedUnderlayingType method. Using this method the user code can traverse the message field nature till the deepest simplest type.
Java SBE Decoder