Skip to content

Commit d9a1147

Browse files
Updating Tosca library ( new toscaLibrary.ramc) + Updating stereotypes in Tosca Library component contributor
1 parent 88fed06 commit d9a1147

File tree

5 files changed

+64
-56
lines changed

5 files changed

+64
-56
lines changed

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

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,36 @@
22

33
import com.modeliosoft.modelio.javadesigner.annotations.objid;
44

5-
@objid ("c6e7f0e7-7cf0-435d-805e-7dc036c88c3a")
5+
@objid("c6e7f0e7-7cf0-435d-805e-7dc036c88c3a")
66
public interface ToscaDesignerStereotypes {
7-
@objid ("4a5f9810-710a-453e-85e3-2fb2fae3107b")
8-
public static final String TNODETYPE = "TNodeType";
7+
@objid("4a5f9810-710a-453e-85e3-2fb2fae3107b")
8+
public static final String TNODETYPE = "TNodeType";
99

10-
@objid ("29cdc9c8-62e2-47f3-a842-05bfcf66ceb4")
11-
public static final String TRELATIONSHIPTYPE = "TRelationshipType";
10+
@objid("29cdc9c8-62e2-47f3-a842-05bfcf66ceb4")
11+
public static final String TRELATIONSHIPTYPE = "TRelationshipType";
1212

13-
@objid ("124b385d-b194-42b0-91c6-6f143ee255f2")
14-
public static final String TARTIFACTTYPE = "TartifactType";
13+
@objid("124b385d-b194-42b0-91c6-6f143ee255f2")
14+
public static final String TARTIFACTTYPE = "TartifactType";
1515

16-
@objid ("ed147d17-d4bc-408e-8e66-fc901d163304")
17-
public static final String TINTERFACE = "TInterface";
16+
@objid("ed147d17-d4bc-408e-8e66-fc901d163304")
17+
public static final String TINTERFACE = "TInterface";
1818

19-
@objid ("bd79defd-ed98-4672-83c5-ea7fe7c02dca")
20-
public static final String TGROUP = "TGroup";
19+
@objid("bd79defd-ed98-4672-83c5-ea7fe7c02dca")
20+
public static final String TGROUP = "TGroup";
2121

22-
@objid ("79f54f59-6d78-4fb2-ba04-c1730ccb1df4")
23-
public static final String TPOLICY = "TPolicy";
22+
@objid("79f54f59-6d78-4fb2-ba04-c1730ccb1df4")
23+
public static final String TPOLICY = "TPolicy";
2424

25-
@objid ("06ef7d01-24bb-44cd-8a53-7fe09d7a0b17")
26-
public static final String TCAPABILITY_DEFINITION = "TCapabilityDefinition";
25+
public static final String TPOLICY_TYPE = "TPolicyType";
2726

28-
@objid ("00bcce85-5b07-444e-9e4a-1f2f898464e2")
29-
public static final String CAPABILITY_DEFINITIONS_TYPE = "CapabilityDefinitionsType";
30-
}
27+
@objid("06ef7d01-24bb-44cd-8a53-7fe09d7a0b17")
28+
public static final String TCAPABILITY_DEFINITION = "TCapabilityDefinition";
29+
30+
@objid("00bcce85-5b07-444e-9e4a-1f2f898464e2")
31+
public static final String CAPABILITY_DEFINITIONS_TYPE = "CapabilityDefinitionsType";
32+
33+
public static final String TCAPABILITY_TYPE = "TCapabilityType";
3134

35+
public static final String TOPERATION = "TOperation";
36+
37+
}

