Skip to main content

Module builder

Module builder 

Source
Expand description

DynamicTypeBuilder + DynamicTypeBuilderFactory (XTypes 1.3 §7.5.4, §7.5.5).

Spec behavior:

  • add_member validates name and id immediately against existing members (spec §7.5.4.1.2 preconditions).
  • build() validates the final structure (inheritance cycle, mandatory discriminator, etc.) and returns an immutable DynamicType.

Structs§

DynamicTypeBuilder
XTypes §7.5.4 DynamicTypeBuilder.
DynamicTypeBuilderFactory
XTypes §7.5.5 DynamicTypeBuilderFactory — Singleton im Spec-Sinne.