fix-sbe
Theme
Text size
GitHub Menu

Class in FIX Simple Binary Encoding (SBE)

SbeSimpleTypeV1

An encoding backed by one primitive value, or several in an array.

URI: fix_sbe:class/SbeSimpleTypeV1

 classDiagram
    class SbeSimpleTypeV1
    click SbeSimpleTypeV1 href "../../classes/SbeSimpleTypeV1/"
      SbeEncodingV1 <|-- SbeSimpleTypeV1
        click SbeEncodingV1 href "../../classes/SbeEncodingV1/"
      
      SbeSimpleTypeV1 : array_length
        
      SbeSimpleTypeV1 : character_encoding
        
      SbeSimpleTypeV1 : deprecated_since
        
      SbeSimpleTypeV1 : description
        
      SbeSimpleTypeV1 : element_value
        
      SbeSimpleTypeV1 : encoding_kind
        
      SbeSimpleTypeV1 : max_value
        
      SbeSimpleTypeV1 : min_value
        
      SbeSimpleTypeV1 : null_value
        
      SbeSimpleTypeV1 : offset
        
      SbeSimpleTypeV1 : presence
        
          
    
        
        
        SbeSimpleTypeV1 --> "0..1" SbePresence : presence
        click SbePresence href "../../enums/SbePresence/"
    

        
      SbeSimpleTypeV1 : primitive_type
        
          
    
        
        
        SbeSimpleTypeV1 --> "1" SbePrimitiveType : primitive_type
        click SbePrimitiveType href "../../enums/SbePrimitiveType/"
    

        
      SbeSimpleTypeV1 : semantic_type
        
      SbeSimpleTypeV1 : since_version
        
      SbeSimpleTypeV1 : symbolic_name
        
      SbeSimpleTypeV1 : value_ref
        
      

Inheritance#

Slots#

NameCardinality and RangeDescriptionInheritance
element_value0..1
SbeToken
The text of the XML element, which is the constant when presence is constantdirect
primitive_type1
SbePrimitiveType
The wire type under this encodingdirect
array_length0..1
Integer
How many values of the primitive type the encoding holds, where zero means a …direct
character_encoding0..1
String
Which character set, or which Unicode scheme, character data followsdirect
null_value0..1
String
The value that stands for null in place of the primitive type’s default, writ…direct
min_value0..1
String
The lowest value allowed, written as textdirect
max_value0..1
String
The highest value allowed, written as textdirect
presence0..1
SbePresence
Whether this element’s value is required, optional or constantdirect
value_ref0..1
SbeQualifiedName
The valid value that gives a constant element its valuedirect
semantic_type0..1
SbeToken
The FIX datatype this encoding carriesSbeEncodingV1
description0..1
String
Free text about this element, for the people who read the schemaSbeEncodingV1
encoding_kind1
String
The class of this encoding or composite member, which stands for its XML elem…SbeMemberV1
symbolic_name1
SbeSymbolicName
What the schema calls this elementSbeMemberV1
offset0..1
Integer
The octet this element starts at, counted from zero at the start of its block…SbeMemberV1
since_version0..1
Integer
The schema version that added this elementSbeVersionedMixin
deprecated_since0..1
Integer
The schema version that retired this element, which stays only for older appl…SbeVersionedMixin

Rules#

A reference to a value needs a constant#

Rule AppliedPreconditionsPostconditionsElseconditions
slot_conditions{'value_ref': {'value_presence': 'PRESENT'}}{'presence': {'equals_string': 'constant'}}

A required value has no null#

Rule AppliedPreconditionsPostconditionsElseconditions
slot_conditions{'presence': {'equals_string': 'required'}}{'null_value': {'value_presence': 'ABSENT'}}

A constant has no null#

Rule AppliedPreconditionsPostconditionsElseconditions
slot_conditions{'presence': {'equals_string': 'constant'}}{'null_value': {'value_presence': 'ABSENT'}}

A constant has no lowest value#

Rule AppliedPreconditionsPostconditionsElseconditions
slot_conditions{'presence': {'equals_string': 'constant'}}{'min_value': {'value_presence': 'ABSENT'}}

A constant has no highest value#

Rule AppliedPreconditionsPostconditionsElseconditions
slot_conditions{'presence': {'equals_string': 'constant'}}{'max_value': {'value_presence': 'ABSENT'}}

Comments#

  • FIX’s transposer carries a stand-alone simple type to an Orchestra datatype, and one that is a composite’s member to a field referenced from the component.

Identifier and Mapping Information#

