@xpack/doxygen2docusaurus 1.1.0 → 2.1.0

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 (329) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -3
  3. package/bin/doxygen2docusaurus.js +1 -1
  4. package/dist/cli/main.d.ts +0 -8
  5. package/dist/cli/main.d.ts.map +1 -1
  6. package/dist/cli/main.js +1 -29
  7. package/dist/cli/main.js.map +1 -1
  8. package/dist/docusaurus/cli-options.d.ts +4 -65
  9. package/dist/docusaurus/cli-options.d.ts.map +1 -1
  10. package/dist/docusaurus/cli-options.js +16 -91
  11. package/dist/docusaurus/cli-options.js.map +1 -1
  12. package/dist/docusaurus/generator.d.ts +7 -4
  13. package/dist/docusaurus/generator.d.ts.map +1 -1
  14. package/dist/docusaurus/generator.js +50 -140
  15. package/dist/docusaurus/generator.js.map +1 -1
  16. package/dist/docusaurus/renderers/descriptiontype.d.ts.map +1 -1
  17. package/dist/docusaurus/renderers/descriptiontype.js +11 -138
  18. package/dist/docusaurus/renderers/descriptiontype.js.map +1 -1
  19. package/dist/docusaurus/renderers/docinternalstype.d.ts.map +1 -1
  20. package/dist/docusaurus/renderers/docinternalstype.js +0 -24
  21. package/dist/docusaurus/renderers/docinternalstype.js.map +1 -1
  22. package/dist/docusaurus/renderers/doclisttype.d.ts.map +1 -1
  23. package/dist/docusaurus/renderers/doclisttype.js +0 -22
  24. package/dist/docusaurus/renderers/doclisttype.js.map +1 -1
  25. package/dist/docusaurus/renderers/doctabletype.d.ts.map +1 -1
  26. package/dist/docusaurus/renderers/doctabletype.js +1 -25
  27. package/dist/docusaurus/renderers/doctabletype.js.map +1 -1
  28. package/dist/docusaurus/renderers/doctitletype.d.ts.map +1 -1
  29. package/dist/docusaurus/renderers/doctitletype.js +0 -20
  30. package/dist/docusaurus/renderers/doctitletype.js.map +1 -1
  31. package/dist/docusaurus/renderers/docvariablelisttype.d.ts.map +1 -1
  32. package/dist/docusaurus/renderers/docvariablelisttype.js +1 -25
  33. package/dist/docusaurus/renderers/docvariablelisttype.js.map +1 -1
  34. package/dist/docusaurus/renderers/docxrefsecttype.d.ts.map +1 -1
  35. package/dist/docusaurus/renderers/docxrefsecttype.js +0 -16
  36. package/dist/docusaurus/renderers/docxrefsecttype.js.map +1 -1
  37. package/dist/docusaurus/renderers/element-renderer-base.d.ts.map +1 -1
  38. package/dist/docusaurus/renderers/element-renderer-base.js +0 -12
  39. package/dist/docusaurus/renderers/element-renderer-base.js.map +1 -1
  40. package/dist/docusaurus/renderers/inctype.d.ts.map +1 -1
  41. package/dist/docusaurus/renderers/inctype.js +0 -18
  42. package/dist/docusaurus/renderers/inctype.js.map +1 -1
  43. package/dist/docusaurus/renderers/linkedtexttype.d.ts.map +1 -1
  44. package/dist/docusaurus/renderers/linkedtexttype.js +0 -23
  45. package/dist/docusaurus/renderers/linkedtexttype.js.map +1 -1
  46. package/dist/docusaurus/renderers/listingtype.d.ts.map +1 -1
  47. package/dist/docusaurus/renderers/listingtype.js +1 -24
  48. package/dist/docusaurus/renderers/listingtype.js.map +1 -1
  49. package/dist/docusaurus/renderers/paramtype.d.ts.map +1 -1
  50. package/dist/docusaurus/renderers/paramtype.js +2 -29
  51. package/dist/docusaurus/renderers/paramtype.js.map +1 -1
  52. package/dist/docusaurus/renderers/referencetype.d.ts.map +1 -1
  53. package/dist/docusaurus/renderers/referencetype.js +0 -17
  54. package/dist/docusaurus/renderers/referencetype.js.map +1 -1
  55. package/dist/docusaurus/renderers/reftexttype.d.ts.map +1 -1
  56. package/dist/docusaurus/renderers/reftexttype.js +0 -16
  57. package/dist/docusaurus/renderers/reftexttype.js.map +1 -1
  58. package/dist/docusaurus/renderers/reftype.d.ts.map +1 -1
  59. package/dist/docusaurus/renderers/reftype.js +0 -16
  60. package/dist/docusaurus/renderers/reftype.js.map +1 -1
  61. package/dist/docusaurus/renderers/renderers.d.ts.map +1 -1
  62. package/dist/docusaurus/renderers/renderers.js +4 -33
  63. package/dist/docusaurus/renderers/renderers.js.map +1 -1
  64. package/dist/docusaurus/renderers/substringtype.d.ts.map +1 -1
  65. package/dist/docusaurus/renderers/substringtype.js +0 -17
  66. package/dist/docusaurus/renderers/substringtype.js.map +1 -1
  67. package/dist/docusaurus/renderers/tableofcontentstype.d.ts.map +1 -1
  68. package/dist/docusaurus/renderers/tableofcontentstype.js +0 -17
  69. package/dist/docusaurus/renderers/tableofcontentstype.js.map +1 -1
  70. package/dist/docusaurus/types.d.ts +4 -8
  71. package/dist/docusaurus/types.d.ts.map +1 -1
  72. package/dist/docusaurus/types.js +0 -11
  73. package/dist/docusaurus/types.js.map +1 -1
  74. package/dist/docusaurus/utils.d.ts.map +1 -1
  75. package/dist/docusaurus/utils.js +0 -82
  76. package/dist/docusaurus/utils.js.map +1 -1
  77. package/dist/docusaurus/view-model/classes-vm.d.ts +2 -2
  78. package/dist/docusaurus/view-model/classes-vm.d.ts.map +1 -1
  79. package/dist/docusaurus/view-model/classes-vm.js +12 -87
  80. package/dist/docusaurus/view-model/classes-vm.js.map +1 -1
  81. package/dist/docusaurus/view-model/collection-base.d.ts +2 -2
  82. package/dist/docusaurus/view-model/collection-base.d.ts.map +1 -1
  83. package/dist/docusaurus/view-model/collection-base.js +11 -23
  84. package/dist/docusaurus/view-model/collection-base.js.map +1 -1
  85. package/dist/docusaurus/view-model/compound-base-vm.d.ts +2 -32
  86. package/dist/docusaurus/view-model/compound-base-vm.d.ts.map +1 -1
  87. package/dist/docusaurus/view-model/compound-base-vm.js +47 -129
  88. package/dist/docusaurus/view-model/compound-base-vm.js.map +1 -1
  89. package/dist/docusaurus/view-model/concepts-vm.d.ts +26 -0
  90. package/dist/docusaurus/view-model/concepts-vm.d.ts.map +1 -0
  91. package/dist/docusaurus/view-model/concepts-vm.js +329 -0
  92. package/dist/docusaurus/view-model/concepts-vm.js.map +1 -0
  93. package/dist/docusaurus/view-model/description-anchors.d.ts.map +1 -1
  94. package/dist/docusaurus/view-model/description-anchors.js +0 -13
  95. package/dist/docusaurus/view-model/description-anchors.js.map +1 -1
  96. package/dist/docusaurus/view-model/files-and-folders-vm.d.ts +2 -2
  97. package/dist/docusaurus/view-model/files-and-folders-vm.d.ts.map +1 -1
  98. package/dist/docusaurus/view-model/files-and-folders-vm.js +64 -110
  99. package/dist/docusaurus/view-model/files-and-folders-vm.js.map +1 -1
  100. package/dist/docusaurus/view-model/groups-vm.d.ts +2 -2
  101. package/dist/docusaurus/view-model/groups-vm.d.ts.map +1 -1
  102. package/dist/docusaurus/view-model/groups-vm.js +7 -80
  103. package/dist/docusaurus/view-model/groups-vm.js.map +1 -1
  104. package/dist/docusaurus/view-model/members-vm.d.ts.map +1 -1
  105. package/dist/docusaurus/view-model/members-vm.js +17 -154
  106. package/dist/docusaurus/view-model/members-vm.js.map +1 -1
  107. package/dist/docusaurus/view-model/namespaces-vm.d.ts +6 -2
  108. package/dist/docusaurus/view-model/namespaces-vm.d.ts.map +1 -1
  109. package/dist/docusaurus/view-model/namespaces-vm.js +82 -89
  110. package/dist/docusaurus/view-model/namespaces-vm.js.map +1 -1
  111. package/dist/docusaurus/view-model/options.d.ts.map +1 -1
  112. package/dist/docusaurus/view-model/options.js +0 -14
  113. package/dist/docusaurus/view-model/options.js.map +1 -1
  114. package/dist/docusaurus/view-model/pages-vm.d.ts +2 -2
  115. package/dist/docusaurus/view-model/pages-vm.d.ts.map +1 -1
  116. package/dist/docusaurus/view-model/pages-vm.js +3 -50
  117. package/dist/docusaurus/view-model/pages-vm.js.map +1 -1
  118. package/dist/docusaurus/view-model/tree-entries-vm.d.ts +8 -22
  119. package/dist/docusaurus/view-model/tree-entries-vm.d.ts.map +1 -1
  120. package/dist/docusaurus/view-model/tree-entries-vm.js +54 -54
  121. package/dist/docusaurus/view-model/tree-entries-vm.js.map +1 -1
  122. package/dist/docusaurus/view-model/view-model.d.ts +0 -6
  123. package/dist/docusaurus/view-model/view-model.d.ts.map +1 -1
  124. package/dist/docusaurus/view-model/view-model.js +20 -63
  125. package/dist/docusaurus/view-model/view-model.js.map +1 -1
  126. package/dist/docusaurus/workspace.d.ts +1 -20
  127. package/dist/docusaurus/workspace.d.ts.map +1 -1
  128. package/dist/docusaurus/workspace.js +9 -116
  129. package/dist/docusaurus/workspace.js.map +1 -1
  130. package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts +5 -7
  131. package/dist/doxygen/data-model/compounds/compounddef-dm.d.ts.map +1 -1
  132. package/dist/doxygen/data-model/compounds/compounddef-dm.js +23 -187
  133. package/dist/doxygen/data-model/compounds/compounddef-dm.js.map +1 -1
  134. package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts +0 -9
  135. package/dist/doxygen/data-model/compounds/compoundreftype-dm.d.ts.map +1 -1
  136. package/dist/doxygen/data-model/compounds/compoundreftype-dm.js +1 -47
  137. package/dist/doxygen/data-model/compounds/compoundreftype-dm.js.map +1 -1
  138. package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts +0 -39
  139. package/dist/doxygen/data-model/compounds/descriptiontype-dm.d.ts.map +1 -1
  140. package/dist/doxygen/data-model/compounds/descriptiontype-dm.js +36 -1308
  141. package/dist/doxygen/data-model/compounds/descriptiontype-dm.js.map +1 -1
  142. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.d.ts.map +1 -1
  143. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js +0 -64
  144. package/dist/doxygen/data-model/compounds/docvarlistentrytype-dm.js.map +1 -1
  145. package/dist/doxygen/data-model/compounds/doxygentype-dm.d.ts.map +1 -1
  146. package/dist/doxygen/data-model/compounds/doxygentype-dm.js +0 -35
  147. package/dist/doxygen/data-model/compounds/doxygentype-dm.js.map +1 -1
  148. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts +0 -6
  149. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.d.ts.map +1 -1
  150. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js +1 -44
  151. package/dist/doxygen/data-model/compounds/enumvaluetype-dm.js.map +1 -1
  152. package/dist/doxygen/data-model/compounds/inctype-dm.d.ts +0 -9
  153. package/dist/doxygen/data-model/compounds/inctype-dm.d.ts.map +1 -1
  154. package/dist/doxygen/data-model/compounds/inctype-dm.js +3 -48
  155. package/dist/doxygen/data-model/compounds/inctype-dm.js.map +1 -1
  156. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts +3 -15
  157. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.d.ts.map +1 -1
  158. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js +5 -57
  159. package/dist/doxygen/data-model/compounds/linkedtexttype-dm.js.map +1 -1
  160. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts +0 -6
  161. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.d.ts.map +1 -1
  162. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js +0 -38
  163. package/dist/doxygen/data-model/compounds/listofallmemberstype-dm.js.map +1 -1
  164. package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts +0 -6
  165. package/dist/doxygen/data-model/compounds/locationtype-dm.d.ts.map +1 -1
  166. package/dist/doxygen/data-model/compounds/locationtype-dm.js +4 -52
  167. package/dist/doxygen/data-model/compounds/locationtype-dm.js.map +1 -1
  168. package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts +2 -10
  169. package/dist/doxygen/data-model/compounds/memberdeftype-dm.d.ts.map +1 -1
  170. package/dist/doxygen/data-model/compounds/memberdeftype-dm.js +19 -64
  171. package/dist/doxygen/data-model/compounds/memberdeftype-dm.js.map +1 -1
  172. package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts +0 -6
  173. package/dist/doxygen/data-model/compounds/memberreftype-dm.d.ts.map +1 -1
  174. package/dist/doxygen/data-model/compounds/memberreftype-dm.js +1 -45
  175. package/dist/doxygen/data-model/compounds/memberreftype-dm.js.map +1 -1
  176. package/dist/doxygen/data-model/compounds/membertype-dm.d.ts +0 -6
  177. package/dist/doxygen/data-model/compounds/membertype-dm.d.ts.map +1 -1
  178. package/dist/doxygen/data-model/compounds/membertype-dm.js +0 -43
  179. package/dist/doxygen/data-model/compounds/membertype-dm.js.map +1 -1
  180. package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts +0 -6
  181. package/dist/doxygen/data-model/compounds/paramtype-dm.d.ts.map +1 -1
  182. package/dist/doxygen/data-model/compounds/paramtype-dm.js +0 -51
  183. package/dist/doxygen/data-model/compounds/paramtype-dm.js.map +1 -1
  184. package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts +0 -9
  185. package/dist/doxygen/data-model/compounds/referencetype-dm.d.ts.map +1 -1
  186. package/dist/doxygen/data-model/compounds/referencetype-dm.js +2 -47
  187. package/dist/doxygen/data-model/compounds/referencetype-dm.js.map +1 -1
  188. package/dist/doxygen/data-model/compounds/reftexttype-dm.d.ts.map +1 -1
  189. package/dist/doxygen/data-model/compounds/reftexttype-dm.js +2 -38
  190. package/dist/doxygen/data-model/compounds/reftexttype-dm.js.map +1 -1
  191. package/dist/doxygen/data-model/compounds/reftype-dm.d.ts +0 -21
  192. package/dist/doxygen/data-model/compounds/reftype-dm.d.ts.map +1 -1
  193. package/dist/doxygen/data-model/compounds/reftype-dm.js +4 -82
  194. package/dist/doxygen/data-model/compounds/reftype-dm.js.map +1 -1
  195. package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts +0 -6
  196. package/dist/doxygen/data-model/compounds/reimplementtype-dm.d.ts.map +1 -1
  197. package/dist/doxygen/data-model/compounds/reimplementtype-dm.js +1 -42
  198. package/dist/doxygen/data-model/compounds/reimplementtype-dm.js.map +1 -1
  199. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts +0 -9
  200. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.d.ts.map +1 -1
  201. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js +0 -53
  202. package/dist/doxygen/data-model/compounds/sectiondeftype-dm.js.map +1 -1
  203. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts +0 -12
  204. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.d.ts.map +1 -1
  205. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js +0 -105
  206. package/dist/doxygen/data-model/compounds/tableofcontentstype-dm.js.map +1 -1
  207. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts +0 -6
  208. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.d.ts.map +1 -1
  209. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js +0 -38
  210. package/dist/doxygen/data-model/compounds/templateparamlisttype-dm.js.map +1 -1
  211. package/dist/doxygen/data-model/data-model.d.ts +0 -65
  212. package/dist/doxygen/data-model/data-model.d.ts.map +1 -1
  213. package/dist/doxygen/data-model/data-model.js +4 -115
  214. package/dist/doxygen/data-model/data-model.js.map +1 -1
  215. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts +0 -6
  216. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.d.ts.map +1 -1
  217. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js +4 -47
  218. package/dist/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.js.map +1 -1
  219. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts +0 -6
  220. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.d.ts.map +1 -1
  221. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js +0 -40
  222. package/dist/doxygen/data-model/doxyfile/doxyfiletype-dm.js.map +1 -1
  223. package/dist/doxygen/data-model/doxygen-xml-parser.d.ts +0 -236
  224. package/dist/doxygen/data-model/doxygen-xml-parser.d.ts.map +1 -1
  225. package/dist/doxygen/data-model/doxygen-xml-parser.js +0 -289
  226. package/dist/doxygen/data-model/doxygen-xml-parser.js.map +1 -1
  227. package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts +0 -6
  228. package/dist/doxygen/data-model/index/indexcompoundtype-dm.d.ts.map +1 -1
  229. package/dist/doxygen/data-model/index/indexcompoundtype-dm.js +2 -45
  230. package/dist/doxygen/data-model/index/indexcompoundtype-dm.js.map +1 -1
  231. package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts +0 -6
  232. package/dist/doxygen/data-model/index/indexdoxygentype-dm.d.ts.map +1 -1
  233. package/dist/doxygen/data-model/index/indexdoxygentype-dm.js +0 -41
  234. package/dist/doxygen/data-model/index/indexdoxygentype-dm.js.map +1 -1
  235. package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts +0 -6
  236. package/dist/doxygen/data-model/index/indexmembertype-dm.d.ts.map +1 -1
  237. package/dist/doxygen/data-model/index/indexmembertype-dm.js +1 -43
  238. package/dist/doxygen/data-model/index/indexmembertype-dm.js.map +1 -1
  239. package/dist/doxygen/data-model/types.d.ts +1 -10
  240. package/dist/doxygen/data-model/types.d.ts.map +1 -1
  241. package/dist/doxygen/data-model/types.js +0 -15
  242. package/dist/doxygen/data-model/types.js.map +1 -1
  243. package/dist/index.d.ts +4 -16
  244. package/dist/index.d.ts.map +1 -1
  245. package/dist/index.js +4 -42
  246. package/dist/index.js.map +1 -1
  247. package/package.json +53 -56
  248. package/src/cli/main.ts +122 -0
  249. package/src/docusaurus/cli-options.ts +560 -0
  250. package/src/docusaurus/generator.ts +788 -0
  251. package/src/docusaurus/renderers/descriptiontype.ts +1299 -0
  252. package/src/docusaurus/renderers/docinternalstype.ts +354 -0
  253. package/src/docusaurus/renderers/doclisttype.ts +134 -0
  254. package/src/docusaurus/renderers/doctabletype.ts +220 -0
  255. package/src/docusaurus/renderers/doctitletype.ts +77 -0
  256. package/src/docusaurus/renderers/docvariablelisttype.ts +123 -0
  257. package/src/docusaurus/renderers/docxrefsecttype.ts +84 -0
  258. package/src/docusaurus/renderers/element-renderer-base.ts +112 -0
  259. package/src/docusaurus/renderers/inctype.ts +75 -0
  260. package/src/docusaurus/renderers/linkedtexttype.ts +64 -0
  261. package/src/docusaurus/renderers/listingtype.ts +235 -0
  262. package/src/docusaurus/renderers/paramtype.ts +116 -0
  263. package/src/docusaurus/renderers/referencetype.ts +83 -0
  264. package/src/docusaurus/renderers/reftexttype.ts +81 -0
  265. package/src/docusaurus/renderers/reftype.ts +77 -0
  266. package/src/docusaurus/renderers/renderers.ts +756 -0
  267. package/src/docusaurus/renderers/substringtype.ts +53 -0
  268. package/src/docusaurus/renderers/tableofcontentstype.ts +74 -0
  269. package/src/docusaurus/types.ts +187 -0
  270. package/src/docusaurus/utils.ts +409 -0
  271. package/src/docusaurus/view-model/README.md +12 -0
  272. package/src/docusaurus/view-model/classes-vm.ts +1088 -0
  273. package/src/docusaurus/view-model/collection-base.ts +352 -0
  274. package/src/docusaurus/view-model/compound-base-vm.ts +1340 -0
  275. package/src/docusaurus/view-model/concepts-vm.ts +719 -0
  276. package/src/docusaurus/view-model/description-anchors.ts +107 -0
  277. package/src/docusaurus/view-model/files-and-folders-vm.ts +1293 -0
  278. package/src/docusaurus/view-model/groups-vm.ts +548 -0
  279. package/src/docusaurus/view-model/members-vm.ts +1943 -0
  280. package/src/docusaurus/view-model/namespaces-vm.ts +1018 -0
  281. package/src/docusaurus/view-model/options.ts +95 -0
  282. package/src/docusaurus/view-model/pages-vm.ts +342 -0
  283. package/src/docusaurus/view-model/tree-entries-vm.ts +376 -0
  284. package/src/docusaurus/view-model/view-model.ts +513 -0
  285. package/src/docusaurus/workspace.ts +588 -0
  286. package/src/doxygen/data-model/README.md +13 -0
  287. package/src/doxygen/data-model/compounds/compounddef-dm.ts +1156 -0
  288. package/src/doxygen/data-model/compounds/compoundreftype-dm.ts +266 -0
  289. package/src/doxygen/data-model/compounds/descriptiontype-dm.ts +10107 -0
  290. package/src/doxygen/data-model/compounds/docvarlistentrytype-dm.ts +354 -0
  291. package/src/doxygen/data-model/compounds/doxygentype-dm.ts +187 -0
  292. package/src/doxygen/data-model/compounds/enumvaluetype-dm.ts +218 -0
  293. package/src/doxygen/data-model/compounds/inctype-dm.ts +217 -0
  294. package/src/doxygen/data-model/compounds/linkedtexttype-dm.ts +288 -0
  295. package/src/doxygen/data-model/compounds/listofallmemberstype-dm.ts +160 -0
  296. package/src/doxygen/data-model/compounds/locationtype-dm.ts +284 -0
  297. package/src/doxygen/data-model/compounds/memberdeftype-dm.ts +874 -0
  298. package/src/doxygen/data-model/compounds/memberreftype-dm.ts +270 -0
  299. package/src/doxygen/data-model/compounds/membertype-dm.ts +239 -0
  300. package/src/doxygen/data-model/compounds/paramtype-dm.ts +302 -0
  301. package/src/doxygen/data-model/compounds/referencetype-dm.ts +248 -0
  302. package/src/doxygen/data-model/compounds/reftexttype-dm.ts +234 -0
  303. package/src/doxygen/data-model/compounds/reftype-dm.ts +430 -0
  304. package/src/doxygen/data-model/compounds/reimplementtype-dm.ts +201 -0
  305. package/src/doxygen/data-model/compounds/sectiondeftype-dm.ts +330 -0
  306. package/src/doxygen/data-model/compounds/tableofcontentstype-dm.ts +563 -0
  307. package/src/doxygen/data-model/compounds/templateparamlisttype-dm.ts +150 -0
  308. package/src/doxygen/data-model/data-model.ts +377 -0
  309. package/src/doxygen/data-model/doxyfile/doxyfileoptiontype-dm.ts +271 -0
  310. package/src/doxygen/data-model/doxyfile/doxyfiletype-dm.ts +200 -0
  311. package/src/doxygen/data-model/doxygen-xml-parser.ts +522 -0
  312. package/src/doxygen/data-model/index/indexcompoundtype-dm.ts +256 -0
  313. package/src/doxygen/data-model/index/indexdoxygentype-dm.ts +196 -0
  314. package/src/doxygen/data-model/index/indexmembertype-dm.ts +230 -0
  315. package/src/doxygen/data-model/types.ts +175 -0
  316. package/src/doxygen/data-model/xsds/README.md +6 -0
  317. package/src/doxygen/data-model/xsds/compound.xsd +1699 -0
  318. package/src/doxygen/data-model/xsds/doxyfile.xsd +355 -0
  319. package/src/doxygen/data-model/xsds/index.xsd +72 -0
  320. package/src/doxygen/data-model/xsds/xml.xsd +23 -0
  321. package/src/index.ts +261 -0
  322. package/src/tsconfig.json +10 -0
  323. package/dist/doxygen2docusaurus.d.ts +0 -1147
  324. package/dist/tsconfig.tsbuildinfo +0 -1
  325. package/dist/tsdoc-metadata.json +0 -11
  326. /package/{template → templates}/css/custom.css +0 -0
  327. /package/{template → templates}/img/README.md +0 -0
  328. /package/{template → templates}/img/document-svgrepo-com.svg +0 -0
  329. /package/{template → templates}/img/folder-svgrepo-com.svg +0 -0