ToscaDesigner/src/main/java/fr/softeam/toscadesigner/impl/ToscaDesignerComponentContributor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ public Set<Stereotype> getDependencyStereotypes() {
5959
stereotypes.add(getStereotype(Class.class, ToscaDesignerStereotypes.TRELATIONSHIPTYPE));
6060
stereotypes.add(getStereotype(Class.class, ToscaDesignerStereotypes.TARTIFACTTYPE));
6161
stereotypes.add(getStereotype(ModelElement.class, ToscaDesignerStereotypes.TINTERFACE));
62-
62+
stereotypes.add(getStereotype(ModelElement.class, ToscaDesignerStereotypes.TOPERATION));
6363
stereotypes.add(getStereotype(Package.class, ToscaDesignerStereotypes.TGROUP));
6464
stereotypes.add(getStereotype(Class.class, ToscaDesignerStereotypes.TPOLICY));
65+
stereotypes.add(getStereotype(Class.class, ToscaDesignerStereotypes.TPOLICY_TYPE));
6566
stereotypes.add(getStereotype(Class.class, ToscaDesignerStereotypes.TCAPABILITY_DEFINITION));
67+
stereotypes.add(getStereotype(Class.class, ToscaDesignerStereotypes.TCAPABILITY_TYPE));
6668
stereotypes.add(getStereotype(Class.class, ToscaDesignerStereotypes.CAPABILITY_DEFINITIONS_TYPE));
6769

6870
return stereotypes;

ToscaDesigner/src/main/java/fr/softeam/toscadesigner/impl/ToscaDesignerPeerModule.java

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,43 @@
55
import org.modelio.api.module.context.configuration.IModuleAPIConfiguration;
66
import org.modelio.vbasic.version.Version;
77

8-
@objid ("45eae62e-3ca2-4147-9843-7b75b7385a28")
8+
@objid("45eae62e-3ca2-4147-9843-7b75b7385a28")
99
public class ToscaDesignerPeerModule implements IPeerModule {
10-
@objid ("bf494723-b984-4e79-8900-554994e525d1")
11-
private IModuleAPIConfiguration peerConfiguration;
12-
13-
@objid ("44fa402b-3a30-4cac-819f-ea72f30a5a29")
14-
private ToscaDesignerModule module = null;
15-
16-
@objid ("b124a821-5687-4b82-996e-370fc7729547")
17-
public ToscaDesignerPeerModule(final ToscaDesignerModule module, final IModuleAPIConfiguration peerConfiguration) {
18-
this.module = module;
19-
this.peerConfiguration = peerConfiguration;
20-
}
21-
22-
@objid ("19af3b88-c744-4496-a320-ed4d82c56baf")
23-
public IModuleAPIConfiguration getConfiguration() {
24-
return this.peerConfiguration;
25-
}
26-
27-
@objid ("3eb8c31d-f243-4773-a48d-2a85a7666475")
28-
public String getDescription() {
29-
return this.module.getDescription();
30-
}
31-
32-
@objid ("fa7e2794-6683-4a48-9ff0-8f5f2d7d7b0a")
33-
public String getName() {
34-
return this.module.getName();
35-
}
36-
37-
@objid ("97387ee1-f3a4-432d-bf1d-6f7664be8d89")
38-
public Version getVersion() {
39-
return this.module.getVersion();
40-
}
41-
42-
@objid ("9cfeab48-5bcd-4c80-abfd-b551f7d6a39d")
43-
void init() {
44-
45-
}
10+
@objid("bf494723-b984-4e79-8900-554994e525d1")
11+
private IModuleAPIConfiguration peerConfiguration;
12+
13+
@objid("44fa402b-3a30-4cac-819f-ea72f30a5a29")
14+
private ToscaDesignerModule module = null;
15+
16+
@objid("b124a821-5687-4b82-996e-370fc7729547")
17+
public ToscaDesignerPeerModule(final ToscaDesignerModule module, final IModuleAPIConfiguration peerConfiguration) {
18+
this.module = module;
19+
this.peerConfiguration = peerConfiguration;
20+
}
21+
22+
@objid("19af3b88-c744-4496-a320-ed4d82c56baf")
23+
public IModuleAPIConfiguration getConfiguration() {
24+
return this.peerConfiguration;
25+
}
26+
27+
@objid("3eb8c31d-f243-4773-a48d-2a85a7666475")
28+
public String getDescription() {
29+
return this.module.getDescription();
30+
}
31+
32+
@objid("fa7e2794-6683-4a48-9ff0-8f5f2d7d7b0a")
33+
public String getName() {
34+
return this.module.getName();
35+
}
36+
37+
@objid("97387ee1-f3a4-432d-bf1d-6f7664be8d89")
38+
public Version getVersion() {
39+
return this.module.getVersion();
40+
}
41+
42+
@objid("9cfeab48-5bcd-4c80-abfd-b551f7d6a39d")
43+
void init() {
44+
45+
}
4646

4747
}
148 Bytes
Binary file not shown.
107 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)