Annotations#

propertyvalue
xsd_typeencodedDataType
xml_elementtype

Schema Source#

Mappings#

Mapping TypeMapped Value
selffix_sbe:SbeSimpleTypeV1
nativefix_sbe:SbeSimpleTypeV1
closefix_orchestra:OrchestraDatatypeV10

LinkML Source#

Direct#

YAML
name: SbeSimpleTypeV1
annotations:
  xsd_type:
    tag: xsd_type
    value: encodedDataType
  xml_element:
    tag: xml_element
    value: type
description: An encoding backed by one primitive value, or several in an array.
comments:
- FIX's transposer carries a stand-alone simple type to an Orchestra datatype, and
  one that is a composite's member to a field referenced from the component.
from_schema: https://w3id.org/lmodel/fix-sbe
close_mappings:
- fix_orchestra:OrchestraDatatypeV10
is_a: SbeEncodingV1
slots:
- element_value
- primitive_type
- array_length
- character_encoding
- null_value
- min_value
- max_value
- presence
- value_ref
rules:
- preconditions:
    slot_conditions:
      value_ref:
        name: value_ref
        value_presence: PRESENT
  postconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  annotations:
    sbe_section:
      tag: sbe_section
      value: '4: Field attributes'
  description: A value_ref is valid only on an element whose presence is constant.
  title: A reference to a value needs a constant
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: required
  postconditions:
    slot_conditions:
      null_value:
        name: null_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '4: Schema validation'
  description: A null value cannot sit beside a presence of required.
  title: A required value has no null
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  postconditions:
    slot_conditions:
      null_value:
        name: null_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '2: Common field schema attributes'
  description: A null value cannot sit beside a presence of constant.
  title: A constant has no null
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  postconditions:
    slot_conditions:
      min_value:
        name: min_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '2: Common field schema attributes'
  description: A lowest value cannot sit beside a presence of constant.
  title: A constant has no lowest value
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  postconditions:
    slot_conditions:
      max_value:
        name: max_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '2: Common field schema attributes'
  description: A highest value cannot sit beside a presence of constant.
  title: A constant has no highest value

Induced#

YAML
name: SbeSimpleTypeV1
annotations:
  xsd_type:
    tag: xsd_type
    value: encodedDataType
  xml_element:
    tag: xml_element
    value: type
description: An encoding backed by one primitive value, or several in an array.
comments:
- FIX's transposer carries a stand-alone simple type to an Orchestra datatype, and
  one that is a composite's member to a field referenced from the component.