@@ -1,14 +1,3 @@
1
- /*
2
- * This file is part of the xPack project (http://xpack.github.io).
3
- * Copyright (c) 2025 Liviu Ionescu. All rights reserved.
4
- *
5
- * Permission to use, copy, modify, and/or distribute this software
6
- * for any purpose is hereby granted, under the terms of the MIT license.
7
- *
8
- * If a copy of the license was not distributed with this file, it can
9
- * be obtained from https://opensource.org/licenses/MIT.
10
- */
11
- // ----------------------------------------------------------------------------
12
1
  import assert from 'node:assert';
13
2
  import * as util from 'node:util';
14
3
  import { AbstractDataModelBase } from '../types.js';
@@ -17,46 +6,19 @@ import { VariableListDataModel } from './docvarlistentrytype-dm.js';
17
6
  import { DocBookOnlyDataModel, HtmlOnlyDataModel } from './compounddef-dm.js';
18
7
  import { TocListDataModel } from './tableofcontentstype-dm.js';
19
8
  import { isUrl } from '../../../docusaurus/utils.js';
20
- // ----------------------------------------------------------------------------
21
- // A bit unusual, since string values should be stored as object properties.
22
- // However, for consistency reasons, for objects like XXXonly perhaps it is
23
- // better to use objects,
24
9
  export class AbstractStringType extends AbstractDataModelBase {
25
10
  text = '';
26
11
  constructor(xml, element, elementName) {
27
12
  super(elementName);
28
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
29
- // ------------------------------------------------------------------------
30
- // Process elements.
31
13
  assert(xml.isInnerElementText(element, elementName));
32
14
  this.text = xml.getInnerElementText(element, elementName);
33
- // ------------------------------------------------------------------------
34
- // Process attributes.
35
15
  assert(!xml.hasAttributes(element));
36
- // ------------------------------------------------------------------------
37
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
38
- }
39
- }
40
- // ----------------------------------------------------------------------------
41
- // <xsd:complexType name="descriptionType" mixed="true"> <-- Character data is allowed to appear between the child elements!
42
- // <xsd:sequence>
43
- // <xsd:element name="title" type="xsd:string" minOccurs="0"/>
44
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
45
- // <xsd:element name="internal" type="docInternalType" minOccurs="0" maxOccurs="unbounded"/>
46
- // <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
47
- // </xsd:sequence>
48
- // </xsd:complexType>
49
- /**
50
- * @public
51
- */
16
+ }
17
+ }
52
18
  export class AbstractDescriptionType extends AbstractDataModelBase {
53
- // Optional elements.
54
- title; // Only one.
19
+ title;
55
20
  constructor(xml, element, elementName) {
56
21
  super(elementName);
57
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
58
- // ------------------------------------------------------------------------
59
- // Process elements.
60
22
  const innerElements = xml.getInnerElements(element, elementName);
61
23
  assert(innerElements.length > 0);
62
24
  this.children = [];
@@ -82,43 +44,20 @@ export class AbstractDescriptionType extends AbstractDataModelBase {
82
44
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
83
45
  }
84
46
  }
85
- // ------------------------------------------------------------------------
86
- // Process attributes.
87
47
  assert(!xml.hasAttributes(element));
88
- // ------------------------------------------------------------------------
89
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
90
- }
91
- }
92
- // ----------------------------------------------------------------------------
93
- // <xsd:complexType name="listingType">
94
- // <xsd:sequence>
95
- // <xsd:element name="codeline" type="codelineType" minOccurs="0" maxOccurs="unbounded" />
96
- // </xsd:sequence>
97
- // <xsd:attribute name="filename" type="xsd:string" use="optional"/>
98
- // </xsd:complexType>
99
- /**
100
- * @public
101
- */
48
+ }
49
+ }
102
50
  export class AbstractListingTypeBase extends AbstractDataModelBase {
103
- // Optional elements.
104
51
  codelines;
105
- // Optional attributes.
106
52
  filename;
107
53
  }
108
- /**
109
- * @public
110
- */
111
54
  export class AbstractListingType extends AbstractListingTypeBase {
112
55
  constructor(xml, element, elementName) {
113
56
  super(elementName);
114
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
115
- // ------------------------------------------------------------------------
116
- // Process elements.
117
57
  const innerElements = xml.getInnerElements(element, elementName);
118
58
  assert(innerElements.length > 0);
119
59
  for (const innerElement of innerElements) {
120
60
  if (xml.hasInnerText(innerElement)) {
121
- // Ignore texts.
122
61
  }
123
62
  else if (xml.hasInnerElement(innerElement, 'codeline')) {
124
63
  this.codelines ??= [];
@@ -129,8 +68,6 @@ export class AbstractListingType extends AbstractListingTypeBase {
129
68
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
130
69
  }
131
70
  }
132
- // ------------------------------------------------------------------------
133
- // Process attributes.
134
71
  if (xml.hasAttributes(element)) {
135
72
  const attributesNames = xml.getAttributesNames(element);
136
73
  for (const attributeName of attributesNames) {
@@ -143,14 +80,8 @@ export class AbstractListingType extends AbstractListingTypeBase {
143
80
  }
144
81
  }
145
82
  }
146
- // ------------------------------------------------------------------------
147
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
148
83
  }
149
84
  }
150
- // <xsd:element name="programlisting" type="listingType" />
151
- /**
152
- * @public
153
- */
154
85
  export class ProgramListingDataModel extends AbstractListingType {
155
86
  constructor(xml, element) {
156
87
  super(xml, element, 'programlisting');
@@ -176,37 +107,17 @@ export class MemberProgramListingDataModel extends AbstractListingTypeBase {
176
107
  }
177
108
  }
178
109
  }
179
- // WARNING: attributes are all optional
180
- // <xsd:complexType name="codelineType">
181
- // <xsd:sequence>
182
- // <xsd:element name="highlight" type="highlightType" minOccurs="0" maxOccurs="unbounded" />
183
- // </xsd:sequence>
184
- // <xsd:attribute name="lineno" type="xsd:integer" />
185
- // <xsd:attribute name="refid" type="xsd:string" />
186
- // <xsd:attribute name="refkind" type="DoxRefKind" />
187
- // <xsd:attribute name="external" type="DoxBool" />
188
- // </xsd:complexType>
189
- /**
190
- * @public
191
- */
192
110
  export class AbstractCodeLineType extends AbstractDataModelBase {
193
- // Optional elements.
194
111
  highlights;
195
- // Optional attributes.
196
112
  lineno;
197
113
  refid;
198
114
  refkind;
199
115
  external;
200
116
  constructor(xml, element, elementName) {
201
117
  super(elementName);
202
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
203
- // ------------------------------------------------------------------------
204
- // Process elements.
205
- // May be empty, like `<codeline></codeline>`
206
118
  const innerElements = xml.getInnerElements(element, elementName);
207
119
  for (const innerElement of innerElements) {
208
120
  if (xml.hasInnerText(innerElement)) {
209
- // Ignore texts.
210
121
  }
211
122
  else if (xml.hasInnerElement(innerElement, 'highlight')) {
212
123
  this.highlights ??= [];
@@ -217,13 +128,11 @@ export class AbstractCodeLineType extends AbstractDataModelBase {
217
128
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
218
129
  }
219
130
  }
220
- // ------------------------------------------------------------------------
221
- // Process attributes.
222
131
  if (xml.hasAttributes(element)) {
223
132
  const attributesNames = xml.getAttributesNames(element);
224
133
  for (const attributeName of attributesNames) {
225
134
  if (attributeName === '@_lineno') {
226
- this.lineno = Number(xml.getAttributeNumberValue(element, '@_lineno'));
135
+ this.lineno = xml.getAttributeNumberValue(element, '@_lineno');
227
136
  }
228
137
  else if (attributeName === '@_refid') {
229
138
  this.refid = xml.getAttributeStringValue(element, '@_refid');
@@ -232,7 +141,7 @@ export class AbstractCodeLineType extends AbstractDataModelBase {
232
141
  this.refkind = xml.getAttributeStringValue(element, '@_refkind');
233
142
  }
234
143
  else if (attributeName === '@_external') {
235
- this.external = Boolean(xml.getAttributeBooleanValue(element, '@_external'));
144
+ this.external = xml.getAttributeBooleanValue(element, '@_external');
236
145
  }
237
146
  else {
238
147
  console.error(util.inspect(element, { compact: false, depth: 999 }));
@@ -240,32 +149,17 @@ export class AbstractCodeLineType extends AbstractDataModelBase {
240
149
  }
241
150
  }
242
151
  }
243
- // ------------------------------------------------------------------------
244
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
245
152
  }
246
153
  }
247
- // <xsd:element name="codeline" type="codelineType" minOccurs="0" maxOccurs="unbounded" />
248
- /**
249
- * @public
250
- */
251
154
  export class CodeLineDataModel extends AbstractCodeLineType {
252
155
  constructor(xml, element) {
253
156
  super(xml, element, 'codeline');
254
157
  }
255
158
  }
256
- /**
257
- * @public
258
- */
259
159
  export class AbstractHighlightType extends AbstractDataModelBase {
260
- // Any sequence of them.
261
- // children: Array<string | SpDataModel | RefTextDataModel> = []
262
- // Mandatory attributes.
263
160
  classs = '';
264
161
  constructor(xml, element, elementName) {
265
162
  super(elementName);
266
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
267
- // ------------------------------------------------------------------------
268
- // Process elements.
269
163
  this.children = [];
270
164
  const innerElements = xml.getInnerElements(element, elementName);
271
165
  if (innerElements.length > 0) {
@@ -285,8 +179,6 @@ export class AbstractHighlightType extends AbstractDataModelBase {
285
179
  }
286
180
  }
287
181
  }
288
- // ------------------------------------------------------------------------
289
- // Process attributes.
290
182
  assert(xml.hasAttributes(element));
291
183
  const attributesNames = xml.getAttributesNames(element);
292
184
  for (const attributeName of attributesNames) {
@@ -299,40 +191,25 @@ export class AbstractHighlightType extends AbstractDataModelBase {
299
191
  }
300
192
  }
301
193
  assert(this.classs.length > 0);
302
- // ------------------------------------------------------------------------
303
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
304
194
  }
305
195
  }
306
- // <xsd:element name="highlight" type="highlightType" minOccurs="0" maxOccurs="unbounded" />
307
- /**
308
- * @public
309
- */
310
196
  export class HighlightDataModel extends AbstractHighlightType {
311
197
  constructor(xml, element) {
312
198
  super(xml, element, 'highlight');
313
199
  }
314
200
  }
315
- // <xsd:complexType name="spType" mixed="true"> <-- Character data is allowed to appear between the child elements!
316
- // <xsd:attribute name="value" type="xsd:integer" use="optional"/>
317
- // </xsd:complexType>
318
201
  export class AbstractSpType extends AbstractDataModelBase {
319
202
  text = '';
320
- // Optional attributes.
321
203
  value;
322
204
  constructor(xml, element, elementName) {
323
205
  super(elementName);
324
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
325
- // ------------------------------------------------------------------------
326
- // Process elements.
327
206
  const innerElements = xml.getInnerElements(element, elementName);
328
207
  assert(innerElements.length === 0);
329
- // ------------------------------------------------------------------------
330
- // Process attributes.
331
208
  if (xml.hasAttributes(element)) {
332
209
  const attributesNames = xml.getAttributesNames(element);
333
210
  for (const attributeName of attributesNames) {
334
211
  if (attributeName === '@_value') {
335
- this.value = Number(xml.getAttributeNumberValue(element, '@_value'));
212
+ this.value = xml.getAttributeNumberValue(element, '@_value');
336
213
  }
337
214
  else {
338
215
  console.error(util.inspect(element, { compact: false, depth: 999 }));
@@ -340,39 +217,20 @@ export class AbstractSpType extends AbstractDataModelBase {
340
217
  }
341
218
  }
342
219
  }
343
- // ------------------------------------------------------------------------
344
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
345
220
  }
346
221
  }
347
- // <xsd:element name="sp" type="spType" />
348
222
  export class SpDataModel extends AbstractSpType {
349
223
  constructor(xml, element) {
350
224
  super(xml, element, 'sp');
351
225
  }
352
226
  }
353
- // ----------------------------------------------------------------------------
354
- // <xsd:complexType name="docSect1Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
355
- // <xsd:sequence>
356
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
357
- // <xsd:choice maxOccurs="unbounded">
358
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
359
- // <xsd:element name="internal" type="docInternalS1Type" minOccurs="0" maxOccurs="unbounded" />
360
- // <xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
361
- // </xsd:choice>
362
- // </xsd:sequence>
363
- // <xsd:attribute name="id" type="xsd:string" />
364
- // </xsd:complexType>
365
227
  export class AbstractDocSectType extends AbstractDataModelBase {
366
228
  title;
367
- // Optional attribute.
368
229
  id;
369
230
  }
370
231
  export class AbstractDocSect1Type extends AbstractDocSectType {
371
232
  constructor(xml, element, elementName) {
372
233
  super(elementName);
373
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
374
- // ------------------------------------------------------------------------
375
- // Process elements.
376
234
  const innerElements = xml.getInnerElements(element, elementName);
377
235
  assert(innerElements.length > 0);
378
236
  this.children = [];
@@ -398,8 +256,6 @@ export class AbstractDocSect1Type extends AbstractDocSectType {
398
256
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
399
257
  }
400
258
  }
401
- // ------------------------------------------------------------------------
402
- // Process attributes.
403
259
  if (xml.hasAttributes(element)) {
404
260
  const attributesNames = xml.getAttributesNames(element);
405
261
  for (const attributeName of attributesNames) {
@@ -412,28 +268,11 @@ export class AbstractDocSect1Type extends AbstractDocSectType {
412
268
  }
413
269
  }
414
270
  }
415
- // ------------------------------------------------------------------------
416
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
417
- }
418
- }
419
- // ----------------------------------------------------------------------------
420
- // <xsd:complexType name="docSect2Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
421
- // <xsd:sequence>
422
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
423
- // <xsd:choice maxOccurs="unbounded">
424
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
425
- // <xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
426
- // <xsd:element name="internal" type="docInternalS2Type" minOccurs="0" />
427
- // </xsd:choice>
428
- // </xsd:sequence>
429
- // <xsd:attribute name="id" type="xsd:string" />
430
- // </xsd:complexType>
271
+ }
272
+ }
431
273
  export class AbstractDocSect2Type extends AbstractDocSectType {
432
274
  constructor(xml, element, elementName) {
433
275
  super(elementName);
434
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
435
- // ------------------------------------------------------------------------
436
- // Process elements.
437
276
  const innerElements = xml.getInnerElements(element, elementName);
438
277
  assert(innerElements.length > 0);
439
278
  this.children = [];
@@ -459,8 +298,6 @@ export class AbstractDocSect2Type extends AbstractDocSectType {
459
298
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
460
299
  }
461
300
  }
462
- // ------------------------------------------------------------------------
463
- // Process attributes.
464
301
  if (xml.hasAttributes(element)) {
465
302
  const attributesNames = xml.getAttributesNames(element);
466
303
  for (const attributeName of attributesNames) {
@@ -473,28 +310,11 @@ export class AbstractDocSect2Type extends AbstractDocSectType {
473
310
  }
474
311
  }
475
312
  }
476
- // ------------------------------------------------------------------------
477
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
478
- }
479
- }
480
- // ----------------------------------------------------------------------------
481
- // <xsd:complexType name="docSect3Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
482
- // <xsd:sequence>
483
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
484
- // <xsd:choice maxOccurs="unbounded">
485
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
486
- // <xsd:element name="sect4" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
487
- // <xsd:element name="internal" type="docInternalS3Type" minOccurs="0" />
488
- // </xsd:choice>
489
- // </xsd:sequence>
490
- // <xsd:attribute name="id" type="xsd:string" />
491
- // </xsd:complexType>
313
+ }
314
+ }
492
315
  export class AbstractDocSect3Type extends AbstractDocSectType {
493
316
  constructor(xml, element, elementName) {
494
317
  super(elementName);
495
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
496
- // ------------------------------------------------------------------------
497
- // Process elements.
498
318
  const innerElements = xml.getInnerElements(element, elementName);
499
319
  assert(innerElements.length > 0);
500
320
  this.children = [];
@@ -520,8 +340,6 @@ export class AbstractDocSect3Type extends AbstractDocSectType {
520
340
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
521
341
  }
522
342
  }
523
- // ------------------------------------------------------------------------
524
- // Process attributes.
525
343
  if (xml.hasAttributes(element)) {
526
344
  const attributesNames = xml.getAttributesNames(element);
527
345
  for (const attributeName of attributesNames) {
@@ -534,28 +352,11 @@ export class AbstractDocSect3Type extends AbstractDocSectType {
534
352
  }
535
353
  }
536
354
  }
537
- // ------------------------------------------------------------------------
538
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
539
- }
540
- }
541
- // ----------------------------------------------------------------------------
542
- // <xsd:complexType name="docSect4Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
543
- // <xsd:sequence>
544
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
545
- // <xsd:choice maxOccurs="unbounded">
546
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
547
- // <xsd:element name="sect5" type="docSect5Type" minOccurs="0" maxOccurs="unbounded" />
548
- // <xsd:element name="internal" type="docInternalS4Type" minOccurs="0" />
549
- // </xsd:choice>
550
- // </xsd:sequence>
551
- // <xsd:attribute name="id" type="xsd:string" />
552
- // </xsd:complexType>
355
+ }
356
+ }
553
357
  export class AbstractDocSect4Type extends AbstractDocSectType {
554
358
  constructor(xml, element, elementName) {
555
359
  super(elementName);
556
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
557
- // ------------------------------------------------------------------------
558
- // Process elements.
559
360
  const innerElements = xml.getInnerElements(element, elementName);
560
361
  assert(innerElements.length > 0);
561
362
  this.children = [];
@@ -581,8 +382,6 @@ export class AbstractDocSect4Type extends AbstractDocSectType {
581
382
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
582
383
  }
583
384
  }
584
- // ------------------------------------------------------------------------
585
- // Process attributes.
586
385
  if (xml.hasAttributes(element)) {
587
386
  const attributesNames = xml.getAttributesNames(element);
588
387
  for (const attributeName of attributesNames) {
@@ -595,28 +394,11 @@ export class AbstractDocSect4Type extends AbstractDocSectType {
595
394
  }
596
395
  }
597
396
  }
598
- // ------------------------------------------------------------------------
599
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
600
- }
601
- }
602
- // ----------------------------------------------------------------------------
603
- // <xsd:complexType name="docSect5Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
604
- // <xsd:sequence>
605
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
606
- // <xsd:choice maxOccurs="unbounded">
607
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
608
- // <xsd:element name="sect6" type="docSect6Type" minOccurs="0" maxOccurs="unbounded" />
609
- // <xsd:element name="internal" type="docInternalS5Type" minOccurs="0" />
610
- // </xsd:choice>
611
- // </xsd:sequence>
612
- // <xsd:attribute name="id" type="xsd:string" />
613
- // </xsd:complexType>
397
+ }
398
+ }
614
399
  export class AbstractDocSect5Type extends AbstractDocSectType {
615
400
  constructor(xml, element, elementName) {
616
401
  super(elementName);
617
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
618
- // ------------------------------------------------------------------------
619
- // Process elements.
620
402
  const innerElements = xml.getInnerElements(element, elementName);
621
403
  assert(innerElements.length > 0);
622
404
  this.children = [];
@@ -642,8 +424,6 @@ export class AbstractDocSect5Type extends AbstractDocSectType {
642
424
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
643
425
  }
644
426
  }
645
- // ------------------------------------------------------------------------
646
- // Process attributes.
647
427
  if (xml.hasAttributes(element)) {
648
428
  const attributesNames = xml.getAttributesNames(element);
649
429
  for (const attributeName of attributesNames) {
@@ -656,27 +436,11 @@ export class AbstractDocSect5Type extends AbstractDocSectType {
656
436
  }
657
437
  }
658
438
  }
659
- // ------------------------------------------------------------------------
660
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
661
- }
662
- }
663
- // ----------------------------------------------------------------------------
664
- // <xsd:complexType name="docSect6Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
665
- // <xsd:sequence>
666
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
667
- // <xsd:choice maxOccurs="unbounded">
668
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
669
- // <xsd:element name="internal" type="docInternalS6Type" minOccurs="0" />
670
- // </xsd:choice>
671
- // </xsd:sequence>
672
- // <xsd:attribute name="id" type="xsd:string" />
673
- // </xsd:complexType>
439
+ }
440
+ }
674
441
  export class AbstractDocSect6Type extends AbstractDocSectType {
675
442
  constructor(xml, element, elementName) {
676
443
  super(elementName);
677
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
678
- // ------------------------------------------------------------------------
679
- // Process elements.
680
444
  const innerElements = xml.getInnerElements(element, elementName);
681
445
  assert(innerElements.length > 0);
682
446
  this.children = [];
@@ -699,8 +463,6 @@ export class AbstractDocSect6Type extends AbstractDocSectType {
699
463
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
700
464
  }
701
465
  }
702
- // ------------------------------------------------------------------------
703
- // Process attributes.
704
466
  if (xml.hasAttributes(element)) {
705
467
  const attributesNames = xml.getAttributesNames(element);
706
468
  for (const attributeName of attributesNames) {
@@ -713,25 +475,11 @@ export class AbstractDocSect6Type extends AbstractDocSectType {
713
475
  }
714
476
  }
715
477
  }
716
- // ------------------------------------------------------------------------
717
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
718
478
  }
719
479
  }
720
- // ----------------------------------------------------------------------------
721
- // <xsd:complexType name="docInternalType" mixed="true"> <-- Character data is allowed to appear between the child elements!
722
- // <xsd:sequence>
723
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
724
- // <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
725
- // </xsd:sequence>
726
- // </xsd:complexType>
727
480
  export class AbstractDocInternalType extends AbstractDataModelBase {
728
- // Any sequence of them.
729
- // children: Array<string | ParaDataModel | Sect1DataModel> = []
730
481
  constructor(xml, element, elementName) {
731
482
  super(elementName);
732
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
733
- // ------------------------------------------------------------------------
734
- // Process elements.
735
483
  const innerElements = xml.getInnerElements(element, elementName);
736
484
  assert(innerElements.length > 0);
737
485
  this.children = [];
@@ -750,28 +498,12 @@ export class AbstractDocInternalType extends AbstractDataModelBase {
750
498
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
751
499
  }
752
500
  }
753
- // ------------------------------------------------------------------------
754
- // Process attributes.
755
501
  assert(!xml.hasAttributes(element));
756
- // ------------------------------------------------------------------------
757
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
758
502
  }
759
503
  }
760
- // ----------------------------------------------------------------------------
761
- // <xsd:complexType name="docInternalS1Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
762
- // <xsd:sequence>
763
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
764
- // <xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
765
- // </xsd:sequence>
766
- // </xsd:complexType>
767
504
  export class AbstractDocInternalS1Type extends AbstractDataModelBase {
768
- // Any sequence of them.
769
- // children: Array<string | ParaDataModel | Sect2DataModel> = []
770
505
  constructor(xml, element, elementName) {
771
506
  super(elementName);
772
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
773
- // ------------------------------------------------------------------------
774
- // Process elements.
775
507
  const innerElements = xml.getInnerElements(element, elementName);
776
508
  assert(innerElements.length > 0);
777
509
  this.children = [];
@@ -790,28 +522,12 @@ export class AbstractDocInternalS1Type extends AbstractDataModelBase {
790
522
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
791
523
  }
792
524
  }
793
- // ------------------------------------------------------------------------
794
- // Process attributes.
795
525
  assert(!xml.hasAttributes(element));
796
- // ------------------------------------------------------------------------
797
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
798
526
  }
799
527
  }
800
- // ----------------------------------------------------------------------------
801
- // <xsd:complexType name="docInternalS2Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
802
- // <xsd:sequence>
803
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
804
- // <xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
805
- // </xsd:sequence>
806
- // </xsd:complexType>
807
528
  export class AbstractDocInternalS2Type extends AbstractDataModelBase {
808
- // Any sequence of them.
809
- // children: Array<string | ParaDataModel | Sect3DataModel> = []
810
529
  constructor(xml, element, elementName) {
811
530
  super(elementName);
812
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
813
- // ------------------------------------------------------------------------
814
- // Process elements.
815
531
  const innerElements = xml.getInnerElements(element, elementName);
816
532
  assert(innerElements.length > 0);
817
533
  this.children = [];
@@ -830,28 +546,12 @@ export class AbstractDocInternalS2Type extends AbstractDataModelBase {
830
546
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
831
547
  }
832
548
  }
833
- // ------------------------------------------------------------------------
834
- // Process attributes.
835
549
  assert(!xml.hasAttributes(element));
836
- // ------------------------------------------------------------------------
837
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
838
550
  }
839
551
  }
