Skip to content

Commit 725e258

Browse files
committed
Merge remote-tracking branch 'origin/ToscaProfile' into toscaCodeGen
2 parents 487be48 + 5cc2fca commit 725e258

File tree

107 files changed

+2918
-3494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+2918
-3494
lines changed

ToscaDesigner/src/main/conf/module.xml

Lines changed: 342 additions & 345 deletions
Large diffs are not rendered by default.

ToscaDesigner/src/main/conf/res/generated/styles/ToscaStyle.style

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#
2-
#Fri Mar 08 11:23:31 CET 2024
2+
#Thu May 22 14:53:22 CEST 2025
33
CLASS_LINECOLOR=84 101 255
44
COMPONENT_INNERVIEWMODE=DIAGRAM
5-
CLASS_INNERVIEWMODE=DIAGRAM
65
DEPENDENCY_SHOWLABEL=true
6+
CLASS_INNERVIEWMODE=DIAGRAM
77
CLASS_FILLCOLOR=255 255 255
88
CLASS_TEXTCOLOR=84 101 255
99
basestyle=Modelio 5.3.x
1010
provider=Modelio
11+
ASSOC_SHOWCARD=false
1112
stylename=ToscaStyle
1213
theme=false
1314
CLASS_SHOWSTEREOTYPES=ICON
-125 Bytes
Binary file not shown.

ToscaDesigner/src/main/java/fr/softeam/toscadesigner/api/ToscaDesignerProxyFactory.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* WARNING: GENERATED FILE - DO NOT EDIT
33
* Module: ToscaDesigner v0.1.0
44
5-
* This file was generated on 15/05/2025 11:44 by Modelio Studio.
5+
* This file was generated on 22/05/2025 15:02 by Modelio Studio.
66
*/
77
package fr.softeam.toscadesigner.api;
88