from_schema: https://w3id.org/lmodel/fix-sbe
close_mappings:
- fix_orchestra:OrchestraDatatypeV10
is_a: SbeEncodingV1
attributes:
  element_value:
    name: element_value
    annotations:
      xsd_type:
        tag: xsd_type
        value: xs:token
      sbe_section:
        tag: sbe_section
        value: '4: Constant value'
    description: The text of the XML element, which is the constant when presence
      is constant.
    from_schema: https://w3id.org/lmodel/fix-sbe
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeSimpleTypeV2
    - SbeMemberTypeV2
    - SbeFieldV2
    range: SbeToken
    pattern: ^\S+( \S+)*$
  primitive_type:
    name: primitive_type
    description: The wire type under this encoding.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - primitiveType
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeSimpleTypeV2
    - SbeMemberTypeV2
    range: SbePrimitiveType
    required: true
  array_length:
    name: array_length
    annotations:
      xsd_type:
        tag: xsd_type
        value: xs:nonNegativeInteger
    description: How many values of the primitive type the encoding holds, where zero
      means a variable number.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - length
    rank: 1000
    ifabsent: int(1)
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeSimpleTypeV2
    - SbeMemberTypeV2
    range: integer
    minimum_value: 0
  character_encoding:
    name: character_encoding
    description: Which character set, or which Unicode scheme, character data follows.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - characterEncoding
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeSimpleTypeV2
    - SbeMemberTypeV2
    range: string
  null_value:
    name: null_value
    description: The value that stands for null in place of the primitive type's default,
      written as text.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - nullValue
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: string
  min_value:
    name: min_value
    description: The lowest value allowed, written as text.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - minValue
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: string
  max_value:
    name: max_value
    description: The highest value allowed, written as text.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - maxValue
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: string
  presence:
    name: presence
    description: Whether this element's value is required, optional or constant.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - presence
    rank: 1000
    ifabsent: string(required)
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeFieldV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: SbePresence
  value_ref:
    name: value_ref
    description: The valid value that gives a constant element its value.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - valueRef
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeSimpleTypeV1
    - SbeFieldV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: SbeQualifiedName
    pattern: ^[A-Za-z_][0-9A-Za-z_]*\.[A-Za-z_][0-9A-Za-z_]*$
  semantic_type:
    name: semantic_type
    annotations:
      xsd_type:
        tag: xsd_type
        value: xs:token
    description: The FIX datatype this encoding carries.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - semanticType
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeEncodingV1
    - SbeBlockV1Mixin
    - SbeFieldV1
    - SbeBlockV2Mixin
    - SbeFieldV2
    range: SbeToken
    pattern: ^\S+( \S+)*$
  description:
    name: description
    description: Free text about this element, for the people who read the schema.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - description
    rank: 1000
    slot_uri: schema:description
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeValidValue
    - SbeChoice
    - SbeMessageSchemaV1
    - SbeEncodingV1
    - SbeBlockV1Mixin
    - SbeFieldV1
    - SbeMessageSchemaV2
    - SbeEncodingSetV2
    - SbeMessageSetV2
    - SbeElementV2
    - SbeBlockV2Mixin
    - SbeFieldV2
    range: string
  encoding_kind:
    name: encoding_kind
    description: The class of this encoding or composite member, which stands for
      its XML element.
    from_schema: https://w3id.org/lmodel/fix-sbe
    rank: 1000
    designates_type: true
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeMemberV1
    - SbeElementV2
    range: string
    required: true
  symbolic_name:
    name: symbolic_name
    description: What the schema calls this element.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - name
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeValidValue
    - SbeChoice
    - SbeMemberV1
    - SbeBlockV1Mixin
    - SbeFieldV1
    - SbeElementV2
    - SbeBlockV2Mixin
    - SbeFieldV2
    range: SbeSymbolicName
    required: true
    pattern: ^[A-Za-z_][0-9A-Za-z_]{0,63}$
  offset:
    name: offset
    annotations:
      xsd_type:
        tag: xsd_type
        value: xs:unsignedInt
      sbe_section:
        tag: sbe_section
        value: '3: Field offset specified by message schema'
    description: The octet this element starts at, counted from zero at the start
      of its block or composite.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - offset
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeMemberV1
    - SbeFieldV1
    - SbeMemberV2
    - SbeFieldV2
    range: integer
    minimum_value: 0
    maximum_value: 4294967295
  since_version:
    name: since_version
    annotations:
      xsd_type:
        tag: xsd_type
        value: xs:nonNegativeInteger
      sbe_section:
        tag: sbe_section
        value: '5: Since version'
    description: The schema version that added this element.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - sinceVersion
    rank: 1000
    ifabsent: int(0)
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeVersionedMixin
    range: integer
    minimum_value: 0
  deprecated_since:
    name: deprecated_since
    annotations:
      xsd_type:
        tag: xsd_type
        value: xs:nonNegativeInteger
      sbe_section:
        tag: sbe_section
        value: '5: Deprecated elements'
    description: The schema version that retired this element, which stays only for
      older applications.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - deprecated
    rank: 1000
    owner: SbeSimpleTypeV1
    domain_of:
    - SbeVersionedMixin
    range: integer
    minimum_value: 0
rules:
- preconditions:
    slot_conditions:
      value_ref:
        name: value_ref
        value_presence: PRESENT
  postconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  annotations:
    sbe_section:
      tag: sbe_section
      value: '4: Field attributes'
  description: A value_ref is valid only on an element whose presence is constant.
  title: A reference to a value needs a constant
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: required
  postconditions:
    slot_conditions:
      null_value:
        name: null_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '4: Schema validation'
  description: A null value cannot sit beside a presence of required.
  title: A required value has no null
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  postconditions:
    slot_conditions:
      null_value:
        name: null_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '2: Common field schema attributes'
  description: A null value cannot sit beside a presence of constant.
  title: A constant has no null
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  postconditions:
    slot_conditions:
      min_value:
        name: min_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '2: Common field schema attributes'
  description: A lowest value cannot sit beside a presence of constant.
  title: A constant has no lowest value
- preconditions:
    slot_conditions:
      presence:
        name: presence
        equals_string: constant
  postconditions:
    slot_conditions:
      max_value:
        name: max_value
        value_presence: ABSENT
  annotations:
    sbe_section:
      tag: sbe_section
      value: '2: Common field schema attributes'
  description: A highest value cannot sit beside a presence of constant.
  title: A constant has no highest value