840
- // ----------------------------------------------------------------------------
841
- // <xsd:complexType name="docInternalS3Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
842
- // <xsd:sequence>
843
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
844
- // <xsd:element name="sect4" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
845
- // </xsd:sequence>
846
- // </xsd:complexType>
847
552
  export class AbstractDocInternalS3Type extends AbstractDataModelBase {
848
- // Any sequence of them.
849
- // children: Array<string | ParaDataModel | Sect4DataModel> = []
850
553
  constructor(xml, element, elementName) {
851
554
  super(elementName);
852
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
853
- // ------------------------------------------------------------------------
854
- // Process elements.
855
555
  const innerElements = xml.getInnerElements(element, elementName);
856
556
  assert(innerElements.length > 0);
857
557
  this.children = [];
@@ -870,28 +570,12 @@ export class AbstractDocInternalS3Type extends AbstractDataModelBase {
870
570
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
871
571
  }
872
572
  }
873
- // ------------------------------------------------------------------------
874
- // Process attributes.
875
573
  assert(!xml.hasAttributes(element));
876
- // ------------------------------------------------------------------------
877
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
878
574
  }
879
575
  }
880
- // ----------------------------------------------------------------------------
881
- // <xsd:complexType name="docInternalS4Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
882
- // <xsd:sequence>
883
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
884
- // <xsd:element name="sect5" type="docSect5Type" minOccurs="0" maxOccurs="unbounded" />
885
- // </xsd:sequence>
886
- // </xsd:complexType>
887
576
  export class AbstractDocInternalS4Type extends AbstractDataModelBase {
888
- // Any sequence of them.
889
- // children: Array<string | ParaDataModel | Sect5DataModel> = []
890
577
  constructor(xml, element, elementName) {
891
578
  super(elementName);
892
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
893
- // ------------------------------------------------------------------------
894
- // Process elements.
895
579
  const innerElements = xml.getInnerElements(element, elementName);
896
580
  assert(innerElements.length > 0);
897
581
  this.children = [];
@@ -910,29 +594,12 @@ export class AbstractDocInternalS4Type extends AbstractDataModelBase {
910
594
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
911
595
  }
912
596
  }
913
- // ------------------------------------------------------------------------
914
- // Process attributes.
915
597
  assert(!xml.hasAttributes(element));
916
- // ------------------------------------------------------------------------
917
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
918
- }
919
- }
920
- // ----------------------------------------------------------------------------
921
- // WARNING: should be "sect6"
922
- // <xsd:complexType name="docInternalS5Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
923
- // <xsd:sequence>
924
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
925
- // <xsd:element name="sect5" type="docSect6Type" minOccurs="0" maxOccurs="unbounded" />
926
- // </xsd:sequence>
927
- // </xsd:complexType>
598
+ }
599
+ }
928
600
  export class AbstractDocInternalS5Type extends AbstractDataModelBase {
929
- // Any sequence of them.
930
- // children: Array<string | ParaDataModel | Sect6DataModel> = []
931
601
  constructor(xml, element, elementName) {
932
602
  super(elementName);
933
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
934
- // ------------------------------------------------------------------------
935
- // Process elements.
936
603
  const innerElements = xml.getInnerElements(element, elementName);
937
604
  assert(innerElements.length > 0);
938
605
  this.children = [];
@@ -951,27 +618,12 @@ export class AbstractDocInternalS5Type extends AbstractDataModelBase {
951
618
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
952
619
  }
953
620
  }
954
- // ------------------------------------------------------------------------
955
- // Process attributes.
956
621
  assert(!xml.hasAttributes(element));
957
- // ------------------------------------------------------------------------
958
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
959
622
  }
960
623
  }
961
- // ----------------------------------------------------------------------------
962
- // <xsd:complexType name="docInternalS6Type" mixed="true"> <-- Character data is allowed to appear between the child elements!
963
- // <xsd:sequence>
964
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
965
- // </xsd:sequence>
966
- // </xsd:complexType>
967
624
  export class AbstractDocInternalS6Type extends AbstractDataModelBase {
968
- // Any sequence of them.
969
- // children: Array<string | ParaDataModel> = []
970
625
  constructor(xml, element, elementName) {
971
626
  super(elementName);
972
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
973
- // ------------------------------------------------------------------------
974
- // Process elements.
975
627
  const innerElements = xml.getInnerElements(element, elementName);
976
628
  assert(innerElements.length > 0);
977
629
  this.children = [];
@@ -987,16 +639,11 @@ export class AbstractDocInternalS6Type extends AbstractDataModelBase {
987
639
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
988
640
  }
989
641
  }
990
- // ------------------------------------------------------------------------
991
- // Process attributes.
992
642
  assert(!xml.hasAttributes(element));
993
- // ------------------------------------------------------------------------
994
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
995
643
  }
996
644
  }