@@ -126,16 +126,16 @@
126126
*/
127127
@objid ("344538da-8f7b-4820-bee7-fad3a6c1b7e1")
128128
public class ToscaDesignerProxyFactory {
129-
@objid ("3bbd5158-1b09-4425-bfd7-b6cd71da3c1c")
129+
@objid ("fc8177d1-75a4-4193-90f5-612fa7ebe204")
130130
private static final String ASSETNAME = "ToscaDesigner";
131131

132-
@objid ("3e6e35a6-ff14-43bc-80ef-32ba54f53859")
132+
@objid ("d8d9bd31-22cd-40fa-9d15-af62426f90be")
133133
private static final InstantiateVisitor instantiateVisitor = new InstantiateVisitor();
134134

135135
/**
136136
* @param session The modeling session this factory is operating in.
137137
*/
138-
@objid ("c0edaabf-4761-4938-a511-54f115a44610")
138+
@objid ("03437014-6288-4ff6-93e3-52d5af196acf")
139139
public static final void initialize(final IModelingSession session) throws MdaProxyException {
140140
fr.softeam.toscadesigner.api.automatic.standard.staticdiagram.ToscaDiagram.MdaTypes.init(session);
141141
fr.softeam.toscadesigner.api.automatic.standard.staticdiagram.ServiceTemplateDiagram.MdaTypes.init(session);
@@ -241,7 +241,7 @@ public static final void initialize(final IModelingSession session) throws MdaPr
241241
* @param e A model element
242242
* @return the right proxy or <i>null</i>.
243243
*/
244-
@objid ("4416c7b2-7a42-4172-98a3-b53e7e4729b4")
244+
@objid ("54524dcf-f80d-48f4-bef8-afb1f4fbe0fc")
245245
public static final Object instantiate(final ModelElement e) {
246246
for (Stereotype s : e.getExtension()) {
247247
ModuleComponent module = s.getModule();
@@ -261,23 +261,23 @@ public static final Object instantiate(final ModelElement e) {
261261
* @param stName A stereotype name.
262262
* @return the right proxy or <i>null</i>.
263263
*/
264-
@objid ("6869383a-f852-480c-851b-946037e2a2a0")
264+
@objid ("86161449-a404-4d36-b197-2f049f6582c0")
265265
public static final Object instantiate(final Element e, final String stName) {
266266
instantiateVisitor.setStereotype(stName);
267267
return e.accept(instantiateVisitor);
268268
}
269269

270-
@objid ("161e7695-8ebc-4970-9cab-3b9a65412fd7")
270+
@objid ("faf5aba4-dca0-40e9-8ee9-43b5e2b20487")
271271
private static class InstantiateVisitor implements IDefaultModelVisitor, IDefaultInfrastructureVisitor {
272-
@objid ("89179f9e-658a-4c36-8109-502cacdfc919")
272+
@objid ("61090378-24d4-4418-b883-7a0d5cadc791")
273273
private String stName;
274274

275-
@objid ("84b7ac02-465d-4dd1-a2b9-010ca3143aac")
275+
@objid ("f98f9888-91a3-4dc7-9211-accddc39b553")
276276
public final void setStereotype(final String stName) {
277277
this.stName = stName;
278278
}
279279

280-
@objid ("8e9ec5e0-8be9-480e-90c0-3152a85fa285")
280+
@objid ("24796db2-f6ba-4716-b9c0-96f9737a6582")
281281
@Override
282282
public final Object visitAssociation(Association obj) {
283283
switch (this.stName) {
@@ -290,7 +290,7 @@ public final Object visitAssociation(Association obj) {
290290

291291
}
292292

293-
@objid ("5980cdb4-78af-4593-b689-4d4c2dd299b2")
293+
@objid ("fb4e31f9-8ca0-4856-8d80-d1785d8bb9f0")
294294
@Override
295295
public final Object visitAttribute(Attribute obj) {
296296
switch (this.stName) {
@@ -305,7 +305,7 @@ public final Object visitAttribute(Attribute obj) {
305305

306306
}
307307

308-
@objid ("aed06588-ce38-4c50-b245-92ac128b15f8")
308+
@objid ("e0ceb5e7-0c6d-454e-9395-0216f511f65c")
309309
@Override
310310
public final Object visitPackage(Package obj) {
311311
switch (this.stName) {
@@ -319,7 +319,7 @@ public final Object visitPackage(Package obj) {
319319

320320
}
321321

322-
@objid ("df795db8-b428-4ee1-815a-3ecab16b6688")
322+
@objid ("323338a9-f5c7-4e07-a89d-a23a27ae2087")
323323
@Override
324324
public final Object visitAssociationEnd(AssociationEnd obj) {
325325
switch (this.stName) {
@@ -332,7 +332,7 @@ public final Object visitAssociationEnd(AssociationEnd obj) {
332332

333333
}
334334

335-
@objid ("f4070526-7df3-4730-883f-5c0bb2a4816f")
335+
@objid ("dde3a8f3-50e9-48ed-8e1e-303f083a13fa")
336336
@Override
337337
public final Object visitDataType(DataType obj) {
338338
switch (this.stName) {
@@ -346,7 +346,7 @@ public final Object visitDataType(DataType obj) {
346346

347347
}
348348

349-
@objid ("d2e9608c-ded5-4566-8a79-3a08263224e7")
349+
@objid ("fcafc004-d890-4a17-936a-09d14fcdad96")
350350
@Override
351351
public final Object visitClass(Class obj) {
352352
switch (this.stName) {
@@ -388,7 +388,7 @@ public final Object visitClass(Class obj) {
388388

389389
}
390390

391-
@objid ("e67f9a90-6441-427a-8c9c-fd4f10903dd9")
391+
@objid ("c5a0002d-f72a-4505-ba9b-2c2ca7f85cdc")
392392
@Override
393393
public final Object visitStaticDiagram(StaticDiagram obj) {
394394
switch (this.stName) {
@@ -403,7 +403,7 @@ public final Object visitStaticDiagram(StaticDiagram obj) {
403403

404404
}
405405

406-
@objid ("1517055c-f3ae-4ddc-bdf3-9d24ff19d891")
406+
@objid ("9edcaf70-b221-4bb4-83b6-54ea08f272ae")
407407
@Override
408408
public final Object visitModelElement(ModelElement obj) {
409409
switch (this.stName) {
@@ -471,7 +471,7 @@ public final Object visitModelElement(ModelElement obj) {
471471
* <p>If null is returned the caller will return null.
472472
* @return the {@link IInfrastructureVisitor} visitor or <i>null</i>.
473473
*/
474-
@objid ("24412da0-0b27-4f3b-8203-54284b7937fd")
474+
@objid ("2c1f88b3-952d-48db-affe-9ca255834808")
475475
@Override
476476
public IInfrastructureVisitor getInfrastructureVisitor() {
477477
return this;

ToscaDesigner/src/main/java/fr/softeam/toscadesigner/api/automatic/standard/staticdiagram/ServiceTemplateDiagram.java

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@
4040
*/
4141
@objid ("ed792b19-3a0d-46f3-b2a8-c885af3a1414")
4242
public class ServiceTemplateDiagram implements IMdaProxy {
43-
@objid ("7fc22752-cf84-48ec-b223-9ce0cfe9e61b")
43+
@objid ("57bd9e21-45a0-46bb-9432-f084dbbdc6d5")
4444
public static final String STEREOTYPE_NAME = "ServiceTemplateDiagram";
4545

4646
/**
4747
* The underlying {@link StaticDiagram} represented by this proxy, never null.
48+
*
4849
*/
49-
@objid ("0a55d147-1304-4b76-9003-17f3e165f0ea")
50+
@objid ("452d5cee-7522-45ad-92e9-484499e2b67f")
5051
protected final StaticDiagram elt;
5152

5253
/**
@@ -56,17 +57,16 @@ public class ServiceTemplateDiagram implements IMdaProxy {
5657
* @param elt a model object
5758
* @return <code>true</code> if the instantiation can be carried out else <code>false</code>.
5859
*/
59-
@objid ("ed8beefb-d75a-48da-a876-c5f1a6d1e483")
60+
@objid ("c60fb045-d6cf-4a82-ba3d-687133b13e87")
6061
public static boolean canInstantiate(final MObject elt) {
6162
return ((elt instanceof StaticDiagram) && (ServiceTemplateDiagram.MdaTypes.STEREOTYPE_ELT!=null) && ((StaticDiagram) elt).isStereotyped(ServiceTemplateDiagram.MdaTypes.STEREOTYPE_ELT));
6263
}
6364

6465
/**
6566
* Create a new {@link StaticDiagram} stereotyped << ServiceTemplateDiagram >> then instantiate a {@link ServiceTemplateDiagram} proxy.
66-
*
6767
* @return a {@link ServiceTemplateDiagram} proxy on the created {@link StaticDiagram}.
6868
*/
69-
@objid ("041ec76c-98c3-453b-9072-8943fc8bfdfb")
69+
@objid ("3a6a052a-269a-42c3-9fe0-c74c0a503fe3")
7070
public static ServiceTemplateDiagram create(final IModelingSession session) {
7171
ModelElement e = (ModelElement)session.getModel().createElement("Standard.StaticDiagram");
7272
e.getExtension().add(ServiceTemplateDiagram.MdaTypes.STEREOTYPE_ELT);
@@ -80,7 +80,7 @@ public static ServiceTemplateDiagram create(final IModelingSession session) {
8080
* @param obj a StaticDiagram
8181
* @return a {@link ServiceTemplateDiagram} proxy or <i>null</i>.
8282
*/
83-
@objid ("dc898290-1e06-4d64-a88b-e028b13b9f5b")
83+
@objid ("79a71efb-e46c-4565-92d9-f92f927856a7")
8484
public static ServiceTemplateDiagram instantiate(final StaticDiagram obj) {
8585
return ServiceTemplateDiagram.canInstantiate(obj) ? new ServiceTemplateDiagram(obj) : null;
8686
}
@@ -89,19 +89,19 @@ public static ServiceTemplateDiagram instantiate(final StaticDiagram obj) {
8989
* Tries to instantiate a {@link ServiceTemplateDiagram} proxy from a {@link StaticDiagram} stereotyped << ServiceTemplateDiagram >> checking its metaclass and its stereotype.
9090
* <p>
9191
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
92+
* @throws IllegalArgumentException if the instantiation cannot be carried out.
9293
* @param obj a {@link StaticDiagram}
9394
* @return a {@link ServiceTemplateDiagram} proxy.
94-
* @throws IllegalArgumentException if the instantiation cannot be carried out.
9595
*/
96-
@objid ("e2514b80-87f6-4e90-b916-2ea48caa30d3")
96+
@objid ("a8aac38d-be79-40e5-904b-e74ab2e0c2c0")
9797
public static ServiceTemplateDiagram safeInstantiate(final StaticDiagram obj) throws IllegalArgumentException {
9898
if (ServiceTemplateDiagram.canInstantiate(obj))
99-
return new ServiceTemplateDiagram(obj);
99+
return new ServiceTemplateDiagram(obj);
100100
else
101-
throw new IllegalArgumentException("ServiceTemplateDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
101+
throw new IllegalArgumentException("ServiceTemplateDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
102102
}
103103

104-
@objid ("4b5924c6-dae6-4c94-a12d-6a10db240242")
104+
@objid ("dde4503c-81bb-418c-9226-dc40ae7eee44")
105105
@Override
106106
public boolean equals(final Object obj) {
107107
if (this == obj) {
@@ -118,38 +118,37 @@ public boolean equals(final Object obj) {
118118
}
119119

120120
/**
121-
* Get the underlying {@link StaticDiagram}.
121+
* Get the underlying {@link StaticDiagram}.
122122
* @return the StaticDiagram represented by this proxy, never null.
123123
*/
124-
@objid ("2467a6ae-f02d-453f-b1d6-6205a21cb0d9")
124+
@objid ("e8ef3a75-f47b-49db-be5e-a4d4874a44da")
125125
public StaticDiagram getElement() {
126126
return this.elt;
127127
}
128128

129-
@objid ("8f4f1176-d766-424e-806a-a07a8953ec2e")
129+
@objid ("162f2002-65bc-4497-8f6a-f9210350b6fe")
130130
@Override
131131
public int hashCode() {
132132
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
133-
134133
}
135134

136-
@objid ("81b0aed9-5090-4bec-90e8-ece0cdbbb5bb")
135+
@objid ("6ec2c9f9-e44a-474c-9a38-e5060fd95f24")
137136
protected ServiceTemplateDiagram(final StaticDiagram elt) {
138137
this.elt = elt;
139138
}
140139

141140
@objid ("4b6fef3f-101c-4384-86b5-c7c7a22b250c")
142141
public static final class MdaTypes {
143-
@objid ("8e681867-7589-40bb-af6b-3225c8239fff")
142+
@objid ("5f2d5a35-5bf9-4416-b3bd-82bd32e759ae")
144143
public static Stereotype STEREOTYPE_ELT;
145144

146-
@objid ("edb9082c-196e-4573-8723-992e9bae6634")
145+
@objid ("4771a861-5e74-4742-8cb6-0669203d1e59")
147146
private static Stereotype MDAASSOCDEP;
148147

149-
@objid ("2fa56a44-00e8-4e11-8226-2f6404df0753")
148+
@objid ("b8f1bc77-a3f0-4909-b788-f22a5be53608")
150149
private static TagType MDAASSOCDEP_ROLE;
151150

152-
@objid ("1e0a4004-3b17-4560-b751-c2c5bde5fa4e")
151+
@objid ("d1223fe5-36e9-4cd5-b5f5-191e5bebc9d3")
153152
public static void init(final IModelingSession session) throws MdaProxyException {
154153
List <MRef> missingRefs = new ArrayList<>();
155154
MRef mRef;
@@ -166,7 +165,6 @@ public static void init(final IModelingSession session) throws MdaProxyException
166165
if (MDAASSOCDEP_ROLE==null) missingRefs.add(mRef);
167166

168167
if (! missingRefs.isEmpty()) throw new MdaProxyException(MdaProxyException.MdaProxyExceptionReason.MISSING_MDA_ELEMENT, missingRefs);
169-
170168
}
171169

172170
}

0 commit comments

Comments
 (0)