SimpleClassDiagram.defaultIcons.metamodel 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. {
  2. "types": {
  3. "ClassIcon": [
  4. {
  5. "name": "typename",
  6. "type": "string",
  7. "default": "ClassIcon"
  8. },
  9. {
  10. "name": "position",
  11. "type": "list<double>",
  12. "default": [
  13. 127,
  14. 100
  15. ]
  16. },
  17. {
  18. "name": "orientation",
  19. "type": "double",
  20. "default": 0
  21. },
  22. {
  23. "name": "scale",
  24. "type": "list<double>",
  25. "default": [
  26. 1,
  27. 1
  28. ]
  29. },
  30. {
  31. "name": "mapper",
  32. "type": "code",
  33. "default": ""
  34. },
  35. {
  36. "name": "parser",
  37. "type": "code",
  38. "default": ""
  39. },
  40. {
  41. "name": "$contents",
  42. "type": "map<string,*>",
  43. "default": {
  44. "nodes": {
  45. "5": {
  46. "width": {
  47. "type": "double",
  48. "value": 200
  49. },
  50. "height": {
  51. "type": "double",
  52. "value": 125
  53. },
  54. "cornerRadius": {
  55. "type": "double",
  56. "value": 5
  57. },
  58. "style": {
  59. "type": "map<string,string>",
  60. "value": {
  61. "stroke": "#000000",
  62. "stroke-dasharray": "",
  63. "fill": "#ffffff",
  64. "fill-opacity": 0.75,
  65. "stroke-width": 2
  66. }
  67. },
  68. "mapper": {
  69. "type": "code",
  70. "value": ""
  71. },
  72. "parser": {
  73. "type": "code",
  74. "value": ""
  75. },
  76. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  77. "position": {
  78. "type": "list<double>",
  79. "value": [
  80. 0,
  81. 0
  82. ]
  83. },
  84. "orientation": {
  85. "type": "double",
  86. "value": 0
  87. },
  88. "scale": {
  89. "type": "list<double>",
  90. "value": [
  91. 1,
  92. 1
  93. ]
  94. }
  95. },
  96. "6": {
  97. "textContent": {
  98. "type": "string",
  99. "value": "<coded>"
  100. },
  101. "style": {
  102. "type": "map<string,string>",
  103. "value": {
  104. "stroke": "#000000",
  105. "fill": "#ffffff",
  106. "fill-opacity": 0.75,
  107. "font-size": "20px"
  108. }
  109. },
  110. "mapper": {
  111. "type": "code",
  112. "value": "var style = \n {\n \"stroke\": \"#000000\",\n \"fill\": \"#ffffff\",\n \"fill-opacity\": 0.75,\n \"font-size\": \"20px\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n };\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n\n"
  113. },
  114. "parser": {
  115. "type": "code",
  116. "value": "({'name': getAttr('textContent')})"
  117. },
  118. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  119. "position": {
  120. "type": "list<double>",
  121. "value": [
  122. 23,
  123. 2
  124. ]
  125. },
  126. "orientation": {
  127. "type": "double",
  128. "value": 0
  129. },
  130. "scale": {
  131. "type": "list<double>",
  132. "value": [
  133. 1,
  134. 1
  135. ]
  136. }
  137. },
  138. "7": {
  139. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  140. "position": {
  141. "type": "list<double>",
  142. "value": [
  143. 13.896110991026944,
  144. 3.0451514439171206
  145. ]
  146. },
  147. "orientation": {
  148. "type": "double",
  149. "value": 0
  150. },
  151. "scale": {
  152. "type": "list<double>",
  153. "value": [
  154. 1,
  155. 1
  156. ]
  157. },
  158. "link-style": {
  159. "type": "map<string,string>",
  160. "value": {
  161. "stroke": "#00ffff",
  162. "stroke-dasharray": "",
  163. "stroke-opacity": 0.1,
  164. "arrow-start": "none",
  165. "arrow-end": "classic-wide-long"
  166. }
  167. }
  168. },
  169. "17": {
  170. "segments": {
  171. "type": "string",
  172. "value": "m0,0l200,0"
  173. },
  174. "style": {
  175. "type": "map<string,string>",
  176. "value": {
  177. "stroke": "#000000",
  178. "stroke-dasharray": "",
  179. "fill": "#ffffff",
  180. "fill-opacity": 0.75,
  181. "font-size": "20px",
  182. "stroke-width": 2,
  183. "arrow-start": "none",
  184. "arrow-end": "none"
  185. }
  186. },
  187. "mapper": {
  188. "type": "code",
  189. "value": ""
  190. },
  191. "parser": {
  192. "type": "code",
  193. "value": ""
  194. },
  195. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  196. "position": {
  197. "type": "list<double>",
  198. "value": [
  199. 1,
  200. 26
  201. ]
  202. },
  203. "orientation": {
  204. "type": "double",
  205. "value": 0
  206. },
  207. "scale": {
  208. "type": "list<double>",
  209. "value": [
  210. 1,
  211. 1
  212. ]
  213. }
  214. },
  215. "18": {
  216. "textContent": {
  217. "type": "string",
  218. "value": "T..."
  219. },
  220. "style": {
  221. "type": "map<string,string>",
  222. "value": {
  223. "stroke": "#000000",
  224. "stroke-dasharray": "",
  225. "fill": "#ffffff",
  226. "fill-opacity": 0.75,
  227. "font-size": "13px",
  228. "stroke-width": 1,
  229. "arrow-start": "none",
  230. "arrow-end": "none"
  231. }
  232. },
  233. "mapper": {
  234. "type": "code",
  235. "value": "var filenames = getAttr('attributes').map(\n\t\t\t\tfunction(attr)\n\t\t\t\t{\n\t\t\t\t\treturn attr['name'];\n\t\t\t\t});\n({'textContent': filenames.join('\\n')})"
  236. },
  237. "parser": {
  238. "type": "code",
  239. "value": ""
  240. },
  241. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  242. "position": {
  243. "type": "list<double>",
  244. "value": [
  245. 3,
  246. 25
  247. ]
  248. },
  249. "orientation": {
  250. "type": "double",
  251. "value": 0
  252. },
  253. "scale": {
  254. "type": "list<double>",
  255. "value": [
  256. 1,
  257. 1
  258. ]
  259. }
  260. },
  261. "19": {
  262. "width": {
  263. "type": "boolean",
  264. "value": true
  265. },
  266. "ratio": {
  267. "type": "double",
  268. "value": 1
  269. },
  270. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  271. "position": {
  272. "type": "list<double>",
  273. "value": [
  274. 168.09129891774523,
  275. 30.625911571363645
  276. ]
  277. },
  278. "orientation": {
  279. "type": "double",
  280. "value": 0
  281. },
  282. "scale": {
  283. "type": "list<double>",
  284. "value": [
  285. 1,
  286. 1
  287. ]
  288. },
  289. "link-style": {
  290. "type": "map<string,string>",
  291. "value": {
  292. "stroke": "#0000ff",
  293. "stroke-dasharray": "",
  294. "stroke-opacity": 1,
  295. "arrow-start": "none",
  296. "arrow-end": "classic-wide-long"
  297. }
  298. }
  299. },
  300. "20": {
  301. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  302. "position": {
  303. "type": "list<double>",
  304. "value": [
  305. 6.49899850809561,
  306. 18.998998508095553
  307. ]
  308. },
  309. "orientation": {
  310. "type": "double",
  311. "value": 0
  312. },
  313. "scale": {
  314. "type": "list<double>",
  315. "value": [
  316. 1,
  317. 1
  318. ]
  319. },
  320. "link-style": {
  321. "type": "map<string,string>",
  322. "value": {
  323. "stroke": "#00ffff",
  324. "stroke-dasharray": "",
  325. "stroke-opacity": 0.1,
  326. "arrow-start": "none",
  327. "arrow-end": "classic-wide-long"
  328. }
  329. }
  330. }
  331. },
  332. "edges": [
  333. {
  334. "src": "5",
  335. "dest": "7"
  336. },
  337. {
  338. "src": "7",
  339. "dest": "6"
  340. },
  341. {
  342. "src": "17",
  343. "dest": "19"
  344. },
  345. {
  346. "src": "19",
  347. "dest": "5"
  348. },
  349. {
  350. "src": "5",
  351. "dest": "20"
  352. },
  353. {
  354. "src": "20",
  355. "dest": "18"
  356. }
  357. ]
  358. }
  359. },
  360. {
  361. "name": "$asuri",
  362. "type": "string",
  363. "default": "-1"
  364. }
  365. ],
  366. "AssociationLink": [
  367. {
  368. "name": "link-style",
  369. "type": "map<string,string>",
  370. "default": {
  371. "stroke": "#000000",
  372. "stroke-dasharray": "",
  373. "stroke-opacity": 1,
  374. "stroke-width": 2,
  375. "arrow-start": "none",
  376. "arrow-end": "classic-wide-long"
  377. }
  378. },
  379. {
  380. "name": "typename",
  381. "type": "string",
  382. "default": "AssociationLink"
  383. },
  384. {
  385. "name": "position",
  386. "type": "list<double>",
  387. "default": [
  388. 214,
  389. 424
  390. ]
  391. },
  392. {
  393. "name": "orientation",
  394. "type": "double",
  395. "default": 0
  396. },
  397. {
  398. "name": "scale",
  399. "type": "list<double>",
  400. "default": [
  401. 1,
  402. 1
  403. ]
  404. },
  405. {
  406. "name": "mapper",
  407. "type": "code",
  408. "default": ""
  409. },
  410. {
  411. "name": "parser",
  412. "type": "code",
  413. "default": ""
  414. },
  415. {
  416. "name": "$contents",
  417. "type": "map<string,*>",
  418. "default": {
  419. "nodes": {
  420. "15": {
  421. "textContent": {
  422. "type": "string",
  423. "value": "<coded>"
  424. },
  425. "style": {
  426. "type": "map<string,string>",
  427. "value": {
  428. "stroke": "#000000",
  429. "stroke-dasharray": "",
  430. "fill": "#ffffff",
  431. "fill-opacity": 0.75,
  432. "font-size": "20px",
  433. "stroke-width": 1,
  434. "arrow-start": "none",
  435. "arrow-end": "none"
  436. }
  437. },
  438. "mapper": {
  439. "type": "code",
  440. "value": "({'textContent':getAttr('name')})"
  441. },
  442. "parser": {
  443. "type": "code",
  444. "value": "({'name':getAttr('textContent')})"
  445. },
  446. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  447. "position": {
  448. "type": "list<double>",
  449. "value": [
  450. 1,
  451. -19
  452. ]
  453. },
  454. "orientation": {
  455. "type": "double",
  456. "value": 0
  457. },
  458. "scale": {
  459. "type": "list<double>",
  460. "value": [
  461. 1,
  462. 1
  463. ]
  464. }
  465. }
  466. },
  467. "edges": []
  468. }
  469. },
  470. {
  471. "name": "$asuri",
  472. "type": "string",
  473. "default": "-1"
  474. },
  475. {
  476. "name": "$segments",
  477. "type": "map<string,list<string>>",
  478. "default": {}
  479. }
  480. ],
  481. "InheritanceLink": [
  482. {
  483. "name": "link-style",
  484. "type": "map<string,string>",
  485. "default": {
  486. "stroke": "#000000",
  487. "stroke-dasharray": "- ",
  488. "stroke-opacity": 1,
  489. "stroke-width": 2,
  490. "arrow-start": "none",
  491. "arrow-end": "classic-wide-long"
  492. }
  493. },
  494. {
  495. "name": "typename",
  496. "type": "string",
  497. "default": "InheritanceLink"
  498. },
  499. {
  500. "name": "position",
  501. "type": "list<double>",
  502. "default": [
  503. 475,
  504. 425
  505. ]
  506. },
  507. {
  508. "name": "orientation",
  509. "type": "double",
  510. "default": 0
  511. },
  512. {
  513. "name": "scale",
  514. "type": "list<double>",
  515. "default": [
  516. 1,
  517. 1
  518. ]
  519. },
  520. {
  521. "name": "mapper",
  522. "type": "code",
  523. "default": ""
  524. },
  525. {
  526. "name": "parser",
  527. "type": "code",
  528. "default": ""
  529. },
  530. {
  531. "name": "$contents",
  532. "type": "map<string,*>",
  533. "default": {
  534. "nodes": {},
  535. "edges": []
  536. }
  537. },
  538. {
  539. "name": "$asuri",
  540. "type": "string",
  541. "default": "-1"
  542. },
  543. {
  544. "name": "$segments",
  545. "type": "map<string,list<string>>",
  546. "default": {}
  547. }
  548. ],
  549. "GlobalConstraintIcon": [
  550. {
  551. "name": "typename",
  552. "type": "string",
  553. "default": "GlobalConstraintIcon"
  554. },
  555. {
  556. "name": "position",
  557. "type": "list<double>",
  558. "default": [
  559. 426,
  560. 126
  561. ]
  562. },
  563. {
  564. "name": "orientation",
  565. "type": "double",
  566. "default": 0
  567. },
  568. {
  569. "name": "scale",
  570. "type": "list<double>",
  571. "default": [
  572. 1,
  573. 1
  574. ]
  575. },
  576. {
  577. "name": "mapper",
  578. "type": "code",
  579. "default": ""
  580. },
  581. {
  582. "name": "parser",
  583. "type": "code",
  584. "default": ""
  585. },
  586. {
  587. "name": "$contents",
  588. "type": "map<string,*>",
  589. "default": {
  590. "nodes": {
  591. "11": {
  592. "textContent": {
  593. "type": "string",
  594. "value": "CONSTRAINT"
  595. },
  596. "style": {
  597. "type": "map<string,string>",
  598. "value": {
  599. "stroke": "#00ff70",
  600. "stroke-dasharray": "",
  601. "fill": "#00ff70",
  602. "fill-opacity": 0.75,
  603. "font-size": "20px",
  604. "stroke-width": 1,
  605. "arrow-start": "none",
  606. "arrow-end": "none"
  607. }
  608. },
  609. "mapper": {
  610. "type": "code",
  611. "value": "({'textContent' : 'check '+getAttr('name')+' on '+(getAttr('event') || 'validate')})\n"
  612. },
  613. "parser": {
  614. "type": "code",
  615. "value": ""
  616. },
  617. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  618. "position": {
  619. "type": "list<double>",
  620. "value": [
  621. 0,
  622. -1
  623. ]
  624. },
  625. "orientation": {
  626. "type": "double",
  627. "value": 0
  628. },
  629. "scale": {
  630. "type": "list<double>",
  631. "value": [
  632. 1,
  633. 1
  634. ]
  635. }
  636. }
  637. },
  638. "edges": []
  639. }
  640. },
  641. {
  642. "name": "$asuri",
  643. "type": "string",
  644. "default": "-1"
  645. }
  646. ],
  647. "GlobalActionIcon": [
  648. {
  649. "name": "typename",
  650. "type": "string",
  651. "default": "GlobalActionIcon"
  652. },
  653. {
  654. "name": "position",
  655. "type": "list<double>",
  656. "default": [
  657. 677,
  658. 151
  659. ]
  660. },
  661. {
  662. "name": "orientation",
  663. "type": "double",
  664. "default": 0
  665. },
  666. {
  667. "name": "scale",
  668. "type": "list<double>",
  669. "default": [
  670. 1,
  671. 1
  672. ]
  673. },
  674. {
  675. "name": "mapper",
  676. "type": "code",
  677. "default": ""
  678. },
  679. {
  680. "name": "parser",
  681. "type": "code",
  682. "default": ""
  683. },
  684. {
  685. "name": "$contents",
  686. "type": "map<string,*>",
  687. "default": {
  688. "nodes": {
  689. "13": {
  690. "textContent": {
  691. "type": "string",
  692. "value": "ACTION"
  693. },
  694. "style": {
  695. "type": "map<string,string>",
  696. "value": {
  697. "stroke": "#af00ff",
  698. "stroke-dasharray": "",
  699. "fill": "#af00ff",
  700. "fill-opacity": 0.75,
  701. "font-size": "20px",
  702. "stroke-width": 1,
  703. "arrow-start": "none",
  704. "arrow-end": "none"
  705. }
  706. },
  707. "mapper": {
  708. "type": "code",
  709. "value": "({'textContent' : 'do '+getAttr('name')+' on '+getAttr('event')})\n"
  710. },
  711. "parser": {
  712. "type": "code",
  713. "value": ""
  714. },
  715. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  716. "position": {
  717. "type": "list<double>",
  718. "value": [
  719. 0,
  720. 1
  721. ]
  722. },
  723. "orientation": {
  724. "type": "double",
  725. "value": 0
  726. },
  727. "scale": {
  728. "type": "list<double>",
  729. "value": [
  730. 1,
  731. 1
  732. ]
  733. }
  734. }
  735. },
  736. "edges": []
  737. }
  738. },
  739. {
  740. "name": "$asuri",
  741. "type": "string",
  742. "default": "-1"
  743. }
  744. ]
  745. },
  746. "constraints": [],
  747. "actions": [],
  748. "cardinalities": {
  749. "ClassIcon": [],
  750. "AssociationLink": [],
  751. "InheritanceLink": [],
  752. "GlobalConstraintIcon": [],
  753. "GlobalActionIcon": []
  754. },
  755. "legalConnections": {},
  756. "connectorTypes": {},
  757. "types2parentTypes": {
  758. "ClassIcon": [],
  759. "AssociationLink": [],
  760. "InheritanceLink": [],
  761. "GlobalConstraintIcon": [],
  762. "GlobalActionIcon": []
  763. }
  764. }