fix-sbe
Theme
Text size
GitHub Menu

Class in FIX Simple Binary Encoding (SBE)

SbeMemberTypeV2

A simple encoding inside a composite, which may say it is optional or constant.

URI: fix_sbe:class/SbeMemberTypeV2

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

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

        
      SbeMemberTypeV2 : symbolic_name
        
      SbeMemberTypeV2 : 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
presence0..1
SbePresence
Whether this element’s value is required, optional or constantdirect
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
value_ref0..1
SbeQualifiedName
The valid value that gives a constant element its valuedirect
offset0..1
Integer
The octet this element starts at, counted from zero at the start of its block…SbeMemberV2
alignment0..1
Integer
The multiple of octets the start of this element is placed onSbeMemberV2
encoding_kind1
String
The class of this encoding or composite member, which stands for its XML elem…SbeElementV2
symbolic_name1
SbeSymbolicName
What the schema calls this elementSbeElementV2
description0..1
String
Free text about this element, for the people who read the schemaSbeElementV2

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 every composite member to an Orchestra field, referenced from the component, and only a stand-alone simple type to a datatype.

Identifier and Mapping Information#

Annotations#

propertyvalue
xsd_typememberDataType
xml_elementtype

Schema Source#

Mappings#

Mapping TypeMapped Value
selffix_sbe:SbeMemberTypeV2
nativefix_sbe:SbeMemberTypeV2
closefix_orchestra:OrchestraFieldV10

LinkML Source#

Direct#

YAML
name: SbeMemberTypeV2
annotations:
  xsd_type:
    tag: xsd_type
    value: memberDataType
  xml_element:
    tag: xml_element
    value: type
description: A simple encoding inside a composite, which may say it is optional or
  constant.
comments:
- FIX's transposer carries every composite member to an Orchestra field, referenced
  from the component, and only a stand-alone simple type to a datatype.
from_schema: https://w3id.org/lmodel/fix-sbe
close_mappings:
- fix_orchestra:OrchestraFieldV10
is_a: SbeMemberV2
slots:
- element_value
- primitive_type
- array_length
- character_encoding
- presence
- null_value
- min_value
- max_value
- 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: SbeMemberTypeV2
annotations:
  xsd_type:
    tag: xsd_type
    value: memberDataType
  xml_element:
    tag: xml_element
    value: type
description: A simple encoding inside a composite, which may say it is optional or
  constant.
comments:
- FIX's transposer carries every composite member to an Orchestra field, referenced
  from the component, and only a stand-alone simple type to a datatype.
from_schema: https://w3id.org/lmodel/fix-sbe
close_mappings:
- fix_orchestra:OrchestraFieldV10
is_a: SbeMemberV2
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: SbeMemberTypeV2
    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: SbeMemberTypeV2
    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: SbeMemberTypeV2
    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: SbeMemberTypeV2
    domain_of:
    - SbeSimpleTypeV1
    - SbeSimpleTypeV2
    - SbeMemberTypeV2
    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: SbeMemberTypeV2
    domain_of:
    - SbeSimpleTypeV1
    - SbeFieldV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: SbePresence
  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: SbeMemberTypeV2
    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: SbeMemberTypeV2
    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: SbeMemberTypeV2
    domain_of:
    - SbeSimpleTypeV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: string
  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: SbeMemberTypeV2
    domain_of:
    - SbeSimpleTypeV1
    - SbeFieldV1
    - SbeMemberTypeV2
    - SbeFieldV2
    range: SbeQualifiedName
    pattern: ^[A-Za-z_][0-9A-Za-z_]*\.[A-Za-z_][0-9A-Za-z_]*$
  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: SbeMemberTypeV2
    domain_of:
    - SbeMemberV1
    - SbeFieldV1
    - SbeMemberV2
    - SbeFieldV2
    range: integer
    minimum_value: 0
    maximum_value: 4294967295
  alignment:
    name: alignment
    annotations:
      xsd_type:
        tag: xsd_type
        value: xs:positiveInteger
      sbe_section:
        tag: sbe_section
        value: '3: Field byte alignment'
    description: The multiple of octets the start of this element is placed on.
    from_schema: https://w3id.org/lmodel/fix-sbe
    aliases:
    - alignment
    rank: 1000
    owner: SbeMemberTypeV2
    domain_of:
    - SbeMemberV2
    - SbeBlockV2Mixin
    - SbeFieldV2
    range: integer
    minimum_value: 1
  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: SbeMemberTypeV2
    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: SbeMemberTypeV2
    domain_of:
    - SbeValidValue
    - SbeChoice
    - SbeMemberV1
    - SbeBlockV1Mixin
    - SbeFieldV1
    - SbeElementV2
    - SbeBlockV2Mixin
    - SbeFieldV2
    range: SbeSymbolicName
    required: true
    pattern: ^[A-Za-z_][0-9A-Za-z_]{0,63}$
  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: SbeMemberTypeV2
    domain_of:
    - SbeValidValue
    - SbeChoice
    - SbeMessageSchemaV1
    - SbeEncodingV1
    - SbeBlockV1Mixin
    - SbeFieldV1
    - SbeMessageSchemaV2
    - SbeEncodingSetV2
    - SbeMessageSetV2
    - SbeElementV2
    - SbeBlockV2Mixin
    - SbeFieldV2
    range: string
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