bonjour a tous,
pour obtenir un fichier xmi en utilisant un simple diagramme de classe comportant une seule classe (classe1) ,un attribut (att1:int) et une methode (methode1). j'ai utiliser argouml pour exporter mon modele en un fichier xmi
j'ai obtenu le fichier suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="UTF-8"?>
<XMI xmi.version="1.0">
  <XMI.header>
    <XMI.documentation>
      <XMI.exporter>Novosoft UML Library</XMI.exporter>
      <XMI.exporterVersion>0.4.20</XMI.exporterVersion>
    </XMI.documentation>
    <XMI.metamodel xmi.name="UML" xmi.version="1.3"/>
  </XMI.header>
  <XMI.content>
    <Model_Management.Model xmi.id="xmi.1" xmi.uuid="-64--88-30-17--75d31c86:118a3863ab1:-8000">
      <Foundation.Core.ModelElement.name>untitledModel</Foundation.Core.ModelElement.name>
      <Foundation.Core.ModelElement.isSpecification xmi.value="false"/>
      <Foundation.Core.GeneralizableElement.isRoot xmi.value="false"/>
      <Foundation.Core.GeneralizableElement.isLeaf xmi.value="false"/>
      <Foundation.Core.GeneralizableElement.isAbstract xmi.value="false"/>
      <Foundation.Core.Namespace.ownedElement>
        <Foundation.Core.Class xmi.id="xmi.2" xmi.uuid="-64--88-30-17--75d31c86:118a3863ab1:-7ffe">
          <Foundation.Core.ModelElement.name>classe1</Foundation.Core.ModelElement.name>
          <Foundation.Core.ModelElement.visibility xmi.value="public"/>
          <Foundation.Core.ModelElement.isSpecification xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isRoot xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isLeaf xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isAbstract xmi.value="false"/>
          <Foundation.Core.Class.isActive xmi.value="false"/>
          <Foundation.Core.ModelElement.namespace>
            <Foundation.Core.Namespace xmi.idref="xmi.1"/>
          </Foundation.Core.ModelElement.namespace>
          <Foundation.Core.Classifier.feature>
            <Foundation.Core.Attribute xmi.id="xmi.3" xmi.uuid="-64--88-30-17--75d31c86:118a3863ab1:-7ffb">
              <Foundation.Core.ModelElement.name>att1</Foundation.Core.ModelElement.name>
              <Foundation.Core.ModelElement.visibility xmi.value="public"/>
              <Foundation.Core.ModelElement.isSpecification xmi.value="false"/>
              <Foundation.Core.Feature.ownerScope xmi.value="instance"/>
              <Foundation.Core.StructuralFeature.multiplicity>
                <Foundation.Data_Types.Multiplicity xmi.id="xmi.4">
                  <Foundation.Data_Types.Multiplicity.range>
                    <Foundation.Data_Types.MultiplicityRange xmi.id="xmi.5">
                      <Foundation.Data_Types.MultiplicityRange.lower>1</Foundation.Data_Types.MultiplicityRange.lower>
                      <Foundation.Data_Types.MultiplicityRange.upper>1</Foundation.Data_Types.MultiplicityRange.upper>
                    </Foundation.Data_Types.MultiplicityRange>
                  </Foundation.Data_Types.Multiplicity.range>
                </Foundation.Data_Types.Multiplicity>
              </Foundation.Core.StructuralFeature.multiplicity>
              <Foundation.Core.StructuralFeature.changeability xmi.value="changeable"/>
              <Foundation.Core.StructuralFeature.targetScope xmi.value="instance"/>
              <Foundation.Core.Feature.owner>
                <Foundation.Core.Classifier xmi.idref="xmi.2"/>
              </Foundation.Core.Feature.owner>
              <Foundation.Core.StructuralFeature.type>
                <Foundation.Core.Classifier xmi.idref="xmi.6"/>
              </Foundation.Core.StructuralFeature.type>
              <Foundation.Core.ModelElement.taggedValue>
                <Foundation.Extension_Mechanisms.TaggedValue xmi.id="xmi.7">
                  <Foundation.Extension_Mechanisms.TaggedValue.tag>transient</Foundation.Extension_Mechanisms.TaggedValue.tag>
                  <Foundation.Extension_Mechanisms.TaggedValue.value>false</Foundation.Extension_Mechanisms.TaggedValue.value>
                  <Foundation.Extension_Mechanisms.TaggedValue.modelElement>
                    <Foundation.Core.ModelElement xmi.idref="xmi.3"/>
                  </Foundation.Extension_Mechanisms.TaggedValue.modelElement>
                </Foundation.Extension_Mechanisms.TaggedValue>
                <Foundation.Extension_Mechanisms.TaggedValue xmi.id="xmi.8">
                  <Foundation.Extension_Mechanisms.TaggedValue.tag>volatile</Foundation.Extension_Mechanisms.TaggedValue.tag>
                  <Foundation.Extension_Mechanisms.TaggedValue.value>false</Foundation.Extension_Mechanisms.TaggedValue.value>
                  <Foundation.Extension_Mechanisms.TaggedValue.modelElement>
                    <Foundation.Core.ModelElement xmi.idref="xmi.3"/>
                  </Foundation.Extension_Mechanisms.TaggedValue.modelElement>
                </Foundation.Extension_Mechanisms.TaggedValue>
              </Foundation.Core.ModelElement.taggedValue>
            </Foundation.Core.Attribute>
            <Foundation.Core.Operation xmi.id="xmi.9" xmi.uuid="-64--88-30-17--75d31c86:118a3863ab1:-7ff9">
              <Foundation.Core.ModelElement.name>methode1</Foundation.Core.ModelElement.name>
              <Foundation.Core.ModelElement.visibility xmi.value="public"/>
              <Foundation.Core.ModelElement.isSpecification xmi.value="false"/>
              <Foundation.Core.Feature.ownerScope xmi.value="instance"/>
              <Foundation.Core.BehavioralFeature.isQuery xmi.value="false"/>
              <Foundation.Core.Operation.concurrency xmi.value="sequential"/>
              <Foundation.Core.Operation.isRoot xmi.value="false"/>
              <Foundation.Core.Operation.isLeaf xmi.value="false"/>
              <Foundation.Core.Operation.isAbstract xmi.value="false"/>
              <Foundation.Core.Feature.owner>
                <Foundation.Core.Classifier xmi.idref="xmi.2"/>
              </Foundation.Core.Feature.owner>
              <Foundation.Core.BehavioralFeature.parameter>
                <Foundation.Core.Parameter xmi.id="xmi.10" xmi.uuid="-64--88-30-17--75d31c86:118a3863ab1:-7ff8">
                  <Foundation.Core.ModelElement.name>return</Foundation.Core.ModelElement.name>
                  <Foundation.Core.ModelElement.isSpecification xmi.value="false"/>
                  <Foundation.Core.Parameter.kind xmi.value="return"/>
                  <Foundation.Core.Parameter.behavioralFeature>
                    <Foundation.Core.BehavioralFeature xmi.idref="xmi.9"/>
                  </Foundation.Core.Parameter.behavioralFeature>
                  <Foundation.Core.Parameter.type>
                    <Foundation.Core.Classifier xmi.idref="xmi.11"/>
                  </Foundation.Core.Parameter.type>
                </Foundation.Core.Parameter>
              </Foundation.Core.BehavioralFeature.parameter>
            </Foundation.Core.Operation>
          </Foundation.Core.Classifier.feature>
        </Foundation.Core.Class>
        <Foundation.Core.DataType xmi.id="xmi.6" xmi.uuid="-64--88-30-17--75d31c86:118a3863ab1:-7ffc">
          <Foundation.Core.ModelElement.name>int</Foundation.Core.ModelElement.name>
          <Foundation.Core.ModelElement.isSpecification xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isRoot xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isLeaf xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isAbstract xmi.value="false"/>
          <Foundation.Core.ModelElement.namespace>
            <Foundation.Core.Namespace xmi.idref="xmi.1"/>
          </Foundation.Core.ModelElement.namespace>
        </Foundation.Core.DataType>
        <Foundation.Core.DataType xmi.id="xmi.11" xmi.uuid="-64--88-30-17--75d31c86:118a3863ab1:-7ffa">
          <Foundation.Core.ModelElement.name>void</Foundation.Core.ModelElement.name>
          <Foundation.Core.ModelElement.isSpecification xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isRoot xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isLeaf xmi.value="false"/>
          <Foundation.Core.GeneralizableElement.isAbstract xmi.value="false"/>
          <Foundation.Core.ModelElement.namespace>
            <Foundation.Core.Namespace xmi.idref="xmi.1"/>
          </Foundation.Core.ModelElement.namespace>
        </Foundation.Core.DataType>
      </Foundation.Core.Namespace.ownedElement>
    </Model_Management.Model>
  </XMI.content>
</XMI>
Ma question est la suivante: est ce que je pourrai créer mon fichier xml manuellement en utilisant un balisage simple (utiliser uniquement les détails que j'ai cité dans mon diagramme de classe au début: class1,att1,methode1) car avec ce fichier je suis completement perdu.
merci pour votre aide