Package uk.co.real_logic.sbe.xml
Class CompositeType
java.lang.Object
uk.co.real_logic.sbe.xml.Type
uk.co.real_logic.sbe.xml.CompositeType
SBE compositeType which is a composite of other composites, sets, enums, or simple types.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckForValidOffsets(Node node) Check the composite for any specified offsets and validate they are correctly specified.voidCheck the composite for being a well-formed group encodedLength encoding.voidCheck the composite for being a well-formed message headerStructure encoding.voidCheck the composite for being a well-formed variable length data encoding.intThe encodedLength (in octets) of the list of encoded types.Return the EncodedDataType within this composite with the given name.Return list of theTypes that compose this composite.booleanIs the type variable length when encoded.voidMake this composite type, if it has a varData member, variable length by making the type with the name "varData" be variable length.toString()Methods inherited from class uk.co.real_logic.sbe.xml.Type
deprecated, description, name, offsetAttribute, offsetAttribute, packageName, presence, referencedName, semanticType, sinceVersion, sinceVersion
-
Field Details
-
COMPOSITE_TYPE
SBE schema composite type.- See Also:
-
-
Method Details
-
getType
Return the EncodedDataType within this composite with the given name.- Parameters:
name- of the type to return.- Returns:
- type requested.
-
encodedLength
public int encodedLength()The encodedLength (in octets) of the list of encoded types.- Specified by:
encodedLengthin classType- Returns:
- encodedLength of the compositeType.
-
getTypeList
Return list of theTypes that compose this composite. -
makeDataFieldCompositeType
public void makeDataFieldCompositeType()Make this composite type, if it has a varData member, variable length by making the type with the name "varData" be variable length. -
checkForWellFormedGroupSizeEncoding
Check the composite for being a well-formed group encodedLength encoding. This means that there are the fields "blockLength" and "numInGroup" present.- Parameters:
node- of the XML for this composite.
-
checkForWellFormedVariableLengthDataEncoding
Check the composite for being a well-formed variable length data encoding. This means that there are the fields "length" and "varData" present.- Parameters:
node- of the XML for this composite
-
checkForWellFormedMessageHeader
Check the composite for being a well-formed message headerStructure encoding. This means that there are the fields "blockLength", "templateId" and "version" present.- Parameters:
node- of the XML for this composite
-
checkForValidOffsets
Check the composite for any specified offsets and validate they are correctly specified.- Parameters:
node- of the XML for this composite
-
isVariableLength
public boolean isVariableLength()Is the type variable length when encoded.- Specified by:
isVariableLengthin classType- Returns:
- true if the type is variable length when encoded.
-
toString
-