997
645
  export function parseDocTitleCmdGroup(xml, element, elementName) {
998
646
  const children = [];
999
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
1000
647
  if (xml.hasInnerElement(element, 'ulink')) {
1001
648
  children.push(new UlinkDataModel(xml, element));
1002
649
  }
@@ -1037,29 +684,17 @@ export function parseDocTitleCmdGroup(xml, element, elementName) {
1037
684
  children.push(new HtmlOnlyDataModel(xml, element));
1038
685
  }
1039
686
  else if (xml.hasInnerElement(element, 'manonly')) {
1040
- // Skipped, no Man output.
1041
- // children.push(new ManOnlyDataModel(xml, element))
1042
687
  }
1043
688
  else if (xml.hasInnerElement(element, 'xmlonly')) {
1044
- // children.push(new XmlOnlyDataModel(xml, element))
1045
689
  }
1046
690
  else if (xml.hasInnerElement(element, 'rtfonly')) {
1047
- // Skipped, no RTF output.
1048
- // children.push(new RtfOnlyDataModel(xml, element))
1049
691
  }
1050
692
  else if (xml.hasInnerElement(element, 'latexonly')) {
1051
- // Skipped, no LaTeX output.
1052
- // children.push(new LatexOnlyDataModel(xml, element))
1053
693
  }
1054
694
  else if (xml.hasInnerElement(element, 'docbookonly')) {
1055
- // Skipped, no DocBook output.
1056
- // children.push(new DocBookOnlyDataModel(xml, element))
1057
695
  }
1058
696
  else if (xml.hasInnerElement(element, 'image')) {
1059
697
  children.push(new ImageDataModel(xml, element));
1060
- // dot
1061
- // msc
1062
- // plantuml
1063
698
  }
1064
699
  else if (xml.hasInnerElement(element, 'anchor')) {
1065
700
  children.push(new AnchorDataModel(xml, element));
@@ -1072,7 +707,6 @@ export function parseDocTitleCmdGroup(xml, element, elementName) {
1072
707
  }
1073
708
  else if (xml.hasInnerElement(element, 'emoji')) {
1074
709
  children.push(new EmojiDataModel(xml, element));
1075
- // Substring elements.
1076
710
  }
1077
711
  else if (xml.hasInnerElement(element, 'linebreak')) {
1078
712
  children.push(new LineBreakDataModel(xml, element));
@@ -1833,21 +1467,10 @@ export function parseDocTitleCmdGroup(xml, element, elementName) {
1833
1467
  }
1834
1468
  return children;
1835
1469
  }
1836
- // ----------------------------------------------------------------------------
1837
- // <xsd:complexType name="docTitleType" mixed="true"> <-- Character data is allowed to appear between the child elements!
1838
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
1839
- // </xsd:complexType>
1840
1470
  export class AbstractDocTitleType extends AbstractDataModelBase {
1841
- // Any sequence of them.
1842
- // children: Array<string | DocTitleCmdGroup> = []
1843
1471
  constructor(xml, element, elementName) {
1844
1472
  super(elementName);
1845
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
1846
- // ------------------------------------------------------------------------
1847
- // Process elements.
1848
1473
  const innerElements = xml.getInnerElements(element, elementName);
1849
- // May be empty.
1850
- // assert(innerElements.length > 0)
1851
1474
  this.children = [];
1852
1475
  for (const innerElement of innerElements) {
1853
1476
  if (xml.hasInnerText(innerElement)) {
@@ -1857,23 +1480,16 @@ export class AbstractDocTitleType extends AbstractDataModelBase {
1857
1480
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
1858
1481
  }
1859
1482
  }
1860
- // ------------------------------------------------------------------------
1861
- // Process attributes.
1862
1483
  assert(!xml.hasAttributes(element));
1863
- // ------------------------------------------------------------------------
1864
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
1865
1484
  }
1866
1485
  }
1867
1486
  function parseDocCmdGroup(xml, element, elementName) {
1868
1487
  const children = [];
1869
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
1870
1488
  if (xml.hasInnerElement(element, 'ulink')) {
1871
1489
  children.push(new UlinkDataModel(xml, element));
1872
1490
  }
1873
1491
  else if (xml.hasInnerElement(element, 'bold')) {
1874
1492
  children.push(new BoldDataModel(xml, element));
1875
- // s
1876
- // strike
1877
1493
  }
1878
1494
  else if (xml.hasInnerElement(element, 'underline')) {
1879
1495
  children.push(new UnderlineDataModel(xml, element));
@@ -1909,29 +1525,18 @@ function parseDocCmdGroup(xml, element, elementName) {
1909
1525
  children.push(new HtmlOnlyDataModel(xml, element));
1910
1526
  }
1911
1527
  else if (xml.hasInnerElement(element, 'manonly')) {
1912
- // Skipped, no Man output.
1913
- // children.push(new ManOnlyDataModel(xml, element))
1914
1528
  }
1915
1529
  else if (xml.hasInnerElement(element, 'xmlonly')) {
1916
- // children.push(new XmlOnlyDataModel(xml, element))
1917
1530
  }
1918
1531
  else if (xml.hasInnerElement(element, 'rtfonly')) {
1919
- // Skipped, no RTF output.
1920
- // children.push(new RtfOnlyDataModel(xml, element))
1921
1532
  }
1922
1533
  else if (xml.hasInnerElement(element, 'latexonly')) {
1923
- // Skipped, no LaTeX output.
1924
- // children.push(new LatexOnlyDataModel(xml, element))
1925
1534
  }
1926
1535
  else if (xml.hasInnerElement(element, 'docbookonly')) {
1927
- // Skipped, no DocBook output.
1928
1536
  children.push(new DocBookOnlyDataModel(xml, element));
1929
1537
  }
1930
1538
  else if (xml.hasInnerElement(element, 'image')) {
1931
1539
  children.push(new ImageDataModel(xml, element));
1932
- // dot
1933
- // msc
1934
- // plantuml
1935
1540
  }
1936
1541
  else if (xml.hasInnerElement(element, 'anchor')) {
1937
1542
  children.push(new AnchorDataModel(xml, element));
@@ -1944,8 +1549,6 @@ function parseDocCmdGroup(xml, element, elementName) {
1944
1549
  }
1945
1550
  else if (xml.hasInnerElement(element, 'emoji')) {
1946
1551
  children.push(new EmojiDataModel(xml, element));
1947
- // ----
1948
- // Substring elements.
1949
1552
  }
1950
1553
  else if (xml.hasInnerElement(element, 'linebreak')) {
1951
1554
  children.push(new LineBreakDataModel(xml, element));
@@ -2699,7 +2302,6 @@ function parseDocCmdGroup(xml, element, elementName) {
2699
2302
  }
2700
2303
  else if (xml.hasInnerElement(element, 'tm')) {
2701
2304
  children.push(new TmDocMarkupDataModel(xml, element));
2702
- // ----
2703
2305
  }
2704
2306
  else if (xml.hasInnerElement(element, 'hruler')) {
2705
2307
  children.push(new HrulerDataModel(xml, element));
@@ -2712,12 +2314,8 @@ function parseDocCmdGroup(xml, element, elementName) {
2712
2314
  }
2713
2315
  else if (xml.hasInnerElement(element, 'verbatim')) {
2714
2316
  children.push(new VerbatimDataModel(xml, element));
2715
- // javadocliteral
2716
- // javadoccode
2717
2317
  }
2718
2318
  else if (xml.hasInnerElement(element, 'indexentry')) {
2719
- // Skipped, no index rendered.
2720
- // children.push(new IndexEntryDataModel(xml, element))
2721
2319
  }
2722
2320
  else if (xml.hasInnerElement(element, 'orderedlist')) {
2723
2321
  children.push(new OrderedListDataModel(xml, element));
@@ -2727,7 +2325,6 @@ function parseDocCmdGroup(xml, element, elementName) {
2727
2325
  }
2728
2326
  else if (xml.hasInnerElement(element, 'simplesect')) {
2729
2327
  children.push(new SimpleSectDataModel(xml, element));
2730
- // title
2731
2328
  }
2732
2329
  else if (xml.hasInnerElement(element, 'variablelist')) {
2733
2330
  children.push(new VariableListDataModel(xml, element));
@@ -2737,26 +2334,18 @@ function parseDocCmdGroup(xml, element, elementName) {
2737
2334
  }
2738
2335
  else if (xml.hasInnerElement(element, 'heading')) {
2739
2336
  children.push(new HeadingDataModel(xml, element));
2740
- // dotfile
2741
- // mscfile
2742
- // dialfile
2743
- // plantumlfile
2744
2337
  }
2745
2338
  else if (xml.hasInnerElement(element, 'toclist')) {
2746
2339
  children.push(new TocListDataModel(xml, element));
2747
- // language
2748
2340
  }
2749
2341
  else if (xml.hasInnerElement(element, 'parameterlist')) {
2750
2342
  children.push(new ParameterListDataModel(xml, element));
2751
2343
  }
2752
2344
  else if (xml.hasInnerElement(element, 'xrefsect')) {
2753
2345
  children.push(new XrefSectDataModel(xml, element));
2754
- // copydoc
2755
- // details
2756
2346
  }
2757
2347
  else if (xml.hasInnerElement(element, 'blockquote')) {
2758
2348
  children.push(new BlockquoteDataModel(xml, element));
2759
- // parblock
2760
2349
  }
2761
2350
  else {
2762
2351
  console.error(util.inspect(element, { compact: false, depth: 999 }));
@@ -2764,19 +2353,10 @@ function parseDocCmdGroup(xml, element, elementName) {
2764
2353
  }
2765
2354
  return children;
2766
2355
  }
2767
- // ----------------------------------------------------------------------------
2768
- // <xsd:complexType name="docParaType" mixed="true"> <-- Character data is allowed to appear between the child elements!
2769
- // <xsd:group ref="docCmdGroup" minOccurs="0" maxOccurs="unbounded" />
2770
- // </xsd:complexType>
2771
2356
  export class AbstractDocParaType extends AbstractDataModelBase {
2772
- // children: Array<string | DocCmdGroup> = []
2773
2357
  constructor(xml, element, elementName) {
2774
2358
  super(elementName);
2775
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
2776
- // ------------------------------------------------------------------------
2777
- // Process elements.
2778
2359
  const innerElements = xml.getInnerElements(element, elementName);
2779
- // May be empty. Do not check children.length.
2780
2360
  this.children = [];
2781
2361
  for (const innerElement of innerElements) {
2782
2362
  if (xml.hasInnerText(innerElement)) {
@@ -2786,28 +2366,13 @@ export class AbstractDocParaType extends AbstractDataModelBase {
2786
2366
  this.children.push(...parseDocCmdGroup(xml, innerElement, elementName));
2787
2367
  }
2788
2368
  }
2789
- // ------------------------------------------------------------------------
2790
- // Process attributes.
2791
2369
  assert(!xml.hasAttributes(element));
2792
- // ------------------------------------------------------------------------
2793
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
2794
2370
  }
2795
2371
  }
2796
- // ----------------------------------------------------------------------------
2797
- // <xsd:complexType name="docMarkupType" mixed="true"> <-- Character data is allowed to appear between the child elements!
2798
- // <xsd:group ref="docCmdGroup" minOccurs="0" maxOccurs="unbounded" />
2799
- // </xsd:complexType>
2800
2372
  export class AbstractDocMarkupType extends AbstractDataModelBase {
2801
- // Any sequence of them.
2802
- // children: Array<string | DocCmdGroup> = []
2803
2373
  constructor(xml, element, elementName) {
2804
2374
  super(elementName);
2805
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
2806
- // ------------------------------------------------------------------------
2807
- // Process elements.
2808
2375
  const innerElements = xml.getInnerElements(element, elementName);
2809
- // SubstringDocMarkupType has no inner elments
2810
- // assert(innerElements.length > 0)
2811
2376
  this.children = [];
2812
2377
  for (const innerElement of innerElements) {
2813
2378
  if (xml.hasInnerText(innerElement)) {
@@ -2817,11 +2382,7 @@ export class AbstractDocMarkupType extends AbstractDataModelBase {
2817
2382
  this.children.push(...parseDocCmdGroup(xml, innerElement, elementName));
2818
2383
  }
2819
2384
  }
2820
- // ------------------------------------------------------------------------
2821
- // Process attributes.
2822
2385
  assert(!xml.hasAttributes(element));
2823
- // ------------------------------------------------------------------------
2824
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
2825
2386
  }
2826
2387
  }
2827
2388
  export class SubstringDocMarkupType extends AbstractDocMarkupType {
@@ -2831,1517 +2392,1255 @@ export class SubstringDocMarkupType extends AbstractDocMarkupType {
2831
2392
  this.substring = substring;
2832
2393
  }
2833
2394
  }
2834
- // <xsd:element name="mdash" type="docEmptyType" />
2835
- // <xsd:element name="lsquo" type="docEmptyType" />
2836
- // <xsd:element name="rsquo" type="docEmptyType" />
2837
- // copyright
2838
2395
  export class CopyDocMarkupDataModel extends SubstringDocMarkupType {
2839
2396
  constructor(xml, element) {
2840
2397
  super(xml, element, 'copy', '\u00A9');
2841
2398
  }
2842
2399
  }
2843
- // inverted exclamation mark
2844
2400
  export class IexclDocMarkupDataModel extends SubstringDocMarkupType {
2845
2401
  constructor(xml, element) {
2846
2402
  super(xml, element, 'iexcl', '\u00A1');
2847
2403
  }
2848
2404
  }
2849
- // cent
2850
2405
  export class CentDocMarkupDataModel extends SubstringDocMarkupType {
2851
2406
  constructor(xml, element) {
2852
2407
  super(xml, element, 'cent', '\u00A2');
2853
2408
  }
2854
2409
  }
2855
- // pound
2856
2410
  export class PoundDocMarkupDataModel extends SubstringDocMarkupType {
2857
2411
  constructor(xml, element) {
2858
2412
  super(xml, element, 'pound', '\u00A3');
2859
2413
  }
2860
2414
  }
2861
- // curren
2862
2415
  export class CurrenDocMarkupDataModel extends SubstringDocMarkupType {
2863
2416
  constructor(xml, element) {
2864
2417
  super(xml, element, 'curren', '\u00A4');
2865
2418
  }
2866
2419
  }
2867
- // yen
2868
2420
  export class YenDocMarkupDataModel extends SubstringDocMarkupType {
2869
2421
  constructor(xml, element) {
2870
2422
  super(xml, element, 'yen', '\u00A5');
2871
2423
  }
2872
2424
  }
2873
- // brvbar
2874
2425
  export class BrvbarDocMarkupDataModel extends SubstringDocMarkupType {
2875
2426
  constructor(xml, element) {
2876
2427
  super(xml, element, 'brvbar', '\u00A6');
2877
2428
  }
2878
2429
  }
2879
- // sect
2880
2430
  export class SectDocMarkupDataModel extends SubstringDocMarkupType {
2881
2431
  constructor(xml, element) {
2882
2432
  super(xml, element, 'sect', '\u00A7');
2883
2433
  }
2884
2434
  }
2885
- // umlaut (diaeresis)
2886
2435
  export class UmlautDocMarkupDataModel extends SubstringDocMarkupType {
2887
2436
  constructor(xml, element) {
2888
2437
  super(xml, element, 'umlaut', '\u00A8');
2889
2438
  }
2890
2439
  }
2891
- // Zero Width Non-Joiner
2892
2440
  export class NzwjDocMarkupDataModel extends SubstringDocMarkupType {
2893
2441
  constructor(xml, element) {
2894
2442
  super(xml, element, 'nzwj', '\u200C');
2895
2443
  }
2896
2444
  }
2897
- // Zero Width Joiner.
2898
2445
  export class ZwjDocMarkupDataModel extends SubstringDocMarkupType {
2899
2446
  constructor(xml, element) {
2900
2447
  super(xml, element, 'zwj', '\u200D');
2901
2448
  }
2902
2449
  }
2903
- // en dash.
2904
2450
  export class NdashDocMarkupDataModel extends SubstringDocMarkupType {
2905
2451
  constructor(xml, element) {
2906
- super(xml, element, 'ndash', '\u2013'); // '–'
2452
+ super(xml, element, 'ndash', '\u2013');
2907
2453
  }
2908
2454
  }
2909
- // em dash.
2910
2455
  export class MdashDocMarkupDataModel extends SubstringDocMarkupType {
2911
2456
  constructor(xml, element) {
2912
- super(xml, element, 'mdash', '\u2014'); // '—'
2457
+ super(xml, element, 'mdash', '\u2014');
2913
2458
  }
2914
2459
  }
2915
- // ordfeminine
2916
2460
  export class OrdfDocMarkupDataModel extends SubstringDocMarkupType {
2917
2461
  constructor(xml, element) {
2918
2462
  super(xml, element, 'ordf', '\u00AA');
2919
2463
  }
2920
2464
  }
2921
- // left-pointing double angle quotation mark
2922
2465
  export class LaquoDocMarkupDataModel extends SubstringDocMarkupType {
2923
2466
  constructor(xml, element) {
2924
2467
  super(xml, element, 'laquo', '\u00AB');
2925
2468
  }
2926
2469
  }
2927
- // not sign
2928
2470
  export class NotDocMarkupDataModel extends SubstringDocMarkupType {
2929
2471
  constructor(xml, element) {
2930
2472
  super(xml, element, 'not', '\u00AC');
2931
2473
  }
2932
2474
  }
2933
- // soft hyphen
2934
2475
  export class ShyDocMarkupDataModel extends SubstringDocMarkupType {
2935
2476
  constructor(xml, element) {
2936
2477
  super(xml, element, 'shy', '\u00AD');
2937
2478
  }
2938
2479
  }
2939
- // registered sign
2940
2480
  export class RegisteredDocMarkupDataModel extends SubstringDocMarkupType {
2941
2481
  constructor(xml, element) {
2942
2482
  super(xml, element, 'registered', '\u00AE');
2943
2483
  }
2944
2484
  }
2945
- // macron
2946
2485
  export class MacrDocMarkupDataModel extends SubstringDocMarkupType {
2947
2486
  constructor(xml, element) {
2948
2487
  super(xml, element, 'macr', '\u00AF');
2949
2488
  }
2950
2489
  }
2951
- // degree sign
2952
2490
  export class DegDocMarkupDataModel extends SubstringDocMarkupType {
2953
2491
  constructor(xml, element) {
2954
2492
  super(xml, element, 'deg', '\u00B0');
2955
2493
  }
2956
2494
  }
2957
- // plus-minus sign
2958
2495
  export class PlusmnDocMarkupDataModel extends SubstringDocMarkupType {
2959
2496
  constructor(xml, element) {
2960
2497
  super(xml, element, 'plusmn', '\u00B1');
2961
2498
  }
2962
2499
  }
2963
- // superscript two
2964
2500
  export class Sup2DocMarkupDataModel extends SubstringDocMarkupType {
2965
2501
  constructor(xml, element) {
2966
2502
  super(xml, element, 'sup2', '\u00B2');
2967
2503
  }
2968
2504
  }
2969
- // superscript three
2970
2505
  export class Sup3DocMarkupDataModel extends SubstringDocMarkupType {
2971
2506
  constructor(xml, element) {
2972
2507
  super(xml, element, 'sup3', '\u00B3');
2973
2508
  }
2974
2509
  }
2975
- // acute accent
2976
2510
  export class AcuteDocMarkupDataModel extends SubstringDocMarkupType {
2977
2511
  constructor(xml, element) {
2978
2512
  super(xml, element, 'acute', '\u00B4');
2979
2513
  }
2980
2514
  }
2981
- // micro sign
2982
2515
  export class MicroDocMarkupDataModel extends SubstringDocMarkupType {
2983
2516
  constructor(xml, element) {
2984
2517
  super(xml, element, 'micro', '\u00B5');
2985
2518
  }
2986
2519
  }
2987
- // pilcrow/paragraph sign
2988
2520
  export class ParaDocMarkupDataModel extends SubstringDocMarkupType {
2989
2521
  constructor(xml, element) {
2990
2522
  super(xml, element, 'para', '\u00B6');
2991
2523
  }
2992
2524
  }
2993
- // middle dot
2994
2525
  export class MiddotDocMarkupDataModel extends SubstringDocMarkupType {
2995
2526
  constructor(xml, element) {
2996
2527
  super(xml, element, 'middot', '\u00B7');
2997
2528
  }
2998
2529
  }
2999
- // cedilla
3000
2530
  export class CedilDocMarkupDataModel extends SubstringDocMarkupType {
3001
2531
  constructor(xml, element) {
3002
2532
  super(xml, element, 'cedil', '\u00B8');
3003
2533
  }
3004
2534
  }
3005
- // superscript one
3006
2535
  export class Sup1DocMarkupDataModel extends SubstringDocMarkupType {
3007
2536
  constructor(xml, element) {
3008
2537
  super(xml, element, 'sup1', '\u00B9');
3009
2538
  }
3010
2539
  }
3011
- // masculine ordinal indicator
3012
2540
  export class OrdmDocMarkupDataModel extends SubstringDocMarkupType {
3013
2541
  constructor(xml, element) {
3014
2542
  super(xml, element, 'ordm', '\u00BA');
3015
2543
  }
3016
2544
  }
3017
- // right-pointing double angle quotation mark
3018
2545
  export class RaquoDocMarkupDataModel extends SubstringDocMarkupType {
3019
2546
  constructor(xml, element) {
3020
2547
  super(xml, element, 'raquo', '\u00BB');
3021
2548
  }
3022
2549
  }
3023
- // fraction one quarter
3024
2550
  export class Frac14DocMarkupDataModel extends SubstringDocMarkupType {
3025
2551
  constructor(xml, element) {
3026
2552
  super(xml, element, 'frac14', '\u00BC');
3027
2553
  }
3028
2554
  }
3029
- // fraction one half
3030
2555
  export class Frac12DocMarkupDataModel extends SubstringDocMarkupType {
3031
2556
  constructor(xml, element) {
3032
2557
  super(xml, element, 'frac12', '\u00BD');
3033
2558
  }
3034
2559
  }
3035
- // fraction three quarters
3036
2560
  export class Frac34DocMarkupDataModel extends SubstringDocMarkupType {
3037
2561
  constructor(xml, element) {
3038
2562
  super(xml, element, 'frac34', '\u00BE');
3039
2563
  }
3040
2564
  }
3041
- // inverted question mark
3042
2565
  export class IquestDocMarkupDataModel extends SubstringDocMarkupType {
3043
2566
  constructor(xml, element) {
3044
2567
  super(xml, element, 'iquest', '\u00BF');
3045
2568
  }
3046
2569
  }
3047
- // Latin capital letter A with grave
3048
2570
  export class AgraveDocMarkupDataModel extends SubstringDocMarkupType {
3049
2571
  constructor(xml, element) {
3050
2572
  super(xml, element, 'Agrave', '\u00C0');
3051
2573
  }
3052
2574
  }
3053
- // Latin capital letter A with acute
3054
2575
  export class AacuteDocMarkupDataModel extends SubstringDocMarkupType {
3055
2576
  constructor(xml, element) {
3056
2577
  super(xml, element, 'Aacute', '\u00C1');
3057
2578
  }
3058
2579
  }
3059
- // Latin capital letter A with circumflex
3060
2580
  export class AcircDocMarkupDataModel extends SubstringDocMarkupType {
3061
2581
  constructor(xml, element) {
3062
2582
  super(xml, element, 'Acirc', '\u00C2');
3063
2583
  }
3064
2584
  }
3065
- // Latin capital letter A with tilde
3066
2585
  export class AtildeDocMarkupDataModel extends SubstringDocMarkupType {
3067
2586
  constructor(xml, element) {
3068
2587
  super(xml, element, 'Atilde', '\u00C3');
3069
2588
  }
3070
2589
  }
3071
- // Latin capital letter A with diaeresis (umlaut)
3072
2590
  export class AumlautDocMarkupDataModel extends SubstringDocMarkupType {
3073
2591
  constructor(xml, element) {
3074
2592
  super(xml, element, 'Aumlaut', '\u00C4');
3075
2593
  }
3076
2594
  }
3077
- // Latin capital letter A with ring above
3078
2595
  export class AringDocMarkupDataModel extends SubstringDocMarkupType {
3079
2596
  constructor(xml, element) {
3080
2597
  super(xml, element, 'Aring', '\u00C5');
3081
2598
  }
3082
2599
  }
3083
- // Latin capital letter AE
3084
2600
  export class AEligDocMarkupDataModel extends SubstringDocMarkupType {
3085
2601
  constructor(xml, element) {
3086
2602
  super(xml, element, 'AElig', '\u00C6');
3087
2603
  }
3088
2604
  }
3089
- // Latin capital letter C with cedilla
3090
2605
  export class CcedilDocMarkupDataModel extends SubstringDocMarkupType {
3091
2606
  constructor(xml, element) {
3092
2607
  super(xml, element, 'Ccedil', '\u00C7');
3093
2608
  }
3094
2609
  }
3095
- // Latin capital letter E with grave
3096
2610
  export class EgraveDocMarkupDataModel extends SubstringDocMarkupType {
3097
2611
  constructor(xml, element) {
3098
2612
  super(xml, element, 'Egrave', '\u00C8');
3099
2613
  }
3100
2614
  }
3101
- // Latin capital letter E with acute
3102
2615
  export class EacuteDocMarkupDataModel extends SubstringDocMarkupType {
3103
2616
  constructor(xml, element) {
3104
2617
  super(xml, element, 'Eacute', '\u00C9');
3105
2618
  }
3106
2619
  }
3107
- // Latin capital letter E with circumflex
3108
2620
  export class EcircDocMarkupDataModel extends SubstringDocMarkupType {
3109
2621
  constructor(xml, element) {
3110
2622
  super(xml, element, 'Ecirc', '\u00CA');
3111
2623
  }
3112
2624
  }
3113
- // Latin capital letter E with diaeresis (umlaut)
3114
2625
  export class EumlautDocMarkupDataModel extends SubstringDocMarkupType {
3115
2626
  constructor(xml, element) {
3116
2627
  super(xml, element, 'Eumlaut', '\u00CB');
3117
2628
  }
3118
2629
  }
3119
- // Latin capital letter I with grave
3120
2630
  export class IgraveDocMarkupDataModel extends SubstringDocMarkupType {
3121
2631
  constructor(xml, element) {
3122
2632
  super(xml, element, 'Igrave', '\u00CC');
3123
2633
  }
3124
2634
  }
3125
- // Latin capital letter I with acute
3126
2635
  export class IacuteDocMarkupDataModel extends SubstringDocMarkupType {
3127
2636
  constructor(xml, element) {
3128
2637
  super(xml, element, 'Iacute', '\u00CD');
3129
2638
  }
3130
2639
  }
3131
- // Latin capital letter I with circumflex
3132
2640
  export class IcircDocMarkupDataModel extends SubstringDocMarkupType {
3133
2641
  constructor(xml, element) {
3134
2642
  super(xml, element, 'Icirc', '\u00CE');
3135
2643
  }
3136
2644
  }
3137
- // Latin capital letter I with diaeresis (umlaut)
3138
2645
  export class IumlautDocMarkupDataModel extends SubstringDocMarkupType {
3139
2646
  constructor(xml, element) {
3140
2647
  super(xml, element, 'Iumlaut', '\u00CF');
3141
2648
  }
3142
2649
  }
3143
- // Latin capital letter ETH
3144
2650
  export class ETHDocMarkupDataModel extends SubstringDocMarkupType {
3145
2651
  constructor(xml, element) {
3146
2652
  super(xml, element, 'ETH', '\u00D0');
3147
2653
  }
3148
2654
  }
3149
- // Latin capital letter N with tilde
3150
2655
  export class NtildeDocMarkupDataModel extends SubstringDocMarkupType {
3151
2656
  constructor(xml, element) {
3152
2657
  super(xml, element, 'Ntilde', '\u00D1');
3153
2658
  }
3154
2659
  }
3155
- // Latin capital letter O with grave
3156
2660
  export class OgraveDocMarkupDataModel extends SubstringDocMarkupType {
3157
2661
  constructor(xml, element) {
3158
2662
  super(xml, element, 'Ograve', '\u00D2');
3159
2663
  }
3160
2664
  }
3161
- // Latin capital letter O with acute
3162
2665
  export class OacuteDocMarkupDataModel extends SubstringDocMarkupType {
3163
2666
  constructor(xml, element) {
3164
2667
  super(xml, element, 'Oacute', '\u00D3');
3165
2668
  }
3166
2669
  }
3167
- // Latin capital letter O with circumflex
3168
2670
  export class OcircDocMarkupDataModel extends SubstringDocMarkupType {
3169
2671
  constructor(xml, element) {
3170
2672
  super(xml, element, 'Ocirc', '\u00D4');
3171
2673
  }
3172
2674
  }
3173
- // Latin capital letter O with tilde
3174
2675
  export class OtildeDocMarkupDataModel extends SubstringDocMarkupType {
3175
2676
  constructor(xml, element) {
3176
2677
  super(xml, element, 'Otilde', '\u00D5');
3177
2678
  }
3178
2679
  }
3179
- // Latin capital letter O with diaeresis (umlaut)
3180
2680
  export class OumlautDocMarkupDataModel extends SubstringDocMarkupType {
3181
2681
  constructor(xml, element) {
3182
2682
  super(xml, element, 'Oumlaut', '\u00D6');
3183
2683
  }
3184
2684
  }
3185
- // multiplication sign
3186
2685
  export class TimesDocMarkupDataModel extends SubstringDocMarkupType {
3187
2686
  constructor(xml, element) {
3188
2687
  super(xml, element, 'times', '\u00D7');
3189
2688
  }
3190
2689
  }
3191
- // Latin capital letter O with stroke
3192
2690
  export class OslashDocMarkupDataModel extends SubstringDocMarkupType {
3193
2691
  constructor(xml, element) {
3194
2692
  super(xml, element, 'Oslash', '\u00D8');
3195
2693
  }
3196
2694
  }
3197
- // Latin capital letter U with grave
3198
2695
  export class UgraveDocMarkupDataModel extends SubstringDocMarkupType {
3199
2696
  constructor(xml, element) {
3200
2697
  super(xml, element, 'Ugrave', '\u00D9');
3201
2698
  }
3202
2699
  }
3203
- // Latin capital letter U with acute
3204
2700
  export class UacuteDocMarkupDataModel extends SubstringDocMarkupType {
3205
2701
  constructor(xml, element) {
3206
2702
  super(xml, element, 'Uacute', '\u00DA');
3207
2703
  }
3208
2704
  }
3209
- // Latin capital letter U with circumflex
3210
2705
  export class UcircDocMarkupDataModel extends SubstringDocMarkupType {
3211
2706
  constructor(xml, element) {
3212
2707
  super(xml, element, 'Ucirc', '\u00DB');
3213
2708
  }
3214
2709
  }
3215
- // Latin capital letter U with diaeresis (umlaut)
3216
2710
  export class UumlautDocMarkupDataModel extends SubstringDocMarkupType {
3217
2711
  constructor(xml, element) {
3218
2712
  super(xml, element, 'Uumlaut', '\u00DC');
3219
2713
  }
3220
2714
  }
3221
- // Latin capital letter Y with acute
3222
2715
  export class YacuteDocMarkupDataModel extends SubstringDocMarkupType {
3223
2716
  constructor(xml, element) {
3224
2717
  super(xml, element, 'Yacute', '\u00DD');
3225
2718
  }
3226
2719
  }
3227
- // Latin capital letter Thorn
3228
2720
  export class THORNDocMarkupDataModel extends SubstringDocMarkupType {
3229
2721
  constructor(xml, element) {
3230
2722
  super(xml, element, 'THORN', '\u00DE');
3231
2723
  }
3232
2724
  }
3233
- // Latin small letter sharp s (eszett)
3234
2725
  export class SzligDocMarkupDataModel extends SubstringDocMarkupType {
3235
2726
  constructor(xml, element) {
3236
2727
  super(xml, element, 'szlig', '\u00DF');
3237
2728
  }
3238
2729
  }
3239
- // Latin small letter a with grave
3240
2730
  export class AgraveSmallDocMarkupDataModel extends SubstringDocMarkupType {
3241
2731
  constructor(xml, element) {
3242
2732
  super(xml, element, 'agrave', '\u00E0');
3243
2733
  }
3244
2734
  }
3245
- // Latin small letter a with acute
3246
2735
  export class AacuteSmallDocMarkupDataModel extends SubstringDocMarkupType {
3247
2736
  constructor(xml, element) {
3248
2737
  super(xml, element, 'aacute', '\u00E1');
3249
2738
  }
3250
2739
  }
3251
- // Latin small letter a with circumflex
3252
2740
  export class AcircSmallDocMarkupDataModel extends SubstringDocMarkupType {
3253
2741
  constructor(xml, element) {
3254
2742
  super(xml, element, 'acirc', '\u00E2');
3255
2743
  }
3256
2744
  }
3257
- // Latin small letter a with tilde
3258
2745
  export class AtildeSmallDocMarkupType extends SubstringDocMarkupType {
3259
2746
  constructor(xml, element) {
3260
2747
  super(xml, element, 'atilde', '\u00E3');
3261
2748
  }
3262
2749
  }
3263
- // Latin small letter a with diaeresis (umlaut)
3264
2750
  export class AumlautSmallDocMarkupDataModel extends SubstringDocMarkupType {
3265
2751
  constructor(xml, element) {
3266
2752
  super(xml, element, 'aumlaut', '\u00E4');
3267
2753
  }
3268
2754
  }
3269
- // Latin small letter a with ring above
3270
2755
  export class AringSmallDocMarkupDataModel extends SubstringDocMarkupType {
3271
2756
  constructor(xml, element) {
3272
2757
  super(xml, element, 'aring', '\u00E5');
3273
2758
  }
3274
2759
  }
3275
- // Latin small letter ae
3276
2760
  export class AeligSmallDocMarkupDataModel extends SubstringDocMarkupType {
3277
2761
  constructor(xml, element) {
3278
2762
  super(xml, element, 'aelig', '\u00E6');
3279
2763
  }
3280
2764
  }
3281
- // Latin small letter c with cedilla
3282
2765
  export class CcedilSmallDocMarkupDataModel extends SubstringDocMarkupType {
3283
2766
  constructor(xml, element) {
3284
2767
  super(xml, element, 'ccedil', '\u00E7');
3285
2768
  }
3286
2769
  }
3287
- // Latin small letter e with grave
3288
2770
  export class EgraveSmallDocMarkupDataModel extends SubstringDocMarkupType {
3289
2771
  constructor(xml, element) {
3290
2772
  super(xml, element, 'egrave', '\u00E8');
3291
2773
  }
3292
2774
  }
3293
- // Latin small letter e with acute
3294
2775
  export class EacuteSmallDocMarkupDataModel extends SubstringDocMarkupType {
3295
2776
  constructor(xml, element) {
3296
2777
  super(xml, element, 'eacute', '\u00E9');
3297
2778
  }
3298
2779
  }
3299
- // Latin small letter e with circumflex
3300
2780
  export class EcircSmallDocMarkupDataModel extends SubstringDocMarkupType {
3301
2781
  constructor(xml, element) {
3302
2782
  super(xml, element, 'ecirc', '\u00EA');
3303
2783
  }
3304
2784
  }
3305
- // Latin small letter e with diaeresis (umlaut)
3306
2785
  export class EumlautSmallDocMarkupDataModel extends SubstringDocMarkupType {
3307
2786
  constructor(xml, element) {
3308
2787
  super(xml, element, 'eumlaut', '\u00EB');
3309
2788
  }
3310
2789
  }
3311
- // Latin small letter i with grave
3312
2790
  export class IgraveSmallDocMarkupDataModel extends SubstringDocMarkupType {
3313
2791
  constructor(xml, element) {
3314
2792
  super(xml, element, 'igrave', '\u00EC');
3315
2793
  }
3316
2794
  }
3317
- // Latin small letter i with acute
3318
2795
  export class IacuteSmallDocMarkupDataModel extends SubstringDocMarkupType {
3319
2796
  constructor(xml, element) {
3320
2797
  super(xml, element, 'iacute', '\u00ED');
3321
2798
  }
3322
2799
  }
3323
- // Latin small letter i with circumflex
3324
2800
  export class IcircSmallDocMarkupDataModel extends SubstringDocMarkupType {
3325
2801
  constructor(xml, element) {
3326
2802
  super(xml, element, 'icirc', '\u00EE');
3327
2803
  }
3328
2804
  }
3329
- // Latin small letter i with diaeresis (umlaut)
3330
2805
  export class IumlautSmallDocMarkupDataModel extends SubstringDocMarkupType {
3331
2806
  constructor(xml, element) {
3332
2807
  super(xml, element, 'iumlaut', '\u00EF');
3333
2808
  }
3334
2809
  }
3335
- // Latin small letter eth
3336
2810
  export class EthSmallDocMarkupDataModel extends SubstringDocMarkupType {
3337
2811
  constructor(xml, element) {
3338
2812
  super(xml, element, 'eth', '\u00F0');
3339
2813
  }
3340
2814
  }
3341
- // Latin small letter n with tilde
3342
2815
  export class NtildeSmallDocMarkupDataModel extends SubstringDocMarkupType {
3343
2816
  constructor(xml, element) {
3344
2817
  super(xml, element, 'ntilde', '\u00F1');
3345
2818
  }
3346
2819
  }
3347
- // Latin small letter o with grave
3348
2820
  export class OgraveSmallDocMarkupDataModel extends SubstringDocMarkupType {
3349
2821
  constructor(xml, element) {
3350
2822
  super(xml, element, 'ograve', '\u00F2');
3351
2823
  }
3352
2824
  }
3353
- // Latin small letter o with acute
3354
2825
  export class OacuteSmallDocMarkupDataModel extends SubstringDocMarkupType {
3355
2826
  constructor(xml, element) {
3356
2827
  super(xml, element, 'oacute', '\u00F3');
3357
2828
  }
3358
2829
  }
3359
- // Latin small letter o with circumflex
3360
2830
  export class OcircSmallDocMarkupDataModel extends SubstringDocMarkupType {
3361
2831
  constructor(xml, element) {
3362
2832
  super(xml, element, 'ocirc', '\u00F4');
3363
2833
  }
3364
2834
  }
3365
- // Latin small letter o with tilde
3366
2835
  export class OtildeSmallDocMarkupDataModel extends SubstringDocMarkupType {
3367
2836
  constructor(xml, element) {
3368
2837
  super(xml, element, 'otilde', '\u00F5');
3369
2838
  }
3370
2839
  }
3371
- // Latin small letter o with diaeresis (umlaut)
3372
2840
  export class OumlautSmallDocMarkupDataModel extends SubstringDocMarkupType {
3373
2841
  constructor(xml, element) {
3374
2842
  super(xml, element, 'oumlaut', '\u00F6');
3375
2843
  }
3376
2844
  }
3377
- // division sign
3378
2845
  export class DivideDocMarkupDataModel extends SubstringDocMarkupType {
3379
2846
  constructor(xml, element) {
3380
2847
  super(xml, element, 'divide', '\u00F7');
3381
2848
  }
3382
2849
  }
3383
- // Latin small letter o with stroke
3384
2850
  export class OslashSmallDocMarkupDataModel extends SubstringDocMarkupType {
3385
2851
  constructor(xml, element) {
3386
2852
  super(xml, element, 'oslash', '\u00F8');
3387
2853
  }
3388
2854
  }
3389
- // Latin small letter u with grave
3390
2855
  export class UgraveSmallDocMarkupDataModel extends SubstringDocMarkupType {
3391
2856
  constructor(xml, element) {
3392
2857
  super(xml, element, 'ugrave', '\u00F9');
3393
2858
  }
3394
2859
  }
3395
- // Latin small letter u with acute
3396
2860
  export class UacuteSmallDocMarkupDataModel extends SubstringDocMarkupType {
3397
2861
  constructor(xml, element) {
3398
2862
  super(xml, element, 'uacute', '\u00FA');
3399
2863
  }
3400
2864
  }
3401
- // Latin small letter u with circumflex
3402
2865
  export class UcircSmallDocMarkupDataModel extends SubstringDocMarkupType {
3403
2866
  constructor(xml, element) {
3404
2867
  super(xml, element, 'ucirc', '\u00FB');
3405
2868
  }
3406
2869
  }
3407
- // Latin small letter u with diaeresis (umlaut)
3408
2870
  export class UumlautSmallDocMarkupDataModel extends SubstringDocMarkupType {
3409
2871
  constructor(xml, element) {
3410
2872
  super(xml, element, 'uumlaut', '\u00FC');
3411
2873
  }
3412
2874
  }
3413
- // Latin small letter y with acute
3414
2875
  export class YacuteSmallDocMarkupDataModel extends SubstringDocMarkupType {
3415
2876
  constructor(xml, element) {
3416
2877
  super(xml, element, 'yacute', '\u00FD');
3417
2878
  }
3418
2879
  }
3419
- // Latin small letter thorn
3420
2880
  export class ThornSmallDocMarkupDataModel extends SubstringDocMarkupType {
3421
2881
  constructor(xml, element) {
3422
2882
  super(xml, element, 'thorn', '\u00FE');
3423
2883
  }
3424
2884
  }
3425
- // Latin small letter y with diaeresis (umlaut)
3426
2885
  export class YumlautSmallDocMarkupDataModel extends SubstringDocMarkupType {
3427
2886
  constructor(xml, element) {
3428
2887
  super(xml, element, 'yumlaut', '\u00FF');
3429
2888
  }
3430
2889
  }
3431
- // Latin small letter f with hook (function)
3432
2890
  export class FnofDocMarkupDataModel extends SubstringDocMarkupType {
3433
2891
  constructor(xml, element) {
3434
2892
  super(xml, element, 'fnof', '\u0192');
3435
2893
  }
3436
2894
  }
3437
- // Greek capital letter Alpha
3438
2895
  export class AlphaDocMarkupDataModel extends SubstringDocMarkupType {
3439
2896
  constructor(xml, element) {
3440
2897
  super(xml, element, 'Alpha', '\u0391');
3441
2898
  }
3442
2899
  }
3443
- // Greek capital letter Beta
3444
2900
  export class BetaDocMarkupDataModel extends SubstringDocMarkupType {
3445
2901
  constructor(xml, element) {
3446
2902
  super(xml, element, 'Beta', '\u0392');
3447
2903
  }
3448
2904
  }
3449
- // Greek capital letter Gamma
3450
2905
  export class GammaDocMarkupDataModel extends SubstringDocMarkupType {
3451
2906
  constructor(xml, element) {
3452
2907
  super(xml, element, 'Gamma', '\u0393');
3453
2908
  }
3454
2909
  }
3455
- // Greek capital letter Delta
3456
2910
  export class DeltaDocMarkupDataModel extends SubstringDocMarkupType {
3457
2911
  constructor(xml, element) {
3458
2912
  super(xml, element, 'Delta', '\u0394');
3459
2913
  }
3460
2914
  }
3461
- // Greek capital letter Epsilon
3462
2915
  export class EpsilonDocMarkupDataModel extends SubstringDocMarkupType {
3463
2916
  constructor(xml, element) {
3464
2917
  super(xml, element, 'Epsilon', '\u0395');
3465
2918
  }
3466
2919
  }
3467
- // Greek capital letter Zeta
3468
2920
  export class ZetaDocMarkupDataModel extends SubstringDocMarkupType {
3469
2921
  constructor(xml, element) {
3470
2922
  super(xml, element, 'Zeta', '\u0396');
3471
2923
  }
3472
2924
  }
3473
- // Greek capital letter Eta
3474
2925
  export class EtaDocMarkupDataModel extends SubstringDocMarkupType {
3475
2926
  constructor(xml, element) {
3476
2927
  super(xml, element, 'Eta', '\u0397');
3477
2928
  }
3478
2929
  }
3479
- // Greek capital letter Theta
3480
2930
  export class ThetaDocMarkupDataModel extends SubstringDocMarkupType {
3481
2931
  constructor(xml, element) {
3482
2932
  super(xml, element, 'Theta', '\u0398');
3483
2933
  }
3484
2934
  }
3485
- // Greek capital letter Iota
3486
2935
  export class IotaDocMarkupDataModel extends SubstringDocMarkupType {
3487
2936
  constructor(xml, element) {
3488
2937
  super(xml, element, 'Iota', '\u0399');
3489
2938
  }
3490
2939
  }
3491
- // Greek capital letter Kappa
3492
2940
  export class KappaDocMarkupDataModel extends SubstringDocMarkupType {
3493
2941
  constructor(xml, element) {
3494
2942
  super(xml, element, 'Kappa', '\u039A');
3495
2943
  }
3496
2944
  }
3497
- // Greek capital letter Lambda
3498
2945
  export class LambdaDocMarkupDataModel extends SubstringDocMarkupType {
3499
2946
  constructor(xml, element) {
3500
2947
  super(xml, element, 'Lambda', '\u039B');
3501
2948
  }
3502
2949
  }
3503
- // Greek capital letter Mu
3504
2950
  export class MuDocMarkupDataModel extends SubstringDocMarkupType {
3505
2951
  constructor(xml, element) {
3506
2952
  super(xml, element, 'Mu', '\u039C');
3507
2953
  }
3508
2954
  }
3509
- // Greek capital letter Nu
3510
2955
  export class NuDocMarkupDataModel extends SubstringDocMarkupType {
3511
2956
  constructor(xml, element) {
3512
2957
  super(xml, element, 'Nu', '\u039D');
3513
2958
  }
3514
2959
  }
3515
- // Greek capital letter Xi
3516
2960
  export class XiDocMarkupDataModel extends SubstringDocMarkupType {
3517
2961
  constructor(xml, element) {
3518
2962
  super(xml, element, 'Xi', '\u039E');
3519
2963
  }
3520
2964
  }
3521
- // Greek capital letter Omicron
3522
2965
  export class OmicronDocMarkupDataModel extends SubstringDocMarkupType {
3523
2966
  constructor(xml, element) {
3524
2967
  super(xml, element, 'Omicron', '\u039F');
3525
2968
  }
3526
2969
  }
3527
- // Greek capital letter Pi
3528
2970
  export class PiDocMarkupDataModel extends SubstringDocMarkupType {
3529
2971
  constructor(xml, element) {
3530
2972
  super(xml, element, 'Pi', '\u03A0');
3531
2973
  }
3532
2974
  }
3533
- // Greek capital letter Rho
3534
2975
  export class RhoDocMarkupDataModel extends SubstringDocMarkupType {
3535
2976
  constructor(xml, element) {
3536
2977
  super(xml, element, 'Rho', '\u03A1');
3537
2978
  }
3538
2979
  }
3539
- // Greek capital letter Sigma
3540
2980
  export class SigmaDocMarkupDataModel extends SubstringDocMarkupType {
3541
2981
  constructor(xml, element) {
3542
2982
  super(xml, element, 'Sigma', '\u03A3');
3543
2983
  }
3544
2984
  }
3545
- // Greek capital letter Tau
3546
2985
  export class TauDocMarkupDataModel extends SubstringDocMarkupType {
3547
2986
  constructor(xml, element) {
3548
2987
  super(xml, element, 'Tau', '\u03A4');
3549
2988
  }
3550
2989
  }
3551
- // Greek capital letter Upsilon
3552
2990
  export class UpsilonDocMarkupDataModel extends SubstringDocMarkupType {
3553
2991
  constructor(xml, element) {
3554
2992
  super(xml, element, 'Upsilon', '\u03A5');
3555
2993
  }
3556
2994
  }
3557
- // Greek capital letter Phi
3558
2995
  export class PhiDocMarkupDataModel extends SubstringDocMarkupType {
3559
2996
  constructor(xml, element) {
3560
2997
  super(xml, element, 'Phi', '\u03A6');
3561
2998
  }
3562
2999
  }
3563
- // Greek capital letter Chi
3564
3000
  export class ChiDocMarkupDataModel extends SubstringDocMarkupType {
3565
3001
  constructor(xml, element) {
3566
3002
  super(xml, element, 'Chi', '\u03A7');
3567
3003
  }
3568
3004
  }
3569
- // Greek capital letter Psi
3570
3005
  export class PsiDocMarkupDataModel extends SubstringDocMarkupType {
3571
3006
  constructor(xml, element) {
3572
3007
  super(xml, element, 'Psi', '\u03A8');
3573
3008
  }
3574
3009
  }
3575
- // Greek capital letter Omega
3576
3010
  export class OmegaDocMarkupDataModel extends SubstringDocMarkupType {
3577
3011
  constructor(xml, element) {
3578
3012
  super(xml, element, 'Omega', '\u03A9');
3579
3013
  }
3580
3014
  }
3581
- // Greek small letter alpha
3582
3015
  export class AlphaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3583
3016
  constructor(xml, element) {
3584
3017
  super(xml, element, 'alpha', '\u03B1');
3585
3018
  }
3586
3019
  }
3587
- // Greek small letter beta
3588
3020
  export class BetaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3589
3021
  constructor(xml, element) {
3590
3022
  super(xml, element, 'beta', '\u03B2');
3591
3023
  }
3592
3024
  }
3593
- // Greek small letter gamma
3594
3025
  export class GammaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3595
3026
  constructor(xml, element) {
3596
3027
  super(xml, element, 'gamma', '\u03B3');
3597
3028
  }
3598
3029
  }
3599
- // Greek small letter delta
3600
3030
  export class DeltaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3601
3031
  constructor(xml, element) {
3602
3032
  super(xml, element, 'delta', '\u03B4');
3603
3033
  }
3604
3034
  }
3605
- // Greek small letter epsilon
3606
3035
  export class EpsilonSmallDocMarkupDataModel extends SubstringDocMarkupType {
3607
3036
  constructor(xml, element) {
3608
3037
  super(xml, element, 'epsilon', '\u03B5');
3609
3038
  }
3610
3039
  }
3611
- // Greek small letter zeta
3612
3040
  export class ZetaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3613
3041
  constructor(xml, element) {
3614
3042
  super(xml, element, 'zeta', '\u03B6');
3615
3043
  }
3616
3044
  }
3617
- // Greek small letter eta
3618
3045
  export class EtaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3619
3046
  constructor(xml, element) {
3620
3047
  super(xml, element, 'eta', '\u03B7');
3621
3048
  }
3622
3049
  }
3623
- // Greek small letter theta
3624
3050
  export class ThetaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3625
3051
  constructor(xml, element) {
3626
3052
  super(xml, element, 'theta', '\u03B8');
3627
3053
  }
3628
3054
  }
3629
- // Greek small letter iota
3630
3055
  export class IotaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3631
3056
  constructor(xml, element) {
3632
3057
  super(xml, element, 'iota', '\u03B9');
3633
3058
  }
3634
3059
  }
3635
- // Greek small letter kappa
3636
3060
  export class KappaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3637
3061
  constructor(xml, element) {
3638
3062
  super(xml, element, 'kappa', '\u03BA');
3639
3063
  }
3640
3064
  }
3641
- // Greek small letter lambda
3642
3065
  export class LambdaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3643
3066
  constructor(xml, element) {
3644
3067
  super(xml, element, 'lambda', '\u03BB');
3645
3068
  }
3646
3069
  }
3647
- // Greek small letter mu
3648
3070
  export class MuSmallDocMarkupDataModel extends SubstringDocMarkupType {
3649
3071
  constructor(xml, element) {
3650
3072
  super(xml, element, 'mu', '\u03BC');
3651
3073
  }
3652
3074
  }
3653
- // Greek small letter nu
3654
3075
  export class NuSmallDocMarkupDataModel extends SubstringDocMarkupType {
3655
3076
  constructor(xml, element) {
3656
3077
  super(xml, element, 'nu', '\u03BD');
3657
3078
  }
3658
3079
  }
3659
- // Greek small letter xi
3660
3080
  export class XiSmallDocMarkupDataModel extends SubstringDocMarkupType {
3661
3081
  constructor(xml, element) {
3662
3082
  super(xml, element, 'xi', '\u03BE');
3663
3083
  }
3664
3084
  }
3665
- // Greek small letter omicron
3666
3085
  export class OmicronSmallDocMarkupDataModel extends SubstringDocMarkupType {
3667
3086
  constructor(xml, element) {
3668
3087
  super(xml, element, 'omicron', '\u03BF');
3669
3088
  }
3670
3089
  }
3671
- // Greek small letter pi
3672
3090
  export class PiSmallDocMarkupDataModel extends SubstringDocMarkupType {
3673
3091
  constructor(xml, element) {
3674
3092
  super(xml, element, 'pi', '\u03C0');
3675
3093
  }
3676
3094
  }
3677
- // Greek small letter rho
3678
3095
  export class RhoSmallDocMarkupDataModel extends SubstringDocMarkupType {
3679
3096
  constructor(xml, element) {
3680
3097
  super(xml, element, 'rho', '\u03C1');
3681
3098
  }
3682
3099
  }
3683
- // Greek small letter sigma
3684
3100
  export class SigmaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3685
3101
  constructor(xml, element) {
3686
3102
  super(xml, element, 'sigma', '\u03C3');
3687
3103
  }
3688
3104
  }
3689
- // Greek small letter sigmaf
3690
3105
  export class SigmafSmallDocMarkupDataModel extends SubstringDocMarkupType {
3691
3106
  constructor(xml, element) {
3692
3107
  super(xml, element, 'sigmaf', '\u03C2');
3693
3108
  }
3694
3109
  }
3695
- // Greek small letter tau
3696
3110
  export class TauSmallDocMarkupDataModel extends SubstringDocMarkupType {
3697
3111
  constructor(xml, element) {
3698
3112
  super(xml, element, 'tau', '\u03C4');
3699
3113
  }
3700
3114
  }
3701
- // Greek small letter upsilon
3702
3115
  export class UpsilonSmallDocMarkupDataModel extends SubstringDocMarkupType {
3703
3116
  constructor(xml, element) {
3704
3117
  super(xml, element, 'upsilon', '\u03C5');
3705
3118
  }
3706
3119
  }
3707
- // Greek small letter phi
3708
3120
  export class PhiSmallDocMarkupDataModel extends SubstringDocMarkupType {
3709
3121
  constructor(xml, element) {
3710
3122
  super(xml, element, 'phi', '\u03C6');
3711
3123
  }
3712
3124
  }
3713
- // Greek small letter chi
3714
3125
  export class ChiSmallDocMarkupDataModel extends SubstringDocMarkupType {
3715
3126
  constructor(xml, element) {
3716
3127
  super(xml, element, 'chi', '\u03C7');
3717
3128
  }
3718
3129
  }
3719
- // Greek small letter psi
3720
3130
  export class PsiSmallDocMarkupDataModel extends SubstringDocMarkupType {
3721
3131
  constructor(xml, element) {
3722
3132
  super(xml, element, 'psi', '\u03C8');
3723
3133
  }
3724
3134
  }
3725
- // Greek small letter omega
3726
3135
  export class OmegaSmallDocMarkupDataModel extends SubstringDocMarkupType {
3727
3136
  constructor(xml, element) {
3728
3137
  super(xml, element, 'omega', '\u03C9');
3729
3138
  }
3730
3139
  }
3731
- // Greek small letter theta symbol
3732
3140
  export class ThetasymDocMarkupDataModel extends SubstringDocMarkupType {
3733
3141
  constructor(xml, element) {
3734
3142
  super(xml, element, 'thetasym', '\u03D1');
3735
3143
  }
3736
3144
  }
3737
- // Greek upsilon with hook symbol
3738
3145
  export class UpsihDocMarkupDataModel extends SubstringDocMarkupType {
3739
3146
  constructor(xml, element) {
3740
3147
  super(xml, element, 'upsih', '\u03D2');
3741
3148
  }
3742
3149
  }
3743
- // Greek pi symbol (variant)
3744
3150
  export class PivDocMarkupDataModel extends SubstringDocMarkupType {
3745
3151
  constructor(xml, element) {
3746
3152
  super(xml, element, 'piv', '\u03D6');
3747
3153
  }
3748
3154
  }
3749
- // Bullet
3750
3155
  export class BullDocMarkupDataModel extends SubstringDocMarkupType {
3751
3156
  constructor(xml, element) {
3752
3157
  super(xml, element, 'bull', '\u2022');
3753
3158
  }
3754
3159
  }
3755
- // Horizontal ellipsis
3756
3160
  export class HellipDocMarkupDataModel extends SubstringDocMarkupType {
3757
3161
  constructor(xml, element) {
3758
3162
  super(xml, element, 'hellip', '\u2026');
3759
3163
  }
3760
3164
  }
3761
- // Prime (minutes, feet)
3762
3165
  export class PrimeDocMarkupDataModel extends SubstringDocMarkupType {
3763
3166
  constructor(xml, element) {
3764
3167
  super(xml, element, 'prime', '\u2032');
3765
3168
  }
3766
3169
  }
3767
- // Double prime (seconds, inches)
3768
3170
  export class PrimeUpperDocMarkupDataModel extends SubstringDocMarkupType {
3769
3171
  constructor(xml, element) {
3770
3172
  super(xml, element, 'Prime', '\u2033');
3771
3173
  }
3772
3174
  }
3773
- // Overline
3774
3175
  export class OlineDocMarkupDataModel extends SubstringDocMarkupType {
3775
3176
  constructor(xml, element) {
3776
3177
  super(xml, element, 'oline', '\u203E');
3777
3178
  }
3778
3179
  }
3779
- // Fraction slash
3780
3180
  export class FraslDocMarkupDataModel extends SubstringDocMarkupType {
3781
3181
  constructor(xml, element) {
3782
3182
  super(xml, element, 'frasl', '\u2044');
3783
3183
  }
3784
3184
  }
3785
- // Script capital P (Weierstrass p)
3786
3185
  export class WeierpDocMarkupDataModel extends SubstringDocMarkupType {
3787
3186
  constructor(xml, element) {
3788
3187
  super(xml, element, 'weierp', '\u2118');
3789
3188
  }
3790
3189
  }
3791
- // Imaginary part
3792
3190
  export class ImaginaryDocMarkupDataModel extends SubstringDocMarkupType {
3793
3191
  constructor(xml, element) {
3794
3192
  super(xml, element, 'imaginary', '\u2111');
3795
3193
  }
3796
3194
  }
3797
- // Real part
3798
3195
  export class RealDocMarkupDataModel extends SubstringDocMarkupType {
3799
3196
  constructor(xml, element) {
3800
3197
  super(xml, element, 'real', '\u211C');
3801
3198
  }
3802
3199
  }
3803
- // Trademark
3804
3200
  export class TrademarkDocMarkupDataModel extends SubstringDocMarkupType {
3805
3201
  constructor(xml, element) {
3806
3202
  super(xml, element, 'trademark', '\u2122');
3807
3203
  }
3808
3204
  }
3809
- // Alef symbol
3810
3205
  export class AlefsymDocMarkupDataModel extends SubstringDocMarkupType {
3811
3206
  constructor(xml, element) {
3812
3207
  super(xml, element, 'alefsym', '\u2135');
3813
3208
  }
3814
3209
  }
3815
- // Leftwards arrow
3816
3210
  export class LarrDocMarkupDataModel extends SubstringDocMarkupType {
3817
3211
  constructor(xml, element) {
3818
3212
  super(xml, element, 'larr', '\u2190');
3819
3213
  }
3820
3214
  }
3821
- // Upwards arrow
3822
3215
  export class UarrDocMarkupDataModel extends SubstringDocMarkupType {
3823
3216
  constructor(xml, element) {
3824
3217
  super(xml, element, 'uarr', '\u2191');
3825
3218
  }
3826
3219
  }
3827
- // Rightwards arrow
3828
3220
  export class RarrDocMarkupDataModel extends SubstringDocMarkupType {
3829
3221
  constructor(xml, element) {
3830
3222
  super(xml, element, 'rarr', '\u2192');
3831
3223
  }
3832
3224
  }
3833
- // Downwards arrow
3834
3225
  export class DarrDocMarkupDataModel extends SubstringDocMarkupType {
3835
3226
  constructor(xml, element) {
3836
3227
  super(xml, element, 'darr', '\u2193');
3837
3228
  }
3838
3229
  }
3839
- // Left right arrow
3840
3230
  export class HarrDocMarkupDataModel extends SubstringDocMarkupType {
3841
3231
  constructor(xml, element) {
3842
3232
  super(xml, element, 'harr', '\u2194');
3843
3233
  }
3844
3234
  }
3845
- // Downwards arrow with corner leftwards (carriage return)
3846
3235
  export class CrarrDocMarkupDataModel extends SubstringDocMarkupType {
3847
3236
  constructor(xml, element) {
3848
3237
  super(xml, element, 'crarr', '\u21B5');
3849
3238
  }
3850
3239
  }
3851
- // Leftwards double arrow
3852
3240
  export class LArrDocMarkupDataModel extends SubstringDocMarkupType {
3853
3241
  constructor(xml, element) {
3854
3242
  super(xml, element, 'lArr', '\u21D0');
3855
3243
  }
3856
3244
  }
3857
- // Upwards double arrow
3858
3245
  export class UArrDocMarkupDataModel extends SubstringDocMarkupType {
3859
3246
  constructor(xml, element) {
3860
3247
  super(xml, element, 'uArr', '\u21D1');
3861
3248
  }
3862
3249
  }
3863
- // Rightwards double arrow
3864
3250
  export class RArrDocMarkupDataModel extends SubstringDocMarkupType {
3865
3251
  constructor(xml, element) {
3866
3252
  super(xml, element, 'rArr', '\u21D2');
3867
3253
  }
3868
3254
  }
3869
- // Downwards double arrow
3870
3255
  export class DArrDocMarkupDataModel extends SubstringDocMarkupType {
3871
3256
  constructor(xml, element) {
3872
3257
  super(xml, element, 'dArr', '\u21D3');
3873
3258
  }
3874
3259
  }
3875
- // Left right double arrow
3876
3260
  export class HArrDocMarkupDataModel extends SubstringDocMarkupType {
3877
3261
  constructor(xml, element) {
3878
3262
  super(xml, element, 'hArr', '\u21D4');
3879
3263
  }
3880
3264
  }
3881
- // For all
3882
3265
  export class ForallDocMarkupDataModel extends SubstringDocMarkupType {
3883
3266
  constructor(xml, element) {
3884
3267
  super(xml, element, 'forall', '\u2200');
3885
3268
  }
3886
3269
  }
3887
- // Partial differential
3888
3270
  export class PartDocMarkupDataModel extends SubstringDocMarkupType {
3889
3271
  constructor(xml, element) {
3890
3272
  super(xml, element, 'part', '\u2202');
3891
3273
  }
3892
3274
  }
3893
- // There exists
3894
3275
  export class ExistDocMarkupDataModel extends SubstringDocMarkupType {
3895
3276
  constructor(xml, element) {
3896
3277
  super(xml, element, 'exist', '\u2203');
3897
3278
  }
3898
3279
  }
3899
- // Empty set
3900
3280
  export class EmptyDocMarkupDataModel extends SubstringDocMarkupType {
3901
3281
  constructor(xml, element) {
3902
3282
  super(xml, element, 'empty', '\u2205');
3903
3283
  }
3904
3284
  }
3905
- // Nabla
3906
3285
  export class NablaDocMarkupDataModel extends SubstringDocMarkupType {
3907
3286
  constructor(xml, element) {
3908
3287
  super(xml, element, 'nabla', '\u2207');
3909
3288
  }
3910
3289
  }
3911
- // Element of
3912
3290
  export class IsinDocMarkupDataModel extends SubstringDocMarkupType {
3913
3291
  constructor(xml, element) {
3914
3292
  super(xml, element, 'isin', '\u2208');
3915
3293
  }
3916
3294
  }
3917
- // Not an element of
3918
3295
  export class NotinDocMarkupDataModel extends SubstringDocMarkupType {
3919
3296
  constructor(xml, element) {
3920
3297
  super(xml, element, 'notin', '\u2209');
3921
3298
  }
3922
3299
  }
3923
- // Contains as member
3924
3300
  export class NiDocMarkupDataModel extends SubstringDocMarkupType {
3925
3301
  constructor(xml, element) {
3926
3302
  super(xml, element, 'ni', '\u220B');
3927
3303
  }
3928
3304
  }
3929
- // N-ary product
3930
3305
  export class ProdDocMarkupDataModel extends SubstringDocMarkupType {
3931
3306
  constructor(xml, element) {
3932
3307
  super(xml, element, 'prod', '\u220F');
3933
3308
  }
3934
3309
  }
3935
- // N-ary summation
3936
3310
  export class SumDocMarkupDataModel extends SubstringDocMarkupType {
3937
3311
  constructor(xml, element) {
3938
3312
  super(xml, element, 'sum', '\u2211');
3939
3313
  }
3940
3314
  }
3941
- // Minus sign
3942
3315
  export class MinusDocMarkupDataModel extends SubstringDocMarkupType {
3943
3316
  constructor(xml, element) {
3944
3317
  super(xml, element, 'minus', '\u2212');
3945
3318
  }
3946
3319
  }
3947
- // Asterisk operator
3948
3320
  export class LowastDocMarkupDataModel extends SubstringDocMarkupType {
3949
3321
  constructor(xml, element) {
3950
3322
  super(xml, element, 'lowast', '\u2217');
3951
3323
  }
3952
3324
  }
3953
- // Square root
3954
3325
  export class RadicDocMarkupDataModel extends SubstringDocMarkupType {
3955
3326
  constructor(xml, element) {
3956
3327
  super(xml, element, 'radic', '\u221A');
3957
3328
  }
3958
3329
  }
3959
- // Proportional to
3960
3330
  export class PropDocMarkupDataModel extends SubstringDocMarkupType {
3961
3331
  constructor(xml, element) {
3962
3332
  super(xml, element, 'prop', '\u221D');
3963
3333
  }
3964
3334
  }
3965
- // Infinity
3966
3335
  export class InfinDocMarkupDataModel extends SubstringDocMarkupType {
3967
3336
  constructor(xml, element) {
3968
3337
  super(xml, element, 'infin', '\u221E');
3969
3338
  }
3970
3339
  }
3971
- // Angle
3972
3340
  export class AngDocMarkupDataModel extends SubstringDocMarkupType {
3973
3341
  constructor(xml, element) {
3974
3342
  super(xml, element, 'ang', '\u2220');
3975
3343
  }
3976
3344
  }
3977
- // Logical and
3978
3345
  export class AndDocMarkupDataModel extends SubstringDocMarkupType {
3979
3346
  constructor(xml, element) {
3980
3347
  super(xml, element, 'and', '\u2227');
3981
3348
  }
3982
3349
  }
3983
- // Logical or
3984
3350
  export class OrDocMarkupDataModel extends SubstringDocMarkupType {
3985
3351
  constructor(xml, element) {
3986
3352
  super(xml, element, 'or', '\u2228');
3987
3353
  }
3988
3354
  }
3989
- // Intersection
3990
3355
  export class CapDocMarkupDataModel extends SubstringDocMarkupType {
3991
3356
  constructor(xml, element) {
3992
3357
  super(xml, element, 'cap', '\u2229');
3993
3358
  }
3994
3359
  }
3995
- // Union
3996
3360
  export class CupDocMarkupDataModel extends SubstringDocMarkupType {
3997
3361
  constructor(xml, element) {
3998
3362
  super(xml, element, 'cup', '\u222A');
3999
3363
  }
4000
3364
  }
4001
- // Integral
4002
3365
  export class IntDocMarkupDataModel extends SubstringDocMarkupType {
4003
3366
  constructor(xml, element) {
4004
3367
  super(xml, element, 'int', '\u222B');
4005
3368
  }
4006
3369
  }
4007
- // Therefore
4008
3370
  export class There4DocMarkupDataModel extends SubstringDocMarkupType {
4009
3371
  constructor(xml, element) {
4010
3372
  super(xml, element, 'there4', '\u2234');
4011
3373
  }
4012
3374
  }
4013
- // Tilde operator
4014
3375
  export class SimDocMarkupDataModel extends SubstringDocMarkupType {
4015
3376
  constructor(xml, element) {
4016
3377
  super(xml, element, 'sim', '\u223C');
4017
3378
  }
4018
3379
  }
4019
- // Approximately equal to
4020
3380
  export class CongDocMarkupDataModel extends SubstringDocMarkupType {
4021
3381
  constructor(xml, element) {
4022
3382
  super(xml, element, 'cong', '\u2245');
4023
3383
  }
4024
3384
  }
4025
- // Almost equal to
4026
3385
  export class AsympDocMarkupDataModel extends SubstringDocMarkupType {
4027
3386
  constructor(xml, element) {
4028
3387
  super(xml, element, 'asymp', '\u2248');
4029
3388
  }
4030
3389
  }
4031
- // Not equal to
4032
3390
  export class NeDocMarkupDataModel extends SubstringDocMarkupType {
4033
3391
  constructor(xml, element) {
4034
3392
  super(xml, element, 'ne', '\u2260');
4035
3393
  }
4036
3394
  }
4037
- // Identical to
4038
3395
  export class EquivDocMarkupDataModel extends SubstringDocMarkupType {
4039
3396
  constructor(xml, element) {
4040
3397
  super(xml, element, 'equiv', '\u2261');
4041
3398
  }
4042
3399
  }
4043
- // Less-than or equal to
4044
3400
  export class LeDocMarkupDataModel extends SubstringDocMarkupType {
4045
3401
  constructor(xml, element) {
4046
3402
  super(xml, element, 'le', '\u2264');
4047
3403
  }
4048
3404
  }
4049
- // Greater-than or equal to
4050
3405
  export class GeDocMarkupDataModel extends SubstringDocMarkupType {
4051
3406
  constructor(xml, element) {
4052
3407
  super(xml, element, 'ge', '\u2265');
4053
3408
  }
4054
3409
  }
4055
- // Subset of
4056
3410
  export class SubDocMarkupDataModel extends SubstringDocMarkupType {
4057
3411
  constructor(xml, element) {
4058
3412
  super(xml, element, 'sub', '\u2282');
4059
3413
  }
4060
3414
  }
4061
- // Superset of
4062
3415
  export class SupDocMarkupDataModel extends SubstringDocMarkupType {
4063
3416
  constructor(xml, element) {
4064
3417
  super(xml, element, 'sup', '\u2283');
4065
3418
  }
4066
3419
  }
4067
- // Not a subset of
4068
3420
  export class NsubDocMarkupDataModel extends SubstringDocMarkupType {
4069
3421
  constructor(xml, element) {
4070
3422
  super(xml, element, 'nsub', '\u2284');
4071
3423
  }
4072
3424
  }
4073
- // Subset of or equal to
4074
3425
  export class SubeDocMarkupDataModel extends SubstringDocMarkupType {
4075
3426
  constructor(xml, element) {
4076
3427
  super(xml, element, 'sube', '\u2286');
4077
3428
  }
4078
3429
  }
4079
- // Superset of or equal to
4080
3430
  export class SupeDocMarkupDataModel extends SubstringDocMarkupType {
4081
3431
  constructor(xml, element) {
4082
3432
  super(xml, element, 'supe', '\u2287');
4083
3433
  }
4084
3434
  }
4085
- // Circled plus
4086
3435
  export class OplusDocMarkupDataModel extends SubstringDocMarkupType {
4087
3436
  constructor(xml, element) {
4088
3437
  super(xml, element, 'oplus', '\u2295');
4089
3438
  }
4090
3439
  }
4091
- // Circled times
4092
3440
  export class OtimesDocMarkupDataModel extends SubstringDocMarkupType {
4093
3441
  constructor(xml, element) {
4094
3442
  super(xml, element, 'otimes', '\u2297');
4095
3443
  }
4096
3444
  }
4097
- // Perpendicular
4098
3445
  export class PerpDocMarkupDataModel extends SubstringDocMarkupType {
4099
3446
  constructor(xml, element) {
4100
3447
  super(xml, element, 'perp', '\u22A5');
4101
3448
  }
4102
3449
  }
4103
- // Dot operator
4104
3450
  export class SdotDocMarkupDataModel extends SubstringDocMarkupType {
4105
3451
  constructor(xml, element) {
4106
3452
  super(xml, element, 'sdot', '\u22C5');
4107
3453
  }
4108
3454
  }
4109
- // Left ceiling
4110
3455
  export class LceilDocMarkupDataModel extends SubstringDocMarkupType {
4111
3456
  constructor(xml, element) {
4112
3457
  super(xml, element, 'lceil', '\u2308');
4113
3458
  }
4114
3459
  }
4115
- // Right ceiling
4116
3460
  export class RceilDocMarkupDataModel extends SubstringDocMarkupType {
4117
3461
  constructor(xml, element) {
4118
3462
  super(xml, element, 'rceil', '\u2309');
4119
3463
  }
4120
3464
  }
4121
- // Left floor
4122
3465
  export class LfloorDocMarkupDataModel extends SubstringDocMarkupType {
4123
3466
  constructor(xml, element) {
4124
3467
  super(xml, element, 'lfloor', '\u230A');
4125
3468
  }
4126
3469
  }
4127
- // Right floor
4128
3470
  export class RfloorDocMarkupDataModel extends SubstringDocMarkupType {
4129
3471
  constructor(xml, element) {
4130
3472
  super(xml, element, 'rfloor', '\u230B');
4131
3473
  }
4132
3474
  }
4133
- // Left-pointing angle bracket
4134
3475
  export class LangDocMarkupDataModel extends SubstringDocMarkupType {
4135
3476
  constructor(xml, element) {
4136
3477
  super(xml, element, 'lang', '\u2329');
4137
3478
  }
4138
3479
  }
4139
- // Right-pointing angle bracket
4140
3480
  export class RangDocMarkupDataModel extends SubstringDocMarkupType {
4141
3481
  constructor(xml, element) {
4142
3482
  super(xml, element, 'rang', '\u232A');
4143
3483
  }
4144
3484
  }
4145
- // Lozenge
4146
3485
  export class LozDocMarkupDataModel extends SubstringDocMarkupType {
4147
3486
  constructor(xml, element) {
4148
3487
  super(xml, element, 'loz', '\u25CA');
4149
3488
  }
4150
3489
  }
4151
- // Black spade suit
4152
3490
  export class SpadesDocMarkupDataModel extends SubstringDocMarkupType {
4153
3491
  constructor(xml, element) {
4154
3492
  super(xml, element, 'spades', '\u2660');
4155
3493
  }
4156
3494
  }
4157
- // Black club suit
4158
3495
  export class ClubsDocMarkupDataModel extends SubstringDocMarkupType {
4159
3496
  constructor(xml, element) {
4160
3497
  super(xml, element, 'clubs', '\u2663');
4161
3498
  }
4162
3499
  }
4163
- // Black heart suit
4164
3500
  export class HeartsDocMarkupDataModel extends SubstringDocMarkupType {
4165
3501
  constructor(xml, element) {
4166
3502
  super(xml, element, 'hearts', '\u2665');
4167
3503
  }
4168
3504
  }
4169
- // Black diamond suit
4170
3505
  export class DiamsDocMarkupDataModel extends SubstringDocMarkupType {
4171
3506
  constructor(xml, element) {
4172
3507
  super(xml, element, 'diams', '\u2666');
4173
3508
  }
4174
3509
  }
4175
- // Latin capital ligature OE
4176
3510
  export class OEligDocMarkupDataModel extends SubstringDocMarkupType {
4177
3511
  constructor(xml, element) {
4178
3512
  super(xml, element, 'OElig', '\u0152');
4179
3513
  }
4180
3514
  }
4181
- // Latin small ligature oe
4182
3515
  export class OeligDocMarkupDataModel extends SubstringDocMarkupType {
4183
3516
  constructor(xml, element) {
4184
3517
  super(xml, element, 'oelig', '\u0153');
4185
3518
  }
4186
3519
  }
4187
- // Latin capital letter S with caron
4188
3520
  export class ScaronDocMarkupDataModel extends SubstringDocMarkupType {
4189
3521
  constructor(xml, element) {
4190
3522
  super(xml, element, 'Scaron', '\u0160');
4191
3523
  }
4192
3524
  }
4193
- // Latin small letter s with caron
4194
3525
  export class ScaronSmallDocMarkupDataModel extends SubstringDocMarkupType {
4195
3526
  constructor(xml, element) {
4196
3527
  super(xml, element, 'scaron', '\u0161');
4197
3528
  }
4198
3529
  }
4199
- // Latin capital letter Y with diaeresis (umlaut)
4200
3530
  export class YumlautDocMarkupDataModel extends SubstringDocMarkupType {
4201
3531
  constructor(xml, element) {
4202
3532
  super(xml, element, 'Yumlaut', '\u0178');
4203
3533
  }
4204
3534
  }
4205
- // Modifier letter circumflex accent
4206
3535
  export class CircDocMarkupDataModel extends SubstringDocMarkupType {
4207
3536
  constructor(xml, element) {
4208
3537
  super(xml, element, 'circ', '\u02C6');
4209
3538
  }
4210
3539
  }
4211
- // Small tilde
4212
3540
  export class TildeDocMarkupDataModel extends SubstringDocMarkupType {
4213
3541
  constructor(xml, element) {
4214
3542
  super(xml, element, 'tilde', '\u02DC');
4215
3543
  }
4216
3544
  }
4217
- // En space
4218
3545
  export class EnspDocMarkupDataModel extends SubstringDocMarkupType {
4219
3546
  constructor(xml, element) {
4220
3547
  super(xml, element, 'ensp', '\u2002');
4221
3548
  }
4222
3549
  }
4223
- // Em space
4224
3550
  export class EmspDocMarkupDataModel extends SubstringDocMarkupType {
4225
3551
  constructor(xml, element) {
4226
3552
  super(xml, element, 'emsp', '\u2003');
4227
3553
  }
4228
3554
  }
4229
- // Thin space
4230
3555
  export class ThinspDocMarkupDataModel extends SubstringDocMarkupType {
4231
3556
  constructor(xml, element) {
4232
3557
  super(xml, element, 'thinsp', '\u2009');
4233
3558
  }
4234
3559
  }
4235
- // Zero width non-joiner
4236
3560
  export class ZwnjDocMarkupDataModel extends SubstringDocMarkupType {
4237
3561
  constructor(xml, element) {
4238
3562
  super(xml, element, 'zwnj', '\u200C');
4239
3563
  }
4240
3564
  }
4241
- // Left-to-right mark
4242
3565
  export class LrmDocMarkupDataModel extends SubstringDocMarkupType {
4243
3566
  constructor(xml, element) {
4244
3567
  super(xml, element, 'lrm', '\u200E');
4245
3568
  }
4246
3569
  }
4247
- // Right-to-left mark
4248
3570
  export class RlmDocMarkupDataModel extends SubstringDocMarkupType {
4249
3571
  constructor(xml, element) {
4250
3572
  super(xml, element, 'rlm', '\u200F');
4251
3573
  }
4252
3574
  }
4253
- // Single low-9 quotation mark
4254
3575
  export class SbquoDocMarkupDataModel extends SubstringDocMarkupType {
4255
3576
  constructor(xml, element) {
4256
3577
  super(xml, element, 'sbquo', '\u201A');
4257
3578
  }
4258
3579
  }
4259
- // Left double quotation mark
4260
3580
  export class LdquoDocMarkupDataModel extends SubstringDocMarkupType {
4261
3581
  constructor(xml, element) {
4262
3582
  super(xml, element, 'ldquo', '\u201C');
4263
3583
  }
4264
3584
  }
4265
- // Right double quotation mark
4266
3585
  export class RdquoDocMarkupDataModel extends SubstringDocMarkupType {
4267
3586
  constructor(xml, element) {
4268
3587
  super(xml, element, 'rdquo', '\u201D');
4269
3588
  }
4270
3589
  }
4271
- // Double low-9 quotation mark
4272
3590
  export class BdquoDocMarkupDataModel extends SubstringDocMarkupType {
4273
3591
  constructor(xml, element) {
4274
3592
  super(xml, element, 'bdquo', '\u201E');
4275
3593
  }
4276
3594
  }
4277
- // Dagger
4278
3595
  export class DaggerDocMarkupDataModel extends SubstringDocMarkupType {
4279
3596
  constructor(xml, element) {
4280
3597
  super(xml, element, 'dagger', '\u2020');
4281
3598
  }
4282
3599
  }
4283
- // Double dagger
4284
3600
  export class DaggerUpperDocMarkupDataModel extends SubstringDocMarkupType {
4285
3601
  constructor(xml, element) {
4286
3602
  super(xml, element, 'Dagger', '\u2021');
4287
3603
  }
4288
3604
  }
4289
- // Per mille sign
4290
3605
  export class PermilDocMarkupDataModel extends SubstringDocMarkupType {
4291
3606
  constructor(xml, element) {
4292
3607
  super(xml, element, 'permil', '\u2030');
4293
3608
  }
4294
3609
  }
4295
- // Single left-pointing angle quotation mark
4296
3610
  export class LsaquoDocMarkupDataModel extends SubstringDocMarkupType {
4297
3611
  constructor(xml, element) {
4298
3612
  super(xml, element, 'lsaquo', '\u2039');
4299
3613
  }
4300
3614
  }
4301
- // Single right-pointing angle quotation mark
4302
3615
  export class RsaquoDocMarkupDataModel extends SubstringDocMarkupType {
4303
3616
  constructor(xml, element) {
4304
3617
  super(xml, element, 'rsaquo', '\u203A');
4305
3618
  }
4306
3619
  }
4307
- // Euro sign
4308
3620
  export class EuroDocMarkupDataModel extends SubstringDocMarkupType {
4309
3621
  constructor(xml, element) {
4310
3622
  super(xml, element, 'euro', '\u20AC');
4311
3623
  }
4312
3624
  }
4313
- // Trade mark sign
4314
3625
  export class TmDocMarkupDataModel extends SubstringDocMarkupType {
4315
3626
  constructor(xml, element) {
4316
3627
  super(xml, element, 'tm', '\u2122');
4317
3628
  }
4318
3629
  }
4319
- // Left single quote.
4320
3630
  export class LsquoDocMarkupDataModel extends SubstringDocMarkupType {
4321
3631
  constructor(xml, element) {
4322
- super(xml, element, 'lsquo', '\u2018'); // '‘'
3632
+ super(xml, element, 'lsquo', '\u2018');
4323
3633
  }
4324
3634
  }
4325
- // Right single quote.
4326
3635
  export class RsquoDocMarkupDataModel extends SubstringDocMarkupType {
4327
3636
  constructor(xml, element) {
4328
- super(xml, element, 'rsquo', '\u0060'); // '`'
3637
+ super(xml, element, 'rsquo', '\u0060');
4329
3638
  }
4330
3639
  }
4331
- // ----------------------------------------------------------------------------
4332
- // <xsd:complexType name="docURLLink" mixed="true"> <-- Character data is allowed to appear between the child elements!
4333
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
4334
- // <xsd:attribute name="url" type="xsd:string" />
4335
- // </xsd:complexType>
4336
3640
  export class AbstractDocURLLink extends AbstractDataModelBase {
4337
- // children: Array<string | DocTitleCmdGroup> = []
4338
- // Mandatory attributes.
4339
3641
  url = '';
4340
3642
  constructor(xml, element, elementName) {
4341
3643
  super(elementName);
4342
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4343
- // ------------------------------------------------------------------------
4344
- // Process elements.
4345
3644
  const innerElements = xml.getInnerElements(element, elementName);
4346
3645
  assert(innerElements.length > 0);
4347
3646
  this.children = [];
@@ -4353,8 +3652,6 @@ export class AbstractDocURLLink extends AbstractDataModelBase {
4353
3652
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
4354
3653
  }
4355
3654
  }
4356
- // ------------------------------------------------------------------------
4357
- // Process attributes.
4358
3655
  assert(xml.hasAttributes(element));
4359
3656
  const attributesNames = xml.getAttributesNames(element);
4360
3657
  for (const attributeName of attributesNames) {
@@ -4367,30 +3664,17 @@ export class AbstractDocURLLink extends AbstractDataModelBase {
4367
3664
  }
4368
3665
  }
4369
3666
  assert(this.url.length > 0);
4370
- // ------------------------------------------------------------------------
4371
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4372
3667
  }
4373
3668
  }
