Package uk.co.real_logic.sbe.xml
Class Message
java.lang.Object
uk.co.real_logic.sbe.xml.Message
An SBE message containing a list of
Field objects and SBE message attributes.
What is difference between Message and the Intermediate Representation (IR)?
- IR is intentionally platform, schema, and language independent.
- IR is abstract layout and encoding only.
- IR is a flat representation without cycles or hierarchy.
- Message is FIX/SBE XML Schema specific.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the encodedLength of theMessagein bytes including any padding.intVersion in which message was deprecated.The description of the message (if set) or nullfields()Return the list of fields in the messageintid()Return the template schemaId of the messagename()Return the name of the messageThe semanticType of the message (if set) or nullintThe version since this was added to the template.toString()
-
Constructor Details
-
Message
Construct a new message from XML Schema.- Parameters:
messageNode- from the XML Schema ParsingtypeByNameMap- holding type information for message- Throws:
XPathExpressionException- on invalid XPath
-
-
Method Details
-
id
public int id()Return the template schemaId of the message- Returns:
- schemaId of the message
-
name
Return the name of the message- Returns:
- name of the message
-
description
The description of the message (if set) or null- Returns:
- description set by the message or null
-
semanticType
The semanticType of the message (if set) or null- Returns:
- the semanticType of the message (if set) or null
-
sinceVersion
public int sinceVersion()The version since this was added to the template.- Returns:
- version since this was added to the template.
-
deprecated
public int deprecated()Version in which message was deprecated. Only valid if greater than zero.- Returns:
- version in which the message was deprecated.
-
fields
Return the list of fields in the message- Returns:
Listof the Field objects in this Message
-
blockLength
public int blockLength()Return the encodedLength of theMessagein bytes including any padding.- Returns:
- the encodedLength of the
Messagein bytes including any padding.
-
toString
-