EntityRelationship.metamodel 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "types": {
  3. "GlobalConstraint": [
  4. {
  5. "name": "name",
  6. "type": "string",
  7. "default": "GC_"
  8. },
  9. {
  10. "name": "event",
  11. "type": "$EVENT",
  12. "default": ""
  13. },
  14. {
  15. "name": "code",
  16. "type": "code",
  17. "default": ""
  18. }
  19. ],
  20. "GlobalAction": [
  21. {
  22. "name": "name",
  23. "type": "string",
  24. "default": "GA_"
  25. },
  26. {
  27. "name": "event",
  28. "type": "$EVENT",
  29. "default": ""
  30. },
  31. {
  32. "name": "code",
  33. "type": "code",
  34. "default": ""
  35. }
  36. ],
  37. "Entity": [
  38. {
  39. "name": "name",
  40. "type": "string",
  41. "default": "Entity_"
  42. },
  43. {
  44. "name": "attributes",
  45. "type": "list<$ATTRIBUTE>",
  46. "default": []
  47. },
  48. {
  49. "name": "constraints",
  50. "type": "list<$EVENT_HANDLER>",
  51. "default": []
  52. },
  53. {
  54. "name": "actions",
  55. "type": "list<$EVENT_HANDLER>",
  56. "default": []
  57. },
  58. {
  59. "name": "cardinalities",
  60. "type": "list<$CARDINALITY>",
  61. "default": []
  62. }
  63. ],
  64. "Relationship": [
  65. {
  66. "name": "name",
  67. "type": "string",
  68. "default": "Relationship_"
  69. },
  70. {
  71. "name": "attributes",
  72. "type": "list<$ATTRIBUTE>",
  73. "default": []
  74. },
  75. {
  76. "name": "constraints",
  77. "type": "list<$EVENT_HANDLER>",
  78. "default": []
  79. },
  80. {
  81. "name": "actions",
  82. "type": "list<$EVENT_HANDLER>",
  83. "default": []
  84. },
  85. {
  86. "name": "cardinalities",
  87. "type": "list<$CARDINALITY>",
  88. "default": []
  89. },
  90. {
  91. "name": "linktype",
  92. "type": "ENUM(visual,containment)",
  93. "default": "visual"
  94. }
  95. ]
  96. },
  97. "constraints": [],
  98. "actions": [],
  99. "cardinalities": {
  100. "GlobalConstraint": [],
  101. "GlobalAction": [],
  102. "Entity": [
  103. {
  104. "dir": "out",
  105. "type": "Relationship",
  106. "min": "0",
  107. "max": "Infinity"
  108. },
  109. {
  110. "dir": "in",
  111. "type": "Relationship",
  112. "min": "0",
  113. "max": "Infinity"
  114. }
  115. ],
  116. "Relationship": [
  117. {
  118. "dir": "in",
  119. "type": "Entity",
  120. "min": "0",
  121. "max": "1"
  122. },
  123. {
  124. "dir": "out",
  125. "type": "Entity",
  126. "min": "0",
  127. "max": "1"
  128. }
  129. ]
  130. },
  131. "legalConnections": {
  132. "Entity": {
  133. "Entity": [
  134. "Relationship"
  135. ]
  136. }
  137. },
  138. "connectorTypes": {
  139. "Relationship": "visual"
  140. },
  141. "types2parentTypes": {}
  142. }