4374
- // <xsd:element name="ulink" type="docURLLink" />
4375
3669
  export class UlinkDataModel extends AbstractDocURLLink {
4376
3670
  constructor(xml, element) {
4377
3671
  super(xml, element, 'ulink');
4378
3672
  }
4379
3673
  }
4380
- // ----------------------------------------------------------------------------
4381
- // <xsd:complexType name="docAnchorType" mixed="true"> <-- Character data is allowed to appear between the child elements!
4382
- // <xsd:attribute name="id" type="xsd:string" />
4383
- // </xsd:complexType>
4384
3674
  export class AbstractDocAnchorType extends AbstractDataModelBase {
4385
- // children: string[] = []
4386
- // Mandatory attributes.
4387
3675
  id = '';
4388
3676
  constructor(xml, element, elementName) {
4389
3677
  super(elementName);
4390
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4391
- // ------------------------------------------------------------------------
4392
- // Process elements.
4393
- // Usually empty `<anchor id="deprecated_1_deprecated000014"/>`
4394
3678
  const innerElements = xml.getInnerElements(element, elementName);
4395
3679
  this.children = [];
4396
3680
  for (const innerElement of innerElements) {
@@ -4405,8 +3689,6 @@ export class AbstractDocAnchorType extends AbstractDataModelBase {
4405
3689
  if (this.children.length > 0) {
4406
3690
  console.error('Unexpected <anchor> text content in', this.constructor.name);
4407
3691
  }
4408
- // ------------------------------------------------------------------------
4409
- // Process attributes.
4410
3692
  assert(xml.hasAttributes(element));
4411
3693
  const attributesNames = xml.getAttributesNames(element);
4412
3694
  for (const attributeName of attributesNames) {
@@ -4419,35 +3701,21 @@ export class AbstractDocAnchorType extends AbstractDataModelBase {
4419
3701
  }
4420
3702
  }
4421
3703
  assert(this.id.length > 0);
4422
- // ------------------------------------------------------------------------
4423
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4424
3704
  }
4425
3705
  }
4426
- // <xsd:element name="anchor" type="docAnchorType" />
4427
3706
  export class AnchorDataModel extends AbstractDocAnchorType {
4428
3707
  constructor(xml, element) {
4429
3708
  super(xml, element, 'anchor');
4430
3709
  }
4431
3710
  }
4432
- // ----------------------------------------------------------------------------
4433
- // <xsd:complexType name="docFormulaType" mixed="true"> <-- Character data is allowed to appear between the child elements!
4434
- // <xsd:attribute name="id" type="xsd:string" />
4435
- // </xsd:complexType>
4436
3711
  export class AbstractDocFormulaType extends AbstractDataModelBase {
4437
- // Mandatory elements.
4438
- text = ''; // The name of the reference, passed as element text.
4439
- // Mandatory attributes.
3712
+ text = '';
4440
3713
  id = '';
4441
3714
  constructor(xml, element, elementName) {
4442
3715
  super(elementName);
4443
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4444
- // ------------------------------------------------------------------------
4445
- // Process elements.
4446
3716
  assert(xml.isInnerElementText(element, elementName));
4447
3717
  this.text = xml.getInnerElementText(element, elementName);
4448
3718
  assert(this.text.length > 0);
4449
- // ------------------------------------------------------------------------
4450
- // Process attributes.
4451
3719
  assert(xml.hasAttributes(element));
4452
3720
  const attributesNames = xml.getAttributesNames(element);
4453
3721
  for (const attributeName of attributesNames) {
@@ -4460,38 +3728,22 @@ export class AbstractDocFormulaType extends AbstractDataModelBase {
4460
3728
  }
4461
3729
  }
4462
3730
  assert(this.id.length > 0);
4463
- // ------------------------------------------------------------------------
4464
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4465
3731
  }
4466
3732
  }
4467
- // <xsd:element name="formula" type="docFormulaType" />
4468
3733
  export class FormulaDataModel extends AbstractDocFormulaType {
4469
3734
  constructor(xml, element) {
4470
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4471
3735
  super(xml, element, 'formula');
4472
3736
  }
4473
3737
  }
4474
- // ----------------------------------------------------------------------------
4475
- // <xsd:complexType name="docIndexEntryType">
4476
- // <xsd:sequence>
4477
- // <xsd:element name="primaryie" type="xsd:string" />
4478
- // <xsd:element name="secondaryie" type="xsd:string" />
4479
- // </xsd:sequence>
4480
- // </xsd:complexType>
4481
3738
  export class AbstractDocIndexEntryType extends AbstractDataModelBase {
4482
- // Mandatory elements.
4483
3739
  primaryie = '';
4484
3740
  secondaryie = '';
4485
3741
  constructor(xml, element, elementName) {
4486
3742
  super(elementName);
4487
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4488
- // ------------------------------------------------------------------------
4489
- // Process elements.
4490
3743
  const innerElements = xml.getInnerElements(element, elementName);
4491
3744
  assert(innerElements.length > 0);
4492
3745
  for (const innerElement of innerElements) {
4493
3746
  if (xml.hasInnerText(innerElement)) {
4494
- // Ignore texts.
4495
3747
  }
4496
3748
  else if (xml.isInnerElementText(innerElement, 'primaryie')) {
4497
3749
  this.primaryie = xml.getInnerElementText(innerElement, 'primaryie');
@@ -4504,57 +3756,24 @@ export class AbstractDocIndexEntryType extends AbstractDataModelBase {
4504
3756
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
4505
3757
  }
4506
3758
  }
4507
- // May be empty.
4508
- // assert(this.primaryie.length > 0)
4509
- // assert(this.secondaryie.length > 0)
4510
- // ------------------------------------------------------------------------
4511
- // Process attributes.
4512
3759
  assert(!xml.hasAttributes(element));
4513
- // ------------------------------------------------------------------------
4514
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4515
3760
  }
4516
3761
  }
4517
- // <xsd:element name="indexentry" type="docIndexEntryType" />
4518
3762
  export class IndexEntryDataModel extends AbstractDocIndexEntryType {
4519
3763
  constructor(xml, element) {
4520
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4521
3764
  super(xml, element, 'indexentry');
4522
3765
  }
4523
3766
  }
4524
- // ----------------------------------------------------------------------------
4525
- // WARNING: start & type are optionsl.
4526
- // <xsd:complexType name="docListType">
4527
- // <xsd:sequence>
4528
- // <xsd:element name="listitem" type="docListItemType" maxOccurs="unbounded" />
4529
- // </xsd:sequence>
4530
- // <xsd:attribute name="type" type="DoxOlType" />
4531
- // <xsd:attribute name="start" type="xsd:integer" />
4532
- // </xsd:complexType>
4533
- // <xsd:simpleType name="DoxOlType">
4534
- // <xsd:restriction base="xsd:string">
4535
- // <xsd:enumeration value="1" />
4536
- // <xsd:enumeration value="a" />
4537
- // <xsd:enumeration value="A" />
4538
- // <xsd:enumeration value="i" />
4539
- // <xsd:enumeration value="I" />
4540
- // </xsd:restriction>
4541
- // </xsd:simpleType>
4542
3767
  export class AbstractDocListType extends AbstractDataModelBase {
4543
- // Mandatory elements.
4544
3768
  listItems = [];
4545
- // Optional attributes.
4546
3769
  type = '';
4547
3770
  start;
4548
3771
  constructor(xml, element, elementName) {
4549
3772
  super(elementName);
4550
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4551
- // ------------------------------------------------------------------------
4552
- // Process elements.
4553
3773
  const innerElements = xml.getInnerElements(element, elementName);
4554
3774
  assert(innerElements.length > 0);
4555
3775
  for (const innerElement of innerElements) {
4556
3776
  if (xml.hasInnerText(innerElement)) {
4557
- // Ignore texts.
4558
3777
  }
4559
3778
  else if (xml.hasInnerElement(innerElement, 'listitem')) {
4560
3779
  this.listItems.push(new ListItemDataModel(xml, innerElement));
@@ -4564,8 +3783,6 @@ export class AbstractDocListType extends AbstractDataModelBase {
4564
3783
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
4565
3784
  }
4566
3785
  }
4567
- // ------------------------------------------------------------------------
4568
- // Process attributes.
4569
3786
  if (xml.hasAttributes(element)) {
4570
3787
  const attributesNames = xml.getAttributesNames(element);
4571
3788
  for (const attributeName of attributesNames) {
@@ -4574,7 +3791,7 @@ export class AbstractDocListType extends AbstractDataModelBase {
4574
3791
  }
4575
3792
  else if (attributeName === '@_start') {
4576
3793
  assert(this.start === undefined);
4577
- this.start = Number(xml.getAttributeNumberValue(element, '@_start'));
3794
+ this.start = xml.getAttributeNumberValue(element, '@_start');
4578
3795
  }
4579
3796
  else {
4580
3797
  console.error(util.inspect(element, { compact: false, depth: 999 }));
@@ -4582,36 +3799,17 @@ export class AbstractDocListType extends AbstractDataModelBase {
4582
3799
  }
4583
3800
  }
4584
3801
  }
4585
- // ------------------------------------------------------------------------
4586
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4587
- }
4588
- }
4589
- // ----------------------------------------------------------------------------
4590
- // WARNING: override is optional.
4591
- // <xsd:complexType name="docListItemType">
4592
- // <xsd:sequence>
4593
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
4594
- // </xsd:sequence>
4595
- // <xsd:attribute name="override" type="DoxCheck" />
4596
- // <xsd:attribute name="value" type="xsd:integer" use="optional"/>
4597
- // </xsd:complexType>
3802
+ }
3803
+ }
4598
3804
  export class AbstractDocListItemType extends AbstractDataModelBase {
4599
- // Optional elements.
4600
3805
  paras;
4601
- // Optional attributes.
4602
3806
  override;
4603
3807
  value;
4604
3808
  constructor(xml, element, elementName) {
4605
3809
  super(elementName);
4606
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4607
- // ------------------------------------------------------------------------
4608
- // Process elements.
4609
3810
  const innerElements = xml.getInnerElements(element, elementName);
4610
- // May be empty.
4611
- // assert(innerElements.length > 0)
4612
3811
  for (const innerElement of innerElements) {
4613
3812
  if (xml.hasInnerText(innerElement)) {
4614
- // Ignore texts.
4615
3813
  }
4616
3814
  else if (xml.hasInnerElement(innerElement, 'para')) {
4617
3815
  this.paras ??= [];
@@ -4622,8 +3820,6 @@ export class AbstractDocListItemType extends AbstractDataModelBase {
4622
3820
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
4623
3821
  }
4624
3822
  }
4625
- // ------------------------------------------------------------------------
4626
- // Process attributes.
4627
3823
  if (xml.hasAttributes(element)) {
4628
3824
  const attributesNames = xml.getAttributesNames(element);
4629
3825
  for (const attributeName of attributesNames) {
@@ -4632,7 +3828,7 @@ export class AbstractDocListItemType extends AbstractDataModelBase {
4632
3828
  }
4633
3829
  else if (attributeName === '@_value') {
4634
3830
  assert(this.value === undefined);
4635
- this.value = Number(xml.getAttributeNumberValue(element, '@_value'));
3831
+ this.value = xml.getAttributeNumberValue(element, '@_value');
4636
3832
  }
4637
3833
  else {
4638
3834
  console.error(util.inspect(element, { compact: false, depth: 999 }));
@@ -4640,38 +3836,18 @@ export class AbstractDocListItemType extends AbstractDataModelBase {
4640
3836
  }
4641
3837
  }
4642
3838
  }
4643
- // ------------------------------------------------------------------------
4644
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4645
3839
  }
4646
3840
  }
4647
- // <xsd:element name="listitem" type="docListItemType" maxOccurs="unbounded" />
4648
3841
  export class ListItemDataModel extends AbstractDocListItemType {
4649
3842
  constructor(xml, element) {
4650
3843
  super(xml, element, 'listitem');
4651
3844
  }
4652
3845
  }
4653
- // ----------------------------------------------------------------------------
4654
- // <xsd:complexType name="docSimpleSectType">
4655
- // <xsd:sequence>
4656
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
4657
- // <xsd:sequence minOccurs="0" maxOccurs="unbounded">
4658
- // <xsd:element name="para" type="docParaType" minOccurs="1" maxOccurs="unbounded" />
4659
- // </xsd:sequence>
4660
- // </xsd:sequence>
4661
- // <xsd:attribute name="kind" type="DoxSimpleSectKind" />
4662
- // </xsd:complexType>
4663
3846
  export class AbstractDocSimpleSectType extends AbstractDataModelBase {
4664
- // Optional elements.
4665
- title; // Only one.
4666
- // Any sequence of them.
4667
- // children: Array<string | ParaDataModel> = []
4668
- // Mandatory attributes.
3847
+ title;
4669
3848
  kind = '';
4670
3849
  constructor(xml, element, elementName) {
4671
3850
  super(elementName);
4672
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4673
- // ------------------------------------------------------------------------
4674
- // Process elements.
4675
3851
  const innerElements = xml.getInnerElements(element, elementName);
4676
3852
  assert(innerElements.length > 0);
4677
3853
  this.children = [];
@@ -4691,8 +3867,6 @@ export class AbstractDocSimpleSectType extends AbstractDataModelBase {
4691
3867
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
4692
3868
  }
4693
3869
  }
4694
- // ------------------------------------------------------------------------
4695
- // Process attributes.
4696
3870
  assert(xml.hasAttributes(element));
4697
3871
  const attributesNames = xml.getAttributesNames(element);
4698
3872
  for (const attributeName of attributesNames) {
@@ -4704,46 +3878,14 @@ export class AbstractDocSimpleSectType extends AbstractDataModelBase {
4704
3878
  console.error(`${elementName} attribute:`, attributeName, 'not implemented yet in', this.constructor.name);
4705
3879
  }
4706
3880
  }
4707
- // ------------------------------------------------------------------------
4708
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4709
- }
4710
- }
4711
- // ----------------------------------------------------------------------------
4712
- // <xsd:complexType name="docVarListEntryType">
4713
- // <xsd:sequence>
4714
- // <xsd:element name="term" type="docTitleType" />
4715
- // </xsd:sequence>
4716
- // </xsd:complexType>
4717
- // <xsd:group name="docVariableListGroup">
4718
- // <xsd:sequence>
4719
- // <xsd:element name="varlistentry" type="docVarListEntryType" />
4720
- // <xsd:element name="listitem" type="docListItemType" />
4721
- // </xsd:sequence>
4722
- // </xsd:group>
4723
- // <xsd:complexType name="docVariableListType">
4724
- // <xsd:sequence>
4725
- // <xsd:group ref="docVariableListGroup" maxOccurs="unbounded" />
4726
- // </xsd:sequence>
4727
- // </xsd:complexType>
4728
- // <xsd:complexType name="docRefTextType" mixed="true"> <-- Character data is allowed to appear between the child elements!
4729
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
4730
- // <xsd:attribute name="refid" type="xsd:string" />
4731
- // <xsd:attribute name="kindref" type="DoxRefKind" />
4732
- // <xsd:attribute name="external" type="xsd:string" />
4733
- // </xsd:complexType>
3881
+ }
3882
+ }
4734
3883
  export class AbstractDocRefTextType extends AbstractDataModelBase {
4735
- // Any sequence of them.
4736
- // children: Array<string | DocTitleCmdGroup> = []
4737
- // Mandatory attributes.
4738
3884
  refid = '';
4739
- kindref = ''; // DoxRefKind
4740
- // Optional attributes.
3885
+ kindref = '';
4741
3886
  external;
4742
3887
  constructor(xml, element, elementName) {
4743
3888
  super(elementName);
4744
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4745
- // ------------------------------------------------------------------------
4746
- // Process elements.
4747
3889
  const innerElements = xml.getInnerElements(element, elementName);
4748
3890
  assert(innerElements.length > 0);
4749
3891
  this.children = [];
@@ -4755,8 +3897,6 @@ export class AbstractDocRefTextType extends AbstractDataModelBase {
4755
3897
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
4756
3898
  }
4757
3899
  }
4758
- // ------------------------------------------------------------------------
4759
- // Process attributes.
4760
3900
  assert(xml.hasAttributes(element));
4761
3901
  const attributesNames = xml.getAttributesNames(element);
4762
3902
  for (const attributeName of attributesNames) {
@@ -4774,47 +3914,27 @@ export class AbstractDocRefTextType extends AbstractDataModelBase {
4774
3914
  console.error(`${elementName} attribute:`, attributeName, 'not implemented yet in', this.constructor.name);
4775
3915
  }
4776
3916
  }
4777
- // WARNING may be empty
4778
- // assert(this.refid.length > 0)
4779
3917
  assert(this.kindref.length > 0);
4780
- // ------------------------------------------------------------------------
4781
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4782
3918
  }
4783
3919
  }
4784
- // <xsd:element name="ref" type="docRefTextType" />
4785
3920
  export class RefDataModel extends AbstractDocRefTextType {
4786
3921
  constructor(xml, element) {
4787
3922
  super(xml, element, 'ref');
4788
3923
  }
4789
3924
  }
4790
- // <xsd:complexType name="docTableType">
4791
- // <xsd:sequence>
4792
- // <xsd:element name="caption" type="docCaptionType" minOccurs="0" maxOccurs="1" />
4793
- // <xsd:element name="row" type="docRowType" minOccurs="0" maxOccurs="unbounded" />
4794
- // </xsd:sequence>
4795
- // <xsd:attribute name="rows" type="xsd:integer" />
4796
- // <xsd:attribute name="cols" type="xsd:integer" />
4797
- // <xsd:attribute name="width" type="xsd:string" /> // WARNING: optional
4798
- // </xsd:complexType>
4799
3925
  export class AbstractDocTableType extends AbstractDataModelBase {
4800
3926
  caption = undefined;
4801
3927
  rows = undefined;
4802
- // Mandatory attributes.
4803
3928
  rowsCount = NaN;
4804
3929
  colsCount = NaN;
4805
- // Optional
4806
3930
  width;
4807
3931
  constructor(xml, element, elementName) {
4808
3932
  super(elementName);
4809
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4810
- // ------------------------------------------------------------------------
4811
- // Process elements.
4812
3933
  const innerElements = xml.getInnerElements(element, elementName);
4813
3934
  assert(innerElements.length > 0);
4814
3935
  this.children = [];
4815
3936
  for (const innerElement of innerElements) {
4816
3937
  if (xml.hasInnerText(innerElement)) {
4817
- // Ignore texts.
4818
3938
  }
4819
3939
  else if (xml.hasInnerElement(innerElement, 'caption')) {
4820
3940
  assert(this.caption === undefined);
@@ -4831,8 +3951,6 @@ export class AbstractDocTableType extends AbstractDataModelBase {
4831
3951
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
4832
3952
  }
4833
3953
  }
4834
- // ------------------------------------------------------------------------
4835
- // Process attributes.
4836
3954
  assert(xml.hasAttributes(element));
4837
3955
  const attributesNames = xml.getAttributesNames(element);
4838
3956
  for (const attributeName of attributesNames) {
@@ -4855,35 +3973,22 @@ export class AbstractDocTableType extends AbstractDataModelBase {
4855
3973
  }
4856
3974
  assert(this.rowsCount > 0);
4857
3975
  assert(this.colsCount > 0);
4858
- // ------------------------------------------------------------------------
4859
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4860
3976
  }
4861
3977
  }
4862
- // <xsd:element name="table" type="docTableType" />
4863
3978
  export class DocTableDataModel extends AbstractDocTableType {
4864
3979
  constructor(xml, element) {
4865
3980
  super(xml, element, 'table');
4866
3981
  }
4867
3982
  }
4868
- // <xsd:complexType name="docRowType">
4869
- // <xsd:sequence>
4870
- // <xsd:element name="entry" type="docEntryType" minOccurs="0" maxOccurs="unbounded" />
4871
- // </xsd:sequence>
4872
- // </xsd:complexType>
4873
3983
  export class AbstractDocRowType extends AbstractDataModelBase {
4874
- // Optional elements.
4875
3984
  entries;
4876
3985
  constructor(xml, element, elementName) {
4877
3986
  super(elementName);
4878
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4879
- // ------------------------------------------------------------------------
4880
- // Process elements.
4881
3987
  const innerElements = xml.getInnerElements(element, elementName);
4882
3988
  assert(innerElements.length > 0);
4883
3989
  this.children = [];
4884
3990
  for (const innerElement of innerElements) {
4885
3991
  if (xml.hasInnerText(innerElement)) {
4886
- // Ignore texts.
4887
3992
  }
4888
3993
  else if (xml.hasInnerElement(innerElement, 'entry')) {
4889
3994
  this.entries ??= [];
@@ -4896,36 +4001,16 @@ export class AbstractDocRowType extends AbstractDataModelBase {
4896
4001
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
4897
4002
  }
4898
4003
  }
4899
- // ------------------------------------------------------------------------
4900
- // Process attributes.
4901
4004
  assert(!xml.hasAttributes(element));
4902
- // ------------------------------------------------------------------------
4903
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4904
4005
  }
4905
4006
  }
4906
- // <xsd:element name="row" type="docRowType" minOccurs="0" maxOccurs="unbounded" />
4907
4007
  export class DocRowDataModel extends AbstractDocRowType {
4908
4008
  constructor(xml, element) {
4909
4009
  super(xml, element, 'row');
4910
4010
  }
4911
4011
  }
4912
- // <xsd:complexType name="docEntryType">
4913
- // <xsd:sequence>
4914
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
4915
- // </xsd:sequence>
4916
- // <xsd:attribute name="thead" type="DoxBool" />
4917
- // <xsd:attribute name="colspan" type="xsd:integer" /> // WARNING: optional
4918
- // <xsd:attribute name="rowspan" type="xsd:integer" /> // WARNING: optional
4919
- // <xsd:attribute name="align" type="DoxAlign" /> // WARNING: optional
4920
- // <xsd:attribute name="valign" type="DoxVerticalAlign" /> // WARNING: optional
4921
- // <xsd:attribute name="width" type="xsd:string" /> // WARNING: optional
4922
- // <xsd:attribute name="class" type="xsd:string" /> // WARNING: optional
4923
- // <xsd:anyAttribute processContents="skip"/>
4924
- // </xsd:complexType>
4925
4012
  export class AbstractDocEntryType extends AbstractDataModelBase {
4926
- // Optional elements.
4927
4013
  paras;
4928
- // Mandatory attributes.
4929
4014
  thead = false;
4930
4015
  colspan;
4931
4016
  rowspan;
@@ -4935,15 +4020,11 @@ export class AbstractDocEntryType extends AbstractDataModelBase {
4935
4020
  classs;
4936
4021
  constructor(xml, element, elementName) {
4937
4022
  super(elementName);
4938
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
4939
- // ------------------------------------------------------------------------
4940
- // Process elements.
4941
4023
  const innerElements = xml.getInnerElements(element, elementName);
4942
4024
  assert(innerElements.length > 0);
4943
4025
  this.children = [];
4944
4026
  for (const innerElement of innerElements) {
4945
4027
  if (xml.hasInnerText(innerElement)) {
4946
- // Ignore texts.
4947
4028
  }
4948
4029
  else if (xml.hasInnerElement(innerElement, 'para')) {
4949
4030
  this.paras ??= [];
@@ -4956,8 +4037,6 @@ export class AbstractDocEntryType extends AbstractDataModelBase {
4956
4037
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
4957
4038
  }
4958
4039
  }
4959
- // ------------------------------------------------------------------------
4960
- // Process attributes.
4961
4040
  if (xml.hasAttributes(element)) {
4962
4041
  const attributesNames = xml.getAttributesNames(element);
4963
4042
  for (const attributeName of attributesNames) {
@@ -4966,11 +4045,11 @@ export class AbstractDocEntryType extends AbstractDataModelBase {
4966
4045
  }
4967
4046
  else if (attributeName === '@_colspan') {
4968
4047
  assert(this.colspan === undefined);
4969
- this.colspan = Number(xml.getAttributeNumberValue(element, '@_colspan'));
4048
+ this.colspan = xml.getAttributeNumberValue(element, '@_colspan');
4970
4049
  }
4971
4050
  else if (attributeName === '@_rowspan') {
4972
4051
  assert(this.rowspan === undefined);
4973
- this.rowspan = Number(xml.getAttributeNumberValue(element, '@_rowspan'));
4052
+ this.rowspan = xml.getAttributeNumberValue(element, '@_rowspan');
4974
4053
  }
4975
4054
  else if (attributeName === '@_align') {
4976
4055
  assert(this.align === undefined);
@@ -4993,30 +4072,17 @@ export class AbstractDocEntryType extends AbstractDataModelBase {
4993
4072
  }
4994
4073
  }
4995
4074
  }
4996
- // ------------------------------------------------------------------------
4997
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
4998
4075
  }
4999
4076
  }
5000
- // <xsd:element name="entry" type="docEntryType" minOccurs="0" maxOccurs="unbounded" />
5001
4077
  export class DocEntryDataModel extends AbstractDocEntryType {
5002
4078
  constructor(xml, element) {
5003
4079
  super(xml, element, 'entry');
5004
4080
  }
5005
4081
  }
5006
- // <xsd:complexType name="docCaptionType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5007
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
5008
- // <xsd:attribute name="id" type="xsd:string" />
5009
- // </xsd:complexType>
5010
4082
  export class AbstractDocCaptionType extends AbstractDataModelBase {
5011
- // Any sequence of them.
5012
- // children: Array<string | DocTitleCmdGroup> = []
5013
- // Mandatory attributes.
5014
4083
  id = '';
5015
4084
  constructor(xml, element, elementName) {
5016
4085
  super(elementName);
5017
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5018
- // ------------------------------------------------------------------------
5019
- // Process elements.
5020
4086
  const innerElements = xml.getInnerElements(element, elementName);
5021
4087
  assert(innerElements.length > 0);
5022
4088
  this.children = [];
@@ -5028,8 +4094,6 @@ export class AbstractDocCaptionType extends AbstractDataModelBase {
5028
4094
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
5029
4095
  }
5030
4096
  }
5031
- // ------------------------------------------------------------------------
5032
- // Process attributes.
5033
4097
  assert(xml.hasAttributes(element));
5034
4098
  const attributesNames = xml.getAttributesNames(element);
5035
4099
  for (const attributeName of attributesNames) {
@@ -5043,37 +4107,17 @@ export class AbstractDocCaptionType extends AbstractDataModelBase {
5043
4107
  }
5044
4108
  }
5045
4109
  assert(this.id.length > 0);
5046
- // ------------------------------------------------------------------------
5047
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5048
4110
  }
5049
4111
  }
5050
- // <xsd:element name="row" type="docRowType" minOccurs="0" maxOccurs="unbounded" />
5051
4112
  export class DocCaptionDataModel extends AbstractDocCaptionType {
5052
4113
  constructor(xml, element) {
5053
4114
  super(xml, element, 'caption');
5054
4115
  }
5055
4116
  }
5056
- // <xsd:simpleType name="range_1_6">
5057
- // <xsd:restriction base="xsd:integer">
5058
- // <xsd:minInclusive value="1"/>
5059
- // <xsd:maxInclusive value="6"/>
5060
- // </xsd:restriction>
5061
- // </xsd:simpleType>
5062
- // ----------------------------------------------------------------------------
5063
- // <xsd:complexType name="docHeadingType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5064
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
5065
- // <xsd:attribute name="level" type="range_1_6" />
5066
- // </xsd:complexType>
5067
4117
  export class AbstractDocHeadingType extends AbstractDataModelBase {
5068
- // Any sequence of them.
5069
- // children: Array<string | DocTitleCmdGroup> = []
5070
- // Mandatory attributes.
5071
4118
  level = NaN;
5072
4119
  constructor(xml, element, elementName) {
5073
4120
  super(elementName);
5074
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5075
- // ------------------------------------------------------------------------
5076
- // Process elements.
5077
4121
  const innerElements = xml.getInnerElements(element, elementName);
5078
4122
  assert(innerElements.length > 0);
5079
4123
  this.children = [];
@@ -5085,8 +4129,6 @@ export class AbstractDocHeadingType extends AbstractDataModelBase {
5085
4129
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
5086
4130
  }
5087
4131
  }
5088
- // ------------------------------------------------------------------------
5089
- // Process attributes.
5090
4132
  if (xml.hasAttributes(element)) {
5091
4133
  const attributesNames = xml.getAttributesNames(element);
5092
4134
  for (const attributeName of attributesNames) {
@@ -5099,43 +4141,14 @@ export class AbstractDocHeadingType extends AbstractDataModelBase {
5099
4141
  }
5100
4142
  }
5101
4143
  }
5102
- // ------------------------------------------------------------------------
5103
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5104
4144
  }
5105
4145
  }
5106
- // <xsd:element name="heading" type="docHeadingType" />
5107
4146
  export class HeadingDataModel extends AbstractDocHeadingType {
5108
4147
  constructor(xml, element) {
5109
4148
  super(xml, element, 'heading');
5110
4149
  }
5111
4150
  }
5112
- // ----------------------------------------------------------------------------
5113
- // <xsd:complexType name="docImageType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5114
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
5115
- // <xsd:attribute name="type" type="DoxImageKind" use="optional"/>
5116
- // <xsd:attribute name="name" type="xsd:string" use="optional"/>
5117
- // <xsd:attribute name="width" type="xsd:string" use="optional"/>
5118
- // <xsd:attribute name="height" type="xsd:string" use="optional"/>
5119
- // <xsd:attribute name="alt" type="xsd:string" use="optional"/>
5120
- // <xsd:attribute name="inline" type="DoxBool" use="optional"/>
5121
- // <xsd:attribute name="caption" type="xsd:string" use="optional"/>
5122
- // </xsd:complexType>
5123
- // <xsd:simpleType name="DoxImageKind">
5124
- // <xsd:restriction base="xsd:string">
5125
- // <xsd:enumeration value="html" />
5126
- // <xsd:enumeration value="latex" />
5127
- // <xsd:enumeration value="docbook" />
5128
- // <xsd:enumeration value="rtf" />
5129
- // <xsd:enumeration value="xml" />
5130
- // </xsd:restriction>
5131
- // </xsd:simpleType>
5132
- /**
5133
- * @public
5134
- */
5135
4151
  export class AbstractDocImageType extends AbstractDataModelBase {
5136
- // Any sequence of them.
5137
- // children: Array<string | DocTitleCmdGroup> = []
5138
- // Optional attributes.
5139
4152
  type;
5140
4153
  name;
5141
4154
  width;
@@ -5145,9 +4158,6 @@ export class AbstractDocImageType extends AbstractDataModelBase {
5145
4158
  caption;
5146
4159
  constructor(xml, element, elementName) {
5147
4160
  super(elementName);
5148
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5149
- // ------------------------------------------------------------------------
5150
- // Process elements.
5151
4161
  const innerElements = xml.getInnerElements(element, elementName);
5152
4162
  this.children = [];
5153
4163
  for (const innerElement of innerElements) {
@@ -5158,8 +4168,6 @@ export class AbstractDocImageType extends AbstractDataModelBase {
5158
4168
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
5159
4169
  }
5160
4170
  }
5161
- // ------------------------------------------------------------------------
5162
- // Process attributes.
5163
4171
  assert(xml.hasAttributes(element));
5164
4172
  const attributesNames = xml.getAttributesNames(element);
5165
4173
  for (const attributeName of attributesNames) {
@@ -5179,7 +4187,7 @@ export class AbstractDocImageType extends AbstractDataModelBase {
5179
4187
  this.alt = xml.getAttributeStringValue(element, '@_alt');
5180
4188
  }
5181
4189
  else if (attributeName === '@_inline') {
5182
- this.inline = Boolean(xml.getAttributeBooleanValue(element, '@_inline'));
4190
+ this.inline = xml.getAttributeBooleanValue(element, '@_inline');
5183
4191
  }
5184
4192
  else if (attributeName === '@_caption') {
5185
4193
  this.caption = xml.getAttributeStringValue(element, '@_caption');
@@ -5189,82 +4197,25 @@ export class AbstractDocImageType extends AbstractDataModelBase {
5189
4197
  console.error(`${elementName} attribute:`, attributeName, 'not implemented yet in', this.constructor.name);
5190
4198
  }
5191
4199
  }
5192
- // ------------------------------------------------------------------------
5193
- // Keep track of html images, to copy them to the output.
5194
4200
  if (this.type === 'html' && this.name !== undefined && !isUrl(this.name)) {
5195
4201
  xml.images.push(this);
5196
4202
  }
5197
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5198
4203
  }
5199
4204
  }
5200
- // <xsd:element name="image" type="docImageType" />
5201
4205
  export class ImageDataModel extends AbstractDocImageType {
5202
4206
  constructor(xml, element) {
5203
4207
  super(xml, element, 'image');
5204
4208
  }
5205
4209
  }
5206
- // ----------------------------------------------------------------------------
5207
- // <xsd:complexType name="docDotMscType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5208
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
5209
- // <xsd:attribute name="name" type="xsd:string" use="optional"/>
5210
- // <xsd:attribute name="width" type="xsd:string" use="optional"/>
5211
- // <xsd:attribute name="height" type="xsd:string" use="optional"/>
5212
- // <xsd:attribute name="caption" type="xsd:string" use="optional"/>
5213
- // </xsd:complexType>
5214
- // <xsd:complexType name="docImageFileType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5215
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
5216
- // <xsd:attribute name="name" type="xsd:string" use="optional">
5217
- // <xsd:annotation>
5218
- // <xsd:documentation>The mentioned file will be located in the directory as specified by XML_OUTPUT</xsd:documentation>
5219
- // </xsd:annotation>
5220
- // </xsd:attribute>
5221
- // <xsd:attribute name="width" type="xsd:string" use="optional"/>
5222
- // <xsd:attribute name="height" type="xsd:string" use="optional"/>
5223
- // </xsd:complexType>
5224
- // <xsd:complexType name="docPlantumlType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5225
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
5226
- // <xsd:attribute name="name" type="xsd:string" use="optional"/>
5227
- // <xsd:attribute name="width" type="xsd:string" use="optional"/>
5228
- // <xsd:attribute name="height" type="xsd:string" use="optional"/>
5229
- // <xsd:attribute name="caption" type="xsd:string" use="optional"/>
5230
- // <xsd:attribute name="engine" type="DoxPlantumlEngine" use="optional"/>
5231
- // </xsd:complexType>
5232
- // <xsd:complexType name="docTocItemType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5233
- // <xsd:group ref="docTitleCmdGroup" minOccurs="0" maxOccurs="unbounded" />
5234
- // <xsd:attribute name="id" type="xsd:string" />
5235
- // </xsd:complexType>
5236
- // <xsd:complexType name="docTocListType">
5237
- // <xsd:sequence>
5238
- // <xsd:element name="tocitem" type="docTocItemType" minOccurs="0" maxOccurs="unbounded" />
5239
- // </xsd:sequence>
5240
- // </xsd:complexType>
5241
- // <xsd:complexType name="docLanguageType">
5242
- // <xsd:sequence>
5243
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
5244
- // </xsd:sequence>
5245
- // <xsd:attribute name="langid" type="xsd:string" />
5246
- // </xsd:complexType>
5247
- // <xsd:complexType name="docParamListType">
5248
- // <xsd:sequence>
5249
- // <xsd:element name="parameteritem" type="docParamListItem" minOccurs="0" maxOccurs="unbounded" />
5250
- // </xsd:sequence>
5251
- // <xsd:attribute name="kind" type="DoxParamListKind" />
5252
- // </xsd:complexType>
5253
4210
  export class AbstractDocParamListType extends AbstractDataModelBase {
5254
- // Optional elements.
5255
4211
  parameterItems;
5256
- // Mandatory attributes.
5257
4212
  kind = '';
5258
4213
  constructor(xml, element, elementName) {
5259
4214
  super(elementName);
5260
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5261
- // ------------------------------------------------------------------------
5262
- // Process elements.
5263
4215
  const innerElements = xml.getInnerElements(element, elementName);
5264
4216
  assert(innerElements.length > 0);
5265
4217
  for (const innerElement of innerElements) {
5266
4218
  if (xml.hasInnerText(innerElement)) {
5267
- // Ignore texts.
5268
4219
  }
5269
4220
  else if (xml.hasInnerElement(innerElement, 'parameteritem')) {
5270
4221
  this.parameterItems ??= [];
@@ -5275,8 +4226,6 @@ export class AbstractDocParamListType extends AbstractDataModelBase {
5275
4226
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
5276
4227
  }
5277
4228
  }
5278
- // ------------------------------------------------------------------------
5279
- // Process attributes.
5280
4229
  assert(xml.hasAttributes(element));
5281
4230
  const attributesNames = xml.getAttributesNames(element);
5282
4231
  for (const attributeName of attributesNames) {
@@ -5288,38 +4237,22 @@ export class AbstractDocParamListType extends AbstractDataModelBase {
5288
4237
  console.error(`${elementName} attribute:`, attributeName, 'not implemented yet in', this.constructor.name);
5289
4238
  }
5290
4239
  }
5291
- // ------------------------------------------------------------------------
5292
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5293
4240
  }
5294
4241
  }
5295
- // <xsd:element name="parameterlist" type="docParamListType" />
5296
4242
  export class ParameterListDataModel extends AbstractDocParamListType {
5297
4243
  constructor(xml, element) {
5298
4244
  super(xml, element, 'parameterlist');
5299
4245
  }
5300
4246
  }
5301
- // ----------------------------------------------------------------------------
5302
- // <xsd:complexType name="docParamListItem">
5303
- // <xsd:sequence>
5304
- // <xsd:element name="parameternamelist" type="docParamNameList" minOccurs="0" maxOccurs="unbounded" />
5305
- // <xsd:element name="parameterdescription" type="descriptionType" />
5306
- // </xsd:sequence>
5307
- // </xsd:complexType>
5308
4247
  export class AbstractDocParamListItem extends AbstractDataModelBase {
5309
- // Mandatory elements.
5310
4248
  parameterDescription;
5311
- // Optional elements.
5312
4249
  parameterNameList;
5313
4250
  constructor(xml, element, elementName) {
5314
4251
  super(elementName);
5315
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5316
- // ------------------------------------------------------------------------
5317
- // Process elements.
5318
4252
  const innerElements = xml.getInnerElements(element, elementName);
5319
4253
  assert(innerElements.length > 0);
5320
4254
  for (const innerElement of innerElements) {
5321
4255
  if (xml.hasInnerText(innerElement)) {
5322
- // Ignore texts.
5323
4256
  }
5324
4257
  else if (xml.hasInnerElement(innerElement, 'parameternamelist')) {
5325
4258
  this.parameterNameList ??= [];
@@ -5334,40 +4267,22 @@ export class AbstractDocParamListItem extends AbstractDataModelBase {
5334
4267
  }
5335
4268
  }
5336
4269
  assert(this.parameterDescription !== undefined);
5337
- // ------------------------------------------------------------------------
5338
- // Process attributes.
5339
4270
  assert(!xml.hasAttributes(element));
5340
- // ------------------------------------------------------------------------
5341
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5342
4271
  }
5343
4272
  }
5344
- // <xsd:element name="parameteritem" type="docParamListItem" minOccurs="0" maxOccurs="unbounded" />
5345
4273
  export class ParameterItemDataModel extends AbstractDocParamListItem {
5346
4274
  constructor(xml, element) {
5347
4275
  super(xml, element, 'parameteritem');
5348
4276
  }
5349
4277
  }
5350
- // WARNING: must be pairs of type/name.
5351
- // <xsd:complexType name="docParamNameList">
5352
- // <xsd:sequence>
5353
- // <xsd:element name="parametertype" type="docParamType" minOccurs="0" maxOccurs="unbounded" />
5354
- // <xsd:element name="parametername" type="docParamName" minOccurs="0" maxOccurs="unbounded" />
5355
- // </xsd:sequence>
5356
- // </xsd:complexType>
5357
4278
  export class AbstractDocParamNameList extends AbstractDataModelBase {
5358
- // Any sequence of them.
5359
- // children: Array<ParameterTypeDataModel | ParameterNameDataModel> = []
5360
4279
  constructor(xml, element, elementName) {
5361
4280
  super(elementName);
5362
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5363
- // ------------------------------------------------------------------------
5364
- // Process elements.
5365
4281
  const innerElements = xml.getInnerElements(element, elementName);
5366
4282
  assert(innerElements.length > 0);
5367
4283
  this.children = [];
5368
4284
  for (const innerElement of innerElements) {
5369
4285
  if (xml.hasInnerText(innerElement)) {
5370
- // Ignore texts.
5371
4286
  }
5372
4287
  else if (xml.hasInnerElement(innerElement, 'parametertype')) {
5373
4288
  this.children.push(new ParameterTypeDataModel(xml, innerElement));
@@ -5380,32 +4295,17 @@ export class AbstractDocParamNameList extends AbstractDataModelBase {
5380
4295
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
5381
4296
  }
5382
4297
  }
5383
- // ------------------------------------------------------------------------
5384
- // Process attributes.
5385
4298
  assert(!xml.hasAttributes(element));
5386
- // ------------------------------------------------------------------------
5387
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5388
4299
  }
5389
4300
  }
5390
- // <xsd:element name="parameternamelist" type="docParamNameList" minOccurs="0" maxOccurs="unbounded" />
5391
4301
  export class ParameterNamelistDataModel extends AbstractDocParamNameList {
5392
4302
  constructor(xml, element) {
5393
4303
  super(xml, element, 'parameternamelist');
5394
4304
  }
5395
4305
  }
5396
- // <xsd:complexType name="docParamType" mixed="true"> <-- Character data is allowed to appear between the child elements!
5397
- // <xsd:sequence>
5398
- // <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="1" />
5399
- // </xsd:sequence>
5400
- // </xsd:complexType>
5401
4306
  export class AbstractDocParamType extends AbstractDataModelBase {
5402
- // Any sequence of them.
5403
- // children: Array<string | RefTextDataModel> = []
5404
4307
  constructor(xml, element, elementName) {
5405
4308
  super(elementName);
5406
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5407
- // ------------------------------------------------------------------------
5408
- // Process elements.
5409
4309
  const innerElements = xml.getInnerElements(element, elementName);
5410
4310
  assert(innerElements.length > 0);
5411
4311
  this.children = [];
@@ -5421,35 +4321,18 @@ export class AbstractDocParamType extends AbstractDataModelBase {
5421
4321
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
5422
4322
  }
5423
4323
  }
5424
- // ------------------------------------------------------------------------
5425
- // Process attributes.
5426
4324
  assert(!xml.hasAttributes(element));
5427
- // ------------------------------------------------------------------------
5428
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5429
4325
  }
5430
4326
  }
5431
- // <xsd:element name="parametertype" type="docParamType" minOccurs="0" maxOccurs="unbounded" />
5432
4327
  export class ParameterTypeDataModel extends AbstractDocParamType {
5433
4328
  constructor(xml, element) {
5434
4329
  super(xml, element, 'parametertype');
5435
4330
  }
5436
4331
  }
5437
- // <xsd:complexType name="docParamName" mixed="true"> <-- Character data is allowed to appear between the child elements!
5438
- // <xsd:sequence>
5439
- // <xsd:element name="ref" type="refTextType" minOccurs="0" maxOccurs="1" />
5440
- // </xsd:sequence>
5441
- // <xsd:attribute name="direction" type="DoxParamDir" use="optional" />
5442
- // </xsd:complexType>
5443
4332
  export class AbstractDocParamName extends AbstractDataModelBase {
5444
- // Any sequence of them.
5445
- // children: Array<string | RefTextDataModel> = []
5446
- // Optional attributes.
5447
4333
  direction;
5448
4334
  constructor(xml, element, elementName) {
5449
4335
  super(elementName);
5450
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5451
- // ------------------------------------------------------------------------
5452
- // Process elements.
5453
4336
  const innerElements = xml.getInnerElements(element, elementName);
5454
4337
  assert(innerElements.length > 0);
5455
4338
  this.children = [];
@@ -5465,8 +4348,6 @@ export class AbstractDocParamName extends AbstractDataModelBase {
5465
4348
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
5466
4349
  }
5467
4350
  }
5468
- // ------------------------------------------------------------------------
5469
- // Process attributes.
5470
4351
  if (xml.hasAttributes(element)) {
5471
4352
  const attributesNames = xml.getAttributesNames(element);
5472
4353
  for (const attributeName of attributesNames) {
@@ -5479,40 +4360,22 @@ export class AbstractDocParamName extends AbstractDataModelBase {
5479
4360
  }
5480
4361
  }
5481
4362
  }
5482
- // ------------------------------------------------------------------------
5483
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5484
4363
  }
5485
4364
  }
5486
- // <xsd:element name="parametername" type="docParamName" minOccurs="0" maxOccurs="unbounded" />
5487
4365
  export class ParameterNameDataModel extends AbstractDocParamName {
5488
4366
  constructor(xml, element) {
5489
4367
  super(xml, element, 'parametername');
5490
4368
  }
5491
4369
  }
5492
- // ----------------------------------------------------------------------------
5493
- // <xsd:complexType name="docXRefSectType">
5494
- // <xsd:sequence>
5495
- // <xsd:element name="xreftitle" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
5496
- // <xsd:element name="xrefdescription" type="descriptionType" />
5497
- // </xsd:sequence>
5498
- // <xsd:attribute name="id" type="xsd:string" />
5499
- // </xsd:complexType>
5500
4370
  export class AbstractDocXRefSectType extends AbstractDataModelBase {
5501
- // Mandatory elements.
5502
4371
  xreftitle;
5503
4372
  xrefdescription;
5504
- // Mandatory attributes.
5505
4373
  id = '';
5506
4374
  constructor(xml, element, elementName) {
5507
4375
  super(elementName);
5508
- // console.log(elementName, util.inspect(element,
5509
- // { compact: false, depth: 999 }))
5510
- // ------------------------------------------------------------------------
5511
- // Process elements.
5512
4376
  const innerElements = xml.getInnerElements(element, elementName);
5513
4377
  for (const innerElement of innerElements) {
5514
4378
  if (xml.hasInnerText(innerElement)) {
5515
- // Ignore texts.
5516
4379
  }
5517
4380
  else if (xml.isInnerElementText(innerElement, 'xreftitle')) {
5518
4381
  this.xreftitle = xml.getInnerElementText(innerElement, 'xreftitle');
@@ -5526,8 +4389,6 @@ export class AbstractDocXRefSectType extends AbstractDataModelBase {
5526
4389
  }
5527
4390
  }
5528
4391
  assert(this.xrefdescription !== undefined);
5529
- // ------------------------------------------------------------------------
5530
- // Process attributes.
5531
4392
  assert(xml.hasAttributes(element));
5532
4393
  const attributesNames = xml.getAttributesNames(element);
5533
4394
  for (const attributeName of attributesNames) {
@@ -5540,48 +4401,17 @@ export class AbstractDocXRefSectType extends AbstractDataModelBase {
5540
4401
  }
5541
4402
  }
5542
4403
  assert(this.id.length > 0);
5543
- // ------------------------------------------------------------------------
5544
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5545
4404
  }
5546
4405
  }
5547
- // <xsd:element name="xrefsect" type="docXRefSectType" />
5548
4406
  export class XrefSectDataModel extends AbstractDocXRefSectType {
5549
4407
  constructor(xml, element) {
5550
4408
  super(xml, element, 'xrefsect');
5551
4409
  }
5552
4410
  }
5553
- // ----------------------------------------------------------------------------
5554
- // <xsd:complexType name="docCopyType">
5555
- // <xsd:sequence>
5556
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
5557
- // <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
5558
- // <xsd:element name="internal" type="docInternalType" minOccurs="0" />
5559
- // </xsd:sequence>
5560
- // <xsd:attribute name="link" type="xsd:string" />
5561
- // </xsd:complexType>
5562
- // <xsd:complexType name="docDetailsType">
5563
- // <xsd:sequence>
5564
- // <xsd:element name="summary" type="docSummaryType" minOccurs="0" maxOccurs="1" />
5565
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
5566
- // </xsd:sequence>
5567
- // </xsd:complexType>
5568
- // ----------------------------------------------------------------------------
5569
- // <xsd:complexType name="docBlockQuoteType">
5570
- // <xsd:sequence>
5571
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
5572
- // </xsd:sequence>
5573
- // </xsd:complexType>
5574
4411
  export class AbstractDocBlockQuoteType extends AbstractDataModelBase {
5575
- // Any sequence of them.
5576
- // children: Array<string | ParaDataModel> = []
5577
4412
  constructor(xml, element, elementName) {
5578
4413
  super(elementName);
5579
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5580
- // ------------------------------------------------------------------------
5581
- // Process elements.
5582
4414
  const innerElements = xml.getInnerElements(element, elementName);
5583
- // SubstringDocMarkupType has no inner elments
5584
- // assert(innerElements.length > 0)
5585
4415
  this.children = [];
5586
4416
  for (const innerElement of innerElements) {
5587
4417
  if (xml.hasInnerText(innerElement)) {
@@ -5595,11 +4425,7 @@ export class AbstractDocBlockQuoteType extends AbstractDataModelBase {
5595
4425
  console.error(`${elementName} element:`, Object.keys(innerElement), 'not implemented yet in', this.constructor.name);
5596
4426
  }
5597
4427
  }
5598
- // ------------------------------------------------------------------------
5599
- // Process attributes.
5600
4428
  assert(!xml.hasAttributes(element));
5601
- // ------------------------------------------------------------------------
5602
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5603
4429
  }
5604
4430
  }
5605
4431
  export class BlockquoteDataModel extends AbstractDocBlockQuoteType {
@@ -5607,42 +4433,21 @@ export class BlockquoteDataModel extends AbstractDocBlockQuoteType {
5607
4433
  super(xml, element, 'blockquote');
5608
4434
  }
5609
4435
  }
5610
- // ----------------------------------------------------------------------------
5611
- // <xsd:complexType name="docParBlockType">
5612
- // <xsd:sequence>
5613
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
5614
- // </xsd:sequence>
5615
- // </xsd:complexType>
5616
- // ----------------------------------------------------------------------------
5617
- // <xsd:complexType name="docEmptyType"/>
5618
4436
  export class AbstractDocEmptyType extends AbstractDataModelBase {
5619
4437
  constructor(xml, element, elementName) {
5620
4438
  super(elementName);
5621
- // Empty.
5622
4439
  }
5623
4440
  }
5624
- // ----------------------------------------------------------------------------
5625
- // <xsd:complexType name="docEmojiType">
5626
- // <xsd:attribute name="name" type="xsd:string"/>
5627
- // <xsd:attribute name="unicode" type="xsd:string"/>
5628
- // </xsd:complexType>
5629
4441
  export class AbstractEmojiType extends AbstractDataModelBase {
5630
4442
  name = '';
5631
4443
  unicode = '';
5632
4444
  constructor(xml, element, elementName) {
5633
4445
  super(elementName);
5634
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5635
- // ------------------------------------------------------------------------
5636
- // Process elements.
5637
4446
  const innerElements = xml.getInnerElements(element, elementName);
5638
4447
  assert(innerElements.length === 0);
5639
- // ------------------------------------------------------------------------
5640
- // Process attributes.
5641
4448
  assert(xml.hasAttributes(element));
5642
4449
  const attributesNames = xml.getAttributesNames(element);
5643
- // console.log(attributesNames)
5644
4450
  for (const attributeName of attributesNames) {
5645
- // console.log(attributeName)
5646
4451
  if (attributeName === '@_name') {
5647
4452
  this.name = xml.getAttributeStringValue(element, '@_name');
5648
4453
  }
@@ -5654,51 +4459,28 @@ export class AbstractEmojiType extends AbstractDataModelBase {
5654
4459
  console.error(`${elementName} attribute:`, attributeName, 'not implemented yet in', this.constructor.name);
5655
4460
  }
5656
4461
  }
5657
- // ------------------------------------------------------------------------
5658
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5659
4462
  }
5660
4463
  }
5661
- // <xsd:element name="emoji" type="docEmojiType" />
5662
4464
  export class EmojiDataModel extends AbstractEmojiType {
5663
4465
  constructor(xml, element) {
5664
4466
  super(xml, element, 'emoji');
5665
4467
  }
5666
4468
  }
5667
- // ----------------------------------------------------------------------------
5668
- // <xsd:element name="briefdescription" type="descriptionType" minOccurs="0" />
5669
- // <xsd:element name="detaileddescription" type="descriptionType" minOccurs="0" />
5670
- // <xsd:element name="description" type="descriptionType" minOccurs="0" />
5671
- // <xsd:element name="inbodydescription" type="descriptionType" minOccurs="0" />
5672
- // <xsd:element name="parameterdescription" type="descriptionType" />
5673
- // <xsd:element name="xrefdescription" type="descriptionType" />
5674
- // <xsd:element name="parameterdescription" type="descriptionType" />
5675
- /**
5676
- * @public
5677
- */
5678
4469
  export class BriefDescriptionDataModel extends AbstractDescriptionType {
5679
4470
  constructor(xml, element) {
5680
4471
  super(xml, element, 'briefdescription');
5681
4472
  }
5682
4473
  }
5683
- /**
5684
- * @public
5685
- */
5686
4474
  export class DetailedDescriptionDataModel extends AbstractDescriptionType {
5687
4475
  constructor(xml, element) {
5688
4476
  super(xml, element, 'detaileddescription');
5689
4477
  }
5690
4478
  }
5691
- /**
5692
- * @public
5693
- */
5694
4479
  export class InbodyDescriptionDataModel extends AbstractDescriptionType {
5695
4480
  constructor(xml, element) {
5696
4481
  super(xml, element, 'inbodydescription');
5697
4482
  }
5698
4483
  }
5699
- /**
5700
- * @public
5701
- */
5702
4484
  export class DescriptionDataModel extends AbstractDescriptionType {
5703
4485
  constructor(xml, element) {
5704
4486
  super(xml, element, 'description');
@@ -5714,22 +4496,6 @@ export class ParameterDescriptionDataModel extends AbstractDescriptionType {
5714
4496
  super(xml, element, 'parameterdescription');
5715
4497
  }
5716
4498
  }
5717
- // ----------------------------------------------------------------------------
5718
- // <xsd:element name="internal" type="docInternalType" minOccurs="0" maxOccurs="unbounded"/>
5719
- // <xsd:element name="internal" type="docInternalS1Type" minOccurs="0" maxOccurs="unbounded" />
5720
- // <xsd:element name="internal" type="docInternalS2Type" minOccurs="0" />
5721
- // <xsd:element name="internal" type="docInternalS3Type" minOccurs="0" />
5722
- // <xsd:element name="internal" type="docInternalS4Type" minOccurs="0" />
5723
- // <xsd:element name="internal" type="docInternalS5Type" minOccurs="0" />
5724
- // <xsd:element name="internal" type="docInternalS6Type" minOccurs="0" />
5725
- // <xsd:element name="sect1" type="docSect1Type" minOccurs="0" maxOccurs="unbounded" />
5726
- // <xsd:element name="sect2" type="docSect2Type" minOccurs="0" maxOccurs="unbounded" />
5727
- // <xsd:element name="sect3" type="docSect3Type" minOccurs="0" maxOccurs="unbounded" />
5728
- // <xsd:element name="sect4" type="docSect4Type" minOccurs="0" maxOccurs="unbounded" />
5729
- // <xsd:element name="sect5" type="docSect5Type" minOccurs="0" maxOccurs="unbounded" />
5730
- // <xsd:element name="sect6" type="docSect6Type" minOccurs="0" maxOccurs="unbounded" />
5731
- // <xsd:element name="title" type="docTitleType" minOccurs="0" />
5732
- // <xsd:element name="term" type="docTitleType" />
5733
4499
  export class InternalDataModel extends AbstractDocInternalType {
5734
4500
  constructor(xml, element) {
5735
4501
  super(xml, element, 'internal');
@@ -5805,18 +4571,11 @@ export class TermDataModel extends AbstractDocTitleType {
5805
4571
  super(xml, element, 'term');
5806
4572
  }
5807
4573
  }
5808
- // ----------------------------------------------------------------------------
5809
- // <xsd:element name="para" type="docParaType" minOccurs="0" maxOccurs="unbounded" />
5810
4574
  export class ParaDataModel extends AbstractDocParaType {
5811
4575
  constructor(xml, element) {
5812
4576
  super(xml, element, 'para');
5813
4577
  }
5814
4578
  }
5815
- // ----------------------------------------------------------------------------
5816
- // <xsd:element name="bold" type="docMarkupType" />
5817
- // <xsd:element name="underline" type="docMarkupType" />
5818
- // <xsd:element name="emphasis" type="docMarkupType" />
5819
- // <xsd:element name="computeroutput" type="docMarkupType" />
5820
4579
  export class BoldDataModel extends AbstractDocMarkupType {
5821
4580
  constructor(xml, element) {
5822
4581
  super(xml, element, 'bold');
@@ -5882,29 +4641,21 @@ export class InsDataModel extends AbstractDocMarkupType {
5882
4641
  super(xml, element, 'ins');
5883
4642
  }
5884
4643
  }
5885
- // ----------------------------------------------------------------------------
5886
- // <xsd:element name="simplesect" type="docSimpleSectType" />
5887
4644
  export class SimpleSectDataModel extends AbstractDocSimpleSectType {
5888
4645
  constructor(xml, element) {
5889
4646
  super(xml, element, 'simplesect');
5890
4647
  }
5891
4648
  }
5892
- // ----------------------------------------------------------------------------
5893
- // <xsd:element name="itemizedlist" type="docListType" />
5894
4649
  export class ItemizedListDataModel extends AbstractDocListType {
5895
4650
  constructor(xml, element) {
5896
4651
  super(xml, element, 'itemizedlist');
5897
4652
  }
5898
4653
  }
5899
- // <xsd:element name="orderedlist" type="docListType" />
5900
4654
  export class OrderedListDataModel extends AbstractDocListType {
5901
4655
  constructor(xml, element) {
5902
4656
  super(xml, element, 'orderedlist');
5903
4657
  }
5904
4658
  }
5905
- // ----------------------------------------------------------------------------
5906
- // <xsd:element name="linebreak" type="docEmptyType" />
5907
- // <xsd:element name="hruler" type="docEmptyType" />
5908
4659
  export class LineBreakDataModel extends AbstractDocEmptyType {
5909
4660
  constructor(xml, element) {
5910
4661
  super(xml, element, 'linebreak');
@@ -5920,21 +4671,14 @@ export class NonBreakableSpaceDataModel extends AbstractDocEmptyType {
5920
4671
  super(xml, element, 'nonbreakablespace');
5921
4672
  }
5922
4673
  }
5923
- // Not yet used, present just to remind its presence.
5924
- // <xsd:element name="para" type="docEmptyType" />
5925
4674
  export class ParaEmptyDataModel extends AbstractDocEmptyType {
5926
4675
  constructor(xml, element) {
5927
4676
  super(xml, element, 'para');
5928
4677
  }
5929
4678
  }
5930
- // ----------------------------------------------------------------------------
5931
4679
  export class AbstractVerbatimType extends AbstractDataModelBase {
5932
4680
  constructor(xml, element, elementName) {
5933
4681
  super(elementName);
5934
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5935
- // ------------------------------------------------------------------------
5936
- // Process elements.
5937
- // WARNING: not text only, ref encountered in Doxygen reference site.
5938
4682
  const innerElements = xml.getInnerElements(element, elementName);
5939
4683
  assert(innerElements.length > 0);
5940
4684
  this.children = [];
@@ -5946,27 +4690,17 @@ export class AbstractVerbatimType extends AbstractDataModelBase {
5946
4690
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
5947
4691
  }
5948
4692
  }
5949
- // ------------------------------------------------------------------------
5950
- // Process attributes.
5951
4693
  assert(!xml.hasAttributes(element));
5952
- // ------------------------------------------------------------------------
5953
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5954
4694
  }
5955
4695
  }
5956
- // WARNING: not text only, ref encountered in Doxygen reference site.
5957
- // <xsd:element name="verbatim" type="xsd:string" />
5958
4696
  export class VerbatimDataModel extends AbstractVerbatimType {
5959
4697
  constructor(xml, element) {
5960
4698
  super(xml, element, 'verbatim');
5961
4699
  }
5962
4700
  }
5963
- // ----------------------------------------------------------------------------
5964
4701
  export class AbstractPreformattedType extends AbstractDataModelBase {
5965
4702
  constructor(xml, element, elementName) {
5966
4703
  super(elementName);
5967
- // console.log(elementName, util.inspect(element, { compact: false, depth: 999 }))
5968
- // ------------------------------------------------------------------------
5969
- // Process elements.
5970
4704
  const innerElements = xml.getInnerElements(element, elementName);
5971
4705
  assert(innerElements.length > 0);
5972
4706
  this.children = [];
@@ -5978,18 +4712,12 @@ export class AbstractPreformattedType extends AbstractDataModelBase {
5978
4712
  this.children.push(...parseDocTitleCmdGroup(xml, innerElement, elementName));
5979
4713
  }
5980
4714
  }
5981
- // ------------------------------------------------------------------------
5982
- // Process attributes.
5983
4715
  assert(!xml.hasAttributes(element));
5984
- // ------------------------------------------------------------------------
5985
- // console.log(util.inspect(this, { compact: false, depth: 999 }))
5986
4716
  }
5987
4717
  }
5988
- // <xsd:element name="preformatted" type="docMarkupType" />
5989
4718
  export class PreformattedDataModel extends AbstractPreformattedType {
5990
4719
  constructor(xml, element) {
5991
4720
  super(xml, element, 'preformatted');
5992
4721
  }
5993
4722
  }
5994
- // ----------------------------------------------------------------------------
5995
4723
  //# sourceMappingURL=descriptiontype-dm.js.map