Package uk.co.real_logic.sbe.xml
Class MessageSchema
java.lang.Object
uk.co.real_logic.sbe.xml.MessageSchema
Message schema aggregate for schema attributes, messageHeader, and reference for multiple
Message objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault message header type name for the SBE spec. -
Method Summary
Modifier and TypeMethodDescriptionReturn the byte order specified by the messageSchemaThe description of the schema.getMessage(long messageId) Return a givenMessageobject with the given messageId.Get theTypefor a given name.intid()The id number of the schema.The Schema headerType for message headers.messages()Get theCollectionofMessages for this Schema.The package name for the schema.The semantic version number of the schema.types()Get theCollectionofTypes for this Schema.voidvalidate(ErrorHandler errorHandler) Validate the message schema and delegate warnings and errors to the suppliedErrorHandler.intversion()The version number of the schema.
-
Field Details
-
HEADER_TYPE_DEFAULT
Default message header type name for the SBE spec.- See Also:
-
-
Method Details
-
messageHeader
The Schema headerType for message headers. This should be aCompositeType.- Returns:
- the Schema headerType for message headers
-
packageName
The package name for the schema.- Returns:
- he package name for the schema.
-
description
The description of the schema.- Returns:
- the description of the schema.
-
id
public int id()The id number of the schema.- Returns:
- the id number of the schema.
-
version
public int version()The version number of the schema.- Returns:
- the version number of the schema.
-
semanticVersion
The semantic version number of the schema. Typically, used to reference a third party standard such as FIX.- Returns:
- the semantic version number of the schema.
-
getMessage
Return a givenMessageobject with the given messageId.- Parameters:
messageId- of the message to return.- Returns:
- a given
Messagefor the messageId.
-
getType
Get theTypefor a given name.- Parameters:
typeName- to lookup.- Returns:
- the type if found otherwise null.
-
messages
Get theCollectionofMessages for this Schema.- Returns:
- the
CollectionofMessages for this Schema.
-
types
Get theCollectionofTypes for this Schema.- Returns:
- the
CollectionofTypes for this Schema.
-
byteOrder
Return the byte order specified by the messageSchema- Returns:
ByteOrderof the message encoding.
-
validate
Validate the message schema and delegate warnings and errors to the suppliedErrorHandler.- Parameters:
errorHandler- for delegating warnings and errors.
-