ea 0.6.150 → 0.6.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (444) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +33 -0
  3. data/README.adoc +13 -5
  4. data/config/qea_schema.yml +0 -85
  5. data/lib/ea/cli/command/base.rb +3 -3
  6. data/lib/ea/cli/command/list.rb +30 -12
  7. data/lib/ea/cli/command.rb +0 -1
  8. data/lib/ea/export/plantuml/generator.rb +45 -32
  9. data/lib/ea/qea/database.rb +7 -0
  10. data/lib/ea/qea/factory/association_builder.rb +1 -1
  11. data/lib/ea/qea/factory/association_transformer.rb +1 -1
  12. data/lib/ea/qea/factory/attribute_tag_transformer.rb +2 -2
  13. data/lib/ea/qea/factory/attribute_transformer.rb +4 -9
  14. data/lib/ea/qea/factory/base_transformer.rb +22 -14
  15. data/lib/ea/qea/factory/class_transformer.rb +1 -1
  16. data/lib/ea/qea/factory/data_type_transformer.rb +1 -1
  17. data/lib/ea/qea/factory/diagram_transformer.rb +1 -1
  18. data/lib/ea/qea/factory/enum_transformer.rb +2 -2
  19. data/lib/ea/qea/factory/generalization_transformer.rb +1 -1
  20. data/lib/ea/qea/factory/instance_transformer.rb +1 -1
  21. data/lib/ea/qea/factory/object_property_transformer.rb +2 -2
  22. data/lib/ea/qea/factory/operation_transformer.rb +1 -1
  23. data/lib/ea/qea/infrastructure/database_connection.rb +71 -1
  24. data/lib/ea/qea/infrastructure/table_reader.rb +33 -14
  25. data/lib/ea/qea/services/database_loader.rb +22 -6
  26. data/lib/ea/query/builder.rb +1 -1
  27. data/lib/ea/rtf.rb +98 -0
  28. data/lib/ea/sources/qea/annotation_builder.rb +1 -1
  29. data/lib/ea/spa/projector.rb +36 -19
  30. data/lib/ea/svg/ea_emitter/diagram_frame.rb +25 -12
  31. data/lib/ea/svg/ea_emitter/text_renderer.rb +28 -10
  32. data/lib/ea/theme/definition.rb +167 -16
  33. data/lib/ea/theme/loader.rb +129 -107
  34. data/lib/ea/theme/theme_document.rb +53 -0
  35. data/lib/ea/theme.rb +1 -0
  36. data/lib/ea/transformers.rb +1 -10
  37. data/lib/ea/version.rb +1 -1
  38. data/lib/ea/xmi/liquid_drops/klass_drop.rb +5 -0
  39. data/lib/ea/xmi/lookup_service.rb +40 -3
  40. data/lib/ea/xmi/parser.rb +3 -2
  41. data/lib/ea.rb +1 -1
  42. metadata +6 -404
  43. data/CLAUDE.md +0 -153
  44. data/Rakefile +0 -23
  45. data/TODO.complete/01-t-xref-parsing.md +0 -91
  46. data/TODO.complete/02-per-label-geometry.md +0 -50
  47. data/TODO.complete/03-object-properties-constraints.md +0 -57
  48. data/TODO.complete/04-operation-params.md +0 -37
  49. data/TODO.complete/05-pdata-flag-matrix.md +0 -52
  50. data/TODO.complete/06-emf-image-rendering.md +0 -34
  51. data/TODO.complete/07-auxiliary-tables.md +0 -47
  52. data/TODO.complete/10-mdg-stereotype-registry.md +0 -40
  53. data/TODO.complete/11-gml-xsd-generation.md +0 -42
  54. data/TODO.complete/13-shapescript-interpreter.md +0 -17
  55. data/TODO.complete/20-cli-diff.md +0 -46
  56. data/TODO.complete/21-cli-render.md +0 -26
  57. data/TODO.complete/22-cli-export.md +0 -29
  58. data/TODO.complete/23-cli-mdg.md +0 -23
  59. data/TODO.complete/30-headerlines-ocp-refactor.md +0 -72
  60. data/TODO.complete/31-public-send-cleanup.md +0 -61
  61. data/TODO.complete/32-spec-coverage.md +0 -33
  62. data/TODO.complete/33-blocked-parity-gaps.md +0 -41
  63. data/TODO.complete/36-stereotype-icon-wiring.md +0 -32
  64. data/TODO.complete/37-cli-lint.md +0 -32
  65. data/TODO.complete/38-cli-query.md +0 -26
  66. data/TODO.complete/39-cli-info.md +0 -23
  67. data/TODO.complete/40-ocl-evaluator.md +0 -31
  68. data/TODO.complete/41-round-trip-spec.md +0 -18
  69. data/TODO.complete/42-html-diff-report.md +0 -18
  70. data/TODO.complete/43-json-schema-export.md +0 -20
  71. data/TODO.complete/44-remaining-qea-tables.md +0 -40
  72. data/TODO.complete/45-shapescript-extensions.md +0 -25
  73. data/TODO.complete/46-xsd-consolidation.md +0 -20
  74. data/TODO.complete/47-headerlines-legacy-removal.md +0 -20
  75. data/TODO.complete/51-remove-respond-to.md +0 -52
  76. data/TODO.complete/52-xsd-decouple-fixtures.md +0 -23
  77. data/TODO.complete/53-xmi-public-send-cleanup.md +0 -26
  78. data/TODO.complete/54-wire-stereotype-icon-renderer.md +0 -20
  79. data/TODO.complete/55-wire-shapescript.md +0 -20
  80. data/TODO.complete/56-wire-emf-renderer.md +0 -27
  81. data/TODO.complete/57-wire-ocl-evaluator.md +0 -23
  82. data/TODO.complete/58-diff-modifications.md +0 -21
  83. data/TODO.complete/59-delete-toy-xmi-export.md +0 -30
  84. data/TODO.complete/60-curate-json-export.md +0 -20
  85. data/TODO.complete/61-plantuml-relationships.md +0 -22
  86. data/TODO.complete/62-changelog.md +0 -17
  87. data/TODO.complete/63-dependabot-fix.md +0 -18
  88. data/TODO.complete/64-qeatoxmi-connectors.md +0 -15
  89. data/TODO.complete/65-qeatoxmi-diagrams.md +0 -15
  90. data/TODO.complete/66-qeatoxmi-style-tags-docs.md +0 -35
  91. data/TODO.complete/67-ocl-collection-ops.md +0 -20
  92. data/TODO.complete/68-ocl-comparison-ops.md +0 -24
  93. data/TODO.complete/69-spec-new-models.md +0 -20
  94. data/TODO.complete/70-specs-for-all-models.md +0 -21
  95. data/TODO.complete/71-autoload-audit.md +0 -26
  96. data/TODO.complete/72-extension-serializer-ocp-naming.md +0 -26
  97. data/TODO.complete/73-ocl-validator-latent-bugs.md +0 -50
  98. data/TODO.complete/74-visibility-symbol-dry.md +0 -39
  99. data/TODO.complete/75-database-table-collection-registry.md +0 -32
  100. data/TODO.complete/76-stale-todo-cleanup.md +0 -52
  101. data/TODO.complete/77-eliminate-banned-patterns-from-specs.md +0 -55
  102. data/TODO.complete/78-mdg-stereotype-emission.md +0 -66
  103. data/TODO.complete/79-equivalence-fixes.md +0 -57
  104. data/TODO.complete/80-performance-extension-serializer-indexes.md +0 -43
  105. data/TODO.complete/81-dry-scope-guid-extraction.md +0 -33
  106. data/TODO.complete/82-public-send-audit-conclusion.md +0 -25
  107. data/TODO.complete/83-dry-shared-xml-escape-guid-format.md +0 -52
  108. data/TODO.complete/84-ocp-markers-shape-registry.md +0 -54
  109. data/TODO.complete/85-frozen-literal-rubocop-normalize-type-spec.md +0 -38
  110. data/TODO.complete/86-frozen-sweep-lint-query-specs.md +0 -55
  111. data/TODO.complete/STATUS.md +0 -106
  112. data/TODO.diagrams/01-svg-measurement-harness.md +0 -31
  113. data/TODO.diagrams/01-xmi-extension-elements-parsing.md +0 -67
  114. data/TODO.diagrams/02-diagram-element-rich-model.md +0 -61
  115. data/TODO.diagrams/02-polygon-over-rendering.md +0 -29
  116. data/TODO.diagrams/03-ea-style-svg-emitter.md +0 -70
  117. data/TODO.diagrams/03-text-over-rendering.md +0 -30
  118. data/TODO.diagrams/04-connector-routing-from-soid-eoid.md +0 -55
  119. data/TODO.diagrams/04-rect-under-rendering.md +0 -33
  120. data/TODO.diagrams/05-canvas-dimension-parity.md +0 -51
  121. data/TODO.diagrams/05-marker-rendering-per-relationship-type.md +0 -49
  122. data/TODO.diagrams/06-connector-labels.md +0 -49
  123. data/TODO.diagrams/06-group-layering-parity.md +0 -39
  124. data/TODO.diagrams/07-canvas-size-and-viewbox.md +0 -39
  125. data/TODO.diagrams/07-text-content-fidelity.md +0 -65
  126. data/TODO.diagrams/08-qea-direct-pipeline.md +0 -46
  127. data/TODO.diagrams/08-visual-regression-harness.md +0 -34
  128. data/TODO.diagrams/09-cli-render-all-diagrams.md +0 -25
  129. data/TODO.diagrams/10-stereotype-color-config.md +0 -29
  130. data/TODO.diagrams/11-elkrb-auto-layout-integration.md +0 -53
  131. data/TODO.diagrams/12-connector-labels.md +0 -40
  132. data/TODO.diagrams/12-per-entity-svg-layer-ordering.md +0 -24
  133. data/TODO.diagrams/13-marker-polygon-vs-path-dispatch.md +0 -20
  134. data/TODO.diagrams/13-per-text-type-font-sizes.md +0 -33
  135. data/TODO.diagrams/14-center-header-text.md +0 -33
  136. data/TODO.diagrams/14-filter-diagram-frame-elements.md +0 -18
  137. data/TODO.diagrams/15-deep-dead-code-audit.md +0 -47
  138. data/TODO.diagrams/15-per-element-font-from-style.md +0 -24
  139. data/TODO.diagrams/16-canvas-marker-extent.md +0 -30
  140. data/TODO.diagrams/16-document-remaining-parity-gaps.md +0 -91
  141. data/TODO.diagrams/17-italic-abstract-classes.md +0 -28
  142. data/TODO.diagrams/17-remaining-parity-gaps.md +0 -90
  143. data/TODO.diagrams/18-canvas-from-image-bounds.md +0 -20
  144. data/TODO.diagrams/18-property-lookup-index.md +0 -42
  145. data/TODO.diagrams/19-connector-sx-sy-routing.md +0 -27
  146. data/TODO.diagrams/19-replace-respond-to-with-is-a.md +0 -31
  147. data/TODO.diagrams/20-split-labels-emitter.md +0 -56
  148. data/TODO.diagrams/20-visibility-glyph-font-encoding.md +0 -27
  149. data/TODO.diagrams/21-aggregation-navigability-arrow.md +0 -21
  150. data/TODO.diagrams/21-auto-generated-legend-block.md +0 -65
  151. data/TODO.diagrams/22-ghost-element-discriminator.md +0 -57
  152. data/TODO.diagrams/22-style-based-path-grouping.md +0 -28
  153. data/TODO.diagrams/23-marker-polygon-deduplication.md +0 -47
  154. data/TODO.diagrams/23-multiplicity-label-positioning.md +0 -29
  155. data/TODO.diagrams/24-marker-anchor-structural.md +0 -35
  156. data/TODO.diagrams/24-track-marker-anchors-structurally.md +0 -66
  157. data/TODO.diagrams/24-truncate-properties-to-fit-box.md +0 -24
  158. data/TODO.diagrams/26-phantom-general-parent-rendering.md +0 -59
  159. data/TODO.diagrams/27-path-grouping-mode-detection.md +0 -43
  160. data/TODO.diagrams/28-architecture-cleanup-batch.md +0 -47
  161. data/TODO.diagrams/30-decompose-elements-groups-for.md +0 -52
  162. data/TODO.diagrams/32-examples-coverage-batch.md +0 -78
  163. data/TODO.diagrams/36-instance-specification-model.md +0 -42
  164. data/TODO.diagrams/37-element-icon-decorations.md +0 -41
  165. data/TODO.diagrams/38-html-note-and-receptions.md +0 -32
  166. data/TODO.diagrams/39-property-stereotype-discriminator.md +0 -40
  167. data/TODO.diagrams/40-standalone-1-discriminator.md +0 -38
  168. data/TODO.diagrams/41-xmi-to-svg-pipeline.md +0 -113
  169. data/TODO.diagrams/42-close-all-parity-deltas.md +0 -69
  170. data/TODO.diagrams/43-marker-deduplication-strategy.md +0 -54
  171. data/TODO.diagrams/44-element-icon-decorations.md +0 -34
  172. data/TODO.diagrams/45-phantom-parent-class-boxes.md +0 -40
  173. data/TODO.diagrams/46-user-drawn-legend-swatches.md +0 -44
  174. data/TODO.diagrams/47-attribute-line-fidelity.md +0 -72
  175. data/TODO.diagrams/48-spec-coverage-critical-emitter-components.md +0 -45
  176. data/TODO.diagrams/49-spec-coverage-orchestrators.md +0 -25
  177. data/TODO.diagrams/50-examples-parity.md +0 -85
  178. data/TODO.diagrams/51-property-oy-gap-and-remaining-gaps.md +0 -48
  179. data/TODO.diagrams/52-marker-registration-architecture.md +0 -89
  180. data/TODO.diagrams/53-remaining-example-gaps.md +0 -86
  181. data/TODO.diagrams/54-display-name-nested-classes.md +0 -40
  182. data/TODO.diagrams/55-visibility-icon-discriminator.md +0 -58
  183. data/TODO.diagrams/56-package-contents-rendering.md +0 -148
  184. data/TODO.diagrams/57-instance-specification-model.md +0 -100
  185. data/TODO.diagrams/58-domain-model-note-text.md +0 -67
  186. data/TODO.diagrams/59-classes-arrow-discriminator.md +0 -57
  187. data/TODO.diagrams/60-testschema-association-marker.md +0 -40
  188. data/TODO.diagrams/61-legend-block-rendering.md +0 -55
  189. data/TODO.diagrams/61-plateau-parity-gaps.md +0 -59
  190. data/TODO.diagrams/62-ghost-element-rendering.md +0 -56
  191. data/TODO.diagrams/63-qualified-name-wrap.md +0 -36
  192. data/TODO.diagrams/64-property-stereotype-labels.md +0 -22
  193. data/TODO.diagrams/65-path-coordinate-frame.md +0 -62
  194. data/TODO.diagrams/67-path-coordinate-frame.md +0 -62
  195. data/TODO.diagrams/68-inherited-attributes.md +0 -65
  196. data/TODO.diagrams/69-package-anchor-conditional.md +0 -29
  197. data/TODO.diagrams/70-mdg-technology-support.md +0 -68
  198. data/TODO.diagrams/71-off-canvas-parent-ghost.md +0 -45
  199. data/TODO.diagrams/72-basic-attr-divider-paths.md +0 -39
  200. data/TODO.diagrams/73-plateau-polygon-gap.md +0 -69
  201. data/TODO.diagrams/74-plateau-rect-gap.md +0 -22
  202. data/TODO.diagrams/75-plateau-text-gap.md +0 -39
  203. data/TODO.diagrams/76-basic-poly-path-gaps.md +0 -41
  204. data/TODO.diagrams/77-basic-text-overrender.md +0 -40
  205. data/TODO.diagrams/78-headerlines-ocp-refactor.md +0 -65
  206. data/TODO.diagrams/79-architecture-backlog.md +0 -65
  207. data/TODO.diagrams/80-basic-triangle-polygons.md +0 -51
  208. data/TODO.diagrams/81-plateau-path-overrender.md +0 -53
  209. data/TODO.diagrams/82-appearance-canvas-offset.md +0 -54
  210. data/TODO.diagrams/83-3d-diagram-subtitle.md +0 -58
  211. data/TODO.diagrams/84-canvas-offset-mismatches.md +0 -61
  212. data/TODO.diagrams/85-phantom-property-overrender.md +0 -95
  213. data/TODO.diagrams/86-foreign-package-rule.md +0 -62
  214. data/TODO.diagrams/87-internal-tech-encryption.md +0 -80
  215. data/TODO.diagrams/EXAMPLES_STATUS.md +0 -88
  216. data/TODO.diagrams/README.md +0 -69
  217. data/TODO.diagrams/STATUS.md +0 -73
  218. data/TODO.fixup/01-default-grouped-paths.md +0 -34
  219. data/TODO.fixup/02-marker-consolidation-per-connector.md +0 -20
  220. data/TODO.fixup/03-diagram-font-inference.md +0 -28
  221. data/TODO.fixup/04-extract-bounds-calculator.md +0 -25
  222. data/TODO.fixup/05-marker-registry-ocp.md +0 -32
  223. data/TODO.fixup/06-connector-path-bend-routing.md +0 -28
  224. data/TODO.fixup/07-edge-attachment-formula.md +0 -22
  225. data/TODO.fixup/08-visual-diff-harness.md +0 -28
  226. data/TODO.fixup/09-extract-element-compartments.md +0 -34
  227. data/TODO.fixup/10-canvas-width-overshoot-fix.md +0 -20
  228. data/TODO.fixup/11-layer-sequencer-extraction.md +0 -18
  229. data/TODO.fixup/12-path-style-harmony.md +0 -23
  230. data/TODO.fixup/13-datatype-stereotype-fallback.md +0 -28
  231. data/TODO.fixup/14-ea-exe-reverse-engineering-notes.md +0 -56
  232. data/TODO.fixup/15-enumeration-literal-rendering.md +0 -30
  233. data/TODO.fixup/16-operation-compartment-rendering.md +0 -42
  234. data/TODO.fixup/17-path-count-calibration.md +0 -27
  235. data/TODO.fixup/18-polygon-count-calibration.md +0 -32
  236. data/TODO.fixup/19-rect-count-undershoot-investigation.md +0 -40
  237. data/TODO.fixup/20-stereotype-color-from-classifier.md +0 -18
  238. data/TODO.fixup/21-visibility-filter-for-properties.md +0 -24
  239. data/TODO.fixup/22-multiplicity-display-rule-calibration.md +0 -25
  240. data/TODO.fixup/23-diagram-frame-title-element.md +0 -31
  241. data/TODO.fixup/24-note-element-rendering.md +0 -23
  242. data/TODO.fixup/25-ea-exe-disassembly-findings.md +0 -177
  243. data/TODO.fixup/26-svg-renderer-architecture.md +0 -78
  244. data/TODO.fixup/27-svg-element-emitters-disassembly.md +0 -135
  245. data/TODO.fixup/28-geometry-parser-identification.md +0 -57
  246. data/TODO.fixup/29-qea-svg-xmi-triple-comparison.md +0 -185
  247. data/TODO.fixup/30-theme-system-stub.md +0 -46
  248. data/TODO.fixup/31-theme-value-object-registry.md +0 -17
  249. data/TODO.fixup/32-styleex-on-diagram-model.md +0 -22
  250. data/TODO.fixup/33-text-encoding-decimals-rotation.md +0 -29
  251. data/TODO.fixup/34-per-type-fill-via-theme.md +0 -18
  252. data/TODO.fixup/35-stroke-width-per-theme.md +0 -7
  253. data/TODO.fixup/36-qea-rect-coord-normalization.md +0 -24
  254. data/TODO.fixup/37-package-shape-rendering.md +0 -22
  255. data/TODO.fixup/38-note-element-rendering.md +0 -15
  256. data/TODO.fixup/39-styleex-flag-honoring.md +0 -25
  257. data/TODO.fixup/40-connector-dashed-lines.md +0 -15
  258. data/TODO.fixup/41-diagram-frame-showborder-detection.md +0 -23
  259. data/TODO.fixup/42-textrenderer-centralization.md +0 -10
  260. data/TODO.fixup/43-colorresolver-unification.md +0 -24
  261. data/TODO.fixup/44-theme-aware-textrenderer.md +0 -17
  262. data/TODO.fixup/45-theme-aware-fontresolver.md +0 -22
  263. data/TODO.fixup/46-style-parameterized-by-theme.md +0 -21
  264. data/TODO.fixup/47-canvas-frame-inset.md +0 -19
  265. data/TODO.fixup/48-background-rect-format.md +0 -15
  266. data/TODO.fixup/49-all-samples-integration-test.md +0 -17
  267. data/TODO.fixup/50-svg-emitter-architecture-docs.md +0 -33
  268. data/TODO.fixup/51-promote-theme-to-ea-namespace.md +0 -28
  269. data/TODO.fixup/52-theme-definition-integrated-fills.md +0 -26
  270. data/TODO.fixup/53-theme-registry-yaml-loading.md +0 -50
  271. data/TODO.fixup/54-diagram-theme-api.md +0 -50
  272. data/TODO.fixup/55-update-eaemitter-to-ea-theme.md +0 -23
  273. data/TODO.fixup/56-theme-yaml-files.md +0 -65
  274. data/TODO.fixup/57-theme-specs-and-integration.md +0 -27
  275. data/TODO.fixup/58-ea-entry-point-theme-autoload.md +0 -20
  276. data/TODO.fixup/59-thread-theme-through-all-renderers.md +0 -29
  277. data/TODO.fixup/60-cli-theme-option.md +0 -22
  278. data/TODO.fixup/61-theme-validation.md +0 -28
  279. data/TODO.fixup/62-theme-builder-dsl.md +0 -31
  280. data/TODO.fixup/63-theme-integration-rendering-spec.md +0 -24
  281. data/TODO.fixup/64-theme-writeback-styleex.md +0 -21
  282. data/TODO.fixup/65-remove-dead-eaemitter-theme-files.md +0 -30
  283. data/TODO.fixup/66-styleex-writeback.md +0 -22
  284. data/TODO.fixup/67-delete-dead-code.md +0 -28
  285. data/TODO.fixup/68-figure-parity-status.md +0 -82
  286. data/TODO.fixup/69-package-polygon-rendering.md +0 -54
  287. data/TODO.fixup/70-tagged-values-compartment.md +0 -39
  288. data/TODO.fixup/71-auto-detect-theme-from-xmi.md +0 -37
  289. data/TODO.fixup/72-sample-exports-as-regression-specs.md +0 -37
  290. data/TODO.fixup/73-delete-dead-transformations.md +0 -14
  291. data/TODO.fixup/74-delete-dead-diagram-renderers.md +0 -18
  292. data/TODO.fixup/75-visibility-legend-icons.md +0 -23
  293. data/TODO.fixup/76-plateau-text-undershoot.md +0 -27
  294. data/TODO.fixup/77-canvas-frame-margins.md +0 -28
  295. data/TODO.fixup/78-note-element-rendering.md +0 -30
  296. data/TODO.fixup/79-operation-compartment-rendering.md +0 -27
  297. data/TODO.fixup/80-tagged-value-stereotype-visibility.md +0 -37
  298. data/TODO.fixup/81-figure-parity-current-state.md +0 -63
  299. data/TODO.next/00-publish-blocking-bugs.md +0 -74
  300. data/TODO.next/01-standalone-ea-gem-identity.md +0 -76
  301. data/TODO.next/02-optional-lutaml-uml-dependency.md +0 -47
  302. data/TODO.next/03-slim-lutaml-uml.md +0 -79
  303. data/TODO.next/04-loader-registry-for-uml-repository.md +0 -49
  304. data/TODO.next/05-extract-shared-transformer-methods.md +0 -14
  305. data/TODO.next/06-deduplicate-stereotype-loading.md +0 -17
  306. data/TODO.next/07-transformer-registry-in-factory.md +0 -20
  307. data/TODO.next/08-connector-type-registry.md +0 -27
  308. data/TODO.next/09-element-renderer-registry.md +0 -29
  309. data/TODO.next/10-connector-renderer-lsp.md +0 -18
  310. data/TODO.next/11-consolidate-style-knowledge.md +0 -33
  311. data/TODO.next/12-data-driven-from-db-row.md +0 -24
  312. data/TODO.next/13-extract-duplicated-methods.md +0 -17
  313. data/TODO.next/14-remove-dead-code.md +0 -10
  314. data/TODO.next/15-narrow-exception-handling.md +0 -39
  315. data/TODO.next/16-repository-indexes.md +0 -28
  316. data/TODO.next/17-fix-spec-quality-and-coverage.md +0 -32
  317. data/TODO.next/18-xmi-tool-specific-parser-architecture.md +0 -172
  318. data/TODO.next/19-fix-ea-gemspec-dependency-declarations.md +0 -56
  319. data/TODO.next/20-ci-requires-unreleased-lutaml-uml.md +0 -63
  320. data/TODO.next/21-qeatoxmi-via-xmi-gem.md +0 -340
  321. data/TODO.next/22-strip-respond-to-from-qeatoxmi-specs.md +0 -32
  322. data/TODO.next/23-cleanup-idallocator.md +0 -41
  323. data/TODO.next/24-tighten-parity-specs.md +0 -42
  324. data/TODO.next/25-sparx-eaid-format-for-synthesized-ids.md +0 -62
  325. data/TODO.next/26-fix-uppervalue-lowervalue-count-gap.md +0 -51
  326. data/TODO.next/27-extract-cardinality-module.md +0 -68
  327. data/TODO.next/28-extract-xml-sanitizer.md +0 -51
  328. data/TODO.next/29-ocp-registry-for-classifier-builders.md +0 -58
  329. data/TODO.next/30-struct-return-for-association-end.md +0 -37
  330. data/TODO.next/31-idallocator-specs.md +0 -27
  331. data/TODO.next/32-phase2-gap-sentinel-specs.md +0 -53
  332. data/TODO.next/33-normalize-lower-cleanup.md +0 -30
  333. data/TODO.next/34-document-member-end-order-rt-prefix.md +0 -29
  334. data/TODO.next/35-walk-runstate-for-instance-slots.md +0 -76
  335. data/TODO.next/36-wire-interface-realization.md +0 -50
  336. data/TODO.next/37-visibility-returns-real-booleans.md +0 -36
  337. data/TODO.next/38-xmi-parser-feature-parity.md +0 -75
  338. data/TODO.next/39-ea-spa-cli-command.md +0 -53
  339. data/TODO.next/40-drop-lur-only-check-in-diagrams-extract.md +0 -56
  340. data/TODO.refactor/01-ea-model-domain-layer.md +0 -64
  341. data/TODO.refactor/02-ea-model-qea-source-adapter.md +0 -58
  342. data/TODO.refactor/03-ea-model-xmi-source-adapter.md +0 -33
  343. data/TODO.refactor/04-ea-model-annotations-tagged-values.md +0 -34
  344. data/TODO.refactor/05-ea-model-diagrams-coordinates.md +0 -37
  345. data/TODO.refactor/06-spa-projection-layer.md +0 -45
  346. data/TODO.refactor/07-spa-sharded-output-strategy.md +0 -28
  347. data/TODO.refactor/08-spa-build-time-search-index.md +0 -24
  348. data/TODO.refactor/09-spa-frontend-data-contract.md +0 -25
  349. data/TODO.refactor/10-spa-cli-command-rework.md +0 -34
  350. data/TODO.refactor/11-spa-perf-benchmark.md +0 -23
  351. data/TODO.refactor/12-lutaml-uml-static-site-deprecation.md +0 -28
  352. data/TODO.release/01-release-lutaml-uml-030.md +0 -30
  353. data/TODO.release/02-fix-lutaml-meta-gem-requires.md +0 -33
  354. data/TODO.release/03-release-lutaml-0110.md +0 -20
  355. data/TODO.release/04-update-ea-gemspec-pin.md +0 -23
  356. data/TODO.release/05-remove-ea-conditional-requires.md +0 -48
  357. data/TODO.release/06-release-ea-020.md +0 -20
  358. data/TODO.release/07-migrate-plateau-model.md +0 -35
  359. data/TODO.release/README.md +0 -15
  360. data/config/diagram_styles.yml +0 -200
  361. data/config/model_transformations.yml +0 -266
  362. data/docs/ea_to_uml_type_mapping.md +0 -89
  363. data/docs/xmi_qea_conversion_capabilities.md +0 -99
  364. data/examples/exports/20251010_current_plateau_v5/UML_EA.DTD +0 -6856
  365. data/examples/exports/20251010_current_plateau_v5/model.xml +0 -96709
  366. data/examples/exports/ArcGISWorkspace_template/UML_EA.DTD +0 -6856
  367. data/examples/exports/ArcGISWorkspace_template/model.xml +0 -1427
  368. data/examples/exports/UmlModel_template/UML_EA.DTD +0 -6856
  369. data/examples/exports/UmlModel_template/model.xml +0 -23
  370. data/examples/exports/basic/UML_EA.DTD +0 -6856
  371. data/examples/exports/basic/model.xml +0 -8039
  372. data/examples/exports/simple/UML_EA.DTD +0 -6856
  373. data/examples/exports/simple/model.xml +0 -585
  374. data/examples/exports/simple_example/UML_EA.DTD +0 -6856
  375. data/examples/exports/simple_example/model.xml +0 -23
  376. data/examples/exports/test/UML_EA.DTD +0 -6856
  377. data/examples/exports/test/model.xml +0 -1638
  378. data/examples/lur/20251010_current_plateau_v5.1.lur +0 -0
  379. data/examples/lur/basic.lur +0 -0
  380. data/examples/lur/test-output.lur +0 -0
  381. data/examples/lur/test.lur +0 -0
  382. data/examples/lur_basic_usage.rb +0 -221
  383. data/examples/lur_cli_workflow.rb +0 -263
  384. data/examples/lur_statistics.rb +0 -326
  385. data/examples/qea/20251010_current_plateau_v5.1.qea +0 -0
  386. data/examples/qea/ArcGISWorkspace_template.qea +0 -0
  387. data/examples/qea/README_qea_parser.adoc +0 -230
  388. data/examples/qea/UmlModel_template.qea +0 -0
  389. data/examples/qea/basic.qea +0 -0
  390. data/examples/qea/simple.qea +0 -0
  391. data/examples/qea/simple_example.qea +0 -0
  392. data/examples/qea/test.qea +0 -0
  393. data/examples/qea_standalone_query.rb +0 -73
  394. data/examples/qea_to_repository.rb +0 -51
  395. data/examples/smoke_test_real_qea.rb +0 -81
  396. data/frontend/README.md +0 -51
  397. data/frontend/dist/app.iife.js +0 -24
  398. data/frontend/dist/style.css +0 -1
  399. data/frontend/index.html +0 -26
  400. data/frontend/package-lock.json +0 -2359
  401. data/frontend/package.json +0 -26
  402. data/frontend/src/App.vue +0 -63
  403. data/frontend/src/app.ts +0 -8
  404. data/frontend/src/components/AppHeader.vue +0 -154
  405. data/frontend/src/components/AppSidebar.vue +0 -119
  406. data/frontend/src/components/ClassDetails.vue +0 -230
  407. data/frontend/src/components/DiagramView.vue +0 -92
  408. data/frontend/src/components/PackageDetails.vue +0 -133
  409. data/frontend/src/components/PackageTreeNode.vue +0 -69
  410. data/frontend/src/components/SearchResults.vue +0 -61
  411. data/frontend/src/components/WelcomeView.vue +0 -87
  412. data/frontend/src/shims-vue.d.ts +0 -5
  413. data/frontend/src/stores/dataStore.ts +0 -173
  414. data/frontend/src/stores/uiStore.ts +0 -166
  415. data/frontend/src/styles/main.css +0 -1566
  416. data/frontend/src/types.ts +0 -218
  417. data/frontend/tests/e2e/__screenshots__/new-dark-mode.png +0 -0
  418. data/frontend/tests/e2e/__screenshots__/new-package-details.png +0 -0
  419. data/frontend/tests/e2e/__screenshots__/new-search-modal.png +0 -0
  420. data/frontend/tests/e2e/__screenshots__/new-sidebar-collapsed.png +0 -0
  421. data/frontend/tests/e2e/__screenshots__/new-welcome.png +0 -0
  422. data/frontend/tests/e2e/render.spec.ts +0 -188
  423. data/frontend/tsconfig.json +0 -20
  424. data/frontend/vite.config.ts +0 -26
  425. data/frontend/vitest.config.ts +0 -8
  426. data/gemfiles/published.gemfile +0 -24
  427. data/lib/ea/cli/command/repository_builder.rb +0 -64
  428. data/lib/ea/transformers/uml_to_xmi/id_generator.rb +0 -54
  429. data/lib/ea/transformers/uml_to_xmi/transformer.rb +0 -152
  430. data/lib/ea/transformers/uml_to_xmi/writer.rb +0 -96
  431. data/lib/ea/validation/xmi_parity.rb +0 -80
  432. data/lib/ea/validation.rb +0 -12
  433. data/memory/deviations.md +0 -3
  434. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes-list.png +0 -0
  435. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes.png +0 -0
  436. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-2-gradients.png +0 -0
  437. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-3-colors.png +0 -0
  438. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance-fonts.png +0 -0
  439. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance.png +0 -0
  440. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-5-behavior.png +0 -0
  441. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-6-sequence.png +0 -0
  442. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram.png +0 -0
  443. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-2-objects.png +0 -0
  444. data/reference-docs/enterprise-architect-appearance-dialogs/appearance-3-links.png +0 -0
