Changeset 7


Ignore:
Timestamp:
May 16, 2014, 1:53:21 PM (7 years ago)
Author:
anv
Message:

Ajout d'éléments pour préciser la partie documentaire.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GEFeditor/Modeling/model/modeling.emf

    r6 r7  
    1616class WspDef {
    1717  attr String name;
    18 
    19   @gmf.compartment
    20   val publicClass[+] classes;
     18  attr String keyWsp;
     19  attr int majorVersion;
     20  attr int mediumVersion;
     21  attr int minorVersion;
     22
     23  @gmf.compartment
     24  val WspDefContent[+] wspdefcontent;
     25 
     26}
     27
     28abstract class WspDefContent{
     29       
    2130}
    2231
    2332@gmf.node(label="label", label.readOnly="true")
    24 class publicClass {
     33class publicClass extends WspDefContent {
    2534  readonly attr String label = "class";
     35  attr String access = "readWrite ou readWriteNoCreator ou readOnlySoft" ;
     36  //attr Boolean test2 = true;
    2637
    2738  @gmf.link(target.decoration="arrow", style="dash")
    2839  ref CompositionPrim allowedModel;
     40 
    2941
    3042  @gmf.link(target.decoration="arrow", style="dash")
     
    5668  val Meta meta;
    5769
    58   @gmf.compartment
     70  @gmf.compartment(layout=list)
    5971  val CompositionContent[+] content;
    6072}
     
    8395
    8496  @gmf.link(target.decoration="arrow", style="dash")
    85   ref CompositionContentPrimitive allowedModel;
     97  ref CompositionContentPrimitive[+] allowedModel;
    8698}
    8799
     
    94106}
    95107
     108abstract class DataFormContent{
     109
     110}
     111
     112abstract class Test{
     113       
     114}
     115
     116class FieldContent extends DataFormContent {
     117  @gmf.compartment
     118  val Test test;
     119}
     120
    96121@gmf.node(label="name")
    97122class FormDataPrim extends DocumentPrim {
    98123  attr String name;
    99124
    100   @gmf.compartment
    101   val Field[*] field;
    102 }
    103 
    104 @gmf.node(label="name", label.icon="false")
    105 class Field {
     125  @gmf.compartment(layout=list)
     126  val DataFormContent[*] content;
     127}
     128
     129
     130
     131@gmf.node(label="name", label.icon="false")
     132class Field extends FieldContent{
    106133  attr String name;
    107134  @gmf.label
     135 
    108136  attr String type;
    109137}
     138
     139@gmf.node(label="name", label.icon="false")
     140class SetOf extends DataFormContent {
     141  attr String name;
     142  @gmf.label
     143 
     144  @gmf.compartment
     145  val Field[+] field;
     146}
     147
    110148
    111149@gmf.node(label="label", label.readOnly="true", label.icon="false")
     
    177215}
    178216
     217@gmf.node(label="name", label.icon="false")
     218class string extends Test{
     219        readonly attr String name = "string";
     220}
     221
     222@gmf.node(label="name", label.icon="false")
     223class number extends Test{
     224        attr String name;
     225}
     226
     227@gmf.node(label="name", label.icon="false")
     228class date extends Test{
     229        attr String name;
     230}
     231
     232@gmf.node(label="name", label.icon="false")
     233class url extends Test{
     234        attr String name;
     235}
     236
     237@gmf.node(label="name", label.icon="false")
     238class refItem extends Test{
     239        attr String name;
     240       
     241        @gmf.link(target.decoration="arrow", style="dash")
     242        ref CompositionContentPrimitive[+] allowedModel;
     243}
     244
     245@gmf.node(label="name", label.icon="false")
     246class otherType extends Test{
     247        attr String name;
     248       
     249        @gmf.link(target.decoration="arrow", style="dash")
     250        ref CompositionContentPrimitive[+] allowedModel;
     251}
Note: See TracChangeset for help on using the changeset viewer.