@@ -1,200 +0,0 @@
1
- # diagram_styles.yml - Configurable EA Diagram Styling
2
- # This file defines the default styling for LutaML diagram generation
3
-
4
- # Global defaults - applied when no other configuration matches
5
- defaults:
6
- colors:
7
- background: "#FFFFFF"
8
- default_fill: "#E0E0E0"
9
- default_stroke: "#000000"
10
- text: "#000000"
11
-
12
- fonts:
13
- default:
14
- family: "Carlito, Arial, sans-serif"
15
- size: 9
16
- weight: 400
17
- style: normal
18
-
19
- class_name:
20
- family: "Carlito, Arial, sans-serif"
21
- size: 9
22
- weight: 700 # bold
23
- style: normal
24
-
25
- stereotype:
26
- family: "Carlito, Arial, sans-serif"
27
- size: 9
28
- weight: 400
29
- style: normal
30
-
31
- attribute:
32
- family: "Carlito, Arial, sans-serif"
33
- size: 9
34
- weight: 400
35
- style: normal
36
-
37
- operation:
38
- family: "Carlito, Arial, sans-serif"
39
- size: 9
40
- weight: 400
41
- style: normal
42
-
43
- box:
44
- stroke_width: 2
45
- stroke_linecap: round
46
- stroke_linejoin: bevel
47
- corner_radius: 0
48
- padding: 5
49
- fill_opacity: 1.0
50
- stroke_opacity: 1.0
51
-
52
- text:
53
- visibility_public: "+"
54
- visibility_private: "-"
55
- visibility_protected: "#"
56
- visibility_package: "~"
57
- cardinality_format: "[%s]"
58
- stereotype_format: "«%s»"
59
-
60
- # Stereotype-based styling
61
- # These apply when elements have specific stereotypes
62
- stereotypes:
63
- DataType:
64
- colors:
65
- fill: "#FFCCFF" # Pink for i-UR DataTypes
66
- stroke: "#000000"
67
- fonts:
68
- class_name:
69
- weight: 700
70
- style: italic
71
-
72
- FeatureType:
73
- colors:
74
- fill: "#FFFFCC" # Yellow for CityGML FeatureTypes
75
- stroke: "#000000"
76
-
77
- GMLType:
78
- colors:
79
- fill: "#CCFFCC" # Green for GML Types
80
- stroke: "#000000"
81
-
82
- Interface:
83
- colors:
84
- fill: "#FFFFEE"
85
- stroke: "#000000"
86
- fonts:
87
- class_name:
88
- style: italic
89
-
90
- Enumeration:
91
- colors:
92
- fill: "#FFE6CC"
93
- stroke: "#000000"
94
-
95
- Abstract:
96
- fonts:
97
- class_name:
98
- style: italic
99
-
100
- # Package-based styling (optional)
101
- # Supports wildcards: "CityGML::*" matches any package starting with "CityGML::"
102
- packages:
103
- "CityGML::*":
104
- colors:
105
- fill: "#FFFFCC"
106
-
107
- "i-UR::*":
108
- colors:
109
- fill: "#FFCCFF"
110
-
111
- "gml::*":
112
- colors:
113
- fill: "#CCFFCC"
114
-
115
- # Class-specific overrides (highest priority after EA data)
116
- # These take precedence over package and stereotype styling
117
- classes: {}
118
-
119
- # Connector styling
120
- connectors:
121
- generalization:
122
- arrow:
123
- type: hollow_triangle
124
- size: 10
125
- line:
126
- stroke_width: 1
127
- stroke: "#000000"
128
- fill: none
129
-
130
- association:
131
- arrow:
132
- type: open_arrow
133
- size: 8
134
- line:
135
- stroke_width: 1
136
- stroke: "#000000"
137
- labels:
138
- show_role_names: true
139
- show_cardinality: true
140
- font:
141
- family: "Carlito, Arial, sans-serif"
142
- size: 8
143
-
144
- dependency:
145
- arrow:
146
- type: open_arrow
147
- size: 8
148
- line:
149
- stroke_width: 1
150
- stroke: "#000000"
151
- stroke_dasharray: "5,5"
152
-
153
- aggregation:
154
- arrow:
155
- type: diamond
156
- size: 10
157
- fill: white
158
- line:
159
- stroke_width: 1
160
- stroke: "#000000"
161
-
162
- composition:
163
- arrow:
164
- type: filled_diamond
165
- size: 10
166
- fill: black
167
- line:
168
- stroke_width: 1
169
- stroke: "#000000"
170
-
171
- realization:
172
- arrow:
173
- type: hollow_triangle
174
- size: 10
175
- line:
176
- stroke_width: 1
177
- stroke: "#000000"
178
- stroke_dasharray: "5,5"
179
-
180
- # Legend configuration
181
- legend:
182
- enabled: true
183
- position: bottom_right
184
- title: "Legend"
185
- box:
186
- fill: "#FFFFFF"
187
- stroke: "#000000"
188
- stroke_width: 1
189
- padding: 10
190
- font:
191
- family: "Carlito, Arial, sans-serif"
192
- size: 9
193
- weight: 400
194
- entries:
195
- - label: "i-UR DataTypes"
196
- color: "#FFCCFF"
197
- - label: "CityGML FeatureTypes"
198
- color: "#FFFFCC"
199
- - label: "GML Types"
200
- color: "#CCFFCC"
@@ -1,266 +0,0 @@
1
- # Model Transformations Configuration
2
- # This file configures the unified model transformation system for LutaML
3
- #
4
- # Version: 1.0
5
- # Description: External configuration for model format parsers and transformation options
6
-
7
- version: "1.0"
8
- description: "LutaML Model Transformations Configuration"
9
-
10
- # Parser configurations define how different model formats are handled
11
- parsers:
12
- # XML Metadata Interchange (XMI) Parser
13
- - format: "xmi"
14
- extension: ".xmi"
15
- parser_class: "Lutaml::ModelTransformations::Parsers::XmiParser"
16
- enabled: true
17
- priority: 100
18
- description: "XML Metadata Interchange parser for UML models"
19
- options:
20
- - "validate_xml"
21
- - "resolve_references"
22
- - "preserve_namespaces"
23
- - "include_documentation"
24
-
25
- # Enterprise Architect Database (QEA) Parser
26
- - format: "qea"
27
- extension: ".qea"
28
- parser_class: "Lutaml::ModelTransformations::Parsers::QeaParser"
29
- enabled: true
30
- priority: 90
31
- description: "Enterprise Architect database parser"
32
- options:
33
- - "include_diagrams"
34
- - "validate_transformation"
35
- - "load_progress_callback"
36
- - "cache_database"
37
-
38
- # Legacy XML support (lower priority than XMI)
39
- - format: "xml"
40
- extension: ".xml"
41
- parser_class: "Lutaml::ModelTransformations::Parsers::XmiParser"
42
- enabled: true
43
- priority: 80
44
- description: "Generic XML parser (delegates to XMI parser)"
45
- options:
46
- - "validate_xml"
47
- - "resolve_references"
48
-
49
- # Enterprise Architect Project files (legacy format)
50
- - format: "eap"
51
- extension: ".eap"
52
- parser_class: "Lutaml::ModelTransformations::Parsers::QeaParser"
53
- enabled: true
54
- priority: 70
55
- description: "Enterprise Architect project file parser"
56
- options:
57
- - "include_diagrams"
58
- - "legacy_format_support"
59
-
60
- # Enterprise Architect Exchange files
61
- - format: "eapx"
62
- extension: ".eapx"
63
- parser_class: "Lutaml::ModelTransformations::Parsers::QeaParser"
64
- enabled: true
65
- priority: 75
66
- description: "Enterprise Architect exchange file parser"
67
- options:
68
- - "include_diagrams"
69
- - "compressed_format"
70
-
71
- # Global transformation options
72
- transformation_options:
73
- # Validate output document structure after parsing
74
- validate_output: false
75
-
76
- # Include diagram information in transformed documents
77
- include_diagrams: true
78
-
79
- # Preserve original XMI/QEA IDs in transformed elements
80
- preserve_ids: true
81
-
82
- # Resolve cross-references between model elements
83
- resolve_references: true
84
-
85
- # Enable strict validation mode (fail on warnings)
86
- strict_mode: false
87
-
88
- # Format detection configuration
89
- format_detection:
90
- # Use file extensions for format detection
91
- use_file_extension: true
92
-
93
- # Use content analysis (magic bytes) for format detection
94
- use_content_sniffing: true
95
-
96
- # Fallback parser when format cannot be detected
97
- fallback_parser: "Lutaml::ModelTransformations::Parsers::XmiParser"
98
-
99
- # Magic byte signatures for content detection
100
- magic_bytes:
101
- - "SQLite format 3" # QEA/SQLite files
102
- - "<?xml" # XML/XMI files
103
-
104
- # Error handling configuration
105
- error_handling:
106
- # Error handling strategy: "continue", "fail_fast", "collect"
107
- strategy: "continue"
108
-
109
- # Log errors and warnings to console
110
- log_errors: true
111
-
112
- # Maximum number of errors before aborting (0 = unlimited)
113
- max_errors: 10
114
-
115
- # Fail immediately on first error
116
- fail_fast: false
117
-
118
- # Format-specific configurations
119
- format_specific:
120
- xmi:
121
- # XMI-specific options
122
- namespace_handling: "preserve"
123
- reference_resolution: "eager"
124
- xml_validation: "lenient"
125
- encoding_detection: "auto"
126
-
127
- qea:
128
- # QEA-specific options
129
- database_timeout: 30
130
- load_strategy: "progressive"
131
- diagram_processing: "full"
132
- schema_validation: "basic"
133
-
134
- # Performance tuning
135
- performance:
136
- # Enable parser instance caching
137
- cache_parsers: true
138
-
139
- # Maximum size for parser cache (number of instances)
140
- max_parser_cache_size: 10
141
-
142
- # Enable transformation history tracking
143
- track_history: true
144
-
145
- # Maximum number of history entries to keep
146
- max_history_size: 1000
147
-
148
- # Logging configuration
149
- logging:
150
- # Log level: "debug", "info", "warn", "error"
151
- level: "info"
152
-
153
- # Include timestamps in log messages
154
- include_timestamps: true
155
-
156
- # Include parser class names in log messages
157
- include_parser_names: true
158
-
159
- # Log transformation statistics
160
- log_statistics: true
161
-
162
- # Plugin/extension support
163
- plugins:
164
- # Enable plugin system
165
- enabled: false
166
-
167
- # Plugin discovery paths
168
- discovery_paths:
169
- - "lib/lutaml/model_transformations/plugins"
170
- - "~/.lutaml/plugins"
171
-
172
- # Auto-load plugins on startup
173
- auto_load: false
174
-
175
- # Validation rules
176
- validation:
177
- # Required elements validation
178
- require_packages: false
179
- require_classes: false
180
-
181
- # Reference validation
182
- check_broken_references: true
183
- allow_external_references: true
184
-
185
- # Naming validation
186
- validate_naming_conventions: false
187
- naming_patterns:
188
- package: "^[A-Z][a-zA-Z0-9]*$"
189
- class: "^[A-Z][a-zA-Z0-9]*$"
190
- attribute: "^[a-z][a-zA-Z0-9]*$"
191
-
192
- # Transformation presets for common scenarios
193
- presets:
194
- # Fast parsing preset (minimal validation, no diagrams)
195
- fast:
196
- transformation_options:
197
- validate_output: false
198
- include_diagrams: false
199
- resolve_references: false
200
- error_handling:
201
- strategy: "fail_fast"
202
- log_errors: false
203
-
204
- # Comprehensive parsing preset (full validation and processing)
205
- comprehensive:
206
- transformation_options:
207
- validate_output: true
208
- include_diagrams: true
209
- resolve_references: true
210
- strict_mode: true
211
- error_handling:
212
- strategy: "collect"
213
- log_errors: true
214
- max_errors: 0
215
-
216
- # Production preset (balanced performance and reliability)
217
- production:
218
- transformation_options:
219
- validate_output: true
220
- include_diagrams: true
221
- resolve_references: true
222
- strict_mode: false
223
- error_handling:
224
- strategy: "continue"
225
- log_errors: true
226
- max_errors: 5
227
- performance:
228
- cache_parsers: true
229
- track_history: false
230
-
231
- # Compatibility settings
232
- compatibility:
233
- # Support legacy LutaML API
234
- legacy_api_support: true
235
-
236
- # Automatic migration of old configuration formats
237
- auto_migrate_config: true
238
-
239
- # Deprecated feature warnings
240
- warn_deprecated: true
241
-
242
- # Development/debugging options
243
- development:
244
- # Enable debug mode
245
- debug_mode: false
246
-
247
- # Dump intermediate transformation results
248
- dump_intermediate: false
249
-
250
- # Benchmark transformation performance
251
- benchmark_mode: false
252
-
253
- # Verbose parser output
254
- verbose_parsing: false
255
-
256
- # Integration settings
257
- integration:
258
- # UML Repository integration
259
- auto_build_repository: true
260
- repository_lazy_loading: false
261
-
262
- # CLI integration
263
- register_cli_commands: true
264
-
265
- # Web UI integration
266
- enable_web_ui: false
@@ -1,89 +0,0 @@
1
- # EA Object Type → UML Mapping
2
-
3
- This document describes how `ea` maps Sparx EA object types (from the QEA
4
- `t_object` table's `Object_Type` column) to UML model elements during the
5
- `Ea::Qea.to_uml` transformation.
6
-
7
- The mapping is implemented in
8
- `Ea::Qea::Models::EaObject#transformer_type`, which returns a
9
- `TransformerRegistry` key or `nil`.
10
-
11
- ## Principles
12
-
13
- 1. **Hub-and-spoke, not format-to-format.** Both QEA and XMI parse *into* a
14
- common `Lutaml::Uml::Document`. There is no direct QEA↔XMI translator.
15
- 2. **Model elements only.** Only EA object types that correspond to genuine
16
- UML model elements are transformed. Rendering hints and tool-internal
17
- plumbing are dropped.
18
- 3. **Stereotype can override type.** A Class with stereotype `enumeration`
19
- transforms as an Enum, not a Class.
20
-
21
- ## Mapping table
22
-
23
- | EA `Object_Type` | UML element | Transformer key | Notes |
24
- |--------------------|---------------------|-----------------|-------------------------------------------|
25
- | `Class` | `UmlClass` | `:class` | |
26
- | `Interface` | `UmlClass` | `:class` | |
27
- | `Enumeration` | `Enum` | `:enumeration` | Also: Class with `<<enumeration>>` |
28
- | `DataType` | `DataType` | `:data_type` | |
29
- | `Instance`/`Object`| `Instance` | `:instance` | |
30
- | `Package` | `Package` | `:package` | From `t_package`, not `t_object` |
31
- | `Text` | _(dropped)_ | `nil` | See below |
32
- | `Note` | _(dropped)_ | `nil` | See below |
33
- | `ProxyConnector` | _(dropped)_ | `nil` | See below |
34
-
35
- Connectors (`t_connector`) are handled separately from objects and map to
36
- `Association`, `Generalization`, or `Dependency` depending on their type.
37
-
38
- ## Dropped types — rationale
39
-
40
- ### `Text`
41
-
42
- A free-form text box placed on a diagram for labeling or annotation. It is a
43
- **rendering hint**, not a model element — it has no semantic relationship to
44
- the classes and packages in the model.
45
-
46
- - **Current behavior:** dropped. Content is not preserved in the UML document.
47
- - **Why not `UmlClass`:** Text has no attributes, operations, or type
48
- semantics. Treating it as a class (the previous behavior) polluted the class
49
- collection with non-classes and broke class counts.
50
- - **Future:** map to `Lutaml::Uml::Comment`. This requires adding a `comments`
51
- collection to `Lutaml::Uml::Package` (currently only `Document` has one, and
52
- it is a flat string list). Until then, Text content is lost.
53
-
54
- ### `Note`
55
-
56
- A note element on a diagram. Same category as `Text` — a rendering/annotation
57
- hint, not a model element.
58
-
59
- - **Current behavior:** dropped.
60
- - **Future:** same as `Text` — map to `Comment` when the metamodel supports it.
61
-
62
- ### `ProxyConnector`
63
-
64
- EA's internal stub representing a connector that crosses a package boundary.
65
- When a connector in package A points at an element in package B, EA may insert
66
- a `ProxyConnector` in one package as a stand-in for the foreign element.
67
-
68
- - **Current behavior:** dropped.
69
- - **Why:** it is structural plumbing. The actual relationship is already
70
- captured by the real connector (in `t_connector`) and resolved by
71
- `ReferenceResolver`. A `ProxyConnector` in `t_object` is a rendering/UX
72
- artifact, not a second model element.
73
- - **Future:** no plan to preserve. If diagram rendering needs the proxy
74
- geometry, it should come from `t_diagram_objects`, not from treating the
75
- proxy as a class.
76
-
77
- ## Verifying counts
78
-
79
- After transformation:
80
-
81
- ```
82
- EA t_object (Class) = UML UmlClass count (in packages + orphan root)
83
- EA t_object (Enumeration) = UML Enum count
84
- EA t_object (DataType) = UML DataType count
85
- ```
86
-
87
- If counts don't match, check for orphaned classes (objects whose `package_id`
88
- has no row in `t_package`) — these surface at the document root via
89
- `EaToUmlFactory#transform_orphan_classes`, not inside any package.
@@ -1,99 +0,0 @@
1
- # Format Conversion Capabilities: QEA, XMI, and UML
2
-
3
- ## Short answer
4
-
5
- **No.** The `ea` gem cannot convert XMI→QEA or QEA→XMI. Neither direction
6
- exists. Both formats are parsed *into* a common `Lutaml::Uml::Document`
7
- (hub-and-spoke), but there is no write-back path to either native format.
8
-
9
- ## Current capability matrix
10
-
11
- | From | To | Status | API |
12
- |-------------------|----------------------|--------------|-------------------------------|
13
- | `.qea` (SQLite) | `Ea::Qea::Database` | ✅ Full | `Ea::Qea.load(path)` |
14
- | `.qea` | `Lutaml::Uml::Document` | ✅ Full | `Ea::Qea.parse(path)` / `to_uml(db)` |
15
- | Sparx `.xmi` | `::Xmi::Sparx::Root` model | ✅ Full | `Ea::Xmi::Parser.parse(path)` |
16
- | Sparx `.xmi` | Liquid drops (display) | ✅ Full | `Parser.serialize_to_liquid` |
17
- | Sparx `.xmi` | `Lutaml::Uml::Document` | ❌ None | — |
18
- | `Lutaml::Uml::Document` | Sparx `.xmi` | ❌ None | — |
19
- | `Lutaml::Uml::Document` | `.qea` (SQLite) | ❌ None | — |
20
-
21
- ## Why neither direction exists
22
-
23
- ### QEA is read-only
24
-
25
- `Ea::Qea::Infrastructure::DatabaseConnection` opens SQLite with
26
- `readonly: true`. There is no `INSERT`/`UPDATE` path, no writer class, no
27
- `to_qea`. Building one requires reverse-mapping a UML Document into EA's
28
- ~30 interrelated tables (`t_object`, `t_package`, `t_connector`, `t_attribute`,
29
- `t_diagram`, `t_objectproperties`, `t_xref`, `t_taggedvalue`, …), generating
30
- valid EA GUIDs and object_ids, and populating tool-specific columns
31
- (style strings, diagram geometry, visibility flags) that have no UML source.
32
-
33
- ### XMI is parse-only
34
-
35
- `Ea::Xmi::Parser` consumes Sparx XMI via `::Xmi::Sparx::Root.parse_xml` and
36
- exposes the result through Liquid drops for *display* rendering (HTML/JSON
37
- templates). The drops wrap XMI-derived data — they do not serialize a
38
- `Lutaml::Uml::Document` back to XMI. There is no `UmlDocument → XMI`
39
- serializer.
40
-
41
- ### The drops are display, not generation
42
-
43
- `Ea::Xmi::LiquidDrops::*` are Liquid `Drop` wrappers around the parsed XMI
44
- model. They exist to render XMI content in templates (for browsing,
45
- documentation, HTML export). A Liquid drop reads from a model; it does not
46
- write one. To generate XMI, you'd need XMI-schema-aware serialization
47
- (`xmi:Documentation`, `xmi:Extension`, `EAStub`, profile application, etc.),
48
- which is a separate, substantial piece of work.
49
-
50
- ## What "conversion" would actually require
51
-
52
- ### QEA → XMI (export)
53
-
54
- 1. Build a `Lutaml::Uml::Document → Sparx XMI` serializer.
55
- 2. Lossy: the UML Document does not carry EA-specific data (diagram layout,
56
- style strings, tagged value geometry, t_xref cross-references). The
57
- exported XMI would be semantically faithful but visually bare.
58
- 3. The Sparx XMI schema is documented but large; `::Xmi::Sparx::Root`
59
- parses it but cannot (currently) serialize it.
60
-
61
- ### XMI → QEA (import)
62
-
63
- 1. Build `XMI → Lutaml::Uml::Document` (does not exist — `Ea::Xmi::Parser`
64
- produces display drops, not a UML Document).
65
- 2. Build `Lutaml::Uml::Document → QEA SQLite` writer (does not exist —
66
- see "QEA is read-only" above).
67
- 3. Highly lossy: EA's QEA schema has ~30 tables with tool-specific columns.
68
- Sparx's own XMI import into QEA is lossy; reimplementing it faithfully
69
- is a major project with marginal value (you'd produce a QEA that opens
70
- in EA but has no diagrams, no layout, no EA-specific metadata).
71
-
72
- ## Recommendation
73
-
74
- Do **not** position the gem as offering XMI↔QEA conversion. Instead:
75
-
76
- - **Read both formats into UML** — this is the gem's core value.
77
- - **Query and analyze** the resulting UML Document (directly or via
78
- `Lutaml::UmlRepository::Repository.from_document`).
79
- - **Export to neutral formats** — JSON, CSV, HTML (via Liquid drops),
80
- `.lur` package (via Repository). These are one-way, lossy, and honest
81
- about what they are.
82
-
83
- If true XMI↔QEA round-trip is needed, the pragmatic path is to use Sparx EA
84
- itself (which does both natively) and treat this gem as the
85
- extract/query/analyze layer that sits alongside EA, not as a replacement
86
- for its file-format converters.
87
-
88
- ## If we ever build write paths
89
-
90
- The clean order would be:
91
-
92
- 1. **`Lutaml::Uml::Document → Sparx XMI`** — most useful, least schema
93
- complexity. Reuses `::Xmi::Sparx::Root`'s type system if serialization
94
- support is added upstream.
95
- 2. **`Lutaml::Uml::Document → .lur`** — already exists via
96
- `Repository.export_to_package`. Neutral, lossless for the UML subset.
97
- 3. **`Lutaml::Uml::Document → .qea`** — last resort. Only if EA-native
98
- interchange is a hard requirement and `.lur` + XMI export are
99
- insufficient.