getSubFeatures() {
if (OptimisationRequirement.canInstantiate(mObj))
results.add((OptimisationRequirement)CamelDesignerProxyFactory.instantiate(mObj, OptimisationRequirement.STEREOTYPE_NAME));
}
- return Collections.unmodifiableList(results);
+ return (results);
}
@objid ("9a96fc7d-4040-4ea0-8b72-c6e6e3e7fea2")
diff --git a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java
index a7f1f287..940522e1 100644
--- a/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java
+++ b/src/main/java/fr/softeam/cameldesigner/api/locationmodel/standard/enumeration/GeographicalRegion.java
@@ -11,23 +11,19 @@
import java.util.List;
import java.util.Objects;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory;
-import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule;
-import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
-import fr.softeam.cameldesigner.impl.CamelDesignerModule;
import org.modelio.api.modelio.model.IModelingSession;
-import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
-import org.modelio.metamodel.mmextensions.infrastructure.ExtensionNotFoundException;
import org.modelio.metamodel.uml.infrastructure.Dependency;
import org.modelio.metamodel.uml.infrastructure.ModelElement;
import org.modelio.metamodel.uml.infrastructure.Stereotype;
import org.modelio.metamodel.uml.infrastructure.TagType;
-import org.modelio.metamodel.uml.infrastructure.properties.PropertyDefinition;
-import org.modelio.metamodel.uml.infrastructure.properties.PropertyTableDefinition;
import org.modelio.metamodel.uml.statik.Enumeration;
import org.modelio.metamodel.uml.statik.EnumerationLiteral;
import org.modelio.vcore.smkernel.mapi.MObject;
+import fr.softeam.cameldesigner.api.CamelDesignerProxyFactory;
+import fr.softeam.cameldesigner.api.ICamelDesignerPeerModule;
+import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
+import fr.softeam.cameldesigner.impl.CamelDesignerModule;
/**
* Proxy class to handle a {@link Enumeration} with << GeographicalRegion >> stereotype.
@@ -43,7 +39,7 @@ public class GeographicalRegion extends Location {
* Tells whether a {@link GeographicalRegion proxy} can be instantiated from a {@link MObject} checking it is a {@link Enumeration} stereotyped << GeographicalRegion >>.
*
* The method returns false
if the instantiation cannot be carried out.
- *
+ *
* @param elt a model object
* @return true
if the instantiation can be carried out else false
.
*/
@@ -54,7 +50,7 @@ public static boolean canInstantiate(final MObject elt) {
/**
* Create a new {@link Enumeration} stereotyped << GeographicalRegion >> then instantiate a {@link GeographicalRegion} proxy.
- *
+ *
* @return a {@link GeographicalRegion} proxy on the created {@link Enumeration}.
*/
@objid ("35865ac2-47bd-40b3-8f8a-16ba3b74f46d")
@@ -68,7 +64,7 @@ public static GeographicalRegion create() {
* Tries to instantiate a {@link GeographicalRegion} proxy from a {@link Enumeration} stereotyped << GeographicalRegion >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
- *
+ *
* @param obj a Enumeration
* @return a {@link GeographicalRegion} proxy or null.
*/
@@ -81,7 +77,7 @@ public static GeographicalRegion instantiate(final Enumeration obj) {
* Tries to instantiate a {@link GeographicalRegion} proxy from a {@link Enumeration} stereotyped << GeographicalRegion >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
- *
+ *
* @param obj a {@link Enumeration}
* @return a {@link GeographicalRegion} proxy.
* @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
@@ -127,7 +123,7 @@ public boolean equals(final Object obj) {
/**
* Get the underlying {@link Enumeration}.
- *
+ *
* @return the Enumeration represented by this proxy, never null.
*/
@objid ("a423e5ed-fdb7-41d0-906c-c0782f9a3052")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/CheckerPlan.java b/src/main/java/fr/softeam/cameldesigner/audit/CheckerPlan.java
index 5d3f9ca8..850fab32 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/CheckerPlan.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/CheckerPlan.java
@@ -7,9 +7,85 @@
import com.modeliosoft.modelio.javadesigner.annotations.objid;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.audit.rule.IRule;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1301;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1302;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1303;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1304;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1305;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1306;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1307;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1308;
+import fr.softeam.cameldesigner.audit.rule.constraint.Rule1309;
import fr.softeam.cameldesigner.audit.rule.core.Rule0101;
+import fr.softeam.cameldesigner.audit.rule.core.Rule0102;
+import fr.softeam.cameldesigner.audit.rule.data.Rule1401;
+import fr.softeam.cameldesigner.audit.rule.data.Rule1402;
+import fr.softeam.cameldesigner.audit.rule.data.Rule1403;
import fr.softeam.cameldesigner.audit.rule.deployment.Rule0301;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0302;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0303;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0304;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0305;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0306;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0307;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0308;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0309;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0310;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0311;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0312;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0313;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0314;
+import fr.softeam.cameldesigner.audit.rule.deployment.Rule0315;
+import fr.softeam.cameldesigner.audit.rule.location.Rule0501;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0601;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0602;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0603;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0604;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0605;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0606;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0607;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0608;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0609;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0610;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0611;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0612;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0613;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0614;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0615;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0616;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0617;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0618;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0619;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0620;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0621;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0622;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0623;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0624;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0625;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0626;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0627;
+import fr.softeam.cameldesigner.audit.rule.metric.Rule0628;
import fr.softeam.cameldesigner.audit.rule.mms.Rule0201;
+import fr.softeam.cameldesigner.audit.rule.mms.Rule0202;
+import fr.softeam.cameldesigner.audit.rule.mms.Rule0203;
+import fr.softeam.cameldesigner.audit.rule.mms.Rule0204;
+import fr.softeam.cameldesigner.audit.rule.mms.Rule0205;
+import fr.softeam.cameldesigner.audit.rule.mms.Rule0206;
+import fr.softeam.cameldesigner.audit.rule.mms.Rule0207;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0801;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0802;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0803;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0804;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0805;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0806;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0807;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0808;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0809;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0810;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0811;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0812;
+import fr.softeam.cameldesigner.audit.rule.requirement.Rule0813;
+import fr.softeam.cameldesigner.audit.rule.unit.Rule1201;
import fr.softeam.cameldesigner.impl.CamelDesignerModule;
import org.modelio.metamodel.uml.infrastructure.Stereotype;
@@ -20,9 +96,107 @@ public class CheckerPlan {
@objid ("b24979d2-4590-48da-b62e-1ea155d79f31")
public CheckerPlan() {
+ //Core
new Rule0101<>().registerRule(this);
+ new Rule0102<>().registerRule(this);
+
+ //mms
new Rule0201<>().registerRule(this);
+ new Rule0202<>().registerRule(this);
+ new Rule0203<>().registerRule(this);
+ new Rule0204<>().registerRule(this);
+ new Rule0205<>().registerRule(this);
+ new Rule0206<>().registerRule(this);
+ new Rule0207<>().registerRule(this);
+
+
+
+ //Deployment
new Rule0301<>().registerRule(this);
+ new Rule0302<>().registerRule(this);
+ new Rule0303<>().registerRule(this);
+ new Rule0304<>().registerRule(this);
+ new Rule0305<>().registerRule(this);
+ new Rule0306<>().registerRule(this);
+ new Rule0307<>().registerRule(this);
+ new Rule0308<>().registerRule(this);
+ new Rule0309<>().registerRule(this);
+ new Rule0310<>().registerRule(this);
+ new Rule0311<>().registerRule(this);
+ new Rule0312<>().registerRule(this);
+ new Rule0313<>().registerRule(this);
+ new Rule0314<>().registerRule(this);
+ new Rule0315<>().registerRule(this);
+
+
+ //Location
+ new Rule0501<>().registerRule(this);
+
+
+ //Metric
+ new Rule0601<>().registerRule(this);
+ new Rule0602<>().registerRule(this);
+ new Rule0603<>().registerRule(this);
+ new Rule0604<>().registerRule(this);
+ new Rule0605<>().registerRule(this);
+ new Rule0606<>().registerRule(this);
+ new Rule0607<>().registerRule(this);
+ new Rule0608<>().registerRule(this);
+ new Rule0609<>().registerRule(this);
+ new Rule0610<>().registerRule(this);
+ new Rule0611<>().registerRule(this);
+ new Rule0612<>().registerRule(this);
+ new Rule0613<>().registerRule(this);
+ new Rule0614<>().registerRule(this);
+ new Rule0615<>().registerRule(this);
+ new Rule0616<>().registerRule(this);
+ new Rule0617<>().registerRule(this);
+ new Rule0618<>().registerRule(this);
+ new Rule0619<>().registerRule(this);
+ new Rule0620<>().registerRule(this);
+ new Rule0621<>().registerRule(this);
+ new Rule0622<>().registerRule(this);
+ new Rule0623<>().registerRule(this);
+ new Rule0624<>().registerRule(this);
+ new Rule0625<>().registerRule(this);
+ new Rule0626<>().registerRule(this);
+ new Rule0627<>().registerRule(this);
+ new Rule0628<>().registerRule(this);
+
+ //Requirement
+ new Rule0801<>().registerRule(this);
+ new Rule0802<>().registerRule(this);
+ new Rule0803<>().registerRule(this);
+ new Rule0804<>().registerRule(this);
+ new Rule0805<>().registerRule(this);
+ new Rule0806<>().registerRule(this);
+ new Rule0807<>().registerRule(this);
+ new Rule0808<>().registerRule(this);
+ new Rule0809<>().registerRule(this);
+ new Rule0810<>().registerRule(this);
+ new Rule0811<>().registerRule(this);
+ new Rule0812<>().registerRule(this);
+ new Rule0813<>().registerRule(this);
+
+ //Unit
+ new Rule1201<>().registerRule(this);
+
+ //Constraint
+ new Rule1301<>().registerRule(this);
+ new Rule1302<>().registerRule(this);
+ new Rule1303<>().registerRule(this);
+ new Rule1304<>().registerRule(this);
+ new Rule1305<>().registerRule(this);
+ new Rule1306<>().registerRule(this);
+ new Rule1307<>().registerRule(this);
+ new Rule1308<>().registerRule(this);
+ new Rule1309<>().registerRule(this);
+
+
+ //Data
+ new Rule1401<>().registerRule(this);
+ new Rule1402<>().registerRule(this);
+ new Rule1403<>().registerRule(this);
}
@objid ("1436be35-7866-4bd2-9f0c-1923493700b7")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1301.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1301.java
index a9d4672b..86b3f237 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1301.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1301.java
@@ -1,25 +1,36 @@
package fr.softeam.cameldesigner.audit.rule.constraint;
+import camel.constraint.ComparisonOperatorType;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.UnaryConstraint;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("295c6494-24a8-4479-99a9-17b63e2dbaef")
-public class Rule1301 extends AbstractRule {
+public class Rule1301 extends AbstractRule {
@objid ("eb51ef03-33af-4216-8c54-ea5a53cee54b")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R1301";
@objid ("60916abb-ccee-4255-bb10-c481d17f061c")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ String operator = context.getComparisonOperator();
+ if ((operator == null) ||(operator.equals(""))){
+ return true;
+ }else {
+ try {
+ ComparisonOperatorType.valueOf(operator);
+ }catch(@SuppressWarnings ("unused") Exception e) {
+ return true;
+ }
+ }
+ return false;
}
@objid ("ce02a125-33f7-485f-ab2e-1f51ec219fa8")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return "Comparison Operator of " + elt.getName() + " is not valid.";
}
@objid ("cd75f47d-0ade-48ed-8713-270b5cef46e3")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1302.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1302.java
new file mode 100644
index 00000000..b1c81033
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1302.java
@@ -0,0 +1,47 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.UnaryConstraint;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("bde30041-df9c-4d04-a631-2cfe6a0f7d10")
+public class Rule1302 extends AbstractRule {
+ @objid ("7a6bc9e4-bc45-4ce6-a3a1-36a15c0d3fd1")
+ private static final String RULEID = "R1302";
+
+ @objid ("3b06bad0-1da4-454b-a3b5-89c7896f2b10")
+ @Override
+ public boolean isViolated(T context) {
+ String operator = context.getThreshold();
+ if ((operator == null) ||(operator.equals(""))){
+ return true;
+ }else {
+ try {
+ Double.valueOf(operator);
+ }catch(@SuppressWarnings ("unused") Exception e) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @objid ("ee93cdbb-d19e-415d-a9a0-6fb462c3d554")
+ @Override
+ public String getDescription(T elt) {
+ return "Threshold value of " + elt.getName() + " is not valid.";
+ }
+
+ @objid ("aad00a09-c8cb-438e-a573-d59e73d808c7")
+ @Override
+ public String getRuleId() {
+ return Rule1302.RULEID;
+ }
+
+ @objid ("b6f8fac2-03db-4034-a70b-4e7480d5f96e")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1303.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1303.java
new file mode 100644
index 00000000..526ccb63
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1303.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricContext;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("080a5c3a-5231-490a-b7c9-ab9ec4309beb")
+public class Rule1303 extends AbstractRule {
+ @objid ("f66a9802-b52a-4fb9-a700-f7b013701849")
+ private static final String RULEID = "R1303";
+
+ @objid ("c020cd4a-a8d0-46e5-aadc-d6b3448c9287")
+ @Override
+ public boolean isViolated(T context) {
+ return (!(MetricContext.canInstantiate(context.getElement().getCompositionOwner())));
+ }
+
+ @objid ("c3f727bc-176d-4103-9ab0-69a8a6bcd9b5")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " is not related to a MetricContext.";
+ }
+
+ @objid ("f210fea7-a095-4832-b22e-587e34ec20e0")
+ @Override
+ public String getRuleId() {
+ return Rule1303.RULEID;
+ }
+
+ @objid ("46caa987-727b-4156-bbed-0d5e4935a34f")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1304.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1304.java
new file mode 100644
index 00000000..3ac7b04d
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1304.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("d19f3cae-2bf5-411d-87df-d65b04b36000")
+public class Rule1304 extends AbstractRule {
+ @objid ("3454a330-0794-4492-9bad-b8506abdc23f")
+ private static final String RULEID = "R1304";
+
+ @objid ("01734a39-f4bd-4161-821c-b92259df614e")
+ @Override
+ public boolean isViolated(T context) {
+ return (!(AttributeContext.canInstantiate(context.getElement().getCompositionOwner())));
+ }
+
+ @objid ("b60f6aca-a15c-435d-8a8c-9dd9941d20b3")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " is not related to an AttributeContext.";
+ }
+
+ @objid ("03c8075d-8398-43e2-8d00-d6d04bb566ef")
+ @Override
+ public String getRuleId() {
+ return Rule1304.RULEID;
+ }
+
+ @objid ("799be777-bf3a-46c8-aea1-757eb4ecbde0")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1305.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1305.java
new file mode 100644
index 00000000..7f4fcd97
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1305.java
@@ -0,0 +1,39 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("cbaf950c-f5b7-4d8b-b5e3-a236d5e3432f")
+public class Rule1305 extends AbstractRule {
+ @objid ("e4f81520-ae6b-4b8a-8381-bed4e80e79cd")
+ private static final String RULEID = "R1305";
+
+ @objid ("21c45d63-0b8e-44ae-8fed-9c08b2265170")
+ @Override
+ public boolean isViolated(T context) {
+ CamelConstraint ifConstraint = context.getIf();
+ return (ifConstraint == null);
+ }
+
+ @objid ("13bfcae0-a105-4a8c-bbac-6ae44e4a7673")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " is not related to an IfConstraint.";
+ }
+
+ @objid ("f821730d-b5f8-41b2-8e08-2562ee63f56d")
+ @Override
+ public String getRuleId() {
+ return Rule1305.RULEID;
+ }
+
+ @objid ("b17c7f30-ed64-4328-aca4-2a3debc3dea8")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1306.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1306.java
new file mode 100644
index 00000000..3683d38c
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1306.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("c79c85f5-0be2-4598-993a-22d669ea364d")
+public class Rule1306 extends AbstractRule {
+ @objid ("af6e72cf-269e-48b9-b475-d48f0f0011f4")
+ private static final String RULEID = "R1306";
+
+ @objid ("55f2407f-8f14-4642-9158-509379b04999")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getThen() == null);
+ }
+
+ @objid ("4a62b6c8-177f-4a51-872a-e24d0efc7e25")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " is not related to a ThenConstraint.";
+ }
+
+ @objid ("e38b58de-58d0-46d7-91e7-38f6fb7f7208")
+ @Override
+ public String getRuleId() {
+ return Rule1306.RULEID;
+ }
+
+ @objid ("691d1a45-c54c-4536-b432-5d049a172e4a")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1307.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1307.java
new file mode 100644
index 00000000..8f5be70f
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1307.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("cd00ca50-1db3-44bc-ba40-d43811a12496")
+public class Rule1307 extends AbstractRule {
+ @objid ("f62e720c-396e-4e9c-af4b-67480224f9a5")
+ private static final String RULEID = "R1307";
+
+ @objid ("eea47956-8faf-4dcd-9aca-1de1c1891b1d")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getMetricVariable() == null);
+ }
+
+ @objid ("c8ac4af2-a98d-4aeb-87f6-41b5ce489ae0")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " is not related to a MetricVariable.";
+ }
+
+ @objid ("3b4da574-132f-4f6a-81fc-0ff50b44b726")
+ @Override
+ public String getRuleId() {
+ return Rule1307.RULEID;
+ }
+
+ @objid ("121799cb-7cdb-4821-9b09-04eaca7283a8")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1308.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1308.java
new file mode 100644
index 00000000..cee4d7b7
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1308.java
@@ -0,0 +1,48 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import camel.constraint.LogicalOperatorType;
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("da683b83-5592-41b9-89c2-09e68ceec153")
+public class Rule1308 extends AbstractRule {
+ @objid ("9413444d-8e11-4f99-8849-ed9dff34dbe3")
+ private static final String RULEID = "R1308";
+
+ @objid ("1d154b19-35d8-4ba0-b307-24c49a604237")
+ @Override
+ public boolean isViolated(T context) {
+ String op = context.getLogicalOperator();
+ if (op == null)
+ return true;
+ else {
+ try {
+ LogicalOperatorType.valueOf(op);
+ }catch(@SuppressWarnings ("unused") Exception e) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @objid ("395926b4-28fb-4695-90f6-02b2e9a0aace")
+ @Override
+ public String getDescription(T elt) {
+ return "Logical Operator of " + elt.getName() + " is not valid.";
+ }
+
+ @objid ("b9cffb5b-76a0-4ba0-af6a-612f3dbb779e")
+ @Override
+ public String getRuleId() {
+ return Rule1308.RULEID;
+ }
+
+ @objid ("764b2e51-e25e-4347-a9c3-40d5e4477689")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1309.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1309.java
new file mode 100644
index 00000000..a354fdf3
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/constraint/Rule1309.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.constraint;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("9ec08afe-49c3-487a-aada-6028e88be2e0")
+public class Rule1309 extends AbstractRule {
+ @objid ("79c6c63a-c9f3-4e76-8458-bf9c70bd5354")
+ private static final String RULEID = "R1309";
+
+ @objid ("410621e5-277c-4866-ad20-5eee70ba9bbc")
+ @Override
+ public boolean isViolated(T context) {
+ return CamelConstraint.canInstantiate(context.getElement().getCompositionOwner());
+ }
+
+ @objid ("a24e97cd-abaa-41db-87b9-6f47a48bb674")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " must be related to a Constraint";
+ }
+
+ @objid ("844bc5b3-c375-4670-bc32-68af310c40e8")
+ @Override
+ public String getRuleId() {
+ return Rule1309.RULEID;
+ }
+
+ @objid ("b4e91aeb-422c-41cb-bc18-e0292b554c7f")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/core/Rule0000.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/core/Rule0000.java
deleted file mode 100644
index 16a91734..00000000
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/core/Rule0000.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package fr.softeam.cameldesigner.audit.rule.core;
-
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
-import fr.softeam.cameldesigner.audit.CheckerPlan;
-import fr.softeam.cameldesigner.audit.rule.AbstractRule;
-
-@objid ("e7413f50-2cb6-4848-be62-da817ac929c8")
-public class Rule0000 extends AbstractRule {
- @objid ("f5f24d18-8b0f-4d81-b198-b5d39414c25f")
- private static final String RULEID = "R0000";
-
- @objid ("b5d32728-7a22-4d46-ac74-ba9711d2cf2f")
- @Override
- public boolean isViolated(T context) {
- return true;
- }
-
- @objid ("e52c4b1b-35f5-45ca-aa37-b5ab2f0f231b")
- @Override
- public String getDescription(T elt) {
- return "Description test pour l'initialisation du report";
- }
-
- @objid ("785669ce-54ce-477b-84fc-6ced86e298cd")
- @Override
- public String getRuleId() {
- return Rule0000.RULEID;
- }
-
- @objid ("c17ed5f9-c504-4443-91f0-f031e7c52639")
- @Override
- public void registerRule(CheckerPlan plan) {
- plan.registerRule(T.STEREOTYPE_NAME, this);
- }
-
-}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/core/Rule0102.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/core/Rule0102.java
new file mode 100644
index 00000000..c59fae8a
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/core/Rule0102.java
@@ -0,0 +1,44 @@
+package fr.softeam.cameldesigner.audit.rule.core;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.camelcore.standard.package_.CamelModel;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("27e66079-e9b1-4974-bcae-80eba9cf69c8")
+public class Rule0102 extends AbstractRule {
+ @objid ("8f901f97-271c-4050-a935-ea9549a3671c")
+ private static final String RULEID = "R0102";
+
+ @objid ("d7fee5e3-1713-469e-b992-8012b8c70863")
+ @Override
+ public boolean isViolated(T context) {
+ String appName = context.getApplicationName();
+ String appVersion = context.getApplicationVersion();
+ if ((appName != null) && (appVersion != null)) {
+ return ((appVersion.equals("") && (!(appName.equals(""))))
+ || (appName.equals("") && (!(appVersion.equals("")))));
+ }else {
+ return false;
+ }
+ }
+
+ @objid ("2cb0833f-a67a-4de3-a810-97281c05b7c2")
+ @Override
+ public String getDescription(T elt) {
+ return "Both application name and version must be set";
+ }
+
+ @objid ("8bcc9ee0-a99c-4343-890d-7c24743d9d8a")
+ @Override
+ public String getRuleId() {
+ return Rule0102.RULEID;
+ }
+
+ @objid ("c5f3bf78-a3d9-438b-a6d7-32e9f9dbb721")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1401.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1401.java
index f14e9553..ede78e35 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1401.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1401.java
@@ -1,14 +1,14 @@
package fr.softeam.cameldesigner.audit.rule.data;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("32026d8b-5b1c-41f9-9cba-8d09798a7bee")
-public class Rule1401 extends AbstractRule {
+public class Rule1401 extends AbstractRule {
@objid ("f15cf11f-ff90-42c8-b183-54846f4abd1d")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R1401";
@objid ("d8521654-0009-40d0-9f71-a0641a3ec181")
@Override
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1402.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1402.java
new file mode 100644
index 00000000..ee3c44e4
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1402.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.data;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("ddf05d0b-1ded-429c-b069-49508fbccecd")
+public class Rule1402 extends AbstractRule {
+ @objid ("a123fd92-70c8-4df4-ac7a-67848f92adfb")
+ private static final String RULEID = "R1402";
+
+ @objid ("482d4484-af13-4544-8a74-53daf0c74c6e")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getType() == null);
+ }
+
+ @objid ("a762331b-4941-4fee-94ec-19faa483a7a4")
+ @Override
+ public String getDescription(T elt) {
+ return "Type of " + elt.getName() + " has not been defined.";
+ }
+
+ @objid ("78aadb67-b92c-4b9d-bced-dbaeaa56a69a")
+ @Override
+ public String getRuleId() {
+ return Rule1402.RULEID;
+ }
+
+ @objid ("b70dba1f-5d96-4b5c-bda4-53a8c66a2836")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1403.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1403.java
new file mode 100644
index 00000000..f22107f3
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/data/Rule1403.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.data;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("4895dd5a-4426-4627-a48c-b28a7bb68364")
+public class Rule1403 extends AbstractRule {
+ @objid ("f9108389-ab18-4246-8d28-f7d9ef5b1f73")
+ private static final String RULEID = "R1402";
+
+ @objid ("767157a3-4aa5-4dfb-930d-87acc13c0b5c")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getType() == null);
+ }
+
+ @objid ("bef62cdb-c443-421a-adb8-d8d1c353366f")
+ @Override
+ public String getDescription(T elt) {
+ return "Type of " + elt.getName() + " has not been defined.";
+ }
+
+ @objid ("9d6e1cc9-247a-42d8-81ef-3d85956476f1")
+ @Override
+ public String getRuleId() {
+ return Rule1403.RULEID;
+ }
+
+ @objid ("6c58d5a9-df2c-4c90-b0a8-6f7d7f33b425")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0302.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0302.java
index 8c1f4688..eb0bd52a 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0302.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0302.java
@@ -1,25 +1,52 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
+import java.util.ArrayList;
+import java.util.List;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import org.modelio.metamodel.uml.statik.Connector;
+import org.modelio.metamodel.uml.statik.Instance;
+import org.modelio.metamodel.uml.statik.LinkEnd;
+import org.modelio.metamodel.uml.statik.Port;
+import org.modelio.metamodel.uml.statik.PortOrientation;
@objid ("3d1c4aab-eca7-41ab-ac6f-9dfe56081f1c")
-public class Rule0302 extends AbstractRule {
+public class Rule0302 extends AbstractRule {
@objid ("58646d1e-30ae-43a6-9b1a-5e6780458f24")
private static final String RULEID = "R0302";
@objid ("a425f098-bdc7-4cd0-8361-c55e457a2756")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ Connector connector = context.getElement();
+
+ List orientation = new ArrayList<>();
+ orientation.add(PortOrientation.IN);
+ orientation.add(PortOrientation.OUT);
+
+ for (LinkEnd end : connector.getLinkEnd()) {
+ Instance owner = end.getSource();
+ if (owner == null) {
+ owner = end.getOppositeOwner().getSource();
+ }
+
+ if (CommunicationPort.canInstantiate(owner)) {
+ orientation.remove(((Port) owner).getDirection());
+ }else {
+ return true;
+ }
+
+ }
+ return (!(orientation.isEmpty()));
}
@objid ("a4c19f10-9ca6-4f2f-ba7f-9e18736930e0")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " Communication must be created between a providedCommunication and a requiredCommunication";
}
@objid ("aee3def3-419e-4b23-8283-dc260c9b8bc3")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0303.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0303.java
index c38b23d6..cf15de9a 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0303.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0303.java
@@ -1,25 +1,26 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
@objid ("25911e10-feb6-4c2d-9a83-a6349751af85")
-public class Rule0303 extends AbstractRule {
+public class Rule0303 extends AbstractRule {
@objid ("8f0a0798-bafa-44f3-b225-981926cd802e")
private static final String RULEID = "R0303";
@objid ("36d1753d-b2a3-4675-bb72-60f3b28dc58b")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ return StringUtils.isInteger(context.getName());
}
@objid ("218c6d64-8895-4c98-bb1b-3bcc7f83f2d9")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " CommunicationPort must have a valid port number";
}
@objid ("1b8524b4-2c6d-46b4-a40d-8d86b1a11104")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0304.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0304.java
index 3873bb0c..50db0bc7 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0304.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0304.java
@@ -1,25 +1,26 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
@objid ("9cc6a0b6-9398-4e6d-a291-1d64723af512")
-public class Rule0304 extends AbstractRule {
+public class Rule0304 extends AbstractRule {
@objid ("60b9d64c-5d6e-4653-ba08-623b7fd029b0")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0304";
@objid ("06b672f6-bb5a-45b1-9c19-915ec84e5f26")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ return StringUtils.isInteger(context.getLowPortNumber());
}
@objid ("785c4fee-0928-4f3a-a3c2-54fe7dc08550")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " CommunicationPort must have a valid low port number";
}
@objid ("1d584c17-6921-4b7e-b442-08085cc002e0")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0305.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0305.java
index 04acc1ba..8eb63114 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0305.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0305.java
@@ -1,25 +1,26 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
@objid ("93983c2e-8462-4593-8d83-7b2704c87a38")
-public class Rule0305 extends AbstractRule {
+public class Rule0305 extends AbstractRule {
@objid ("d1dfe966-2e55-470a-8d52-fb18e1f2e625")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0305";
@objid ("3e291a9b-3fce-4937-956d-280f88bc63fc")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ return StringUtils.isInteger(context.getHighPortNumber());
}
@objid ("b2bb6871-791f-4803-bd24-09ff743957b9")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " CommunicationPort must have a valid high port number";
}
@objid ("f8561bb0-bd62-40af-94fb-c3a71d46a6cf")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0306.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0306.java
index 317fa95a..879eafd9 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0306.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0306.java
@@ -1,25 +1,52 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
+import java.util.ArrayList;
+import java.util.List;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import org.modelio.metamodel.uml.statik.Connector;
+import org.modelio.metamodel.uml.statik.Instance;
+import org.modelio.metamodel.uml.statik.LinkEnd;
+import org.modelio.metamodel.uml.statik.Port;
+import org.modelio.metamodel.uml.statik.PortOrientation;
@objid ("4d7c0d3d-bb4c-4080-9c20-2a59e7fca19f")
-public class Rule0306 extends AbstractRule {
+public class Rule0306 extends AbstractRule {
@objid ("1653c16d-dad8-4bfb-82b9-a4a200f08d97")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0306";
@objid ("025593be-1584-48dc-8006-53b67bb64acb")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ Connector connector = context.getElement();
+
+ List orientation = new ArrayList<>();
+ orientation.add(PortOrientation.IN);
+ orientation.add(PortOrientation.OUT);
+
+ for (LinkEnd end : connector.getLinkEnd()) {
+ Instance owner = end.getSource();
+ if (owner == null) {
+ owner = end.getOppositeOwner().getSource();
+ }
+
+ if (HostingPort.canInstantiate(owner)) {
+ orientation.remove(((Port) owner).getDirection());
+ }else {
+ return true;
+ }
+
+ }
+ return (!(orientation.isEmpty()));
}
@objid ("0d63f569-efa5-4704-a767-0cf42c8b77a4")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " Hosting must be created between a providedHostn and a requiredHost";
}
@objid ("43e0acee-002e-4a9c-8703-19ab4b5493b5")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0307.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0307.java
index 11422c04..896917b1 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0307.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0307.java
@@ -1,14 +1,14 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ComponentInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("85cd39a6-ad84-4e2b-8b89-5d997df3a1e3")
-public class Rule0307 extends AbstractRule {
+public class Rule0307 extends AbstractRule {
@objid ("0ee8c167-b294-44da-8f72-aa70995e10b9")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0307";
@objid ("74af2802-ac20-4aa4-969d-01de2588d50f")
@Override
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0308.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0308.java
index 1cf9084c..1b38fc78 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0308.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0308.java
@@ -1,25 +1,25 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("078e958b-19ee-4806-abf9-c81a03662e44")
-public class Rule0308 extends AbstractRule {
+public class Rule0308 extends AbstractRule {
@objid ("06c3e0ba-09f4-4ab1-adc7-385bf37c809a")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0308";
@objid ("29f21bca-c4b4-41c3-bd20-2e1ef7067f31")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ return (context.getLocation() == null);
}
@objid ("9edcea11-cbac-481c-b0c0-1cdc8d0b0371")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return "Location of " + elt.getName() + " has not been defined.";
}
@objid ("49c87319-02ac-479f-8696-305227da4718")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0309.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0309.java
index 79804a16..44f54146 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0309.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0309.java
@@ -1,25 +1,38 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
+import java.sql.Date;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("d33ab5e7-a5d7-4560-99a3-c612141466f4")
-public class Rule0309 extends AbstractRule {
+public class Rule0309 extends AbstractRule {
@objid ("6688c0a5-bd57-4935-baf5-1c36b2afbd61")
private static final String RULEID = "R0301";
@objid ("250a038c-bced-470c-88dd-a68f75749e93")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ try {
+ java.util.Date createdOn = Date.valueOf(context.getInstantiatedOn());
+ java.util.Date destroyedOn = Date.valueOf(context.getDestroyedOn());
+ if ((createdOn == null)
+ || (destroyedOn == null)
+ || (createdOn.before(destroyedOn))) {
+ return true;
+ }
+
+ }catch(@SuppressWarnings ("unused") Exception e ) {
+ return true;
+ }
+ return false;
}
@objid ("0a8a8e23-f90e-48e6-bbe6-e96b510b0223")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return "Dates are not compatibles.";
}
@objid ("4ada77d9-8c1f-4778-a76d-b93fdce4f69d")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0310.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0310.java
index 7a815f94..2a189052 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0310.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0310.java
@@ -1,14 +1,14 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("3263f5f7-1eec-4bee-866d-67b0fc5edced")
-public class Rule0310 extends AbstractRule {
+public class Rule0310 extends AbstractRule {
@objid ("4186bc1a-e53b-4933-abf6-2c44cec2552c")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0310";
@objid ("ed1215f8-e625-4c70-950f-f5a25d77109f")
@Override
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0311.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0311.java
index 162393c9..5e3d2af2 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0311.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0311.java
@@ -1,25 +1,52 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
+import java.util.ArrayList;
+import java.util.List;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import org.modelio.metamodel.uml.statik.Connector;
+import org.modelio.metamodel.uml.statik.Instance;
+import org.modelio.metamodel.uml.statik.LinkEnd;
+import org.modelio.metamodel.uml.statik.Port;
+import org.modelio.metamodel.uml.statik.PortOrientation;
@objid ("6881c177-cd5e-493b-809e-7e9c114ac333")
-public class Rule0311 extends AbstractRule {
+public class Rule0311 extends AbstractRule {
@objid ("1cb30a8a-86e7-40d6-b26b-dabc9c59af5e")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0311";
@objid ("518aaa06-6e9a-44d8-b812-a053ae0b14b7")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ Connector connector = context.getElement();
+
+ List orientation = new ArrayList<>();
+ orientation.add(PortOrientation.IN);
+ orientation.add(PortOrientation.OUT);
+
+ for (LinkEnd end : connector.getLinkEnd()) {
+ Instance owner = end.getSource();
+ if (owner == null) {
+ owner = end.getOppositeOwner().getSource();
+ }
+
+ if (CommunicationPortInstance.canInstantiate(owner)) {
+ orientation.remove(((Port) owner).getDirection());
+ }else {
+ return true;
+ }
+
+ }
+ return (!(orientation.isEmpty()));
}
@objid ("6e7d9218-6e82-4dbc-9d88-2335f9a2f3a0")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " CommunicationInstance must be created between a providedCommunicationInstance and a requiredCommunicationInstance";
}
@objid ("a336a7d0-2037-4a17-83d7-bd634ce46d8d")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0312.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0312.java
index 637cfaae..1d9650df 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0312.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0312.java
@@ -1,14 +1,14 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("66c09c28-51d7-433e-b354-07becef651cc")
-public class Rule0312 extends AbstractRule {
+public class Rule0312 extends AbstractRule {
@objid ("4cfdf8e3-34fa-4920-8c72-4b09e14730a7")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0312";
@objid ("2239081d-db9c-4fad-9f61-301e7f372b6a")
@Override
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0313.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0313.java
index 96d0a09e..797015a4 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0313.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0313.java
@@ -1,25 +1,52 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
+import java.util.ArrayList;
+import java.util.List;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import org.modelio.metamodel.uml.statik.Connector;
+import org.modelio.metamodel.uml.statik.Instance;
+import org.modelio.metamodel.uml.statik.LinkEnd;
+import org.modelio.metamodel.uml.statik.Port;
+import org.modelio.metamodel.uml.statik.PortOrientation;
@objid ("8b7b8b47-c15c-4595-ac0c-2850520c09c8")
-public class Rule0313 extends AbstractRule {
+public class Rule0313 extends AbstractRule {
@objid ("2de6f69c-d61d-4ef5-aaf3-d48721bd5b16")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0313";
@objid ("1aa41395-72ab-45c6-9a87-d95e0e299e5f")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ Connector connector = context.getElement();
+
+ List orientation = new ArrayList<>();
+ orientation.add(PortOrientation.IN);
+ orientation.add(PortOrientation.OUT);
+
+ for (LinkEnd end : connector.getLinkEnd()) {
+ Instance owner = end.getSource();
+ if (owner == null) {
+ owner = end.getOppositeOwner().getSource();
+ }
+
+ if (HostingPortInstance.canInstantiate(owner)) {
+ orientation.remove(((Port) owner).getDirection());
+ }else {
+ return true;
+ }
+
+ }
+ return (!(orientation.isEmpty()));
}
@objid ("ca851702-9817-4447-a600-02601f86bbde")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " HostingInstance must be created between a providedHostingInstance and a requiredHostingInstance";
}
@objid ("2841e95d-c8b2-489d-9747-d54c127375a1")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0314.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0314.java
index d520c4b6..0c880ac9 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0314.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0314.java
@@ -1,14 +1,14 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("b21ce8b3-9c4d-4be8-8a03-6da991fa0dde")
-public class Rule0314 extends AbstractRule {
+public class Rule0314 extends AbstractRule {
@objid ("6a2434e0-d854-4649-9e67-a16ee71bf26c")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0314";
@objid ("709a380c-6150-45fe-8e02-daf36a5aa8bd")
@Override
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0315.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0315.java
index c8ffeee4..9bb7764c 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0315.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/deployment/Rule0315.java
@@ -1,25 +1,36 @@
package fr.softeam.cameldesigner.audit.rule.deployment;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("bc921a29-120c-47ff-8d85-f49d4c1baf7b")
-public class Rule0315 extends AbstractRule {
+public class Rule0315 extends AbstractRule {
@objid ("2bf41e0b-e837-4819-bf51-d460d11fbeeb")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0315";
@objid ("64a20db2-80ff-465b-8391-3de4c904477f")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ String couplingType = context.getCouplingType();
+
+ if (couplingType == null)
+ return true;
+ else {
+ try {
+ couplingType.valueOf(couplingType);
+ }catch(Exception e) {
+ return true;
+ }
+ }
+ return false;
}
@objid ("c9434922-f571-4d2b-8436-d3a51f56f5c1")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return "CouplingType has not been defined.";
}
@objid ("7276f602-7ac7-40ec-ba80-11d38dac1565")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/location/Rule0501.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/location/Rule0501.java
index 3f56f563..de9335c2 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/location/Rule0501.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/location/Rule0501.java
@@ -1,25 +1,26 @@
package fr.softeam.cameldesigner.audit.rule.location;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.Location;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("5d07a628-3c45-40c8-b104-26f2c3c9a980")
-public class Rule0501 extends AbstractRule {
+public class Rule0501 extends AbstractRule {
@objid ("8353502b-f6b7-4042-9daf-ee9498ebcd18")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0501";
@objid ("addb1e31-f32b-4fcf-a784-4c285110ad88")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ String id = context.getId();
+ return ((id == null) || (id.equals("")));
}
@objid ("e51a7947-27f5-4870-afef-66555a68d85f")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return elt.getName() + " Location must have an ID.";
}
@objid ("34094b3d-9686-4cfe-9edc-4aa0c1caf28f")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0601.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0601.java
index 71dab062..5f2355b4 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0601.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0601.java
@@ -1,25 +1,25 @@
package fr.softeam.cameldesigner.audit.rule.metric;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
@objid ("bd11a2c7-c864-4595-b52e-11c5b37a33d8")
-public class Rule0601 extends AbstractRule {
+public class Rule0601 extends AbstractRule {
@objid ("6b05b81a-0c3b-4b0d-8898-9226fb280e87")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0601";
@objid ("153527fe-4f5e-4ff9-bf94-83d025f2857c")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ return (context.getObjectBinding() == null);
}
@objid ("97746b8e-165a-4409-8d97-e071b9a50699")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return "MetricInstance must have a related MetricObjectBinding";
}
@objid ("bc20cc76-78a2-475e-acdd-f96b497e378f")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0602.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0602.java
new file mode 100644
index 00000000..9477a29d
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0602.java
@@ -0,0 +1,43 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("d85ae442-c6b3-4c13-964f-3d174a4a1366")
+public class Rule0602 extends AbstractRule {
+ @objid ("d271994b-2045-4d86-b42f-328ed56cda3b")
+ private static final String RULEID = "R0602";
+
+ @objid ("aaddab7e-a8e6-4e86-b2a0-75a2f8a658fb")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'Instance: ' + self.name + ' of composite metric:' + self.metricContext.metric.name + 'should have the same execution model as the one of all of its component metric instances',
+ // status : Boolean =
+ // asError(metricContext.metric.oclIsTypeOf(CompositeMetric)
+ // implies self.composingMetricInstances->forAll(p | p.objectBinding.executionModel = self.objectBinding.executionModel))
+ // }.status
+ return false;
+ }
+
+ @objid ("215da604-fe1a-4a53-aad0-eee0f8954f4a")
+ @Override
+ public String getDescription(T elt) {
+ return "";
+ }
+
+ @objid ("d077baef-df2a-4f81-8af8-0dd44af6732c")
+ @Override
+ public String getRuleId() {
+ return Rule0602.RULEID;
+ }
+
+ @objid ("5bc72b9b-28f7-4164-bff8-16a300a22547")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0603.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0603.java
new file mode 100644
index 00000000..4f8f63f5
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0603.java
@@ -0,0 +1,47 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("065924f6-1169-4472-8c94-1a2b8750e856")
+public class Rule0603 extends AbstractRule {
+ @objid ("2e2f1468-7860-468a-9daf-d232273000c5")
+ private static final String RULEID = "R0603";
+
+ @objid ("471ba9e9-6c15-435c-801d-5b9112b07447")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'CompositeMetricInstance: ' + self.name + ' should have component metric instances which map to the component metrics referenced by the composite instance\'s metric',
+ // status : Boolean =
+ // asError(metricContext.metric.oclIsTypeOf(CompositeMetric)
+ // implies self.metricContext.metric.oclAsType(CompositeMetric).componentMetrics
+ // ->forAll(p | self.composingMetricInstances
+ // ->exists(q | q.metricContext.metric = p))
+ // and
+ // self.composingMetricInstances->forAll(inst | self.metricContext.metric.oclAsType(CompositeMetric).componentMetrics->exists(comp | comp = inst.metricContext.metric)))
+ // }.status
+ return false;
+ }
+
+ @objid ("37dbd44e-df6c-4ac2-8c77-d46dd0b1f68f")
+ @Override
+ public String getDescription(T elt) {
+ return "";
+ }
+
+ @objid ("a199572c-ecca-454d-89ae-d9f6319124b9")
+ @Override
+ public String getRuleId() {
+ return Rule0603.RULEID;
+ }
+
+ @objid ("e02418e6-5292-4da4-ac1d-9c6e15df70bd")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0604.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0604.java
new file mode 100644
index 00000000..e82e0f90
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0604.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("9ea36551-bae0-49c8-b0d0-1b7811a56ba1")
+public class Rule0604 extends AbstractRule {
+ @objid ("0f942797-27b0-4e9b-8398-2b0c0bee7438")
+ private static final String RULEID = "R0604";
+
+ @objid ("86c1ce9d-9c74-4adf-aae0-b2a6e4537527")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getMetricTemplate() == null);
+ }
+
+ @objid ("5b99ffa8-4abe-4cf9-815a-c678ecd98973")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " Metric must ba associated to a MetricTemplate.";
+ }
+
+ @objid ("183413f1-60a5-4746-bb12-4c78bfbcc7c8")
+ @Override
+ public String getRuleId() {
+ return Rule0604.RULEID;
+ }
+
+ @objid ("09b2c308-bb54-4ed7-8e57-7787f4a10146")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0605.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0605.java
new file mode 100644
index 00000000..9c8a21f7
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0605.java
@@ -0,0 +1,44 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("b58cd53d-ea65-4e81-9ee7-a4c0b868aecc")
+public class Rule0605 extends AbstractRule {
+ @objid ("5c23ff02-1560-41cd-a7f0-d2d686532de1")
+ private static final String RULEID = "R0605";
+
+ @objid ("f817df2f-2199-457c-bc97-97354636a611")
+ @Override
+ public boolean isViolated(T context) {
+ // System.out.println("Checking recursiveness for Metric: " + mt1.getName());
+ // camel.metric.CompositeMetric m1 = (camel.metric.CompositeMetric)mt1;
+ // for (camel.metric.Metric mt: m1.getComponentMetrics()){
+ // if (mt.getName().equals(mt2.getName())) return Boolean.TRUE;
+ // if (mt instanceof camel.metric.CompositeMetric && checkRecursiveness(mt,mt2)) return Boolean.TRUE;
+ // }
+ // return Boolean.FALSE;
+ return false;
+ }
+
+ @objid ("18d4027e-605c-4082-b756-d3024f1e44d6")
+ @Override
+ public String getDescription(T elt) {
+ return "";
+ }
+
+ @objid ("cb17bc49-c8ab-4baf-91ff-70f2093c62d9")
+ @Override
+ public String getRuleId() {
+ return Rule0605.RULEID;
+ }
+
+ @objid ("e195c860-943d-4a4b-b340-affd47e1a603")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0606.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0606.java
new file mode 100644
index 00000000..037fcbbe
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0606.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("88b19bcf-efc1-4f40-bef8-c60c4d0d1c46")
+public class Rule0606 extends AbstractRule {
+ @objid ("273f387d-5096-406c-9e4f-10d35b828be4")
+ private static final String RULEID = "R0606";
+
+ @objid ("29a0f317-0c24-4fe5-b505-e6398bd541c5")
+ @Override
+ public boolean isViolated(T context) {
+ String formula = context.getFormula();
+ return ((formula == null) || (formula.equals(""))) ;
+ }
+
+ @objid ("173b3cfe-ba72-4945-a747-32d626fecfc5")
+ @Override
+ public String getDescription(T elt) {
+ return elt.getName() + " CompositeMetric must have a formula.";
+ }
+
+ @objid ("f70e3ba1-dbba-4d67-b4f8-138a3ff72a88")
+ @Override
+ public String getRuleId() {
+ return Rule0606.RULEID;
+ }
+
+ @objid ("4c782f77-efb4-4c4f-9a1c-24a86fc52e1e")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0607.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0607.java
new file mode 100644
index 00000000..7f88b17d
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0607.java
@@ -0,0 +1,43 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("d4673439-96a9-4180-818b-86e6e8f9f5a3")
+public class Rule0607 extends AbstractRule {
+ @objid ("c22764dd-65f2-42ff-a3d5-c7e890f0c903")
+ private static final String RULEID = "R0607";
+
+ @objid ("b806c642-8dac-4001-bef9-ddaa75edcd6b")
+ @Override
+ public boolean isViolated(T context) {
+ org.modelio.metamodel.uml.statik.Class self = context.getElement();
+ for (Metric comp : context.getComponentMetrics()) {
+ if (comp.getElement().equals(self))
+ return true;
+ }
+ return false;
+ }
+
+ @objid ("cde52103-b386-40b4-aa3d-ef8956d5e4c6")
+ @Override
+ public String getDescription(T elt) {
+ return "CompositeMetric: " + elt.getName() + " should not contain itself recursively.";
+ }
+
+ @objid ("28be3d10-8f88-4911-8b40-fe18b2897345")
+ @Override
+ public String getRuleId() {
+ return Rule0607.RULEID;
+ }
+
+ @objid ("7816090d-9de7-452e-bfe8-5d9b164170f6")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0608.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0608.java
new file mode 100644
index 00000000..6e26c71f
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0608.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("8d7ed2c7-0ca0-4037-b88d-dd2f4bf1aadf")
+public class Rule0608 extends AbstractRule {
+ @objid ("13dc05f7-3517-48d0-86a7-76703749ffe1")
+ private static final String RULEID = "R0608";
+
+ @objid ("a0fd3a5b-0310-42d0-8046-b53a3a6f3403")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'MetricVariable: ' + self.name + ' cannot span both the current configuration and the node candidates',
+ // status : Boolean =
+ // asError(currentConfiguration = false or onNodeCandidates = false)
+ // }.status
+ return false;
+ }
+
+ @objid ("d268c311-7899-4472-9d0b-c0a94cf6aa72")
+ @Override
+ public String getDescription(T elt) {
+ return "";
+ }
+
+ @objid ("695b733f-ba4c-416e-abfb-275e86f83175")
+ @Override
+ public String getRuleId() {
+ return Rule0608.RULEID;
+ }
+
+ @objid ("469f3415-0c6f-4301-966d-5176fb4485ab")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0609.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0609.java
new file mode 100644
index 00000000..8ea35d3d
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0609.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("a03afcb9-031d-4b2b-b468-fb1ec4f47941")
+public class Rule0609 extends AbstractRule {
+ @objid ("43dadf5c-9c9b-4fb7-91e5-e901da6aed5f")
+ private static final String RULEID = "R0610";
+
+ @objid ("f8dea46c-66ca-4493-a4bf-03a14dc37a39")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'MetricVariable: ' + self.name + ' should not contain recursively itself'
+ // ,
+ // status : Boolean = asError(not self.containsMetric(self))
+ // }.status
+ return false;
+ }
+
+ @objid ("5f4d347a-de2a-4573-ab68-8deee3aeaf1a")
+ @Override
+ public String getDescription(T elt) {
+ return "";
+ }
+
+ @objid ("bb9006b7-7d8c-41e2-b2fe-7817eef15f89")
+ @Override
+ public String getRuleId() {
+ return Rule0609.RULEID;
+ }
+
+ @objid ("1ca37cb7-8e11-4fa0-9307-77e084ffe564")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0610.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0610.java
new file mode 100644
index 00000000..bb3bfd26
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0610.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("c0e665dd-48bc-4668-ab7e-8165ddb414db")
+public class Rule0610 extends AbstractRule {
+ @objid ("b95e8ce4-4e40-41e6-8bb4-c48fa417b5c9")
+ private static final String RULEID = "R0610";
+
+ @objid ("c43f36cf-4496-43eb-ba86-567858c0d7ee")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getExecutionModel() == null);
+ }
+
+ @objid ("d67fe2a1-60f8-4b07-86c4-2e51c674ddc4")
+ @Override
+ public String getDescription(T elt) {
+ return "MetricObjectBinding " + elt.getName() + " must be related to one ExecutionModel";
+ }
+
+ @objid ("cdccddba-6a6d-46b5-af03-c1850dbc3701")
+ @Override
+ public String getRuleId() {
+ return Rule0610.RULEID;
+ }
+
+ @objid ("38673b82-2a2b-4ca3-b5ba-b316e0c2bfb9")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0611.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0611.java
new file mode 100644
index 00000000..106858b2
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0611.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("348bfd54-2d52-4a40-a334-1cfa693d54eb")
+public class Rule0611 extends AbstractRule {
+ @objid ("52e72552-94fe-4c17-936d-8de84fd6d198")
+ private static final String RULEID = "R0611";
+
+ @objid ("78489a88-ce79-4407-a3c4-c55071d65236")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getTimeUnit() == null);
+ }
+
+ @objid ("07af3779-0157-409b-9537-ea45d0c3fc8a")
+ @Override
+ public String getDescription(T elt) {
+ return "Schedule : " + elt.getName() + " must have a related TimeUnit";
+ }
+
+ @objid ("880fc4d1-71ae-49aa-bc0d-5eadd6c7c7c9")
+ @Override
+ public String getRuleId() {
+ return Rule0611.RULEID;
+ }
+
+ @objid ("2a8b40a3-dbf9-43ee-bdbe-ffc4822184cd")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0612.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0612.java
new file mode 100644
index 00000000..cb49412f
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0612.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("bf897d24-6fc6-460f-95c6-6028f9eef7cd")
+public class Rule0612 extends AbstractRule {
+ @objid ("30fd5cc3-15cd-4027-99f4-d5be0ff41ae0")
+ private static final String RULEID = "R0612";
+
+ @objid ("74ed9f7a-650f-42e9-ba61-9d56ce8d067e")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getRepetitions());
+ }
+
+ @objid ("78ef0f20-fad5-45eb-9c59-74c304b21334")
+ @Override
+ public String getDescription(T elt) {
+ return "Schedule : " + elt.getName() + " must have a repetition value";
+ }
+
+ @objid ("8b627288-b415-478c-a0f7-af1fc89cc782")
+ @Override
+ public String getRuleId() {
+ return Rule0612.RULEID;
+ }
+
+ @objid ("5fe701b6-cad4-4d98-92da-b8b9c38de555")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0613.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0613.java
new file mode 100644
index 00000000..83aa3467
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0613.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("56de93a7-22d0-4d3b-bb21-e9a66bac8cc2")
+public class Rule0613 extends AbstractRule {
+ @objid ("09c531ce-8b0a-4fa6-bc2a-7eb1739e81ff")
+ private static final String RULEID = "R0613";
+
+ @objid ("452289d0-34b0-4ef5-9be2-a87f54f2cc86")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getInterval());
+ }
+
+ @objid ("9d44c310-cddd-407d-98cc-4067ac37eb5b")
+ @Override
+ public String getDescription(T elt) {
+ return "Schedule : " + elt.getName() + " must have an interval value";
+ }
+
+ @objid ("1432b179-9097-462c-b8a6-d57aa4f8936c")
+ @Override
+ public String getRuleId() {
+ return Rule0613.RULEID;
+ }
+
+ @objid ("f472edf4-8dc3-437e-a39e-34d7a2647b69")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0614.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0614.java
new file mode 100644
index 00000000..203e4484
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0614.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("dacbe6b4-ebdf-4ac7-bb6f-d478e0433ea4")
+public class Rule0614 extends AbstractRule {
+ @objid ("a37d9a81-5e17-46a9-9e5f-13e674ba488c")
+ private static final String RULEID = "R0614";
+
+ @objid ("c574fd61-5c60-4c90-acd6-dc945f4b1d84")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'Schedule: ' + self.name + ' should have a correct interval',
+ // status : Boolean =
+ // asError(interval >0)
+ // }.status
+ return false;
+ }
+
+ @objid ("a64e256c-a2a8-4018-9cfe-337ff09de1d0")
+ @Override
+ public String getDescription(T elt) {
+ return "Schedule : " + elt.getName() + " must have a correct interval";
+ }
+
+ @objid ("ccdf698c-8436-4b21-9b3c-eaba3929c4e7")
+ @Override
+ public String getRuleId() {
+ return Rule0614.RULEID;
+ }
+
+ @objid ("27ffa53f-a535-4aa0-99fa-be0f90497c7b")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0615.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0615.java
new file mode 100644
index 00000000..9e1955ce
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0615.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("86a02f1a-4ed0-44ed-85e0-656ebe33a8b3")
+public class Rule0615 extends AbstractRule {
+ @objid ("28ae2699-3c02-47e6-aefa-3794ea080302")
+ private static final String RULEID = "R0615";
+
+ @objid ("8de5df14-ff59-41ee-9971-3634fe704fe3")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getTimeUnit() == null);
+ }
+
+ @objid ("c49c6ecb-c4ce-4fe0-9008-a22b0536c26a")
+ @Override
+ public String getDescription(T elt) {
+ return "Window : " + elt.getName() + " must have a specified TimeUnit";
+ }
+
+ @objid ("c46d809a-b73f-4862-97b7-bfa90e0b6873")
+ @Override
+ public String getRuleId() {
+ return Rule0615.RULEID;
+ }
+
+ @objid ("4db7b3dd-6b83-4aec-8fed-85e515a6a557")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0616.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0616.java
new file mode 100644
index 00000000..d6425696
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0616.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("f8b26b87-ac48-44e4-a2f6-cfeb41a8f8f8")
+public class Rule0616 extends AbstractRule {
+ @objid ("57d5f779-81c5-4142-983c-ffcb8a6316a6")
+ private static final String RULEID = "R0616";
+
+ @objid ("9fea0378-e304-41cd-8395-b079ec957c57")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getWindowType());
+ }
+
+ @objid ("01e815e0-b89d-4169-bdad-8dc5b56b5d8e")
+ @Override
+ public String getDescription(T elt) {
+ return "Window : " + elt.getName() + " must have a specified Window type";
+ }
+
+ @objid ("67c76cf1-d6de-43e2-9e40-057f49f0243b")
+ @Override
+ public String getRuleId() {
+ return Rule0616.RULEID;
+ }
+
+ @objid ("fdb49fd2-26d7-4319-95c6-6d3c7f351231")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0617.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0617.java
new file mode 100644
index 00000000..70932a71
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0617.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("26f7edc6-bebd-4511-a7ab-36327312d7e0")
+public class Rule0617 extends AbstractRule {
+ @objid ("868631fe-caea-4cd3-b612-61a5aa65eeb9")
+ private static final String RULEID = "R0617";
+
+ @objid ("f4c7e7e1-bb1e-44a0-83a0-1f1865825f08")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getSizeType());
+ }
+
+ @objid ("a0ac7c31-ca48-478c-bfde-2f4902403eed")
+ @Override
+ public String getDescription(T elt) {
+ return "Window : " + elt.getName() + " must have a specified size type";
+ }
+
+ @objid ("c33051a5-6412-45ca-844d-8c02a9ef22c3")
+ @Override
+ public String getRuleId() {
+ return Rule0617.RULEID;
+ }
+
+ @objid ("86a6cbfd-dd6f-4b3b-98f2-66057ea21013")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0618.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0618.java
new file mode 100644
index 00000000..901abac3
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0618.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("7becaf30-65b8-499f-9011-f7ee6b8cfac9")
+public class Rule0618 extends AbstractRule {
+ @objid ("500199b5-d4b0-41b7-a351-2065df14efaa")
+ private static final String RULEID = "R0618";
+
+ @objid ("22795ff0-7040-414d-b98c-3cb87ed604a5")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getMeasurementSize());
+ }
+
+ @objid ("21e0443a-e76b-4ea3-acaa-a57d7af3f3b9")
+ @Override
+ public String getDescription(T elt) {
+ return "Window : " + elt.getName() + " must have a specified measurement size.";
+ }
+
+ @objid ("711173f4-4da7-4a0e-b923-d7ea561b2dcf")
+ @Override
+ public String getRuleId() {
+ return Rule0618.RULEID;
+ }
+
+ @objid ("ce1b5b3f-413b-4c76-ab78-e5a520c906dc")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0619.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0619.java
new file mode 100644
index 00000000..752e1aa1
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0619.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("dbd4b6fd-fd32-40a5-a96a-4d893a8327af")
+public class Rule0619 extends AbstractRule {
+ @objid ("280c7561-91e3-4279-a16a-b5c296c9a9d8")
+ private static final String RULEID = "R0619";
+
+ @objid ("32df242c-0533-405d-bf90-411bd094e193")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getTimeSize());
+ }
+
+ @objid ("cd94aa19-73e0-4008-a80a-6aef0dd1fd51")
+ @Override
+ public String getDescription(T elt) {
+ return "Window : " + elt.getName() + " must have a specified time size.";
+ }
+
+ @objid ("9f07f40a-a3fe-444e-9b9a-5a8460d23da0")
+ @Override
+ public String getRuleId() {
+ return Rule0619.RULEID;
+ }
+
+ @objid ("49ce46d5-4794-46d5-a9e6-37d56c358df6")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0620.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0620.java
new file mode 100644
index 00000000..5456b73a
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0620.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricContext;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("5f086c76-1300-4cb1-abe1-b95b8c5b1a6b")
+public class Rule0620 extends AbstractRule {
+ @objid ("fb6fb80d-d4b8-4bae-bfa4-5fc3e10c0ec0")
+ private static final String RULEID = "R0620";
+
+ @objid ("d1a7a6c9-72cc-41f7-9f6f-5e05d94c5a94")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getMetric() == null);
+ }
+
+ @objid ("f60e2b2f-a7f1-4aec-aa84-952ba442dfdd")
+ @Override
+ public String getDescription(T elt) {
+ return "MetricContext : " + elt.getName() + " must have a related Metric.";
+ }
+
+ @objid ("7faf8d96-80bf-4276-9eaa-63b920c69555")
+ @Override
+ public String getRuleId() {
+ return Rule0620.RULEID;
+ }
+
+ @objid ("ec226acb-5eab-452d-9ecf-73c5abb3fbbd")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0621.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0621.java
new file mode 100644
index 00000000..de9611ea
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0621.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("0ffd863b-b662-41ac-9145-6913a530eeb9")
+public class Rule0621 extends AbstractRule {
+ @objid ("bd7f13cd-fc96-45c1-9ff5-d1a08d6c4204")
+ private static final String RULEID = "R0621";
+
+ @objid ("c28b1456-d968-4634-a6c6-9b5d0936ee76")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getSensor() == null);
+ }
+
+ @objid ("66b60a74-d7af-40c4-93b1-578dc556dcfb")
+ @Override
+ public String getDescription(T elt) {
+ return "RawMetricContext : " + elt.getName() + " must have a related Sensor.";
+ }
+
+ @objid ("0c0626ef-2969-40ff-aa2a-55cdac734383")
+ @Override
+ public String getRuleId() {
+ return Rule0621.RULEID;
+ }
+
+ @objid ("9d529f63-4129-443b-9587-dd716136eb30")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0622.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0622.java
new file mode 100644
index 00000000..f8b337ab
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0622.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("acbca515-a20c-4097-97ed-44c1af372f30")
+public class Rule0622 extends AbstractRule {
+ @objid ("3a2daa28-5435-45bf-8cda-d3590cb3ea3f")
+ private static final String RULEID = "R0622";
+
+ @objid ("db405b72-5da6-4e78-90a3-e4fd535cfafc")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getAttribute() == null);
+ }
+
+ @objid ("c3bf0718-6a4a-453c-8159-3af2e8e0cb26")
+ @Override
+ public String getDescription(T elt) {
+ return "AttributeContext : " + elt.getName() + " must have a related Attribute.";
+ }
+
+ @objid ("fc17ef21-4de2-4f76-8785-68389dd0fb8e")
+ @Override
+ public String getRuleId() {
+ return Rule0622.RULEID;
+ }
+
+ @objid ("9cb7adca-9ebc-4eac-9474-73cd72cd0cb0")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0623.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0623.java
new file mode 100644
index 00000000..183105f6
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0623.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("35d9c9c5-53b0-4b94-97ac-31da639a8956")
+public class Rule0623 extends AbstractRule {
+ @objid ("05512337-0619-4d03-aaeb-4c6c7e18da99")
+ private static final String RULEID = "R0623";
+
+ @objid ("2dac1708-188e-44c9-a583-f7b67b7baaa8")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getExpression());
+ }
+
+ @objid ("5fbd6b0f-7763-43ad-99e5-eb679cda1e5d")
+ @Override
+ public String getDescription(T elt) {
+ return "Function : " + elt.getName() + " must have an expression.";
+ }
+
+ @objid ("0a1f371d-112e-445f-a913-52e4b71bfd1b")
+ @Override
+ public String getRuleId() {
+ return Rule0623.RULEID;
+ }
+
+ @objid ("6876c3ce-e25e-4508-9463-2ee4551ba631")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0624.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0624.java
new file mode 100644
index 00000000..feb90f9a
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0624.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("b666a537-814e-4104-9a25-df00c1c952d7")
+public class Rule0624 extends AbstractRule {
+ @objid ("a01a9910-5638-470f-8804-fe71bc8f0928")
+ private static final String RULEID = "R0624";
+
+ @objid ("9ce741d9-0b13-4558-ae29-c97c1934d209")
+ @Override
+ public boolean isViolated(T context) {
+ return context.getArguments().size() == 0;
+ }
+
+ @objid ("e227efce-8cbb-4467-89d8-263b252e78d6")
+ @Override
+ public String getDescription(T elt) {
+ return "Function : " + elt.getName() + " must have at least one arguments.";
+ }
+
+ @objid ("5af10dcc-5319-4b0c-89fb-87cbab9b7773")
+ @Override
+ public String getRuleId() {
+ return Rule0624.RULEID;
+ }
+
+ @objid ("d3e59ba9-11ec-43be-8a26-2ac629ba0987")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0625.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0625.java
new file mode 100644
index 00000000..db25526a
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0625.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("9e7324a5-280f-4fa7-b604-9ff5398f6593")
+public class Rule0625 extends AbstractRule {
+ @objid ("1bdb04db-a884-48bf-a4d1-4c13bd87a395")
+ private static final String RULEID = "R0625";
+
+ @objid ("67124aa3-249c-4e42-b39a-1b5e1a179bcb")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getUnit() == null);
+ }
+
+ @objid ("227d32f8-047d-485d-837e-f71bc6ae7424")
+ @Override
+ public String getDescription(T elt) {
+ return "MetricTemplate : " + elt.getName() + " must have a Unit.";
+ }
+
+ @objid ("df81c018-6ca1-4b88-94d1-043e890dac86")
+ @Override
+ public String getRuleId() {
+ return Rule0625.RULEID;
+ }
+
+ @objid ("fdcf4aaa-239f-487e-9ed6-a8b5a75da8e4")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0626.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0626.java
new file mode 100644
index 00000000..5d4514f1
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0626.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("6f8ca272-c0d1-4b12-88cc-26d70a33892a")
+public class Rule0626 extends AbstractRule {
+ @objid ("66b3da4f-589c-4882-a756-8397f07dd036")
+ private static final String RULEID = "R0626";
+
+ @objid ("687e0069-001a-40e6-92dc-cf700ae17a74")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getValueDirection());
+ }
+
+ @objid ("4d91e3de-eee9-4fcc-86ad-db8dbea6dccf")
+ @Override
+ public String getDescription(T elt) {
+ return "MetricTemplate : " + elt.getName() + " must have a ValueDirection.";
+ }
+
+ @objid ("e2effe39-4a42-4e62-9d35-525d5e998bd8")
+ @Override
+ public String getRuleId() {
+ return Rule0626.RULEID;
+ }
+
+ @objid ("74b96df4-9109-42e8-b377-a590bf86ad60")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0627.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0627.java
new file mode 100644
index 00000000..c3d22f3f
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0627.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("d330ab7d-3faa-4f48-a7c8-72ac2d658625")
+public class Rule0627 extends AbstractRule {
+ @objid ("d837af9a-5225-488e-a049-9075fee67118")
+ private static final String RULEID = "R0627";
+
+ @objid ("47e3560e-c3fa-4fbc-a616-fa2b182cdf26")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getAttribute() == null);
+ }
+
+ @objid ("a0068a64-b16b-4279-a48a-f231401f0ba8")
+ @Override
+ public String getDescription(T elt) {
+ return "MetricTemplate : " + elt.getName() + " must have a related MeasurableAttribute.";
+ }
+
+ @objid ("90deb4bb-90ff-4b08-acf2-3a87ec1b39bc")
+ @Override
+ public String getRuleId() {
+ return Rule0627.RULEID;
+ }
+
+ @objid ("cde3851b-a416-4357-967e-89a6e7fa10c5")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0628.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0628.java
new file mode 100644
index 00000000..47fd367e
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/metric/Rule0628.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.metric;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricInstanceModel;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("70f9254b-af15-4d71-8c50-d4b37d06611b")
+public class Rule0628 extends AbstractRule {
+ @objid ("1738da95-a2a7-42d7-8eda-c154fa5e109a")
+ private static final String RULEID = "R0628";
+
+ @objid ("87b9b2d3-c310-4749-baac-d284443fcb38")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getType() == null);
+ }
+
+ @objid ("658c9f77-d6e2-40f3-9541-b669f394872d")
+ @Override
+ public String getDescription(T elt) {
+ return "MetricInstanceModel : " + elt.getName() + " must be typed.";
+ }
+
+ @objid ("edb5bd91-3b8f-44ee-80d3-4faa450eb8f4")
+ @Override
+ public String getRuleId() {
+ return Rule0628.RULEID;
+ }
+
+ @objid ("b118efe9-2a16-4af0-85ce-eb0b81e3473b")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0801.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0801.java
index 93ccf2fc..12b9cb0e 100644
--- a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0801.java
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0801.java
@@ -1,25 +1,26 @@
package fr.softeam.cameldesigner.audit.rule.requirement;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OSRequirement;
import fr.softeam.cameldesigner.audit.CheckerPlan;
import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
@objid ("c56fa63d-a4ac-434a-ace0-ef2f4cb27b25")
-public class Rule0801 extends AbstractRule {
+public class Rule0801 extends AbstractRule {
@objid ("53bf269a-aa2b-4e79-8ae7-cccf7617ba49")
- private static final String RULEID = "R0301";
+ private static final String RULEID = "R0801";
@objid ("61049f6d-25eb-4780-8d02-3e288dd9d865")
@Override
public boolean isViolated(T context) {
- return (context.getType() == null);
+ return StringUtils.isNullOrEmpty(context.getOs());
}
@objid ("04f87a08-b7cd-48a8-9531-c63e3314361c")
@Override
public String getDescription(T elt) {
- return "Type of " + elt.getName() + " has not been defined.";
+ return "OSRequirement : " + elt.getName() + " must have a specified OS.";
}
@objid ("ec0ae2c3-2758-4ec4-bd0b-740dba2ec24f")
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0802.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0802.java
new file mode 100644
index 00000000..bb193d48
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0802.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.SecurityRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("fa7f8302-c7a5-4eb7-b0e8-62f87540d4e2")
+public class Rule0802 extends AbstractRule {
+ @objid ("2afd9211-b8f6-454e-a8b5-00def711d2ee")
+ private static final String RULEID = "R0802";
+
+ @objid ("dd0f8a7e-ce9d-4b36-8533-b82ba75bf2b9")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getSecurityControls().size() == 0);
+ }
+
+ @objid ("0e5962a5-988d-4b22-b72d-8bdaafcf2663")
+ @Override
+ public String getDescription(T elt) {
+ return "SecurityRequirement : " + elt.getName() + " must be related to at least one SecurityControl.";
+ }
+
+ @objid ("d58a0b0e-a00b-412e-9461-179c474451c5")
+ @Override
+ public String getRuleId() {
+ return Rule0802.RULEID;
+ }
+
+ @objid ("9d4c4ea6-c6f9-4749-b3b9-cb2a6fe0bd92")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0803.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0803.java
new file mode 100644
index 00000000..d961e716
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0803.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("9aee32e0-5659-4db4-ac4f-f1246340d511")
+public class Rule0803 extends AbstractRule {
+ @objid ("bf3ea42d-1aaf-4f9e-8723-b8f7d4198753")
+ private static final String RULEID = "R0803";
+
+ @objid ("c6563166-ccf0-4375-a6c4-f658b56f6e51")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getLocations().size() == 0);
+ }
+
+ @objid ("b14cbad1-f2ac-4655-909e-33bd2dab4f1e")
+ @Override
+ public String getDescription(T elt) {
+ return "LocationRequirement : " + elt.getName() + " must be related to at least one Location.";
+ }
+
+ @objid ("3988e08a-08f1-46bf-966c-cd54aa0b4280")
+ @Override
+ public String getRuleId() {
+ return Rule0803.RULEID;
+ }
+
+ @objid ("693a410d-b2e7-4032-ace4-43d29626a3cb")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0804.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0804.java
new file mode 100644
index 00000000..f00cdf00
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0804.java
@@ -0,0 +1,37 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("604830d8-62a8-4c4a-9a15-cc17dfe67bd7")
+public class Rule0804 extends AbstractRule {
+ @objid ("1e1e5485-addb-454b-906d-9442cc85e432")
+ private static final String RULEID = "R0804";
+
+ @objid ("e6340109-e806-44a3-8f58-2e54cd103041")
+ @Override
+ public boolean isViolated(T context) {
+ return (context.getImages().size() == 0);
+ }
+
+ @objid ("1b369848-d174-495b-8c30-3ffff60e12c2")
+ @Override
+ public String getDescription(T elt) {
+ return "ImageRequirement : " + elt.getName() + " must be related to at least one Image.";
+ }
+
+ @objid ("36716878-005f-4359-96c9-ac7961c73d75")
+ @Override
+ public String getRuleId() {
+ return Rule0804.RULEID;
+ }
+
+ @objid ("b5676080-4f5f-4269-871d-34e165b25fc5")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0805.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0805.java
new file mode 100644
index 00000000..143414e0
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0805.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("cb953698-7b41-4c0b-8455-5d45c7764362")
+public class Rule0805 extends AbstractRule {
+ @objid ("e5d1879c-dba9-4e3d-90aa-1cbb3f42483d")
+ private static final String RULEID = "R0805";
+
+ @objid ("af900048-ba33-4b10-ae02-b2170d1887cb")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getMinInstances());
+ }
+
+ @objid ("716e2c21-ea5b-48ff-b4de-0b7676850d0d")
+ @Override
+ public String getDescription(T elt) {
+ return "HorizontalScaleRequirement : " + elt.getName() + " must specified one min instance.";
+ }
+
+ @objid ("6e6f0209-3615-496f-84d1-4633fa3abfa8")
+ @Override
+ public String getRuleId() {
+ return Rule0805.RULEID;
+ }
+
+ @objid ("69ddb2c9-4434-4fe3-8c06-2de07ec51490")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0806.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0806.java
new file mode 100644
index 00000000..83897117
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0806.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("33380e2e-a71e-4e32-b74a-6c87eb6e5046")
+public class Rule0806 extends AbstractRule {
+ @objid ("507a46ba-e1a9-496d-a1d9-4225760fdda8")
+ private static final String RULEID = "R0806";
+
+ @objid ("53d55f49-3984-442f-af7b-e11dd23c84aa")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getMaxInstances());
+ }
+
+ @objid ("828ef191-1f34-4d0d-8ec8-746056bf8df8")
+ @Override
+ public String getDescription(T elt) {
+ return "HorizontalScaleRequirement : " + elt.getName() + " must specified one max instance.";
+ }
+
+ @objid ("612c60aa-0e2a-4f29-b4fe-dbbd88aacd46")
+ @Override
+ public String getRuleId() {
+ return Rule0806.RULEID;
+ }
+
+ @objid ("d074b37f-ec7c-40e5-8f8e-246c90b47945")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0807.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0807.java
new file mode 100644
index 00000000..ce76adf3
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0807.java
@@ -0,0 +1,43 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("22b4927e-127e-4bee-ba56-5c4ed23cf508")
+public class Rule0807 extends AbstractRule {
+ @objid ("fd746585-8382-4de7-aa20-ee6ab3e2f654")
+ private static final String RULEID = "R0807";
+
+ @objid ("7cf31514-5981-4ec9-b73e-12e7a3c97566")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'HorizontalScaleRequirement: ' + self.name + ' has wrong values for the minInstances and/or maxInstance properties. The minInstances value should be non-negative, the maxInstances value positive or equal to -1, and when maxInstances value is positive, then minInstances value should not be greater than it',
+ // status : Boolean =
+ // asError(self.minInstances >= 0 and (self.maxInstances > 0 or self.maxInstances = - 1) and
+ // (self.maxInstances <> - 1 implies self.minInstances<= self.maxInstances))
+ // }.status
+ return false;
+ }
+
+ @objid ("b74a1478-361e-49fe-a6bd-4a7e1f311e53")
+ @Override
+ public String getDescription(T elt) {
+ return "HorizontalScaleRequirement : " + elt.getName() + " must specified consistantes instance.";
+ }
+
+ @objid ("6c9173c0-92c2-4cd8-a3d1-ff549d84766a")
+ @Override
+ public String getRuleId() {
+ return Rule0807.RULEID;
+ }
+
+ @objid ("6223d390-8c95-46fa-818b-3904e5b9980f")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0808.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0808.java
new file mode 100644
index 00000000..bceeee3b
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0808.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("ad78fe89-10a0-4106-a216-f76ac782842b")
+public class Rule0808 extends AbstractRule {
+ @objid ("5caa3c7d-c290-4715-8790-23d9701634d1")
+ private static final String RULEID = "R0808";
+
+ @objid ("e43773f0-4aee-42af-bbb2-bf62e3f7429f")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'VerticalScaleRequirement: ' + self.name + ' should have at least one feature or attribute being specified',
+ // status : Boolean =
+ // asError(self.subFeatures->size() <> 0 xor self.attributes->size() <> 0)
+ // }.status
+ return false;
+ }
+
+ @objid ("c150cab0-e135-4e22-a478-f4b10eadcc9a")
+ @Override
+ public String getDescription(T elt) {
+ return "VerticalScaleRequirement : " + elt.getName() + " must specified consistantes instance.";
+ }
+
+ @objid ("c5cfd237-622a-4059-ab97-a70cbde61fad")
+ @Override
+ public String getRuleId() {
+ return Rule0808.RULEID;
+ }
+
+ @objid ("3e32aadb-7e6c-4999-b9ac-a5bb0db4b722")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0809.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0809.java
new file mode 100644
index 00000000..c326c9d8
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0809.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OptimisationRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("cfbe4eb1-7124-4b88-89b1-e2a6307ebb18")
+public class Rule0809 extends AbstractRule {
+ @objid ("6d93314a-7fd5-4e49-a37d-03146b8f7833")
+ private static final String RULEID = "R0809";
+
+ @objid ("68ab8dc3-a5a6-4ffa-8e88-ae0f3c5c69e3")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'In OptimizationRequirement: ' + self.name + ' either a metric context or a metric variable must given',
+ // status : Boolean =
+ // asError((metricContext <> null and metricVariable = null) xor (metricContext = null and metricVariable <> null))
+ // }.status
+ return false;
+ }
+
+ @objid ("5b7ec428-1a8d-4688-8355-8655603d386f")
+ @Override
+ public String getDescription(T elt) {
+ return "OptimisationRequirement : " + elt.getName() + " must specified consistantes instance.";
+ }
+
+ @objid ("d8a59785-ec3c-4c0e-bc38-1ef5ec36b063")
+ @Override
+ public String getRuleId() {
+ return Rule0809.RULEID;
+ }
+
+ @objid ("f8a41e3f-9e62-472d-ad01-2740bc85ace2")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0810.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0810.java
new file mode 100644
index 00000000..97ff15bf
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0810.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.SoftRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("1f929a3a-b9f8-4bb3-a2b5-c9cf963dfb81")
+public class Rule0810 extends AbstractRule {
+ @objid ("b9cae5d8-e462-4613-8c1f-169e788905cc")
+ private static final String RULEID = "R0810";
+
+ @objid ("a417473b-7f56-4ea3-8490-5e9fc59f8e67")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'Requirement: ' + self.name + ' has a negative priority: ' + self.priority.toString(),
+ // status : Boolean =
+ // asError(self.priority >= 0.0)
+ // }.status
+ return false;
+ }
+
+ @objid ("e0fbaaeb-35d5-4167-9dc8-9f54538d4baf")
+ @Override
+ public String getDescription(T elt) {
+ return "SoftRequirement : " + elt.getName() + " must specified consistantes instance.";
+ }
+
+ @objid ("8d40d118-4031-47f4-90c1-2dcebe3d1812")
+ @Override
+ public String getRuleId() {
+ return Rule0810.RULEID;
+ }
+
+ @objid ("71864286-faf1-4894-af34-b3827522f64b")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0811.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0811.java
new file mode 100644
index 00000000..a1cb8831
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0811.java
@@ -0,0 +1,38 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.SoftRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+import fr.softeam.cameldesigner.utils.StringUtils;
+
+@objid ("c57ce2ee-535d-46ce-8f4b-54e566d11d46")
+public class Rule0811 extends AbstractRule {
+ @objid ("0f8b7b51-79c9-4206-bea8-e31e16ba7526")
+ private static final String RULEID = "R0811";
+
+ @objid ("8f93b299-5b0b-43ab-a2b2-ee630bc89dc7")
+ @Override
+ public boolean isViolated(T context) {
+ return StringUtils.isNullOrEmpty(context.getPriority());
+ }
+
+ @objid ("6e5f8cce-7533-4d20-8d2a-16130d214f63")
+ @Override
+ public String getDescription(T elt) {
+ return "SoftRequirement : " + elt.getName() + " must specified one priority.";
+ }
+
+ @objid ("6392f446-6f5b-4167-a545-5d354e1c2e4a")
+ @Override
+ public String getRuleId() {
+ return Rule0811.RULEID;
+ }
+
+ @objid ("a57568c6-f78b-44d5-af53-e71e74ed4d9c")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0812.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0812.java
new file mode 100644
index 00000000..f9c01c8f
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0812.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ResourceRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("aa24d2e7-f569-496b-995e-128266c1c192")
+public class Rule0812 extends AbstractRule {
+ @objid ("259e1290-dff0-4e39-b321-662d32b9afb2")
+ private static final String RULEID = "R0812";
+
+ @objid ("1f31323d-0395-484b-a9ab-8d505dfb36b5")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'ResourceRequirement: ' + self.name + ' should have at least one feature or attribute being specified',
+ // status : Boolean =
+ // asError(self.subFeatures->size() > 0 or self.attributes->size() > 0)
+ // }.status
+ return false;
+ }
+
+ @objid ("acd8fc84-5127-4910-a921-4776786e4c05")
+ @Override
+ public String getDescription(T elt) {
+ return "ResourceRequirement : " + elt.getName() + " must specified one priority.";
+ }
+
+ @objid ("d03283cb-d6ae-4e7b-bb73-4206763962df")
+ @Override
+ public String getRuleId() {
+ return Rule0812.RULEID;
+ }
+
+ @objid ("39c576a0-2a04-4615-9571-ceb63772dd5d")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0813.java b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0813.java
new file mode 100644
index 00000000..c40c6c6f
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/audit/rule/requirement/Rule0813.java
@@ -0,0 +1,42 @@
+package fr.softeam.cameldesigner.audit.rule.requirement;
+
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import fr.softeam.cameldesigner.api.requirementmodel.standard.class_.PaaSRequirement;
+import fr.softeam.cameldesigner.audit.CheckerPlan;
+import fr.softeam.cameldesigner.audit.rule.AbstractRule;
+
+@objid ("c26ec26c-0b71-4210-a3cf-033a6fec0884")
+public class Rule0813 extends AbstractRule {
+ @objid ("0b858c1c-5b5a-469d-9796-bffae739cf3f")
+ private static final String RULEID = "R0813";
+
+ @objid ("fb15f063-2dd9-4594-9522-4f9c244c3b38")
+ @Override
+ public boolean isViolated(T context) {
+ // Tuple {
+ // message : String = 'PaaSRequirement: ' + self.name + ' should have at least one feature or attribute being specified',
+ // status : Boolean =
+ // asError(self.subFeatures->size() > 0 or self.attributes->size() > 0)
+ // }.status
+ return false;
+ }
+
+ @objid ("1037de8a-d73b-4a23-9d7d-4d499717503c")
+ @Override
+ public String getDescription(T elt) {
+ return "PaaSRequirement : " + elt.getName() + " must specified one priority.";
+ }
+
+ @objid ("c538c5a1-df1d-4136-9aaa-7ea3799767e5")
+ @Override
+ public String getRuleId() {
+ return Rule0813.RULEID;
+ }
+
+ @objid ("c57bd444-a135-4bf9-b786-45db37217bc3")
+ @Override
+ public void registerRule(CheckerPlan plan) {
+ plan.registerRule(T.STEREOTYPE_NAME, this);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/HostingPortExporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/HostingPortExporter.java
index 15a3d5b3..09656cdf 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/HostingPortExporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/HostingPortExporter.java
@@ -19,23 +19,6 @@ public HostingPortExporter(T elt) {
@objid ("5e2d5a6f-e740-4cae-928c-f02f2e3d5c1c")
@Override
public CDOObject createCamelElt(CDOObject context) {
- int orientation = this._element.getElement().getDirection().getValue();
-
- if (this._element.getElement().isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, CommunicationPort.STEREOTYPE_NAME)) {
-
- if (orientation==PortOrientation.IN_VALUE)
- return DeploymentFactory.eINSTANCE.createRequiredCommunication();
- else
- return DeploymentFactory.eINSTANCE.createProvidedCommunication();
- }
-
- else if(this._element.getElement().isStereotyped(ICamelDesignerPeerModule.MODULE_NAME, HostingPort.STEREOTYPE_NAME)) {
-
- if (orientation==PortOrientation.IN_VALUE)
- return DeploymentFactory.eINSTANCE.createRequiredHost();
- else
- return DeploymentFactory.eINSTANCE.createProvidedHost();
- }
return super.createCamelElt(context);
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/RequiredHostExporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/RequiredHostExporter.java
index 75cc1acf..90506dfa 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/RequiredHostExporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/exporter/deployment/RequiredHostExporter.java
@@ -29,7 +29,11 @@ public void setProperties(CDOObject elt) {
public void attach(CDOObject elt, CDOObject context) {
if ((context instanceof camel.deployment.SoftwareComponent) && (elt instanceof camel.deployment.RequiredHost)) {
((camel.deployment.SoftwareComponent) context).setRequiredHost((camel.deployment.RequiredHost) elt);
- }else {
+
+ }else if ((context instanceof camel.deployment.Container) && (elt instanceof camel.deployment.RequiredHost)) {
+ ((camel.deployment.Container) context).setRequiredHost((camel.deployment.RequiredHost) elt);
+
+ }else {
super.attach(elt, context);
}
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java
index 87ca12ec..468756eb 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/CamelContainment.java
@@ -3,323 +3,86 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
-import camel.constraint.AttributeConstraint;
-import camel.constraint.CompositeConstraint;
-import camel.constraint.Constraint;
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.cdo.CDOObject;
import camel.constraint.IfThenConstraint;
-import camel.constraint.LogicalConstraint;
-import camel.constraint.MetricConstraint;
-import camel.constraint.MetricVariableConstraint;
-import camel.constraint.UnaryConstraint;
-import camel.core.Action;
import camel.core.Attribute;
import camel.core.CamelModel;
import camel.core.Feature;
-import camel.core.MeasurableAttribute;
-import camel.core.QualityAttribute;
import camel.data.Data;
import camel.data.DataInstance;
import camel.data.DataInstanceModel;
-import camel.data.DataModel;
-import camel.data.DataSource;
-import camel.data.DataSourceInstance;
import camel.data.DataTypeModel;
-import camel.deployment.BuildConfiguration;
import camel.deployment.ClusterConfiguration;
import camel.deployment.Communication;
-import camel.deployment.CommunicationPort;
import camel.deployment.Component;
-import camel.deployment.ComponentRelation;
-import camel.deployment.Configuration;
import camel.deployment.Container;
-import camel.deployment.DeploymentModel;
import camel.deployment.DeploymentTypeModel;
import camel.deployment.EventConfiguration;
import camel.deployment.Hosting;
-import camel.deployment.HostingPort;
-import camel.deployment.LocationCoupling;
-import camel.deployment.PaaS;
-import camel.deployment.PaaSConfiguration;
-import camel.deployment.ProvidedCommunication;
-import camel.deployment.ProvidedHost;
-import camel.deployment.RequiredCommunication;
-import camel.deployment.RequiredHost;
-import camel.deployment.RequirementSet;
-import camel.deployment.ScriptConfiguration;
import camel.deployment.ServerlessConfiguration;
import camel.deployment.SoftwareComponent;
import camel.deployment.VM;
-import camel.execution.ActionInstance;
-import camel.execution.ApplicationMeasurement;
import camel.execution.Cause;
-import camel.execution.CommunicationMeasurement;
-import camel.execution.ContainerMeasurement;
-import camel.execution.DataMeasurement;
import camel.execution.ExecutionModel;
-import camel.execution.HistoryInfo;
import camel.execution.HistoryRecord;
-import camel.execution.Measurement;
-import camel.execution.PaaSMeasurement;
-import camel.execution.RuleTrigger;
-import camel.execution.SLOViolation;
-import camel.execution.SoftwareComponentMeasurement;
-import camel.execution.VMMeasurement;
import camel.location.CloudLocation;
-import camel.location.GeographicalRegion;
-import camel.location.Location;
import camel.location.LocationModel;
-import camel.metric.AttributeContext;
-import camel.metric.CompositeMetric;
-import camel.metric.CompositeMetricContext;
-import camel.metric.Function;
-import camel.metric.Metric;
-import camel.metric.MetricContext;
-import camel.metric.MetricInstance;
import camel.metric.MetricInstanceModel;
-import camel.metric.MetricModel;
-import camel.metric.MetricObjectBinding;
-import camel.metric.MetricTemplate;
import camel.metric.MetricTypeModel;
-import camel.metric.MetricVariable;
-import camel.metric.ObjectContext;
-import camel.metric.RawMetric;
-import camel.metric.RawMetricContext;
-import camel.metric.Schedule;
-import camel.metric.Sensor;
-import camel.metric.Window;
import camel.mms.MetaDataModel;
import camel.mms.MmsConcept;
import camel.mms.MmsConceptInstance;
-import camel.mms.MmsProperty;
-import camel.mms.MmsPropertyInstance;
-import camel.organisation.CloudCredentials;
-import camel.organisation.CloudProvider;
-import camel.organisation.Credentials;
import camel.organisation.DataResourceFilter;
-import camel.organisation.Entity;
-import camel.organisation.ExternalIdentifier;
-import camel.organisation.ModelResourceFilter;
import camel.organisation.Organisation;
import camel.organisation.OrganisationModel;
-import camel.organisation.Permission;
-import camel.organisation.PlatformCredentials;
-import camel.organisation.ResourceFilter;
-import camel.organisation.Role;
-import camel.organisation.RoleAssignment;
-import camel.organisation.ServiceResourceFilter;
-import camel.organisation.SoftwareComponentResourceFilter;
import camel.organisation.User;
-import camel.organisation.UserGroup;
-import camel.requirement.HardRequirement;
-import camel.requirement.HorizontalScaleRequirement;
-import camel.requirement.ImageRequirement;
-import camel.requirement.LocationRequirement;
-import camel.requirement.OSRequirement;
-import camel.requirement.OptimisationRequirement;
-import camel.requirement.PaaSRequirement;
-import camel.requirement.ProviderRequirement;
-import camel.requirement.Requirement;
import camel.requirement.RequirementModel;
import camel.requirement.ResourceRequirement;
-import camel.requirement.ScaleRequirement;
-import camel.requirement.SecurityRequirement;
-import camel.requirement.ServiceLevelObjective;
-import camel.requirement.SoftRequirement;
-import camel.requirement.VerticalScaleRequirement;
-import camel.scalability.BinaryEventPattern;
-import camel.scalability.Event;
-import camel.scalability.EventInstance;
-import camel.scalability.EventPattern;
-import camel.scalability.FunctionalEvent;
-import camel.scalability.FunctionalEventInstance;
-import camel.scalability.HorizontalScalingAction;
-import camel.scalability.NonFunctionalEvent;
-import camel.scalability.NonFunctionalEventInstance;
import camel.scalability.ScalabilityModel;
-import camel.scalability.ScalabilityRule;
-import camel.scalability.ScalingAction;
-import camel.scalability.SingleEvent;
-import camel.scalability.Timer;
-import camel.scalability.UnaryEventPattern;
-import camel.scalability.VerticalScalingAction;
-import camel.security.Certifiable;
-import camel.security.CompositeSecurityMetric;
-import camel.security.RawSecurityMetric;
-import camel.security.SecurityAttribute;
-import camel.security.SecurityControl;
-import camel.security.SecurityDomain;
-import camel.security.SecurityMetricInstance;
import camel.security.SecurityModel;
-import camel.security.SecuritySLO;
-import camel.unit.CompositeUnit;
-import camel.unit.DimensionedUnit;
-import camel.unit.Dimensionless;
-import camel.unit.SingleUnit;
-import camel.unit.Unit;
-import camel.unit.UnitDimension;
import camel.unit.UnitModel;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelAttribute;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.api.camelcore.standard.package_.SubModel;
-import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint;
-import fr.softeam.cameldesigner.exchange.importer.constraint.AttributeConstraintImporter;
-import fr.softeam.cameldesigner.exchange.importer.constraint.CamelConstraintImporter;
-import fr.softeam.cameldesigner.exchange.importer.constraint.CompositeConstraintImporter;
import fr.softeam.cameldesigner.exchange.importer.constraint.IfThenConstraintImporter;
-import fr.softeam.cameldesigner.exchange.importer.constraint.LogicalConstraintImporter;
-import fr.softeam.cameldesigner.exchange.importer.constraint.MetricConstraintImporter;
-import fr.softeam.cameldesigner.exchange.importer.constraint.MetricVariableConstraintImporter;
-import fr.softeam.cameldesigner.exchange.importer.constraint.UnaryConstraintImporter;
-import fr.softeam.cameldesigner.exchange.importer.core.ActionImporter;
import fr.softeam.cameldesigner.exchange.importer.core.AttributeImporter;
import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter;
import fr.softeam.cameldesigner.exchange.importer.core.CamelModelImporter;
import fr.softeam.cameldesigner.exchange.importer.core.FeatureImporter;
-import fr.softeam.cameldesigner.exchange.importer.core.MeasurableAttributeImporter;
-import fr.softeam.cameldesigner.exchange.importer.core.QualityAttributeImporter;
import fr.softeam.cameldesigner.exchange.importer.data.DataImporter;
import fr.softeam.cameldesigner.exchange.importer.data.DataInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.data.DataInstanceModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.data.DataModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.data.DataSourceImporter;
-import fr.softeam.cameldesigner.exchange.importer.data.DataSourceInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.data.DataTypeModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.BuildConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.CamelComponentImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ClusterConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationPortImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ComponentRelationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ConfigurationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ComponentImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ContainerImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.DeploymentModelImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.DeploymentTypeModelImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.EventConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.HostingImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.HostingPortImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.LocationCouplingImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.PaaSConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.PaaSImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ProvidedCommunicationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ProvidedHostImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredCommunicationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredHostImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredSetImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ScriptConfiguationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ServerlessConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.SoftwareComponentImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.VMImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.ActionInstanceImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.ApplicationMeasurementImporter;
import fr.softeam.cameldesigner.exchange.importer.execution.CauseImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.CommunicationMeasurementImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.ContainerMeasurementImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.DataMeasurementImporter;
import fr.softeam.cameldesigner.exchange.importer.execution.ExecutionModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.HistoryInfoImporter;
import fr.softeam.cameldesigner.exchange.importer.execution.HistoryRecordImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.MeasurementImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.PaaSMeasurementImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.RuleTriggerImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.SLOViolationImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.SoftwareComponentMeasurementImporter;
-import fr.softeam.cameldesigner.exchange.importer.execution.VMMeasurementImporter;
import fr.softeam.cameldesigner.exchange.importer.location.CloudLocationImporter;
-import fr.softeam.cameldesigner.exchange.importer.location.GeographicalRegionImporter;
-import fr.softeam.cameldesigner.exchange.importer.location.LocationImporter;
import fr.softeam.cameldesigner.exchange.importer.location.LocationModelImporter;
import fr.softeam.cameldesigner.exchange.importer.metadata.MetaDataModelImporter;
import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptImporter;
import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptInstanceImporter;
-import fr.softeam.cameldesigner.exchange.importer.metadata.MmsPropertyImporter;
-import fr.softeam.cameldesigner.exchange.importer.metadata.MmsPropertyInstanceImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.AttributeContextImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.CompositeMetricContextImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.CompositeMetricImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.FunctionImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.MetricContextImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.MetricImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.MetricInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.metric.MetricInstanceModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.MetricModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.MetricObjectBindingImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.MetricTemplateImporter;
import fr.softeam.cameldesigner.exchange.importer.metric.MetricTypeModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.MetricVariableImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.ObjectContextImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.RawMetricContextImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.RawMetricImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.ScheduleImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.SensorImporter;
-import fr.softeam.cameldesigner.exchange.importer.metric.WindowImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.CloudCredentialsImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.CloudProviderImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.CredentialsImporter;
import fr.softeam.cameldesigner.exchange.importer.organisation.DataResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.EntityImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ExternalIdentifierImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ModelResourceFilterImporter;
import fr.softeam.cameldesigner.exchange.importer.organisation.OrganisationImporter;
import fr.softeam.cameldesigner.exchange.importer.organisation.OrganisationModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.PermissionImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.PlatformCredentialsImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.RoleAssignmentImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.RoleImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ServiceResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.SoftwareComponentResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.UserGroupImporter;
import fr.softeam.cameldesigner.exchange.importer.organisation.UserImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.HardRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.HorizontalScaleRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.ImageRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.LocationRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.OSRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.OptimisationRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.PaaSRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.ProviderRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.RequirementImporter;
import fr.softeam.cameldesigner.exchange.importer.requirement.RequirementModelImporter;
import fr.softeam.cameldesigner.exchange.importer.requirement.ResourceRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.ScaleRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.SecurityRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.ServiceLevelObjectiveImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.SoftRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.requirement.VerticalScaleRequirementImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.BinaryEventPatternImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.EventImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.EventInstanceImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.EventPatternImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.FunctionalEventImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.FunctionalEventInstanceImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.HorizontalScalingActionImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.NonFunctionalEventImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.NonFunctionalEventInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.scalability.ScalabilityModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.ScalabilityRuleImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.ScalingActionImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.SingleEventImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.TimerImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.UnaryEventPatternImporter;
-import fr.softeam.cameldesigner.exchange.importer.scalability.VerticalScalingActionImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.CertifiableImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.CompositeSecurityMetricImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.RawSecurityMetricImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.SecurityAttributeImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.SecurityControlImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.SecurityDomainImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.SecurityMetricInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.security.SecurityModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.security.SecuritySLOImporter;
-import fr.softeam.cameldesigner.exchange.importer.unit.CompositeUnitImporter;
-import fr.softeam.cameldesigner.exchange.importer.unit.DimensionedUnitImporter;
-import fr.softeam.cameldesigner.exchange.importer.unit.DimensionlessImporter;
-import fr.softeam.cameldesigner.exchange.importer.unit.SingleUnitImporter;
-import fr.softeam.cameldesigner.exchange.importer.unit.UnitDimensionImporter;
-import fr.softeam.cameldesigner.exchange.importer.unit.UnitImporter;
import fr.softeam.cameldesigner.exchange.importer.unit.UnitModelImporter;
-import org.eclipse.emf.cdo.CDOObject;
@objid ("63498b40-f2f0-4924-a856-cf2209bafd01")
public class CamelContainment {
@@ -332,7 +95,7 @@ public static final Object getChilds(final CamelElementImporter extends CDOObj
}
@objid ("da0bb1cb-1d34-4092-9915-c67b99b5656c")
- private static class CamelContainerVisitor implements IDefaultCamelVisitor {
+ private static class CamelContainerVisitor extends DefaultCamelVisitor {
@objid ("ad92355c-1062-4a06-8a79-46b067534fa2")
@Override
public Object visitCamelElement(CamelElementImporter extends CDOObject,? extends CamelElement> camelModel) {
@@ -342,8 +105,10 @@ public Object visitCamelElement(CamelElementImporter extends CDOObject,? exten
@objid ("76f04c91-fb4a-489f-89bb-3c14511d5695")
@Override
public Object visitCamelModel(CamelModelImporter extends CamelModel,? extends SubModel> camelModel) {
+
List childs = new ArrayList<>();
- childs.addAll((Collection extends CDOObject>) this.visitModel(camelModel));
+ childs.addAll((Collection extends CDOObject>) super.visitCamelModel(camelModel));
+
CamelModel cdoElt = camelModel.getElement();
childs.addAll(cdoElt.getActions());
childs.addAll(cdoElt.getConstraintModels());
@@ -359,119 +124,86 @@ public Object visitCamelModel(CamelModelImporter extends CamelModel,? extends
childs.addAll(cdoElt.getSecurityModels());
childs.addAll(cdoElt.getTypeModels());
childs.addAll(cdoElt.getUnitModels());
+
return childs;
}
@objid ("b861a675-2625-4530-a7b4-81604c36284c")
@Override
- public Object visitFeature(FeatureImporter extends Feature,? extends fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature> feature) {
+ public Object visitFeature(FeatureImporter extends Feature, ? extends fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature> feature) {
+
List childs = new ArrayList<>();
- childs.addAll((Collection extends CDOObject>) this.visitNamedElement(feature));
+ childs.addAll((Collection extends CDOObject>) super.visitFeature(feature));
+
Feature cdoElt = feature.getElement();
childs.addAll(cdoElt.getAttributes());
childs.addAll(cdoElt.getSubFeatures());
+
return childs;
}
+ @SuppressWarnings ("unchecked")
@objid ("d1cc11ff-9655-4589-9bca-619af86a2eb2")
@Override
- public Object visitMmsConcept(MmsConceptImporter extends MmsConcept,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept> mmsConcept) {
+ public Object visitMmsConcept(MmsConceptImporter extends MmsConcept, ? extends fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept> mmsConcept) {
+
List childs = new ArrayList<>();
+ childs.addAll((List extends CDOObject>) super.visitMmsConcept(mmsConcept));
+
MmsConcept cdoElt = mmsConcept.getElement();
childs.addAll(cdoElt.getConcept());
childs.addAll(cdoElt.getInstance());
childs.addAll(cdoElt.getProperty());
+
return childs;
}
+ @SuppressWarnings ("unchecked")
@objid ("f80d57ab-c9df-4d60-b588-80029b05f48c")
@Override
public Object visitMetaDataModel(MetaDataModelImporter extends MetaDataModel,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel> metaDataModel) {
+
List childs = new ArrayList<>();
- childs.addAll((Collection extends CDOObject>) this.visitModel(metaDataModel));
+ childs.addAll((List extends CDOObject>) super.visitMetaDataModel(metaDataModel));
+
MetaDataModel cdoElt = metaDataModel.getElement();
childs.addAll(cdoElt.getMetadataElements());
+
return childs;
}
+ @SuppressWarnings ("unchecked")
@objid ("086aaca3-634e-446d-aa8f-b4487708c18e")
@Override
public Object visitMmsConceptInstance(MmsConceptInstanceImporter extends MmsConceptInstance,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.instance.MmsConceptInstance> mmsConceptInstanceImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((List extends CDOObject>) super.visitMmsConceptInstance(mmsConceptInstanceImporter));
+
MmsConceptInstance cdoElt = mmsConceptInstanceImporter.getElement();
childs.addAll(cdoElt.getPropertyInstance());
- return childs;
- }
- @objid ("45c686c6-c9e2-4b0f-b760-0ed1c42185d5")
- @Override
- public Object visitMmsProperty(MmsPropertyImporter extends MmsProperty,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.attribute.MmsProperty> mmsPropertyImporter) {
- return new ArrayList<>();
+ return childs;
}
- @objid ("5e6250a1-784a-4133-8a20-d5a0b73eba33")
- @Override
- public Object visitMmsPropertyInstance(MmsPropertyInstanceImporter extends MmsPropertyInstance,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink.MmsPropertyInstance> mmsPropertyInstanceImporter) {
- return new ArrayList<>();
- }
@objid ("7f8027c5-6acb-4903-aa0a-c5a45d2c97b4")
@Override
public Object visitSoftwareComponent(SoftwareComponentImporter extends SoftwareComponent,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent> softwareComponentImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((List extends CDOObject>) super.visitSoftwareComponent(softwareComponentImporter));
+
SoftwareComponent cdoElt = softwareComponentImporter.getElement();
childs.addAll(cdoElt.getRequiredCommunications());
childs.add(cdoElt.getRequiredHost());
- return childs;
- }
-
- @objid ("4dcf8c86-505c-4b12-896e-188f65217b58")
- @Override
- public Object visitAttributeContext(AttributeContextImporter extends AttributeContext,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext> attributeContextImporter) {
- return new ArrayList<>();
- }
-
- @objid ("5f623cd3-678b-4b24-af76-b4f12cdab734")
- @Override
- public Object visitCompositeMetric(CompositeMetricImporter extends CompositeMetric,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric> compositeMetricImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("632f3097-5174-4087-8d9a-a1ffb9e8282e")
- @Override
- public Object visitMetric(MetricImporter extends Metric,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric> metricImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("472328b4-8f2e-49fb-b0c4-e3135b53e8b5")
- @Override
- public Object visitCompositeMetricContext(CompositeMetricContextImporter extends CompositeMetricContext,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetricContext> compositeMetricContextImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("e2d2cddc-bef5-4ce0-8b31-f52a3ea2bb0f")
- @Override
- public Object visitMetricContext(MetricContextImporter extends MetricContext,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricContext> metricContextImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ childs.addAll(cdoElt.getProvidedCommunications());
+ childs.addAll(cdoElt.getProvidedHosts());
+ childs.addAll(cdoElt.getConfigurations());
- @objid ("120f48dd-9624-4d4e-92a2-d9fe012483f0")
- @Override
- public Object visitFunction(FunctionImporter extends Function,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function> functionImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("a48a8387-5c81-4732-8173-4290dd49680c")
- @Override
- public Object visitMetricInstance(MetricInstanceImporter extends MetricInstance,? extends fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance> metricInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("ad44e588-63c9-43e4-9e0e-c698013dc33b")
@Override
@@ -483,17 +215,16 @@ public Object visitMetricInstanceModell(MetricInstanceModelImporter extends Me
return childs;
}
- @objid ("79e19726-b8d9-4396-8c34-1b6a86efd406")
- @Override
- public Object visitMetricModel(MetricModelImporter extends MetricModel,? extends fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricModel> metricModelImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("8677607a-0e79-44e8-aa3e-93d87e1393c5")
@Override
- public Object visitMetricTypeModel(MetricTypeModelImporter extends MetricTypeModel,? extends fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel> metricTypeModelImporter) {
+ public Object visitMetricTypeModel(MetricTypeModelImporter extends MetricTypeModel, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel> metricTypeModelImporter) {
+
+ //Initialise and call super
List childs = new ArrayList<>();
+ childs.addAll((List) super.visitMetricTypeModel(metricTypeModelImporter));
+
+ //Adds MetricTypeModel childs
MetricTypeModel cdoElt = metricTypeModelImporter.getElement();
childs.addAll(cdoElt.getMetricContexts());
childs.addAll(cdoElt.getAttributeContexts());
@@ -504,202 +235,76 @@ public Object visitMetricTypeModel(MetricTypeModelImporter extends MetricTypeM
childs.addAll(cdoElt.getSensors());
childs.addAll(cdoElt.getFunctions());
childs.addAll(cdoElt.getTemplates());
- return childs;
- }
- @objid ("bff4ff29-17f3-43e3-ac80-26876996ddbd")
- @Override
- public Object visitMetricObjectBinding(MetricObjectBindingImporter extends MetricObjectBinding,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding> metricObjectBindingImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("b08b268e-4854-4c7f-a80e-d05593f16775")
- @Override
- public Object visitMetricTemplate(MetricTemplateImporter extends MetricTemplate,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate> metricTemplateImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("5ab209a9-7cf2-43ef-a4d0-ce8c47b3c287")
- @Override
- public Object visitMetricVariable(MetricVariableImporter extends MetricVariable,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable> metricVariableImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("96529427-51d1-43c4-8645-7f1592b18f1c")
- @Override
- public Object visitObjectContext(ObjectContextImporter extends ObjectContext,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext> objectContextImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("ef8cb092-e365-4992-ab4b-7228244547e9")
- @Override
- public Object visitRawMetricContext(RawMetricContextImporter extends RawMetricContext,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext> rawMetricContextImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("d1f3e0d1-96fe-41fe-ae9d-8c369bc84810")
- @Override
- public Object visitRawMetric(RawMetricImporter extends RawMetric,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric> rawMetricImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("b70a8995-72e2-41e9-a0d7-89ff5bb1243c")
- @Override
- public Object visitSchedule(ScheduleImporter extends Schedule,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule> scheduleImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("5178c80a-d3dc-47e3-af8a-b2a34c6aa83f")
- @Override
- public Object visitSensor(SensorImporter extends Sensor,? extends fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor> sensorImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("3c397e17-a2b4-4b39-80ac-42df4a730db9")
- @Override
- public Object visitWindow(WindowImporter extends Window,? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window> windowImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("45ec9794-641b-4c2c-a79e-4ef780be627e")
- @Override
- public Object visitConstraint(CamelConstraintImporter extends Constraint,? extends CamelConstraint> camelConstraintImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("e247965a-3a8a-42e3-87d0-d2bdb5bdccbf")
- @Override
- public Object visitAttributeConstraint(AttributeConstraintImporter extends AttributeConstraint,? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint> attributeConstraintImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("5066ffcb-20d5-437e-8e13-9a71a98deb6b")
- @Override
- public Object visitUnaryConstraint(UnaryConstraintImporter extends UnaryConstraint,? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.UnaryConstraint> unaryConstraintImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("14e7c89b-a0d6-4b1f-b3dd-06715356cdb7")
- @Override
- public Object visitCompositeConstraint(CompositeConstraintImporter extends CompositeConstraint,? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CompositeConstraint> compositeConstraintImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("74c36b53-f93c-4416-9ce9-a2d2b8125f42")
@Override
public Object visitIfThenConstraint(IfThenConstraintImporter extends IfThenConstraint,? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint> ifThenConstraintImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((List) super.visitIfThenConstraint(ifThenConstraintImporter));
+
IfThenConstraint cdoElt = ifThenConstraintImporter.getElement();
childs.add(cdoElt.getIf());
childs.add(cdoElt.getThen());
childs.add(cdoElt.getElse());
- return childs;
- }
-
- @objid ("28ff9e08-6e47-4a65-be60-7afcde69eee2")
- @Override
- public Object visitLogicalConstraint(LogicalConstraintImporter extends LogicalConstraint,? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint> logicalConstraintImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("05664f0f-790c-40f3-a8b6-794dadc4936b")
- @Override
- public Object visitMetricConstraint(MetricConstraintImporter extends MetricConstraint,? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint> metricConstraintImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("43714d9f-a72c-4239-89de-eb276a3c4419")
- @Override
- public Object visitMetricVariableConstraint(MetricVariableConstraintImporter extends MetricVariableConstraint,? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint> metricVariableConstraintImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("58981946-7bf3-4dae-9b57-67c3a2fcd4c9")
- @Override
- public Object visitBuildConfiguration(BuildConfigurationImporter extends BuildConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration> buildConfigurationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("dd37ba10-bf5c-43de-8910-74bfbbeebf23")
@Override
public Object visitClusterConfiguration(ClusterConfigurationImporter extends ClusterConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ClusterConfiguration> clusterConfigurationImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((List) super.visitClusterConfiguration(clusterConfigurationImporter));
+
ClusterConfiguration cdoElt = clusterConfigurationImporter.getElement();
childs.addAll(cdoElt.getConfigParameters());
+
return childs;
}
@objid ("1f5d48e2-8b60-436d-bfed-3340268ee935")
@Override
public Object visitCommunication(CommunicationImporter extends Communication,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication> communicationImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((List) super.visitCommunication(communicationImporter));
+
Communication cdoElt = communicationImporter.getElement();
childs.add(cdoElt.getProvidedPortConfiguration());
childs.add(cdoElt.getRequiredPortConfiguration());
- return childs;
- }
-
- @objid ("91200e95-9d20-48c7-8dd0-5670bb16dc1b")
- @Override
- public Object visitCommunicationPort(CommunicationPortImporter extends CommunicationPort,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort> communicationPortImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("0f2fd748-7b90-4324-a314-559ae826bcd1")
- @Override
- public Object visitComponentRelation(ComponentRelationImporter extends ComponentRelation,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.ComponentRelation> componentRelationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("2666b55b-e15f-4bec-b2af-52c6567ace5f")
- @Override
- public Object visitConfiguration(ConfigurationImporter extends Configuration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.Configuration> configurationImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
@objid ("45276b2d-d379-48a5-9604-e5ddf5f3f404")
@Override
public Object visitContainer(ContainerImporter extends Container,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.Container> containerImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((List) super.visitContainer(containerImporter));
+
Container cdoElt = containerImporter.getElement();
childs.addAll(cdoElt.getRequiredCommunications());
childs.add(cdoElt.getRequiredHost());
- return childs;
- }
- @objid ("54bb95ef-3a78-4a9e-830c-58a33f57f965")
- @Override
- public Object visitDeploymentModel(DeploymentModelImporter extends DeploymentModel,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentModel> deploymentModelImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
@objid ("155a41e9-0b7c-4482-aee0-883101eb47df")
@Override
public Object visitDeploymentTypeModel(DeploymentTypeModelImporter extends DeploymentTypeModel,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel> deploymentTypeModelImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitDeploymentTypeModel(deploymentTypeModelImporter));
+
DeploymentTypeModel cdoElt = deploymentTypeModelImporter.getElement();
- childs.addAll((Collection extends CDOObject>) this.visitModel(deploymentTypeModelImporter));
childs.addAll(cdoElt.getSoftwareComponents());
childs.addAll(cdoElt.getVms());
childs.addAll(cdoElt.getPaases());
@@ -708,416 +313,230 @@ public Object visitDeploymentTypeModel(DeploymentTypeModelImporter extends Dep
childs.addAll(cdoElt.getRequirementSets());
childs.addAll(cdoElt.getLocationCouplings());
childs.addAll(cdoElt.getContainers());
+
return childs;
}
@objid ("c0ab5372-925b-4463-b083-af7e60d55e86")
@Override
public Object visitEventConfiguration(EventConfigurationImporter extends EventConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration> eventConfigurationImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitEventConfiguration(eventConfigurationImporter));
+
EventConfiguration cdoElt = eventConfigurationImporter.getElement();
childs.add(cdoElt.getScheduledExecutionConfig());
+
return childs;
}
@objid ("1c4bcb3f-2884-4ddd-9c64-a24078d192d9")
@Override
public Object visitHosting(HostingImporter extends Hosting,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting> hostingImporter) {
- List childs = new ArrayList<>();
- Hosting cdoElt = hostingImporter.getElement();
- childs.add(cdoElt.getProvidedHostConfiguration());
- childs.addAll(cdoElt.getRequiredHostsConfiguration());
- return childs;
- }
- @objid ("826e971a-0d2b-49e7-befc-14e8b12aea09")
- @Override
- public Object visitHostingPort(HostingPortImporter extends HostingPort,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort> hostingPortImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("dfe92829-8d67-42a9-bbe9-53002739267c")
- @Override
- public Object visitLocationCoupling(LocationCouplingImporter extends LocationCoupling,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling> locationCouplingImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitHosting(hostingImporter));
- @objid ("fb770bbe-8358-4868-8e2a-bae31e6a6920")
- @Override
- public Object visitPaaSConfiguration(PaaSConfigurationImporter extends PaaSConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.PaaSConfiguration> paaSConfigurationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ Hosting cdoElt = hostingImporter.getElement();
+ childs.add(cdoElt.getProvidedHostConfiguration());
+ childs.addAll(cdoElt.getRequiredHostsConfiguration());
- @objid ("41d96c36-9e9a-4e61-9bee-797055e4ad2b")
- @Override
- public Object visitPaaS(PaaSImporter extends PaaS,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS> paaSImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("16f3633c-f667-48d0-9a78-f65e277f9453")
- @Override
- public Object visitRequiredSet(RequiredSetImporter extends RequirementSet,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet> requiredSetImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("4d3756c9-256b-4341-b9af-5ede4715abda")
- @Override
- public Object visitScriptConfiguration(ScriptConfiguationImporter extends ScriptConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration> scriptConfiguationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("24682eff-dc92-456e-990e-50019845bbc2")
@Override
public Object visitServelessConfiguration(ServerlessConfigurationImporter extends ServerlessConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ServerlessConfiguration> serverlessConfigurationImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitServelessConfiguration(serverlessConfigurationImporter));
+
ServerlessConfiguration cdoElt = serverlessConfigurationImporter.getElement();
childs.addAll(cdoElt.getEnvironmentConfigParams());
childs.add(cdoElt.getBuildConfiguration());
childs.add(cdoElt.getEventConfiguration());
+
return childs;
}
@objid ("51e3b824-0b33-431b-b152-edbbb998e4b5")
@Override
public Object visitVM(VMImporter extends VM,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM> vmImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("e807c7da-6fd6-4248-ba33-cffe1c1b5b61")
- @Override
- public Object visitHardRequirement(HardRequirementImporter extends HardRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.HardRequirement> hardRequirementImporter) {
- return null;
- }
-
- @objid ("235fa67f-6aed-425a-8442-509f939b44d7")
- @Override
- public Object visitHorizontalScaleRequirement(HorizontalScaleRequirementImporter extends HorizontalScaleRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement> horizontalScaleRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("61c0fa97-6cfc-4774-ab0e-f5b58087222c")
- @Override
- public Object visitImageRequirement(ImageRequirementImporter extends ImageRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement> imageRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("cd2095c2-3e4d-4703-b9e6-b02be44ed71b")
- @Override
- public Object visitLocationRequirement(LocationRequirementImporter extends LocationRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement> locationRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("d8e6cd17-0fb9-485c-93b9-62ec28f75f4e")
- @Override
- public Object visitOptimisationRequirement(OptimisationRequirementImporter extends OptimisationRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OptimisationRequirement> optimisationRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("95fc504a-9512-46c0-bd1e-b364f6da6d4a")
- @Override
- public Object visitOSRequirement(OSRequirementImporter extends OSRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OSRequirement> osRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("769280e2-c825-40f9-ac9b-3bcb23f7f02c")
- @Override
- public Object visitPaaSRequirement(PaaSRequirementImporter extends PaaSRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.PaaSRequirement> paaSRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitVM(vmImporter));
- @objid ("778c5b95-1da6-4a40-8cd8-92b0af6db417")
- @Override
- public Object visitProviderRequirement(ProviderRequirementImporter extends ProviderRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ProviderRequirement> providerRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ VM cdoElt = vmImporter.getElement();
+ childs.addAll(cdoElt.getProvidedCommunications());
+ childs.addAll(cdoElt.getProvidedHosts());
+ childs.addAll(cdoElt.getConfigurations());
- @objid ("b71fef49-307e-4aaf-a06d-52ea57c9cee5")
- @Override
- public Object visitRequirement(RequirementImporter extends Requirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.Requirement> requirementImporter) {
- return null;
+ return childs;
}
@objid ("33b18893-7426-460e-9080-cfd42ac4b3a8")
@Override
public Object visitRequirementModel(RequirementModelImporter extends RequirementModel,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.package_.RequirementModel> requirementModelImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitRequirementModel(requirementModelImporter));
+
RequirementModel cdoElt = requirementModelImporter.getElement();
childs.addAll(cdoElt.getRequirements());
+
return childs;
}
@objid ("0bc47d1c-ee02-4b85-a0bb-a4877d0ec82d")
@Override
public Object visitResourceRequirement(ResourceRequirementImporter extends ResourceRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ResourceRequirement> resourceRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("8f502ddb-cb82-441c-84e4-50f0bef8adf2")
- @Override
- public Object visitScaleRequirement(ScaleRequirementImporter extends ScaleRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.ScaleRequirement> scaleRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("a859b9bf-e3c6-4d58-b0aa-5180bb08255d")
- @Override
- public Object visitSecurityRequirement(SecurityRequirementImporter extends SecurityRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.SecurityRequirement> securityRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("d475943c-3ba8-411b-8f6d-0e8434e46d00")
- @Override
- public Object visitServiceLevelObjective(ServiceLevelObjectiveImporter extends ServiceLevelObjective,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ServiceLevelObjective> serviceLevelObjectiveImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("c3c9fac2-eeae-455e-bb46-c311e1808d52")
- @Override
- public Object visitSoftRequirement(SoftRequirementImporter extends SoftRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.SoftRequirement> softRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("6fcb9af6-0feb-4dc6-bc2b-69484f5b8024")
- @Override
- public Object visitVerticalScaleRequirement(VerticalScaleRequirementImporter extends VerticalScaleRequirement,? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement> verticalScaleRequirementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("0ae0cebe-5556-422d-8e0c-5ff36d26c39b")
- @Override
- public Object visitActionInstance(ActionInstanceImporter extends ActionInstance,? extends fr.softeam.cameldesigner.api.executionmodel.standard.instance.ActionInstance> actionInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitResourceRequirement(resourceRequirementImporter));
- @objid ("ad1a0e69-b9ab-481b-bd73-0d6a8a300124")
- @Override
- public Object visitMeasurement(MeasurementImporter extends Measurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.Measurement> measurementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ ResourceRequirement cdoElt = resourceRequirementImporter.getElement();
+ childs.addAll(cdoElt.getSubFeatures());
+ childs.addAll(cdoElt.getAttributes());
- @objid ("5f2e40ea-8903-4435-9f24-bfdffe3c518b")
- @Override
- public Object visitApplicationMeasurement(ApplicationMeasurementImporter extends ApplicationMeasurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.ApplicationMeasurement> applicationMeasurementImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
@objid ("b3f83a7f-d623-4054-bf5c-033488ef3f55")
@Override
public Object visitCause(CauseImporter extends Cause,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.Cause> causeImporter) {
+
List childs = new ArrayList<>();
- Cause cdoElt = causeImporter.getElement();
- childs.addAll(cdoElt.getEventInstances());
- return childs;
- }
+ childs.addAll((Collection extends CDOObject>) super.visitCause(causeImporter));
- @objid ("532caf5e-ebab-4b2f-b39c-28c6bdf4eee1")
- @Override
- public Object visitCommunicationMeasurement(CommunicationMeasurementImporter extends CommunicationMeasurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.CommunicationMeasurement> communicationMeasurementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ Cause cdoElt = causeImporter.getElement();
+ childs.addAll(cdoElt.getEventInstances());
- @objid ("8626bff1-c881-4fa6-a9e3-6048d9ebd81b")
- @Override
- public Object visitContainerMeasurement(ContainerMeasurementImporter extends ContainerMeasurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.ContainerMeasurement> containerMeasurementImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("0e2f6935-4066-4ebb-85cc-f9276e41c967")
- @Override
- public Object visitDataMeasurement(DataMeasurementImporter extends DataMeasurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.DataMeasurement> dataMeasurementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("1d7516a5-4d1f-41ca-a464-683514475939")
@Override
public Object visitExecutionModel(ExecutionModelImporter extends ExecutionModel,? extends fr.softeam.cameldesigner.api.executionmodel.standard.package_.ExecutionModel> executionModelImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitExecutionModel(executionModelImporter));
+
ExecutionModel cdoElt = executionModelImporter.getElement();
childs.addAll(cdoElt.getMeasurements());
childs.addAll(cdoElt.getSloViolations());
childs.addAll(cdoElt.getHistoryRecords());
- return childs;
- }
- @objid ("2ed5d25b-73ed-481c-9824-ae1a59998790")
- @Override
- public Object visitHistoryInfo(HistoryInfoImporter extends HistoryInfo,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryInfo> historyInfoImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
@objid ("bd88c197-87c2-4543-bd09-4bb1a00444fa")
@Override
public Object visitHistoryRecord(HistoryRecordImporter extends HistoryRecord,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryRecord> historyRecordImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitHistoryRecord(historyRecordImporter));
+
HistoryRecord cdoElt = historyRecordImporter.getElement();
childs.add(cdoElt.getCause());
childs.addAll(cdoElt.getInfos());
- return childs;
- }
-
- @objid ("7f0b97a9-06cf-4a4d-a3be-3dd7917772a4")
- @Override
- public Object visitPaaSMeasurement(PaaSMeasurementImporter extends PaaSMeasurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.PaaSMeasurement> paaSMeasurementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("9e1cea00-20f8-4575-ab9f-5b930b8816d9")
- @Override
- public Object visitRuleTrigger(RuleTriggerImporter extends RuleTrigger,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.RuleTrigger> ruleTriggerImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("e48c131a-b06d-4ae0-b334-d7e26856631c")
- @Override
- public Object visitSLOViolation(SLOViolationImporter extends SLOViolation,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.SLOViolation> sloViolationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("97cd7961-cfc9-4eb0-ac53-ea7a37e0a97d")
- @Override
- public Object visitSoftwareComponentMeasurement(SoftwareComponentMeasurementImporter extends SoftwareComponentMeasurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.SoftwareComponentMeasurement> softwareComponentMeasurementImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("8c1f3f49-3ba0-48b4-bd79-5bae2eeafdf1")
- @Override
- public Object visitVMMeasurement(VMMeasurementImporter extends VMMeasurement,? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.VMMeasurement> vmMeasurementImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
@objid ("fb2562e3-76ac-4630-98a0-d72f776dd0e4")
@Override
public Object visitCloudLocation(CloudLocationImporter extends CloudLocation,? extends fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.CloudLocation> cloudLocationImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitCloudLocation(cloudLocationImporter));
+
CloudLocation cdoElt = cloudLocationImporter.getElement();
childs.addAll(cdoElt.getSubLocations());
+
return childs;
}
- @objid ("029b7f32-3c91-4c8d-9824-9c33b685f637")
- @Override
- public Object visitLocation(LocationImporter extends Location,? extends fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.Location> locationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("118067e5-b6d8-4140-a9ba-5eaebf9ac9c5")
@Override
public Object visitLocationModel(LocationModelImporter extends LocationModel,? extends fr.softeam.cameldesigner.api.locationmodel.standard.package_.LocationModel> locationModelImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitLocationModel(locationModelImporter));
+
LocationModel cdoElt = locationModelImporter.getElement();
childs.addAll(cdoElt.getCloudLocations());
childs.addAll(cdoElt.getRegions());
- return childs;
- }
- @objid ("748e2a37-305d-442f-a21a-0971bb8e9c55")
- @Override
- public Object visitGeographicalRegion(GeographicalRegionImporter extends GeographicalRegion,? extends fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion> geographicalRegionImporter) {
- List childs = new ArrayList<>();
- GeographicalRegion cdoElt = geographicalRegionImporter.getElement();
- childs.addAll(cdoElt.getParentRegions());
return childs;
}
+
@objid ("d1ea27c3-a253-4cb2-8e3d-25fb04b2bc82")
@Override
public Object visitData(DataImporter extends Data,? extends fr.softeam.cameldesigner.api.datamodel.standard.class_.Data> dataImporter) {
- // TODO Auto-generated method stub
- return null;
+
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitData(dataImporter));
+
+ Data cdoElt = dataImporter.getElement();
+ childs.addAll(cdoElt.getIncludesData());
+
+ return childs;
}
@objid ("bd962597-f6e2-4b57-98fb-24ee8e74cf0a")
@Override
public Object visitDataInstance(DataInstanceImporter extends DataInstance,? extends fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance> dataInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
+
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitDataInstance(dataInstanceImporter));
+
+ DataInstance cdoElt = dataInstanceImporter.getElement();
+ childs.addAll(cdoElt.getIncludesDataInstance());
+
+ return childs;
}
@objid ("d4a19f91-ff80-4aac-b21c-d2a3793f30b7")
@Override
public Object visitDataInstanceModel(DataInstanceModelImporter extends DataInstanceModel,? extends fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel> dataInstanceModelImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("2c853c70-59a0-41bc-8c74-37b10fb1055c")
- @Override
- public Object visitDataModel(DataModelImporter extends DataModel,? extends fr.softeam.cameldesigner.api.datamodel.standard.package_.DataModel> dataModelImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitDataInstanceModel(dataInstanceModelImporter));
- @objid ("0a36178d-07fe-4465-b07c-30a3fc601da1")
- @Override
- public Object visitDataSource(DataSourceImporter extends DataSource,? extends fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource> dataSourceImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ DataInstanceModel cdoElt = dataInstanceModelImporter.getElement();
+ childs.addAll(cdoElt.getDataInstances());
+ childs.addAll(cdoElt.getDataSourceInstances());
- @objid ("add39341-552c-48bf-a4f9-f50c664f10af")
- @Override
- public Object visitDataSourceInstance(DataSourceInstanceImporter extends DataSourceInstance,? extends fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance> dataSourceInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
+
@objid ("ac337190-2f94-48a1-b0fa-b185554f9dff")
@Override
public Object visitDataTypeModel(DataTypeModelImporter extends DataTypeModel,? extends fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel> dataTypeModelImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("009148c3-8ff6-4e5b-b770-e6058fc9f227")
- @Override
- public Object visitBinaryEventPattern(BinaryEventPatternImporter extends BinaryEventPattern,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern> binaryEventPatternImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitDataTypeModel(dataTypeModelImporter));
- @objid ("b792c6c4-ceca-4b39-9182-d88aeeec03ef")
- @Override
- public Object visitEvent(EventImporter extends Event,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Event> eventImporter) {
- // TODO Auto-generated method stub
- return null;
+ DataTypeModel cdoElt = dataTypeModelImporter.getElement();
+ childs.addAll(cdoElt.getData());
+ childs.addAll(cdoElt.getDataSources());
+
+ return childs;
}
@objid ("772c42ab-76a0-47be-9af2-cebdb273301a")
@Override
public Object visitScalabilityModel(ScalabilityModelImporter extends ScalabilityModel,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_.ScalabilityModel> scalabilityModelImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitScalabilityModel(scalabilityModelImporter));
+
ScalabilityModel cdoElt = scalabilityModelImporter.getElement();
childs.addAll(cdoElt.getRules());
childs.addAll(cdoElt.getEvents());
@@ -1125,183 +544,31 @@ public Object visitScalabilityModel(ScalabilityModelImporter extends Scalabili
childs.addAll(cdoElt.getActions());
childs.addAll(cdoElt.getPatterns());
childs.addAll(cdoElt.getTimers());
- return childs;
- }
-
- @objid ("0d15aa53-4ca7-4d16-a2d7-2c9e13ee28db")
- @Override
- public Object visitEventInstance(EventInstanceImporter extends EventInstance,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.EventInstance> eventInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("a197ff88-a653-41ed-bb57-396b39f463ba")
- @Override
- public Object visitEventPattern(EventPatternImporter extends EventPattern,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.EventPattern> eventPatternImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("3349ceb4-2cd8-4e46-a304-f000ad22ca48")
- @Override
- public Object visitFunctionalEvent(FunctionalEventImporter extends FunctionalEvent,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent> functionalEventImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("ad10556f-b17f-49fa-810d-399bcec295ad")
- @Override
- public Object visitFunctionalEventInstance(FunctionalEventInstanceImporter extends FunctionalEventInstance,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.FunctionalEventInstance> functionalEventInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("a98a871a-d34b-48b1-80b3-dc0aa81e55ef")
- @Override
- public Object visitHorizontalScalingAction(HorizontalScalingActionImporter extends HorizontalScalingAction,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.HorizontalScalingAction> horizontalScalingActionImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("b3bf0dc4-3a54-4077-8003-fadcb7cfae53")
- @Override
- public Object visitNonFunctionalEvent(NonFunctionalEventImporter extends NonFunctionalEvent,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent> nonFunctionalEventImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("e635a838-4ec9-4794-8910-1d508b078afc")
- @Override
- public Object visitNonFunctionalEventInstance(NonFunctionalEventInstanceImporter extends NonFunctionalEventInstance,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.NonFunctionalEventInstance> nonFunctionalEventInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("64f1b76e-7ffe-4078-afed-c745d4ea893f")
- @Override
- public Object visitScalabilityRule(ScalabilityRuleImporter extends ScalabilityRule,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.ScalabilityRule> scalabilityRuleImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("dbf8d1ee-ad59-4dd6-8dc2-6be99e692d01")
- @Override
- public Object visitAction(ActionImporter extends Action,? extends fr.softeam.cameldesigner.api.camelcore.standard.namespace.Action> actionImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("56777779-4840-4b0e-b44a-a03212688f0d")
- @Override
- public Object visitScalingAction(ScalingActionImporter extends ScalingAction,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.namespace.ScalingAction> scalingActionImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("13a51478-1ca7-405f-a4a9-0c1ee594199e")
- @Override
- public Object visitSingleEvent(SingleEventImporter extends SingleEvent,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.SingleEvent> singleEventImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("5d5a98ea-cc1a-4d2c-9d91-3f79e9694167")
- @Override
- public Object visitTimer(TimerImporter extends Timer,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Timer> timerImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("acdd9b75-ff3d-4261-b027-44f126b185b2")
- @Override
- public Object visitUnaryEventPattern(UnaryEventPatternImporter extends UnaryEventPattern,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.UnaryEventPattern> unaryEventPatternImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("566ceb04-901d-4b11-a409-7d39615ed807")
- @Override
- public Object visitVerticalScalingAction(VerticalScalingActionImporter extends VerticalScalingAction,? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.VerticalScalingAction> verticalScalingActionImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("5ce4f65b-1620-4cb2-9300-7e8fdc421d74")
- @Override
- public Object visitCertifiable(CertifiableImporter extends Certifiable,? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable> certifiableImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
@objid ("9c8a3aef-6210-4e0d-a17c-d18febafe1a2")
@Override
public Object visitAttribute(AttributeImporter extends Attribute,? extends CamelAttribute> attributeImporter) {
- List childs = new ArrayList<>();
- Attribute cdoElt = attributeImporter.getElement();
- childs.add(cdoElt.getValue());
- return childs;
- }
- @objid ("40170233-103e-4cd7-9c59-7341bfd34356")
- @Override
- public Object visitQualityAttribute(QualityAttributeImporter extends QualityAttribute,? extends CamelAttribute> qualityAttributeImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("fc4a0c11-a42e-4bf8-be42-9d338035da56")
- @Override
- public Object visitMeasurableAttribute(MeasurableAttributeImporter extends MeasurableAttribute,? extends CamelAttribute> measurableAttributeImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("cbd9d210-1eb5-4005-ac62-39965db6a558")
- @Override
- public Object visitSecurityAttribute(SecurityAttributeImporter extends SecurityAttribute,? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute> securityAttributeImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("1fda6711-b6c7-4769-a391-e81a95ad2066")
- @Override
- public Object visitCompositeSecurityMetric(CompositeSecurityMetricImporter extends CompositeSecurityMetric,? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric> compositeSecurityMetricImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("c14ec19c-91f4-49f6-83cb-1581f4f6cb09")
- @Override
- public Object visitRawSecurityMetric(RawSecurityMetricImporter extends RawSecurityMetric,? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric> rawSecurityMetricImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitAttribute(attributeImporter));
- @objid ("6f5d394f-73a6-4abf-99b8-7c9650d1ae21")
- @Override
- public Object visitSecurityControl(SecurityControlImporter extends SecurityControl,? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityControl> securityControlImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ Attribute cdoElt = attributeImporter.getElement();
+ //childs.add(cdoElt.getValue());
- @objid ("452e9576-b9c8-4e1a-b692-71222c1a3be9")
- @Override
- public Object visitSecurityDomain(SecurityDomainImporter extends SecurityDomain,? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain> securityDomainImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("72937f96-a0bc-493a-b97c-b35b4d858ff9")
- @Override
- public Object visitSecurityMetricInstance(SecurityMetricInstanceImporter extends SecurityMetricInstance,? extends fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance> securityMetricInstanceImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("94ccbf6e-2809-48fe-8455-159a7b9e229d")
@Override
public Object visitSecurityModel(SecurityModelImporter extends SecurityModel,? extends fr.softeam.cameldesigner.api.securitymodel.standard.package_.SecurityModel> securityModelImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitSecurityModel(securityModelImporter));
+
SecurityModel cdoElt = securityModelImporter.getElement();
childs.addAll(cdoElt.getSecurityControls());
childs.addAll(cdoElt.getSecurityRequirements());
@@ -1311,82 +578,47 @@ public Object visitSecurityModel(SecurityModelImporter extends SecurityModel,?
childs.addAll(cdoElt.getSecurityMetricInstances());
childs.addAll(cdoElt.getSecurityDomains());
childs.addAll(cdoElt.getSecuritySLOs());
- return childs;
- }
-
- @objid ("9311cf2e-b562-4b55-9b4a-35071dc66ab0")
- @Override
- public Object visitSecuritySLO(SecuritySLOImporter extends SecuritySLO,? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecuritySLO> securitySLOImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("53533c80-2d48-4cbf-97e2-f558fd6a5e8a")
- @Override
- public Object visitCloudCredentials(CloudCredentialsImporter extends CloudCredentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials> cloudCredentialsImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("50965f30-c241-428f-92d5-c087d19592a7")
- @Override
- public Object visitCloudProvider(CloudProviderImporter extends CloudProvider,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudProvider> cloudProviderImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("d66d5ec9-be3a-49d1-834b-a943083fedfa")
- @Override
- public Object visitCredentials(CredentialsImporter extends Credentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Credentials> credentialsImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("340f1764-211d-465b-9a44-568813ed6d22")
@Override
public Object visitDataResourceFilter(DataResourceFilterImporter extends DataResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter> dataResourceFilterImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitDataResourceFilter(dataResourceFilterImporter));
+
DataResourceFilter cdoElt = dataResourceFilterImporter.getElement();
childs.addAll(cdoElt.getData());
childs.addAll(cdoElt.getDataInstances());
childs.addAll(cdoElt.getLocations());
- return childs;
- }
- @objid ("cf76d4e4-a888-4929-a817-d64959528528")
- @Override
- public Object visitEntity(EntityImporter extends Entity,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Entity> entityImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("d02ae4a2-541d-489e-9864-d905db038e5e")
- @Override
- public Object visitExternalIdentifier(ExternalIdentifierImporter extends ExternalIdentifier,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier> externalIdentifierImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("219086bb-cf33-4c42-a6ae-6871f2fbfc28")
- @Override
- public Object visitModelResourceFilter(ModelResourceFilterImporter extends ModelResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter> modelResourceFilterImporter) {
- // TODO Auto-generated method stub
- return null;
- }
@objid ("140ea594-e836-43b1-b502-a21b84b9e025")
@Override
public Object visitOrganisation(OrganisationImporter extends Organisation,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Organisation> organisationImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitOrganisation(organisationImporter));
+
Organisation cdoElt = organisationImporter.getElement();
childs.addAll(cdoElt.getCloudCredentials());
+
return childs;
}
@objid ("150761f4-10bc-495c-9466-8c4d08d920e5")
@Override
public Object visitOrganisationModel(OrganisationModelImporter extends OrganisationModel,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.package_.OrganisationModel> organisationModelImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitOrganisationModel(organisationModelImporter));
+
OrganisationModel cdoElt = organisationModelImporter.getElement();
childs.add(cdoElt.getOrganisation());
childs.addAll(cdoElt.getExternalIdentifiers());
@@ -1396,68 +628,18 @@ public Object visitOrganisationModel(OrganisationModelImporter extends Organis
childs.addAll(cdoElt.getRoleAssigments());
childs.addAll(cdoElt.getPermissions());
childs.addAll(cdoElt.getResourceFilters());
- return childs;
- }
-
- @objid ("6f7a7865-ddd8-44f5-818d-90649119fb37")
- @Override
- public Object visitPermission(PermissionImporter extends Permission,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Permission> permissionImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("ea55f3a1-eb51-4d54-bc9d-c936d0ed0716")
- @Override
- public Object visitPlatformCredentials(PlatformCredentialsImporter extends PlatformCredentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials> platformCredentialsImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("7123db3f-cf6a-4cb3-a0da-68efc6df6f7e")
- @Override
- public Object visitResourceFilter(ResourceFilterImporter extends ResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ResourceFilter> resourceFilterImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("440904a1-30ae-445e-b58c-df7862bf40d5")
- @Override
- public Object visitRoleAssignment(RoleAssignmentImporter extends RoleAssignment,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.RoleAssignment> roleAssignmentImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("074a0ff1-596e-4055-a54b-108ae217a048")
- @Override
- public Object visitRole(RoleImporter extends Role,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role> roleImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("95cabeec-c3bf-41a8-8558-932ba800bf1f")
- @Override
- public Object visitServiceResourceFilter(ServiceResourceFilterImporter extends ServiceResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter> serviceResourceFilterImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("ca89a225-ab97-45cc-85ba-bc1adcccbf9e")
- @Override
- public Object visitSoftwareComponentResourceFilter(SoftwareComponentResourceFilterImporter extends SoftwareComponentResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter> softwareComponentResourceFilterImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("1e72d36a-60d8-4923-9a94-a221e4e24627")
- @Override
- public Object visitUserGroup(UserGroupImporter extends UserGroup,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup> userGroupImporter) {
- return null;
- }
@objid ("c9f3ff0a-e879-47ba-ad9d-50f09765ea5e")
@Override
public Object visitUser(UserImporter extends User,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User> userImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitUser(userImporter));
+
User cdoElt = userImporter.getElement();
childs.addAll(cdoElt.getExternalIdentifiers());
childs.add(cdoElt.getPlatformCredentials());
@@ -1465,94 +647,37 @@ public Object visitUser(UserImporter extends User,? extends fr.softeam.camelde
childs.addAll(cdoElt.getDeploymentModels());
childs.addAll(cdoElt.getMetricModels());
childs.addAll(cdoElt.getScalabilityModels());
- return childs;
- }
-
- @objid ("fa4a2f28-5c85-48b9-80a0-86af1150e19e")
- @Override
- public Object visitProvidedCommunication(ProvidedCommunicationImporter extends ProvidedCommunication,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort> providedCommunicationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("2ba230c6-c601-41e1-a6dd-6fd8a9b82ace")
- @Override
- public Object visitProvidedHost(ProvidedHostImporter extends ProvidedHost,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort> providedHostImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("c6826b05-b0b7-4d4a-b931-77afbb7e5979")
- @Override
- public Object visitRequiredCommunication(RequiredCommunicationImporter extends RequiredCommunication,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort> requiredCommunicationImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("4a3220c5-a6d9-4975-804d-f395eecb8178")
- @Override
- public Object visitRequiredHost(RequiredHostImporter extends RequiredHost,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort> requiredHostImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("993bb7cb-bcbf-4ba8-9c71-44bd577b77de")
- @Override
- public Object visitCompositeUnit(CompositeUnitImporter extends CompositeUnit,? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.CompositeUnit> compositeUnitImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
- @objid ("505db101-f9da-40d3-b45c-6f7c810c3756")
- @Override
- public Object visitDimensionedUnit(DimensionedUnitImporter extends DimensionedUnit,? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.DimensionedUnit> dimensionedUnitImporter) {
- // TODO Auto-generated method stub
- return null;
- }
- @objid ("3902056e-57c5-457c-b2fd-cc5f8aeabd63")
- @Override
- public Object visitDimensionless(DimensionlessImporter extends Dimensionless,? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Dimensionless> dimensionlessImporter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @objid ("03bd2d78-fb5d-4f3e-bb5b-77e00c6ed342")
+ @objid ("1d02f214-abe2-4cec-a295-258edc9183fa")
@Override
- public Object visitSingleUnit(SingleUnitImporter extends SingleUnit,? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit> singleUnitImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ public Object visitUnitModel(UnitModelImporter extends UnitModel,? extends fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel> unitModelImporter) {
- @objid ("41729d1f-0277-494d-96d8-ac9e17696150")
- @Override
- public Object visitUnitDimension(UnitDimensionImporter extends UnitDimension,? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension> unitDimensionImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitUnitModel(unitModelImporter));
- @objid ("dbea1b17-3900-4fbc-8695-fc9d1aec47f5")
- @Override
- public Object visitUnit(UnitImporter extends Unit,? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Unit> unitImporter) {
- // TODO Auto-generated method stub
- return null;
- }
+ UnitModel cdoElt = unitModelImporter.getElement();
+ childs.addAll(cdoElt.getUnits());
+ childs.addAll(cdoElt.getDimensions());
- @objid ("1d02f214-abe2-4cec-a295-258edc9183fa")
- @Override
- public Object visitUnitModel(UnitModelImporter extends UnitModel,? extends fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel> unitModelImporter) {
- // TODO Auto-generated method stub
- return null;
+ return childs;
}
@objid ("a0370165-b929-488d-a646-94e1a35b4b75")
@Override
- public Object visitCamelComponent(CamelComponentImporter extends Component,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.CamelComponent> camelComponentImporter) {
+ public Object visitCamelComponent(ComponentImporter extends Component,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.CamelComponent> camelComponentImporter) {
+
List childs = new ArrayList<>();
+ childs.addAll((Collection extends CDOObject>) super.visitCamelComponent(camelComponentImporter));
+
Component cdoElt = camelComponentImporter.getElement();
childs.addAll(cdoElt.getProvidedCommunications());
childs.addAll(cdoElt.getProvidedHosts());
childs.addAll(cdoElt.getConfigurations());
+
return childs;
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/DefaultCamelVisitor.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/DefaultCamelVisitor.java
new file mode 100644
index 00000000..55f871d8
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/DefaultCamelVisitor.java
@@ -0,0 +1,1371 @@
+package fr.softeam.cameldesigner.exchange.importer;
+
+import org.eclipse.emf.cdo.CDOObject;
+import camel.constraint.AttributeConstraint;
+import camel.constraint.CompositeConstraint;
+import camel.constraint.Constraint;
+import camel.constraint.ConstraintModel;
+import camel.constraint.IfThenConstraint;
+import camel.constraint.LogicalConstraint;
+import camel.constraint.MetricConstraint;
+import camel.constraint.MetricVariableConstraint;
+import camel.constraint.UnaryConstraint;
+import camel.core.Action;
+import camel.core.Attribute;
+import camel.core.CamelModel;
+import camel.core.Feature;
+import camel.core.MeasurableAttribute;
+import camel.core.Model;
+import camel.core.NamedElement;
+import camel.core.QualityAttribute;
+import camel.data.Data;
+import camel.data.DataInstance;
+import camel.data.DataInstanceModel;
+import camel.data.DataModel;
+import camel.data.DataSource;
+import camel.data.DataSourceInstance;
+import camel.data.DataTypeModel;
+import camel.deployment.BuildConfiguration;
+import camel.deployment.ClusterConfiguration;
+import camel.deployment.Communication;
+import camel.deployment.CommunicationInstance;
+import camel.deployment.CommunicationPort;
+import camel.deployment.CommunicationPortInstance;
+import camel.deployment.Component;
+import camel.deployment.ComponentInstance;
+import camel.deployment.ComponentRelation;
+import camel.deployment.ComponentRelationInstance;
+import camel.deployment.Configuration;
+import camel.deployment.Container;
+import camel.deployment.ContainerInstance;
+import camel.deployment.DeploymentInstanceModel;
+import camel.deployment.DeploymentModel;
+import camel.deployment.DeploymentTypeModel;
+import camel.deployment.EventConfiguration;
+import camel.deployment.Hosting;
+import camel.deployment.HostingInstance;
+import camel.deployment.HostingPort;
+import camel.deployment.HostingPortInstance;
+import camel.deployment.LocationCoupling;
+import camel.deployment.PaaS;
+import camel.deployment.PaaSConfiguration;
+import camel.deployment.PaaSInstance;
+import camel.deployment.ProvidedCommunication;
+import camel.deployment.ProvidedCommunicationInstance;
+import camel.deployment.ProvidedHost;
+import camel.deployment.ProvidedHostInstance;
+import camel.deployment.RequiredCommunication;
+import camel.deployment.RequiredCommunicationInstance;
+import camel.deployment.RequiredHost;
+import camel.deployment.RequiredHostInstance;
+import camel.deployment.RequirementSet;
+import camel.deployment.ScriptConfiguration;
+import camel.deployment.ServerlessConfiguration;
+import camel.deployment.SoftwareComponent;
+import camel.deployment.SoftwareComponentInstance;
+import camel.deployment.VM;
+import camel.deployment.VMInstance;
+import camel.execution.ActionInstance;
+import camel.execution.ApplicationMeasurement;
+import camel.execution.Cause;
+import camel.execution.CommunicationMeasurement;
+import camel.execution.ContainerMeasurement;
+import camel.execution.DataMeasurement;
+import camel.execution.ExecutionModel;
+import camel.execution.HistoryInfo;
+import camel.execution.HistoryRecord;
+import camel.execution.Measurement;
+import camel.execution.PaaSMeasurement;
+import camel.execution.RuleTrigger;
+import camel.execution.SLOViolation;
+import camel.execution.SoftwareComponentMeasurement;
+import camel.execution.VMMeasurement;
+import camel.location.CloudLocation;
+import camel.location.GeographicalRegion;
+import camel.location.Location;
+import camel.location.LocationModel;
+import camel.metric.AttributeContext;
+import camel.metric.CompositeMetric;
+import camel.metric.CompositeMetricContext;
+import camel.metric.Function;
+import camel.metric.Metric;
+import camel.metric.MetricContext;
+import camel.metric.MetricInstance;
+import camel.metric.MetricInstanceModel;
+import camel.metric.MetricModel;
+import camel.metric.MetricObjectBinding;
+import camel.metric.MetricTemplate;
+import camel.metric.MetricTypeModel;
+import camel.metric.MetricVariable;
+import camel.metric.ObjectContext;
+import camel.metric.RawMetric;
+import camel.metric.RawMetricContext;
+import camel.metric.Schedule;
+import camel.metric.Sensor;
+import camel.metric.Window;
+import camel.mms.MetaDataModel;
+import camel.mms.MmsConcept;
+import camel.mms.MmsConceptInstance;
+import camel.mms.MmsObject;
+import camel.mms.MmsProperty;
+import camel.mms.MmsPropertyInstance;
+import camel.organisation.CloudCredentials;
+import camel.organisation.CloudProvider;
+import camel.organisation.Credentials;
+import camel.organisation.DataResourceFilter;
+import camel.organisation.Entity;
+import camel.organisation.ExternalIdentifier;
+import camel.organisation.ModelResourceFilter;
+import camel.organisation.Organisation;
+import camel.organisation.OrganisationModel;
+import camel.organisation.Permission;
+import camel.organisation.PlatformCredentials;
+import camel.organisation.ResourceFilter;
+import camel.organisation.Role;
+import camel.organisation.RoleAssignment;
+import camel.organisation.ServiceResourceFilter;
+import camel.organisation.SoftwareComponentResourceFilter;
+import camel.organisation.User;
+import camel.organisation.UserGroup;
+import camel.requirement.HardRequirement;
+import camel.requirement.HorizontalScaleRequirement;
+import camel.requirement.ImageRequirement;
+import camel.requirement.LocationRequirement;
+import camel.requirement.OSRequirement;
+import camel.requirement.OptimisationRequirement;
+import camel.requirement.PaaSRequirement;
+import camel.requirement.ProviderRequirement;
+import camel.requirement.Requirement;
+import camel.requirement.RequirementModel;
+import camel.requirement.ResourceRequirement;
+import camel.requirement.ScaleRequirement;
+import camel.requirement.SecurityRequirement;
+import camel.requirement.ServiceLevelObjective;
+import camel.requirement.SoftRequirement;
+import camel.requirement.VerticalScaleRequirement;
+import camel.scalability.BinaryEventPattern;
+import camel.scalability.Event;
+import camel.scalability.EventInstance;
+import camel.scalability.EventPattern;
+import camel.scalability.FunctionalEvent;
+import camel.scalability.FunctionalEventInstance;
+import camel.scalability.HorizontalScalingAction;
+import camel.scalability.NonFunctionalEvent;
+import camel.scalability.NonFunctionalEventInstance;
+import camel.scalability.ScalabilityModel;
+import camel.scalability.ScalabilityRule;
+import camel.scalability.ScalingAction;
+import camel.scalability.SingleEvent;
+import camel.scalability.Timer;
+import camel.scalability.UnaryEventPattern;
+import camel.scalability.VerticalScalingAction;
+import camel.security.Certifiable;
+import camel.security.CompositeSecurityMetric;
+import camel.security.RawSecurityMetric;
+import camel.security.SecurityAttribute;
+import camel.security.SecurityControl;
+import camel.security.SecurityDomain;
+import camel.security.SecurityMetricInstance;
+import camel.security.SecurityModel;
+import camel.security.SecuritySLO;
+import camel.unit.CompositeUnit;
+import camel.unit.DimensionedUnit;
+import camel.unit.Dimensionless;
+import camel.unit.SingleUnit;
+import camel.unit.Unit;
+import camel.unit.UnitDimension;
+import camel.unit.UnitModel;
+import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelAttribute;
+import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
+import fr.softeam.cameldesigner.api.camelcore.standard.package_.SubModel;
+import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.component.CamelComponent;
+import fr.softeam.cameldesigner.exchange.importer.constraint.AttributeConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.CamelConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.CompositeConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.ConstraintModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.IfThenConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.LogicalConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.MetricConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.MetricVariableConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.UnaryConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.ActionImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.AttributeImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.CamelModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.FeatureImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.MeasurableAttributeImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.NamedElementImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.QualityAttributeImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.SubModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.data.DataImporter;
+import fr.softeam.cameldesigner.exchange.importer.data.DataInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.data.DataInstanceModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.data.DataModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.data.DataSourceImporter;
+import fr.softeam.cameldesigner.exchange.importer.data.DataSourceInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.data.DataTypeModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.BuildConfigurationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ClusterConfigurationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationPortImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ComponentImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ComponentRelationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ConfigurationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ContainerImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.DeploymentModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.DeploymentTypeModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.EventConfigurationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.HostingImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.HostingPortImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.LocationCouplingImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.PaaSConfigurationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.PaaSImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ProvidedCommunicationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ProvidedHostImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredCommunicationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredHostImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.RequirementSetImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ScriptConfiguationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ServerlessConfigurationImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.SoftwareComponentImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.VMImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.CommunicationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.CommunicationPortInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ComponentInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ComponentRelationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ContainerInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.DeploymentInstanceModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.HostingInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.HostingPortInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.PaaSInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ProvidedCommunicationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ProvidedHostInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.RequiredCommunicationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.RequiredHostInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.SoftwareComponentInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.VMInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.ActionInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.ApplicationMeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.CauseImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.CommunicationMeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.ContainerMeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.DataMeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.ExecutionModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.HistoryInfoImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.HistoryRecordImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.MeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.PaaSMeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.RuleTriggerImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.SLOViolationImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.SoftwareComponentMeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.execution.VMMeasurementImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.CloudLocationImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.GeographicalRegionImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.LocationImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.LocationModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.metadata.MetaDataModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptImporter;
+import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.metadata.MmsObjectImporter;
+import fr.softeam.cameldesigner.exchange.importer.metadata.MmsPropertyImporter;
+import fr.softeam.cameldesigner.exchange.importer.metadata.MmsPropertyInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.AttributeContextImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.CompositeMetricContextImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.CompositeMetricImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.FunctionImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricContextImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricInstanceModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricObjectBindingImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricTemplateImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricTypeModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.MetricVariableImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.ObjectContextImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.RawMetricContextImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.RawMetricImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.ScheduleImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.SensorImporter;
+import fr.softeam.cameldesigner.exchange.importer.metric.WindowImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.CloudCredentialsImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.CloudProviderImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.CredentialsImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.DataResourceFilterImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.EntityImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.ExternalIdentifierImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.ModelResourceFilterImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.OrganisationImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.OrganisationModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.PermissionImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.PlatformCredentialsImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.ResourceFilterImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.RoleAssignmentImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.RoleImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.ServiceResourceFilterImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.SoftwareComponentResourceFilterImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.UserGroupImporter;
+import fr.softeam.cameldesigner.exchange.importer.organisation.UserImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.HardRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.HorizontalScaleRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.ImageRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.LocationRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.OSRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.OptimisationRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.PaaSRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.ProviderRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.RequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.RequirementModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.ResourceRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.ScaleRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.SecurityRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.ServiceLevelObjectiveImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.SoftRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.requirement.VerticalScaleRequirementImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.BinaryEventPatternImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.EventImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.EventInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.EventPatternImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.FunctionalEventImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.FunctionalEventInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.HorizontalScalingActionImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.NonFunctionalEventImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.NonFunctionalEventInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.ScalabilityModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.ScalabilityRuleImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.ScalingActionImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.SingleEventImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.TimerImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.UnaryEventPatternImporter;
+import fr.softeam.cameldesigner.exchange.importer.scalability.VerticalScalingActionImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.CertifiableImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.CompositeSecurityMetricImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.RawSecurityMetricImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.SecurityAttributeImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.SecurityControlImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.SecurityDomainImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.SecurityMetricInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.SecurityModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.security.SecuritySLOImporter;
+import fr.softeam.cameldesigner.exchange.importer.unit.CompositeUnitImporter;
+import fr.softeam.cameldesigner.exchange.importer.unit.DimensionedUnitImporter;
+import fr.softeam.cameldesigner.exchange.importer.unit.DimensionlessImporter;
+import fr.softeam.cameldesigner.exchange.importer.unit.SingleUnitImporter;
+import fr.softeam.cameldesigner.exchange.importer.unit.UnitDimensionImporter;
+import fr.softeam.cameldesigner.exchange.importer.unit.UnitImporter;
+import fr.softeam.cameldesigner.exchange.importer.unit.UnitModelImporter;
+
+
+public class DefaultCamelVisitor implements ICamelImporterVisitor {
+
+ @Override
+ public Object visitFeature(FeatureImporter extends Feature,? extends fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature> feature) {
+ return visitNamedElement(feature);
+ }
+
+
+ @Override
+ public Object visitCamelElement(CamelElementImporter extends CDOObject,? extends CamelElement> camelElt) {
+ return null;
+ }
+
+
+ @Override
+ public Object visitCamelModel(CamelModelImporter extends CamelModel,? extends SubModel> camelModel) {
+ return visitModel(camelModel);
+ }
+
+ @Override
+ public Object visitMetaDataModel(MetaDataModelImporter extends MetaDataModel,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel> metaDataModel) {
+ return visitModel(metaDataModel);
+ }
+
+
+ @Override
+ public Object visitMmsConcept(MmsConceptImporter extends MmsConcept,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept> mmsConcept) {
+ return visitMmsObject(mmsConcept);
+ }
+
+ @Override
+ public Object visitMmsProperty(MmsPropertyImporter extends MmsProperty, ? extends fr.softeam.cameldesigner.api.metadatamodel.standard.attribute.MmsProperty> mmsConcept) {
+ return visitMmsObject(mmsConcept);
+ }
+
+ @Override
+ public Object visitMmsPropertyInstance(MmsPropertyInstanceImporter extends MmsPropertyInstance, ? extends fr.softeam.cameldesigner.api.metadatamodel.standard.attributelink.MmsPropertyInstance> mmsConcept) {
+ return visitMmsObject(mmsConcept);
+ }
+
+ @Override
+ public Object visitMmsConceptInstance(MmsConceptInstanceImporter extends MmsConceptInstance ,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.instance.MmsConceptInstance> mmsConcept) {
+ return visitMmsObject(mmsConcept);
+ }
+
+ @Override
+ public Object visitMmsObject(MmsObjectImporter extends MmsObject,? extends fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject> model) {
+ return null;
+ }
+
+ @Override
+ public Object visitModel(SubModelImporter extends Model,? extends SubModel> model) {
+ return visitFeature(model);
+ }
+
+
+ @Override
+ public Object visitNamedElement(NamedElementImporter extends NamedElement,? extends fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.NamedElement> namedElement) {
+ return visitCamelElement(namedElement);
+ }
+
+
+ @Override
+ public Object visitBuildConfiguration(BuildConfigurationImporter extends BuildConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration> buildConfiguration) {
+ return visitFeature(buildConfiguration);
+ }
+
+ @Override
+ public Object visitClusterConfiguration(ClusterConfigurationImporter extends ClusterConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ClusterConfiguration> clusterConfiguration) {
+ return visitConfiguration(clusterConfiguration);
+ }
+
+
+ @Override
+ public Object visitCommunication(CommunicationImporter extends Communication,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication> communication) {
+ return visitComponentRelation(communication);
+ }
+
+ @Override
+ public Object visitComponentRelationInstance(ComponentRelationInstanceImporter extends ComponentRelationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.ComponentRelationInstance> componentRelationInstance) {
+ return visitFeature(componentRelationInstance);
+ }
+
+
+ @Override
+ public Object visitCommunicationInstance(CommunicationInstanceImporter extends CommunicationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance> communicationInstance) {
+ return visitComponentRelationInstance(communicationInstance);
+ }
+
+
+ @Override
+ public Object visitCommunicationPort(CommunicationPortImporter extends CommunicationPort, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort> communicationPort) {
+ return visitFeature(communicationPort);
+ }
+
+ @Override
+ public Object visitCommunicationPortInstance(CommunicationPortInstanceImporter extends CommunicationPortInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance> communicationPortInstance) {
+ return visitFeature(communicationPortInstance);
+ }
+
+
+ @Override
+ public Object visitComponentRelation(ComponentRelationImporter extends ComponentRelation, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.ComponentRelation> componentRelation) {
+ return visitFeature(componentRelation);
+ }
+
+ @Override
+ public Object visitComponent(ComponentImporter extends Component, ? extends CamelComponent> component) {
+ return visitFeature(component);
+ }
+
+ @Override
+ public Object visitComponentInstance(ComponentInstanceImporter extends ComponentInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ComponentInstance> componentInstance) {
+ return visitFeature(componentInstance);
+ }
+
+
+ @Override
+ public Object visitConfiguration(ConfigurationImporter extends Configuration, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.Configuration> configuration) {
+ return visitFeature(configuration);
+ }
+
+
+ @Override
+ public Object visitContainer(ContainerImporter extends Container, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.Container> container) {
+ return visitComponent(container);
+ }
+
+ @Override
+ public Object visitContainerInstance(ContainerInstanceImporter extends ContainerInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ContainerInstance> containerInstance) {
+ return visitComponentInstance(containerInstance);
+ }
+
+
+ @Override
+ public Object visitDeploymentModel(DeploymentModelImporter extends DeploymentModel,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentModel> deploymentModel) {
+ return visitModel(deploymentModel);
+ }
+
+ @Override
+ public Object visitDeploymentTypeModel(DeploymentTypeModelImporter extends DeploymentTypeModel,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel> deploymentTypeModel) {
+ return visitDeploymentModel(deploymentTypeModel);
+ }
+
+ @Override
+ public Object visitDeploymentInstanceModel(DeploymentInstanceModelImporter extends DeploymentInstanceModel,? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel> deploymentInstanceModel) {
+ return visitDeploymentModel(deploymentInstanceModel);
+ }
+
+
+ @Override
+ public Object visitEventConfiguration(EventConfigurationImporter extends EventConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration> eventConfiguration) {
+ return visitFeature(eventConfiguration);
+ }
+
+
+ @Override
+ public Object visitHosting(HostingImporter extends Hosting,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting> hosting) {
+ return visitComponentRelation(hosting);
+ }
+
+ @Override
+ public Object visitHostingInstance(HostingInstanceImporter extends HostingInstance,? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance> hostingInstance) {
+ return visitComponentRelationInstance(hostingInstance);
+ }
+
+ @Override
+ public Object visitHostingPort(HostingPortImporter extends HostingPort,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort> hostingPort) {
+ return visitFeature(hostingPort);
+ }
+
+ @Override
+ public Object visitHostingPortInstance(HostingPortInstanceImporter extends HostingPortInstance,? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance> hostingPortInstance) {
+ return visitFeature(hostingPortInstance);
+ }
+
+ @Override
+ public Object visitLocationCoupling(LocationCouplingImporter extends LocationCoupling,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling> locationCoupling) {
+ return visitComponentRelation(locationCoupling);
+ }
+
+ @Override
+ public Object visitPaaSConfiguration(PaaSConfigurationImporter extends PaaSConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.PaaSConfiguration> paaSConfiguration) {
+ return visitConfiguration(paaSConfiguration);
+ }
+
+ @Override
+ public Object visitPaaS(PaaSImporter extends PaaS,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS> paaS) {
+ return visitComponent(paaS);
+ }
+
+ @Override
+ public Object visitPaaSInstance(PaaSInstanceImporter extends PaaSInstance,? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.PaaSInstance> paaSInstance) {
+ return visitComponentInstance(paaSInstance);
+ }
+
+ @Override
+ public Object visitRequirementSet(RequirementSetImporter extends RequirementSet,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet> requiredSet) {
+ return visitFeature(requiredSet);
+ }
+
+ @Override
+ public Object visitScriptConfiguration(ScriptConfiguationImporter extends ScriptConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration> scriptConfiguration) {
+ return visitConfiguration(scriptConfiguration);
+ }
+
+ @Override
+ public Object visitServelessConfiguration(ServerlessConfigurationImporter extends ServerlessConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ServerlessConfiguration> serverlessConfiguration) {
+ return visitConfiguration(serverlessConfiguration);
+ }
+
+ @Override
+ public Object visitSoftwareComponent(SoftwareComponentImporter extends SoftwareComponent,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent> softwareComponent) {
+ return visitComponent(softwareComponent);
+ }
+
+ @Override
+ public Object visitSoftwareComponentInstance(SoftwareComponentInstanceImporter extends SoftwareComponentInstance,? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.SoftwareComponentInstance> softwareComponentInstance) {
+ return visitComponentInstance(softwareComponentInstance);
+ }
+
+ @Override
+ public Object visitVM(VMImporter extends VM,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM> vm) {
+ return visitComponent(vm);
+ }
+
+ @Override
+ public Object visitVMInstance(VMInstanceImporter extends VMInstance,? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance> vmInstance) {
+ return visitComponentInstance(vmInstance);
+ }
+
+ @Override
+ public Object visitCloudCredentials(CloudCredentialsImporter extends CloudCredentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials> cloudCredentials) {
+ return visitCredentials(cloudCredentials);
+ }
+
+
+ @Override
+ public Object visitCloudProvider(CloudProviderImporter extends CloudProvider,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudProvider> cloudProvider) {
+ return visitOrganisation(cloudProvider);
+ }
+
+ @Override
+ public Object visitCredentials(CredentialsImporter extends Credentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Credentials> credentials) {
+ return visitFeature(credentials);
+ }
+
+ @Override
+ public Object visitDataResourceFilter(DataResourceFilterImporter extends DataResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter> dataResourceFilter) {
+ return visitResourceFilter(dataResourceFilter);
+ }
+
+
+ @Override
+ public Object visitEntity(EntityImporter extends Entity,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Entity> entity) {
+ return visitFeature(entity);
+ }
+
+ @Override
+ public Object visitExternalIdentifier(ExternalIdentifierImporter extends ExternalIdentifier,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier> externalIdentifier) {
+ return visitFeature(externalIdentifier);
+ }
+
+ @Override
+ public Object visitModelResourceFilter(ModelResourceFilterImporter extends ModelResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter> modelResourceFilter) {
+ return visitResourceFilter(modelResourceFilter);
+ }
+
+ @Override
+ public Object visitOrganisation(OrganisationImporter extends Organisation,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Organisation> organisation) {
+ return visitEntity(organisation);
+ }
+
+
+ @Override
+ public Object visitOrganisationModel(OrganisationModelImporter extends OrganisationModel,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.package_.OrganisationModel> organisationModel) {
+ return visitModel(organisationModel);
+ }
+
+
+ @Override
+ public Object visitPermission(PermissionImporter extends Permission,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Permission> permission) {
+ return visitFeature(permission);
+ }
+
+ @Override
+ public Object visitPlatformCredentials(PlatformCredentialsImporter extends PlatformCredentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials> platformCredentials) {
+ return visitCredentials(platformCredentials);
+ }
+
+ @Override
+ public Object visitResourceFilter(ResourceFilterImporter extends ResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ResourceFilter> resourceFilter) {
+ return visitFeature(resourceFilter);
+ }
+
+ @Override
+ public Object visitRoleAssignment(RoleAssignmentImporter extends RoleAssignment,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.RoleAssignment> roleAssignment) {
+ return visitFeature(roleAssignment);
+ }
+
+ @Override
+ public Object visitRole(RoleImporter extends Role,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role> role) {
+ return visitFeature(role);
+ }
+
+ @Override
+ public Object visitServiceResourceFilter(ServiceResourceFilterImporter extends ServiceResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter> serviceResourceFilter) {
+ return visitResourceFilter(serviceResourceFilter);
+ }
+
+ @Override
+ public Object visitSoftwareComponentResourceFilter(SoftwareComponentResourceFilterImporter extends SoftwareComponentResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter> softwareComponentResourceFilter) {
+ return visitResourceFilter(softwareComponentResourceFilter);
+ }
+
+
+ @Override
+ public Object visitUserGroup(UserGroupImporter extends UserGroup,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup> userGroup) {
+ return visitFeature(userGroup);
+ }
+
+ @Override
+ public Object visitUser(UserImporter extends User,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User> user) {
+ return visitEntity(user);
+ }
+
+ @Override
+ public Object visitCamelComponent(ComponentImporter extends camel.deployment.Component,? extends CamelComponent> camelComponent) {
+ return visitCamelElement(camelComponent);
+ }
+
+
+ @Override
+ public Object visitAttributeContext(AttributeContextImporter extends AttributeContext, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.AttributeContext> attributeContextImporter) {
+ return visitFeature(attributeContextImporter);
+ }
+
+
+ @Override
+ public Object visitCompositeMetric(CompositeMetricImporter extends CompositeMetric, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetric> compositeMetricImporter) {
+ return visitMetric(compositeMetricImporter);
+ }
+
+
+ @Override
+ public Object visitMetric(MetricImporter extends Metric, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Metric> metricImporter) {
+ return visitFeature(metricImporter);
+ }
+
+
+ @Override
+ public Object visitCompositeMetricContext(CompositeMetricContextImporter extends CompositeMetricContext, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.CompositeMetricContext> compositeMetricContextImporter) {
+ return visitMetricContext(compositeMetricContextImporter);
+ }
+
+
+ @Override
+ public Object visitMetricContext(MetricContextImporter extends MetricContext, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricContext> metricContextImporter) {
+ return visitFeature(metricContextImporter);
+ }
+
+
+ @Override
+ public Object visitFunction(FunctionImporter extends Function, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Function> functionImporter) {
+ return visitFeature(functionImporter);
+ }
+
+
+ @Override
+ public Object visitMetricInstance(MetricInstanceImporter extends MetricInstance, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.instance.MetricInstance> metricInstanceImporter) {
+ return visitFeature(metricInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitMetricInstanceModell(MetricInstanceModelImporter extends MetricInstanceModel, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricInstanceModel> metricInstanceModelImporter) {
+ return visitModel(metricInstanceModelImporter);
+ }
+
+
+ @Override
+ public Object visitMetricModel(MetricModelImporter extends MetricModel, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricModel> metricModelImporter) {
+ return visitModel(metricModelImporter);
+ }
+
+
+ @Override
+ public Object visitMetricTypeModel(MetricTypeModelImporter extends MetricTypeModel, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel> metricTypeModelImporter) {
+ return visitMetricModel(metricTypeModelImporter);
+ }
+
+
+ @Override
+ public Object visitMetricObjectBinding(MetricObjectBindingImporter extends MetricObjectBinding, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricObjectBinding> metricObjectBindingImporter) {
+ return visitFeature(metricObjectBindingImporter);
+ }
+
+
+ @Override
+ public Object visitMetricTemplate(MetricTemplateImporter extends MetricTemplate, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricTemplate> metricTemplateImporter) {
+ return visitFeature(metricTemplateImporter);
+ }
+
+
+ @Override
+ public Object visitMetricVariable(MetricVariableImporter extends MetricVariable, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.MetricVariable> metricVariableImporter) {
+ return visitMetric(metricVariableImporter);
+ }
+
+
+ @Override
+ public Object visitObjectContext(ObjectContextImporter extends ObjectContext, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.ObjectContext> objectContextImporter) {
+ return visitFeature(objectContextImporter);
+ }
+
+
+ @Override
+ public Object visitRawMetricContext(RawMetricContextImporter extends RawMetricContext, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetricContext> rawMetricContextImporter) {
+ return visitMetricContext(rawMetricContextImporter);
+ }
+
+
+ @Override
+ public Object visitRawMetric(RawMetricImporter extends RawMetric, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.RawMetric> rawMetricImporter) {
+ return visitMetric(rawMetricImporter);
+ }
+
+
+ @Override
+ public Object visitSchedule(ScheduleImporter extends Schedule, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Schedule> scheduleImporter) {
+ return visitFeature(scheduleImporter);
+ }
+
+
+ @Override
+ public Object visitSensor(SensorImporter extends Sensor, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.component.Sensor> sensorImporter) {
+ return visitSoftwareComponent(sensorImporter);
+ }
+
+
+ @Override
+ public Object visitWindow(WindowImporter extends Window, ? extends fr.softeam.cameldesigner.api.metricmodel.standard.class_.Window> windowImporter) {
+ return visitFeature(windowImporter);
+ }
+
+
+ @Override
+ public Object visitConstraint(CamelConstraintImporter extends Constraint, ? extends CamelConstraint> camelConstraintImporter) {
+ return visitNamedElement(camelConstraintImporter);
+ }
+
+ @Override
+ public Object visitConstraintModel(ConstraintModelImporter extends ConstraintModel, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.package_.ConstraintModel> constraintModelImporter) {
+ return visitModel(constraintModelImporter);
+ }
+
+
+ @Override
+ public Object visitAttributeConstraint(AttributeConstraintImporter extends AttributeConstraint, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.AttributeConstraint> attributeConstraintImporter) {
+ return visitUnaryConstraint(attributeConstraintImporter);
+ }
+
+
+ @Override
+ public Object visitUnaryConstraint(UnaryConstraintImporter extends UnaryConstraint, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.UnaryConstraint> unaryConstraintImporter) {
+ return visitConstraint(unaryConstraintImporter);
+ }
+
+
+ @Override
+ public Object visitCompositeConstraint(CompositeConstraintImporter extends CompositeConstraint, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CompositeConstraint> compositeConstraintImporter) {
+ return visitConstraint(compositeConstraintImporter);
+ }
+
+
+ @Override
+ public Object visitIfThenConstraint(IfThenConstraintImporter extends IfThenConstraint, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint> ifThenConstraintImporter) {
+ return visitCompositeConstraint(ifThenConstraintImporter);
+ }
+
+
+ @Override
+ public Object visitLogicalConstraint(LogicalConstraintImporter extends LogicalConstraint, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint> logicalConstraintImporter) {
+ return visitCompositeConstraint(logicalConstraintImporter);
+ }
+
+
+ @Override
+ public Object visitMetricConstraint(MetricConstraintImporter extends MetricConstraint, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint> metricConstraintImporter) {
+ return visitUnaryConstraint(metricConstraintImporter);
+ }
+
+
+ @Override
+ public Object visitMetricVariableConstraint(MetricVariableConstraintImporter extends MetricVariableConstraint, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint> metricVariableConstraintImporter) {
+ return visitUnaryConstraint(metricVariableConstraintImporter);
+ }
+
+
+ @Override
+ public Object visitHardRequirement(HardRequirementImporter extends HardRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.HardRequirement> hardRequirementImporter) {
+ return visitRequirement(hardRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitHorizontalScaleRequirement(
+ HorizontalScaleRequirementImporter extends HorizontalScaleRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.HorizontalScaleRequirement> horizontalScaleRequirementImporter) {
+ return visitScaleRequirement(horizontalScaleRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitImageRequirement(ImageRequirementImporter extends ImageRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.enumeration.ImageRequirement> imageRequirementImporter) {
+ return visitHardRequirement(imageRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitLocationRequirement(LocationRequirementImporter extends LocationRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.LocationRequirement> locationRequirementImporter) {
+ return visitHardRequirement(locationRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitOptimisationRequirement(OptimisationRequirementImporter extends OptimisationRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OptimisationRequirement> optimisationRequirementImporter) {
+ return visitSoftRequirement(optimisationRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitOSRequirement(OSRequirementImporter extends OSRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.OSRequirement> osRequirementImporter) {
+ return visitHardRequirement(osRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitPaaSRequirement(PaaSRequirementImporter extends PaaSRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.PaaSRequirement> paaSRequirementImporter) {
+ return visitHardRequirement(paaSRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitProviderRequirement(ProviderRequirementImporter extends ProviderRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ProviderRequirement> providerRequirementImporter) {
+ return visitHardRequirement(providerRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitRequirement(RequirementImporter extends Requirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.Requirement> requirementImporter) {
+ return visitFeature(requirementImporter);
+ }
+
+
+ @Override
+ public Object visitRequirementModel(RequirementModelImporter extends RequirementModel, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.package_.RequirementModel> requirementModelImporter) {
+ return visitModel(requirementModelImporter);
+ }
+
+
+ @Override
+ public Object visitResourceRequirement(ResourceRequirementImporter extends ResourceRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ResourceRequirement> resourceRequirementImporter) {
+ return visitHardRequirement(resourceRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitScaleRequirement(ScaleRequirementImporter extends ScaleRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.ScaleRequirement> scaleRequirementImporter) {
+ return visitHardRequirement(scaleRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitSecurityRequirement(SecurityRequirementImporter extends SecurityRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.SecurityRequirement> securityRequirementImporter) {
+ return visitHardRequirement(securityRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitServiceLevelObjective(ServiceLevelObjectiveImporter extends ServiceLevelObjective, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.ServiceLevelObjective> serviceLevelObjectiveImporter) {
+ return visitHardRequirement(serviceLevelObjectiveImporter);
+ }
+
+
+ @Override
+ public Object visitSoftRequirement(SoftRequirementImporter extends SoftRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.generalclass.SoftRequirement> softRequirementImporter) {
+ return visitRequirement(softRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitVerticalScaleRequirement(VerticalScaleRequirementImporter extends VerticalScaleRequirement, ? extends fr.softeam.cameldesigner.api.requirementmodel.standard.class_.VerticalScaleRequirement> verticalScaleRequirementImporter) {
+ return visitScaleRequirement(verticalScaleRequirementImporter);
+ }
+
+
+ @Override
+ public Object visitActionInstance(ActionInstanceImporter extends ActionInstance, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.instance.ActionInstance> actionInstanceImporter) {
+ return visitFeature(actionInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitMeasurement(MeasurementImporter extends Measurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.Measurement> measurementImporter) {
+ return visitFeature(measurementImporter);
+ }
+
+
+ @Override
+ public Object visitApplicationMeasurement(ApplicationMeasurementImporter extends ApplicationMeasurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.ApplicationMeasurement> applicationMeasurementImporter) {
+ return visitMeasurement(applicationMeasurementImporter);
+ }
+
+
+ @Override
+ public Object visitCause(CauseImporter extends Cause, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.Cause> causeImporter) {
+ return visitFeature(causeImporter);
+ }
+
+
+ @Override
+ public Object visitCommunicationMeasurement(CommunicationMeasurementImporter extends CommunicationMeasurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.CommunicationMeasurement> communicationMeasurementImporter) {
+ return visitMeasurement(communicationMeasurementImporter);
+ }
+
+
+ @Override
+ public Object visitContainerMeasurement(ContainerMeasurementImporter extends ContainerMeasurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.ContainerMeasurement> containerMeasurementImporter) {
+ return visitMeasurement(containerMeasurementImporter);
+ }
+
+
+ @Override
+ public Object visitDataMeasurement(DataMeasurementImporter extends DataMeasurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.DataMeasurement> dataMeasurementImporter) {
+ return visitMeasurement(dataMeasurementImporter);
+ }
+
+
+ @Override
+ public Object visitExecutionModel(ExecutionModelImporter extends ExecutionModel, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.package_.ExecutionModel> executionModelImporter) {
+ return visitModel(executionModelImporter);
+ }
+
+
+ @Override
+ public Object visitHistoryInfo(HistoryInfoImporter extends HistoryInfo, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryInfo> historyInfoImporter) {
+ return visitFeature(historyInfoImporter);
+ }
+
+
+ @Override
+ public Object visitHistoryRecord(HistoryRecordImporter extends HistoryRecord, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.HistoryRecord> historyRecordImporter) {
+ return visitFeature(historyRecordImporter);
+ }
+
+
+ @Override
+ public Object visitPaaSMeasurement(PaaSMeasurementImporter extends PaaSMeasurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.PaaSMeasurement> paaSMeasurementImporter) {
+ return visitMeasurement(paaSMeasurementImporter);
+ }
+
+
+ @Override
+ public Object visitRuleTrigger(RuleTriggerImporter extends RuleTrigger, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.RuleTrigger> ruleTriggerImporter) {
+ return visitCause(ruleTriggerImporter);
+ }
+
+
+ @Override
+ public Object visitSLOViolation(SLOViolationImporter extends SLOViolation, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.SLOViolation> sloViolationImporter) {
+ return visitCause(sloViolationImporter);
+ }
+
+
+ @Override
+ public Object visitSoftwareComponentMeasurement(
+ SoftwareComponentMeasurementImporter extends SoftwareComponentMeasurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.SoftwareComponentMeasurement> softwareComponentMeasurementImporter) {
+ return visitMeasurement(softwareComponentMeasurementImporter);
+ }
+
+
+ @Override
+ public Object visitVMMeasurement(VMMeasurementImporter extends VMMeasurement, ? extends fr.softeam.cameldesigner.api.executionmodel.standard.class_.VMMeasurement> vmMeasurementImporter) {
+ return visitMeasurement(vmMeasurementImporter);
+ }
+
+
+ @Override
+ public Object visitCloudLocation(CloudLocationImporter extends CloudLocation, ? extends fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.CloudLocation> cloudLocationImporter) {
+ return visitLocation(cloudLocationImporter);
+ }
+
+
+ @Override
+ public Object visitLocation(LocationImporter extends Location, ? extends fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.Location> locationImporter) {
+ return visitFeature(locationImporter);
+ }
+
+
+ @Override
+ public Object visitLocationModel(LocationModelImporter extends LocationModel, ? extends fr.softeam.cameldesigner.api.locationmodel.standard.package_.LocationModel> locationModelImporter) {
+ return visitModel(locationModelImporter);
+ }
+
+
+ @Override
+ public Object visitGeographicalRegion(GeographicalRegionImporter extends GeographicalRegion, ? extends fr.softeam.cameldesigner.api.locationmodel.standard.enumeration.GeographicalRegion> geographicalRegionImporter) {
+ return visitLocation(geographicalRegionImporter);
+ }
+
+
+ @Override
+ public Object visitData(DataImporter extends Data, ? extends fr.softeam.cameldesigner.api.datamodel.standard.class_.Data> dataImporter) {
+ return visitFeature(dataImporter);
+ }
+
+
+ @Override
+ public Object visitDataInstance(DataInstanceImporter extends DataInstance, ? extends fr.softeam.cameldesigner.api.datamodel.standard.instance.DataInstance> dataInstanceImporter) {
+ return visitFeature(dataInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitDataInstanceModel(DataInstanceModelImporter extends DataInstanceModel, ? extends fr.softeam.cameldesigner.api.datamodel.standard.package_.DataInstanceModel> dataInstanceModelImporter) {
+ return visitDataModel(dataInstanceModelImporter);
+ }
+
+
+ @Override
+ public Object visitDataModel(DataModelImporter extends DataModel, ? extends fr.softeam.cameldesigner.api.datamodel.standard.package_.DataModel> dataModelImporter) {
+ return visitModel(dataModelImporter);
+ }
+
+
+ @Override
+ public Object visitDataSource(DataSourceImporter extends DataSource, ? extends fr.softeam.cameldesigner.api.datamodel.standard.class_.DataSource> dataSourceImporter) {
+ return visitFeature(dataSourceImporter);
+ }
+
+
+ @Override
+ public Object visitDataSourceInstance(DataSourceInstanceImporter extends DataSourceInstance, ? extends fr.softeam.cameldesigner.api.datamodel.standard.instance.DataSourceInstance> dataSourceInstanceImporter) {
+ return visitFeature(dataSourceInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitDataTypeModel(DataTypeModelImporter extends DataTypeModel, ? extends fr.softeam.cameldesigner.api.datamodel.standard.package_.DataTypeModel> dataTypeModelImporter) {
+ return visitDataModel(dataTypeModelImporter);
+ }
+
+
+ @Override
+ public Object visitBinaryEventPattern(BinaryEventPatternImporter extends BinaryEventPattern, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.BinaryEventPattern> binaryEventPatternImporter) {
+ return visitEventPattern(binaryEventPatternImporter);
+ }
+
+
+ @Override
+ public Object visitEvent(EventImporter extends Event, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Event> eventImporter) {
+ return visitFeature(eventImporter);
+ }
+
+
+ @Override
+ public Object visitScalabilityModel(ScalabilityModelImporter extends ScalabilityModel, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.package_.ScalabilityModel> scalabilityModelImporter) {
+ return visitModel(scalabilityModelImporter);
+ }
+
+
+ @Override
+ public Object visitEventInstance(EventInstanceImporter extends EventInstance, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.EventInstance> eventInstanceImporter) {
+ return visitFeature(eventInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitEventPattern(EventPatternImporter extends EventPattern, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.EventPattern> eventPatternImporter) {
+ return visitEvent(eventPatternImporter);
+ }
+
+
+ @Override
+ public Object visitFunctionalEvent(FunctionalEventImporter extends FunctionalEvent, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.FunctionalEvent> functionalEventImporter) {
+ return visitSingleEvent(functionalEventImporter);
+ }
+
+
+ @Override
+ public Object visitFunctionalEventInstance(FunctionalEventInstanceImporter extends FunctionalEventInstance, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.FunctionalEventInstance> functionalEventInstanceImporter) {
+ return visitEventInstance(functionalEventInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitHorizontalScalingAction(HorizontalScalingActionImporter extends HorizontalScalingAction, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.HorizontalScalingAction> horizontalScalingActionImporter) {
+ return visitScalingAction(horizontalScalingActionImporter);
+ }
+
+
+ @Override
+ public Object visitNonFunctionalEvent(NonFunctionalEventImporter extends NonFunctionalEvent, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.NonFunctionalEvent> nonFunctionalEventImporter) {
+ return visitSingleEvent(nonFunctionalEventImporter);
+ }
+
+
+ @Override
+ public Object visitNonFunctionalEventInstance(
+ NonFunctionalEventInstanceImporter extends NonFunctionalEventInstance, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.instance.NonFunctionalEventInstance> nonFunctionalEventInstanceImporter) {
+ return visitEventInstance(nonFunctionalEventInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitScalabilityRule(ScalabilityRuleImporter extends ScalabilityRule, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.ScalabilityRule> scalabilityRuleImporter) {
+ return visitFeature(scalabilityRuleImporter);
+ }
+
+
+ @Override
+ public Object visitAction(ActionImporter extends Action, ? extends fr.softeam.cameldesigner.api.camelcore.standard.namespace.Action> actionImporter) {
+ return visitFeature(actionImporter);
+ }
+
+
+ @Override
+ public Object visitScalingAction(ScalingActionImporter extends ScalingAction, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.namespace.ScalingAction> scalingActionImporter) {
+ return visitAction(scalingActionImporter);
+ }
+
+
+ @Override
+ public Object visitSingleEvent(SingleEventImporter extends SingleEvent, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.SingleEvent> singleEventImporter) {
+ return visitEvent(singleEventImporter);
+ }
+
+
+ @Override
+ public Object visitTimer(TimerImporter extends Timer, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.Timer> timerImporter) {
+ return visitFeature(timerImporter);
+ }
+
+
+ @Override
+ public Object visitUnaryEventPattern(UnaryEventPatternImporter extends UnaryEventPattern, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.UnaryEventPattern> unaryEventPatternImporter) {
+ return visitEventPattern(unaryEventPatternImporter);
+ }
+
+
+ @Override
+ public Object visitVerticalScalingAction(VerticalScalingActionImporter extends VerticalScalingAction, ? extends fr.softeam.cameldesigner.api.scalabilitymodel.standard.class_.VerticalScalingAction> verticalScalingActionImporter) {
+ return visitScalingAction(verticalScalingActionImporter);
+ }
+
+
+ @Override
+ public Object visitCertifiable(CertifiableImporter extends Certifiable, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.Certifiable> certifiableImporter) {
+ return visitSecurityAttribute(certifiableImporter);
+ }
+
+
+ @Override
+ public Object visitAttribute(AttributeImporter extends Attribute, ? extends CamelAttribute> attributeImporter) {
+ return visitNamedElement(attributeImporter);
+ }
+
+
+ @Override
+ public Object visitQualityAttribute(QualityAttributeImporter extends QualityAttribute, ? extends CamelAttribute> qualityAttributeImporter) {
+ return visitAttribute(qualityAttributeImporter);
+ }
+
+
+ @Override
+ public Object visitMeasurableAttribute(MeasurableAttributeImporter extends MeasurableAttribute, ? extends CamelAttribute> measurableAttributeImporter) {
+ return visitQualityAttribute(measurableAttributeImporter);
+ }
+
+
+ @Override
+ public Object visitSecurityAttribute(SecurityAttributeImporter extends SecurityAttribute, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityAttribute> securityAttributeImporter) {
+ return visitQualityAttribute(securityAttributeImporter);
+ }
+
+
+ @Override
+ public Object visitCompositeSecurityMetric(CompositeSecurityMetricImporter extends CompositeSecurityMetric, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.CompositeSecurityMetric> compositeSecurityMetricImporter) {
+ return visitCompositeMetric(compositeSecurityMetricImporter);
+ }
+
+
+ @Override
+ public Object visitRawSecurityMetric(RawSecurityMetricImporter extends RawSecurityMetric, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.RawSecurityMetric> rawSecurityMetricImporter) {
+ return visitRawMetric(rawSecurityMetricImporter);
+ }
+
+
+ @Override
+ public Object visitSecurityControl(SecurityControlImporter extends SecurityControl, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityControl> securityControlImporter) {
+ return visitFeature(securityControlImporter);
+ }
+
+
+ @Override
+ public Object visitSecurityDomain(SecurityDomainImporter extends SecurityDomain, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecurityDomain> securityDomainImporter) {
+ return visitFeature(securityDomainImporter);
+ }
+
+
+ @Override
+ public Object visitSecurityMetricInstance(SecurityMetricInstanceImporter extends SecurityMetricInstance, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.instance.SecurityMetricInstance> securityMetricInstanceImporter) {
+ return visitMetricInstance(securityMetricInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitSecurityModel(SecurityModelImporter extends SecurityModel, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.package_.SecurityModel> securityModelImporter) {
+ return visitModel(securityModelImporter);
+ }
+
+
+ @Override
+ public Object visitSecuritySLO(SecuritySLOImporter extends SecuritySLO, ? extends fr.softeam.cameldesigner.api.securitymodel.standard.class_.SecuritySLO> securitySLOImporter) {
+ return visitServiceLevelObjective(securitySLOImporter);
+ }
+
+
+ @Override
+ public Object visitProvidedCommunication(ProvidedCommunicationImporter extends ProvidedCommunication, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort> providedCommunicationImporter) {
+ return visitCommunicationPort(providedCommunicationImporter);
+ }
+
+ @Override
+ public Object visitProvidedCommunicationInstance(ProvidedCommunicationInstanceImporter extends ProvidedCommunicationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance> providedCommunicationInstanceImporter) {
+ return visitCommunicationPortInstance(providedCommunicationInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitProvidedHost(ProvidedHostImporter extends ProvidedHost, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort> providedHostImporter) {
+ return visitHostingPort(providedHostImporter);
+ }
+
+ @Override
+ public Object visitProvidedHostInstance(ProvidedHostInstanceImporter extends ProvidedHostInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance> providedHostInstanceImporter) {
+ return visitHostingPortInstance(providedHostInstanceImporter);
+ }
+
+
+ @Override
+ public Object visitRequiredCommunication(RequiredCommunicationImporter extends RequiredCommunication, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort> requiredCommunicationImporter) {
+ return visitCommunicationPort(requiredCommunicationImporter);
+ }
+
+ @Override
+ public Object visitRequiredCommunicationInstance(RequiredCommunicationInstanceImporter extends RequiredCommunicationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance> requiredCommunicationInstanceImporter) {
+ return visitCommunicationPortInstance(requiredCommunicationInstanceImporter);
+ }
+
+ @Override
+ public Object visitRequiredHost(RequiredHostImporter extends RequiredHost, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort> requiredHostImporter) {
+ return visitHostingPort(requiredHostImporter);
+ }
+
+ @Override
+ public Object visitRequiredHostInstance(RequiredHostInstanceImporter extends RequiredHostInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance> requiredHostInstanceImporter) {
+ return visitHostingPortInstance(requiredHostInstanceImporter);
+ }
+
+ @Override
+ public Object visitCompositeUnit(CompositeUnitImporter extends CompositeUnit, ? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.CompositeUnit> compositeUnitImporter) {
+ return visitDimensionedUnit(compositeUnitImporter);
+ }
+
+
+ @Override
+ public Object visitDimensionedUnit(DimensionedUnitImporter extends DimensionedUnit, ? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.DimensionedUnit> dimensionedUnitImporter) {
+ return visitUnit(dimensionedUnitImporter);
+ }
+
+
+ @Override
+ public Object visitDimensionless(DimensionlessImporter extends Dimensionless, ? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Dimensionless> dimensionlessImporter) {
+ return visitUnit(dimensionlessImporter);
+ }
+
+
+ @Override
+ public Object visitSingleUnit(SingleUnitImporter extends SingleUnit, ? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.SingleUnit> singleUnitImporter) {
+ return visitDimensionedUnit(singleUnitImporter);
+ }
+
+
+ @Override
+ public Object visitUnitDimension(UnitDimensionImporter extends UnitDimension, ? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.UnitDimension> unitDimensionImporter) {
+ return visitFeature(unitDimensionImporter);
+ }
+
+
+ @Override
+ public Object visitUnit(UnitImporter extends Unit, ? extends fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Unit> unitImporter) {
+ return visitFeature(unitImporter);
+ }
+
+
+ @Override
+ public Object visitUnitModel(UnitModelImporter extends UnitModel, ? extends fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel> unitModelImporter) {
+ return visitModel(unitModelImporter);
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelImporterVisitor.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelImporterVisitor.java
index a56c080a..9506f25a 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelImporterVisitor.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelImporterVisitor.java
@@ -1,8 +1,11 @@
package fr.softeam.cameldesigner.exchange.importer;
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.cdo.CDOObject;
import camel.constraint.AttributeConstraint;
import camel.constraint.CompositeConstraint;
import camel.constraint.Constraint;
+import camel.constraint.ConstraintModel;
import camel.constraint.IfThenConstraint;
import camel.constraint.LogicalConstraint;
import camel.constraint.MetricConstraint;
@@ -26,28 +29,43 @@
import camel.deployment.BuildConfiguration;
import camel.deployment.ClusterConfiguration;
import camel.deployment.Communication;
+import camel.deployment.CommunicationInstance;
import camel.deployment.CommunicationPort;
+import camel.deployment.CommunicationPortInstance;
import camel.deployment.Component;
+import camel.deployment.ComponentInstance;
import camel.deployment.ComponentRelation;
+import camel.deployment.ComponentRelationInstance;
import camel.deployment.Configuration;
import camel.deployment.Container;
+import camel.deployment.ContainerInstance;
+import camel.deployment.DeploymentInstanceModel;
import camel.deployment.DeploymentModel;
import camel.deployment.DeploymentTypeModel;
import camel.deployment.EventConfiguration;
import camel.deployment.Hosting;
+import camel.deployment.HostingInstance;
import camel.deployment.HostingPort;
+import camel.deployment.HostingPortInstance;
import camel.deployment.LocationCoupling;
import camel.deployment.PaaS;
import camel.deployment.PaaSConfiguration;
+import camel.deployment.PaaSInstance;
import camel.deployment.ProvidedCommunication;
+import camel.deployment.ProvidedCommunicationInstance;
import camel.deployment.ProvidedHost;
+import camel.deployment.ProvidedHostInstance;
import camel.deployment.RequiredCommunication;
+import camel.deployment.RequiredCommunicationInstance;
import camel.deployment.RequiredHost;
+import camel.deployment.RequiredHostInstance;
import camel.deployment.RequirementSet;
import camel.deployment.ScriptConfiguration;
import camel.deployment.ServerlessConfiguration;
import camel.deployment.SoftwareComponent;
+import camel.deployment.SoftwareComponentInstance;
import camel.deployment.VM;
+import camel.deployment.VMInstance;
import camel.execution.ActionInstance;
import camel.execution.ApplicationMeasurement;
import camel.execution.Cause;
@@ -158,7 +176,6 @@
import camel.unit.Unit;
import camel.unit.UnitDimension;
import camel.unit.UnitModel;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.api.camelcore.standard.package_.SubModel;
import fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.CamelConstraint;
@@ -166,6 +183,7 @@
import fr.softeam.cameldesigner.exchange.importer.constraint.AttributeConstraintImporter;
import fr.softeam.cameldesigner.exchange.importer.constraint.CamelConstraintImporter;
import fr.softeam.cameldesigner.exchange.importer.constraint.CompositeConstraintImporter;
+import fr.softeam.cameldesigner.exchange.importer.constraint.ConstraintModelImporter;
import fr.softeam.cameldesigner.exchange.importer.constraint.IfThenConstraintImporter;
import fr.softeam.cameldesigner.exchange.importer.constraint.LogicalConstraintImporter;
import fr.softeam.cameldesigner.exchange.importer.constraint.MetricConstraintImporter;
@@ -188,10 +206,10 @@
import fr.softeam.cameldesigner.exchange.importer.data.DataSourceInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.data.DataTypeModelImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.BuildConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.CamelComponentImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ClusterConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationPortImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.ComponentImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ComponentRelationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ContainerImporter;
@@ -207,11 +225,26 @@
import fr.softeam.cameldesigner.exchange.importer.deployment.ProvidedHostImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredCommunicationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredHostImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredSetImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.RequirementSetImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ScriptConfiguationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ServerlessConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.SoftwareComponentImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.VMImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.CommunicationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.CommunicationPortInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ComponentInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ComponentRelationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ContainerInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.DeploymentInstanceModelImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.HostingInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.HostingPortInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.PaaSInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ProvidedCommunicationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.ProvidedHostInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.RequiredCommunicationInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.RequiredHostInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.SoftwareComponentInstanceImporter;
+import fr.softeam.cameldesigner.exchange.importer.deploymentinstance.VMInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.execution.ActionInstanceImporter;
import fr.softeam.cameldesigner.exchange.importer.execution.ApplicationMeasurementImporter;
import fr.softeam.cameldesigner.exchange.importer.execution.CauseImporter;
@@ -322,7 +355,6 @@
import fr.softeam.cameldesigner.exchange.importer.unit.UnitDimensionImporter;
import fr.softeam.cameldesigner.exchange.importer.unit.UnitImporter;
import fr.softeam.cameldesigner.exchange.importer.unit.UnitModelImporter;
-import org.eclipse.emf.cdo.CDOObject;
@objid ("40dfef3a-d77a-41ba-9c83-39058a242b09")
public interface ICamelImporterVisitor {
@@ -489,7 +521,7 @@ public interface ICamelImporterVisitor {
Object visitPaaS(PaaSImporter extends PaaS,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS> paaSImporter);
@objid ("4aab6751-6e87-4d25-b67b-2f7d62273f3f")
- Object visitRequiredSet(RequiredSetImporter extends RequirementSet,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet> requiredSetImporter);
+ Object visitRequirementSet(RequirementSetImporter extends RequirementSet, ? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet> requiredSetImporter);
@objid ("bd305f9b-5b70-4323-ba1e-bf404c770b9b")
Object visitScriptConfiguration(ScriptConfiguationImporter extends ScriptConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration> scriptConfiguationImporter);
@@ -801,6 +833,43 @@ public interface ICamelImporterVisitor {
Object visitUnitModel(UnitModelImporter extends UnitModel,? extends fr.softeam.cameldesigner.api.unitmodel.standard.package_.UnitModel> unitModelImporter);
@objid ("c2198aa2-5cd9-400b-a4d4-2c30d86ec2e3")
- Object visitCamelComponent(CamelComponentImporter extends Component,? extends CamelComponent> camelComponent);
+ Object visitCamelComponent(ComponentImporter extends Component,? extends CamelComponent> camelComponent);
+
+ Object visitDeploymentInstanceModel(DeploymentInstanceModelImporter extends DeploymentInstanceModel, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.package_.DeploymentInstanceModel> deploymentInstanceModelImporter);
+
+ Object visitComponent(ComponentImporter extends Component, ? extends CamelComponent> component);
+
+ Object visitComponentInstance(ComponentInstanceImporter extends ComponentInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ComponentInstance> componentInstance);
+
+ Object visitSoftwareComponentInstance(SoftwareComponentInstanceImporter extends SoftwareComponentInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.SoftwareComponentInstance> softwareComponentInstance);
+
+ Object visitVMInstance(VMInstanceImporter extends VMInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.VMInstance> vmInstance);
+
+ Object visitComponentRelationInstance(ComponentRelationInstanceImporter extends ComponentRelationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.ComponentRelationInstance> componentRelationInstance);
+
+ Object visitCommunicationInstance(CommunicationInstanceImporter extends CommunicationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.CommunicationInstance> communicationInstance);
+
+ Object visitCommunicationPortInstance(CommunicationPortInstanceImporter extends CommunicationPortInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance> communicationPortInstance);
+
+ Object visitProvidedCommunicationInstance(
+ ProvidedCommunicationInstanceImporter extends ProvidedCommunicationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance> providedCommunicationInstanceImporter);
+
+ Object visitRequiredCommunicationInstance(
+ RequiredCommunicationInstanceImporter extends RequiredCommunicationInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.CommunicationPortInstance> requiredCommunicationInstanceImporter);
+
+ Object visitHostingInstance(HostingInstanceImporter extends HostingInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.connector.HostingInstance> hostingInstance);
+
+ Object visitHostingPortInstance(HostingPortInstanceImporter extends HostingPortInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance> hostingPortInstance);
+
+ Object visitProvidedHostInstance(ProvidedHostInstanceImporter extends ProvidedHostInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance> providedHostInstanceImporter);
+
+ Object visitRequiredHostInstance(RequiredHostInstanceImporter extends RequiredHostInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.port.HostingPortInstance> requiredHostInstanceImporter);
+
+ Object visitContainerInstance(ContainerInstanceImporter extends ContainerInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.ContainerInstance> containerInstance);
+
+ Object visitPaaSInstance(PaaSInstanceImporter extends PaaSInstance, ? extends fr.softeam.cameldesigner.api.deploymentinstancemodel.standard.instance.PaaSInstance> paaSInstance);
+
+ Object visitConstraintModel(ConstraintModelImporter extends ConstraintModel, ? extends fr.softeam.cameldesigner.api.constraintmodel.standard.package_.ConstraintModel> constraintModelImporter);
+
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelVisitor.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelVisitor.java
deleted file mode 100644
index 32568945..00000000
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ICamelVisitor.java
+++ /dev/null
@@ -1,192 +0,0 @@
-package fr.softeam.cameldesigner.exchange.importer;
-
-import camel.core.CamelModel;
-import camel.core.Feature;
-import camel.core.Model;
-import camel.core.NamedElement;
-import camel.deployment.BuildConfiguration;
-import camel.deployment.ClusterConfiguration;
-import camel.deployment.Communication;
-import camel.deployment.CommunicationPort;
-import camel.deployment.ComponentRelation;
-import camel.deployment.Configuration;
-import camel.deployment.Container;
-import camel.deployment.DeploymentModel;
-import camel.deployment.DeploymentTypeModel;
-import camel.deployment.EventConfiguration;
-import camel.deployment.Hosting;
-import camel.deployment.HostingPort;
-import camel.deployment.LocationCoupling;
-import camel.deployment.PaaS;
-import camel.deployment.PaaSConfiguration;
-import camel.deployment.RequirementSet;
-import camel.deployment.ScriptConfiguration;
-import camel.deployment.SoftwareComponent;
-import camel.deployment.VM;
-import camel.mms.MetaDataModel;
-import camel.mms.MmsConcept;
-import camel.mms.MmsObject;
-import camel.organisation.CloudCredentials;
-import camel.organisation.CloudProvider;
-import camel.organisation.Credentials;
-import camel.organisation.DataResourceFilter;
-import camel.organisation.Entity;
-import camel.organisation.ExternalIdentifier;
-import camel.organisation.ModelResourceFilter;
-import camel.organisation.Organisation;
-import camel.organisation.OrganisationModel;
-import camel.organisation.Permission;
-import camel.organisation.PlatformCredentials;
-import camel.organisation.ResourceFilter;
-import camel.organisation.Role;
-import camel.organisation.RoleAssignment;
-import camel.organisation.ServiceResourceFilter;
-import camel.organisation.SoftwareComponentResourceFilter;
-import camel.organisation.User;
-import camel.organisation.UserGroup;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import org.eclipse.emf.cdo.CDOObject;
-
-@objid ("a8b19413-363c-45c2-b062-781347a5179f")
-public interface ICamelVisitor {
- @objid ("47b2b7ac-40ff-403f-a428-5d50daef663b")
- Object visitFeature(Feature feature);
-
- @objid ("f62b36a3-8219-495d-b0a2-c7d5fa08ff18")
- Object visitCamelModel(CamelModel camelModel);
-
-// METADA
- @objid ("8d04ac43-9de3-4004-97ae-bbaadb48aa8b")
- Object visitMetaDataModel(MetaDataModel metaDataModel);
-
- @objid ("fe6417ad-2239-40c2-b19a-a787367e2b55")
- Object visitMmsConcept(MmsConcept mmsConcept);
-
- @objid ("78535d51-26aa-44b0-b3d9-bb6a0ebf53f0")
- Object visitMmsObject(MmsObject mmsObject);
-
- @objid ("43faa31c-f7cd-4f1f-8a0c-7829130cf68c")
- Object visitModel(Model model);
-
- @objid ("206112f4-6089-4bfc-ab1d-03f9b3f57f84")
- Object visitNamedElement(NamedElement namedElement);
-
- @objid ("84bb23e0-7ca5-4e7d-823b-a5e28d32efa6")
- Object visitCDOObject(CDOObject object);
-
-// DEPLOYMENT
- @objid ("d772d420-30ab-4feb-8567-fc9b92028802")
- Object visitBuildConfiguration(BuildConfiguration buildconfiguration);
-
- @objid ("d5a7294a-458f-4e1e-b8b8-26628154e7b2")
- Object visitClusterConfiguration(ClusterConfiguration clusterconfiguration);
-
- @objid ("56deafdb-4ff7-4e72-b3a2-0f7d2ac42133")
- Object visitCommunication(Communication communication);
-
- @objid ("6f8ee056-fbd8-4ef9-890f-5dfe8b1d15fb")
- Object visitCommunicationPort(CommunicationPort communicationPort);
-
- @objid ("8af4dfed-2419-4d78-b5df-f3b18cf530a5")
- Object visitComponentRelation(ComponentRelation componentRelation);
-
- @objid ("98abb93c-3b2c-4e54-b8ca-3c1ebe5d9f08")
- Object visitConfiguration(Configuration configuration);
-
- @objid ("f8bc9101-65cc-4fe2-9c63-f56eaabe39b5")
- Object visitContainer(Container container);
-
- @objid ("86d97e60-71b9-4fec-9348-2dba9718cf87")
- Object visitDeploymentModel(DeploymentModel deploymentModel);
-
- @objid ("84fad5d9-580e-4a5b-9e6f-f695ae34e4d4")
- Object visitDeploymentTypeModel(DeploymentTypeModel deploymentTypeModel);
-
- @objid ("e9c3a78e-d871-49a8-8c00-e5f8a42e27ad")
- Object visitEventConfiguration(EventConfiguration eventConfiguration);
-
- @objid ("219041cb-27d6-4399-bf9b-fa3b588208b3")
- Object visitHosting(Hosting hosting);
-
- @objid ("60394b84-30c2-4aad-bfa6-689820414af7")
- Object visitHostingPort(HostingPort hostingPort);
-
- @objid ("1c359770-e620-4d78-8c86-d70555f042a8")
- Object visitLocationCoupling(LocationCoupling locationCoupling);
-
- @objid ("d66dd5b5-c8bc-4a50-8163-d84ede7cb32b")
- Object visitPaaSConfiguration(PaaSConfiguration paaSConfiguration);
-
- @objid ("11476b2d-bfc7-4d64-971d-4f7f8f9aa399")
- Object visitPaaS(PaaS paaS);
-
- @objid ("7d9867f0-ed73-43bb-a7fd-ee0431591158")
- Object visitRequiredSet(RequirementSet requiredSet);
-
- @objid ("0d7c11e3-2675-4e27-a3a0-15e261c5ed5f")
- Object visitScriptConfiguration(ScriptConfiguration scriptConfiguration);
-
- @objid ("f89bb525-8604-4a4a-9913-b3053f86b58a")
- Object visitSoftwareComponent(SoftwareComponent softwareComponent);
-
- @objid ("53a5d859-dee2-474f-8e65-6deb35e7b6af")
- Object visitVM(VM vm);
-
-// ORGANISATION
- @objid ("a7ef7f78-deaf-4646-946e-b6b53af3cb3f")
- Object visitCloudCredentials(CloudCredentials cloudCredentials);
-
- @objid ("b9db4964-711e-42b8-bcda-0adfef7f134d")
- Object visitCloudProvider(CloudProvider cloudProvider);
-
- @objid ("597509d1-b9ad-405e-b6ec-e735e1b2be90")
- Object visitCrendetials(Credentials credentials);
-
- @objid ("f588df64-4da7-46fd-a5f9-02344e5b6c4a")
- Object visitDataResourceFilter(DataResourceFilter dataResourceFilter);
-
- @objid ("9614834d-d3b3-4e9f-9d43-c8e93c38b0be")
- Object visitEntity(Entity entity);
-
- @objid ("cd2286f8-694d-4c62-850e-0bfec654f29d")
- Object visitExternalIdentifier(ExternalIdentifier externalIdentifier);
-
- @objid ("4c3a3bff-093c-4d55-9539-4d73a92625bb")
- Object visitModelResourceFilter(ModelResourceFilter modelResourceFilter);
-
- @objid ("bb2fa037-01ce-43fa-b6c1-abc092c0a7d5")
- Object visitOrganisation(Organisation organisation);
-
- @objid ("9cd30c98-e1ae-49c8-9cff-4f7d67f8772c")
- Object visitOrganisationModel(OrganisationModel organisationModel);
-
- @objid ("c6a39a2c-1894-4c30-999a-097ad3f71e15")
- Object visitPermission(Permission permission);
-
- @objid ("9739eea8-1717-4453-b99b-2569c9776b55")
- Object visitPlatformCredentials(PlatformCredentials platformCredentials);
-
- @objid ("48e38888-7e1d-4d34-8390-b624b5f101bc")
- Object visitResourceFilter(ResourceFilter resourceFilter);
-
- @objid ("02ac7f6f-3775-4ea3-8043-3ba136bef4e8")
- Object visitRoleAssignment(RoleAssignment roleAssignement);
-
- @objid ("0a114e28-e0a1-4bb3-b5e0-5765b90bc2d8")
- Object visitRole(Role role);
-
- @objid ("8df884b1-1ae4-4f83-a3e2-21a6b8ee067c")
- Object visitServiceResourceFilter(ServiceResourceFilter serviceResourceFilter);
-
- @objid ("3cbffcd5-8390-404e-b4c0-459aa8326308")
- Object visitSoftwareComponentResourceFilter(SoftwareComponentResourceFilter softwareComponentResourceFilter);
-
- @objid ("546296c1-0781-46e0-86ce-d61ff8ce16c7")
- Object visitUserGroup(UserGroup userGroup);
-
- @objid ("ebd261ab-46ef-4aaa-8199-87618dc3ced3")
- Object visitUser(User user);
-
-
-// Object visit();
-}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/IDefaultCamelVisitor.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/IDefaultCamelVisitor.java
deleted file mode 100644
index a373615b..00000000
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/IDefaultCamelVisitor.java
+++ /dev/null
@@ -1,350 +0,0 @@
-package fr.softeam.cameldesigner.exchange.importer;
-
-import java.util.ArrayList;
-import java.util.List;
-import camel.core.CamelModel;
-import camel.core.Feature;
-import camel.core.Model;
-import camel.core.NamedElement;
-import camel.deployment.BuildConfiguration;
-import camel.deployment.ClusterConfiguration;
-import camel.deployment.Communication;
-import camel.deployment.CommunicationPort;
-import camel.deployment.ComponentRelation;
-import camel.deployment.Configuration;
-import camel.deployment.Container;
-import camel.deployment.DeploymentModel;
-import camel.deployment.DeploymentTypeModel;
-import camel.deployment.EventConfiguration;
-import camel.deployment.Hosting;
-import camel.deployment.HostingPort;
-import camel.deployment.LocationCoupling;
-import camel.deployment.PaaS;
-import camel.deployment.PaaSConfiguration;
-import camel.deployment.RequirementSet;
-import camel.deployment.ScriptConfiguration;
-import camel.deployment.ServerlessConfiguration;
-import camel.deployment.SoftwareComponent;
-import camel.deployment.VM;
-import camel.mms.MetaDataModel;
-import camel.mms.MmsConcept;
-import camel.mms.MmsObject;
-import camel.organisation.CloudCredentials;
-import camel.organisation.CloudProvider;
-import camel.organisation.Credentials;
-import camel.organisation.DataResourceFilter;
-import camel.organisation.Entity;
-import camel.organisation.ExternalIdentifier;
-import camel.organisation.ModelResourceFilter;
-import camel.organisation.Organisation;
-import camel.organisation.OrganisationModel;
-import camel.organisation.Permission;
-import camel.organisation.PlatformCredentials;
-import camel.organisation.ResourceFilter;
-import camel.organisation.Role;
-import camel.organisation.RoleAssignment;
-import camel.organisation.ServiceResourceFilter;
-import camel.organisation.SoftwareComponentResourceFilter;
-import camel.organisation.User;
-import camel.organisation.UserGroup;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
-import fr.softeam.cameldesigner.api.camelcore.standard.package_.SubModel;
-import fr.softeam.cameldesigner.api.deploymentmodel.standard.component.CamelComponent;
-import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter;
-import fr.softeam.cameldesigner.exchange.importer.core.CamelModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.core.FeatureImporter;
-import fr.softeam.cameldesigner.exchange.importer.core.NamedElementImporter;
-import fr.softeam.cameldesigner.exchange.importer.core.SubModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.BuildConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.CamelComponentImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ClusterConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationPortImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ComponentRelationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ContainerImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.DeploymentModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.DeploymentTypeModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.EventConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.HostingImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.HostingPortImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.LocationCouplingImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.PaaSConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.PaaSImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredSetImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ScriptConfiguationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.ServerlessConfigurationImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.SoftwareComponentImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.VMImporter;
-import fr.softeam.cameldesigner.exchange.importer.metadata.MetaDataModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptImporter;
-import fr.softeam.cameldesigner.exchange.importer.metadata.MmsObjectImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.CloudCredentialsImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.CloudProviderImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.CredentialsImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.DataResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.EntityImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ExternalIdentifierImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ModelResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.OrganisationImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.OrganisationModelImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.PermissionImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.PlatformCredentialsImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.RoleAssignmentImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.RoleImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.ServiceResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.SoftwareComponentResourceFilterImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.UserGroupImporter;
-import fr.softeam.cameldesigner.exchange.importer.organisation.UserImporter;
-import org.eclipse.emf.cdo.CDOObject;
-
-@objid ("95d27772-cd96-4ee0-9c20-5c6b05231e69")
-public interface IDefaultCamelVisitor extends ICamelImporterVisitor {
- @objid ("d8679bed-cac7-448a-a256-4116c2c3fca0")
- @Override
- default Object visitFeature(FeatureImporter extends Feature,? extends fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.Feature> feature) {
- return visitNamedElement(feature);
- }
-
- @objid ("413623cd-f194-47d4-b365-88cf49900c0b")
- @Override
- default Object visitCamelElement(CamelElementImporter extends CDOObject,? extends CamelElement> camelElt) {
- return null;
- }
-
- @objid ("c4ae23ff-147f-45b2-8152-4eaace3f3df2")
- @Override
- default Object visitCamelModel(CamelModelImporter extends CamelModel,? extends SubModel> camelModel) {
- return visitModel(camelModel);
- }
-
- @objid ("87331245-7ea6-4eff-9417-7fa2cefc4a8b")
- @Override
- default Object visitMetaDataModel(MetaDataModelImporter extends MetaDataModel,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.package_.MetaDataModel> metaDataModel) {
- return visitModel(metaDataModel);
- }
-
- @objid ("de3712b3-db3c-45de-bf38-272cd41fed53")
- @Override
- default Object visitMmsConcept(MmsConceptImporter extends MmsConcept,? extends fr.softeam.cameldesigner.api.metadatamodel.standard.class_.MmsConcept> mmsConcept) {
- return visitMmsObject(mmsConcept);
- }
-
- @objid ("0a5d2736-c4a5-493a-9b38-e8450cfd3784")
- @Override
- default Object visitMmsObject(MmsObjectImporter extends MmsObject,? extends fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject> model) {
- return null;
- }
-
- @objid ("f5b2ba18-24d4-4e9a-a4d0-8d2bcd34be4d")
- @Override
- default Object visitModel(SubModelImporter extends Model,? extends SubModel> model) {
- return visitNamedElement(model);
- }
-
- @objid ("132652c3-4893-4c7e-b78f-d7216ea6e485")
- @Override
- default Object visitNamedElement(NamedElementImporter extends NamedElement,? extends fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.NamedElement> namedElement) {
- return visitCamelElement(namedElement);
- }
-
- @objid ("0f01147e-8f03-4276-be9c-d27b5a5e347b")
- default Object visitBuildConfiguration(BuildConfigurationImporter extends BuildConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.BuildConfiguration> buildConfiguration) {
- return visitCamelElement(buildConfiguration);
- }
-
- @objid ("3257ad53-339f-42f8-838b-a8ad781c1a79")
- default Object visitClusterConfiguration(ClusterConfigurationImporter extends ClusterConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ClusterConfiguration> clusterConfiguration) {
- return visitCamelElement(clusterConfiguration);
- }
-
- @objid ("88124796-21dd-4a6f-ae48-541771d39cbe")
- default Object visitCommunication(CommunicationImporter extends Communication,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Communication> communication) {
- return visitCamelElement(communication);
- }
-
- @objid ("5cea5ae0-01da-452f-ac36-489f2d5f415e")
- default Object visitCommunicationPort(CommunicationPortImporter extends CommunicationPort,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.CommunicationPort> communicationPort) {
- return visitCamelElement(communicationPort);
- }
-
- @objid ("1e92e900-839b-461b-8419-2a71be792b63")
- default Object visitComponentRelation(ComponentRelationImporter extends ComponentRelation,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.ComponentRelation> componentRelation) {
- return visitCamelElement(componentRelation);
- }
-
- @objid ("f8a10354-e4f8-4cf2-82b1-588b3b6fd840")
- default Object visitConfiguration(ConfigurationImporter extends Configuration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.Configuration> configuration) {
- return visitCamelElement(configuration);
- }
-
- @objid ("75d5e858-3034-4bfc-a346-6a52a9136fb3")
- default Object visitContainer(ContainerImporter extends Container,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.Container> container) {
- return visitCamelElement(container);
- }
-
- @objid ("8eda5b81-c101-43be-ae6c-927788075af8")
- default Object visitDeploymentModel(DeploymentModelImporter extends DeploymentModel,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentModel> deploymentModel) {
- return visitCamelElement(deploymentModel);
- }
-
- @objid ("25fd6ae8-49e5-45b5-a47c-a1055e8baddd")
- default Object visitDeploymentTypeModel(DeploymentTypeModelImporter extends DeploymentTypeModel,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel> deploymentTypeModel) {
- return visitCamelElement(deploymentTypeModel);
- }
-
- @objid ("54071317-4964-4f18-b8b7-46d5b382c605")
- default Object visitEventConfiguration(EventConfigurationImporter extends EventConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.EventConfiguration> eventConfiguration) {
- return visitCamelElement(eventConfiguration);
- }
-
- @objid ("c9ff54ce-dea8-43fa-af7b-2a9acde345a4")
- default Object visitHosting(HostingImporter extends Hosting,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.Hosting> hosting) {
- return visitCamelElement(hosting);
- }
-
- @objid ("a534a553-02ac-4348-927e-bf97f7ea8e48")
- default Object visitHostingPort(HostingPortImporter extends HostingPort,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort> hostingPort) {
- return visitCamelElement(hostingPort);
- }
-
- @objid ("33c61d2f-42a4-46c2-8b1f-64296bc64293")
- default Object visitLocationCoupling(LocationCouplingImporter extends LocationCoupling,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.connector.LocationCoupling> locationCoupling) {
- return visitCamelElement(locationCoupling);
- }
-
- @objid ("f37dc69a-c835-4533-b5ce-1c8ff49d4e82")
- default Object visitPaaSConfiguration(PaaSConfigurationImporter extends PaaSConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.PaaSConfiguration> paaSConfiguration) {
- return visitCamelElement(paaSConfiguration);
- }
-
- @objid ("f907aba2-0c14-496a-9044-151417f16ac1")
- default Object visitPaaS(PaaSImporter extends PaaS,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.PaaS> paaS) {
- return visitCamelElement(paaS);
- }
-
- @objid ("56730380-d4f9-4769-ac0f-0c18d432d074")
- default Object visitRequiredSet(RequiredSetImporter extends RequirementSet,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.class_.RequirementSet> requiredSet) {
- return visitCamelElement(requiredSet);
- }
-
- @objid ("3967de87-1b7f-4c64-bdc1-b0a0750d6469")
- default Object visitScriptConfiguration(ScriptConfiguationImporter extends ScriptConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ScriptConfiguration> scriptConfiguration) {
- return visitCamelElement(scriptConfiguration);
- }
-
- @objid ("18b193b1-48c1-44bf-8588-c9e63f71ad98")
- default Object visitServelessConfiguration(ServerlessConfigurationImporter extends ServerlessConfiguration,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.artifact.ServerlessConfiguration> serverlessConfiguration) {
- return visitCamelElement(serverlessConfiguration);
- }
-
- @objid ("b1395825-c4c2-494b-952b-29604e72389b")
- default Object visitSoftwareComponent(SoftwareComponentImporter extends SoftwareComponent,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.SoftwareComponent> softwareComponent) {
- return visitCamelElement(softwareComponent);
- }
-
- @objid ("61ad82e3-06d2-4f32-814a-56f1c4bfd5e5")
- default Object visitVM(VMImporter extends VM,? extends fr.softeam.cameldesigner.api.deploymentmodel.standard.component.VM> vm) {
- return visitCamelElement(vm);
- }
-
-//ORGANISATION
- @objid ("b2d80c9b-ccda-4ad0-b46c-99f92d49c46f")
- default Object visitCloudCredentials(CloudCredentialsImporter extends CloudCredentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudCredentials> cloudCredentials) {
- return visitCamelElement(cloudCredentials);
- }
-
- @objid ("907d8cfe-f118-4e5d-9374-bd80b4b630ff")
- default Object visitCloudProvider(CloudProviderImporter extends CloudProvider,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.CloudProvider> cloudProvider) {
- return visitCamelElement(cloudProvider);
- }
-
- @objid ("def6b337-21a4-4e3a-8754-7194ad2ca9d0")
- default Object visitCredentials(CredentialsImporter extends Credentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Credentials> credentials) {
- return visitCamelElement(credentials);
- }
-
- @objid ("2c78755e-b383-4976-9f33-c7eb80efd094")
- default Object visitDataResourceFilter(DataResourceFilterImporter extends DataResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.DataResourceFilter> dataResourceFilter) {
- return visitCamelElement(dataResourceFilter);
- }
-
- @objid ("99bd1574-23b1-460b-a609-0819f4517639")
- default Object visitEntity(EntityImporter extends Entity,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Entity> entity) {
- return visitCamelElement(entity);
- }
-
- @objid ("bee8f609-086a-4340-8d70-5ca2a7e7ec0e")
- default Object visitExternalIdentifier(ExternalIdentifierImporter extends ExternalIdentifier,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ExternalIdentifier> externalIdentifier) {
- return visitCamelElement(externalIdentifier);
- }
-
- @objid ("a8748b8c-6196-4b51-bc7e-e4905e6a7542")
- default Object visitModelResourceFilter(ModelResourceFilterImporter extends ModelResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ModelResourceFilter> modelResourceFilter) {
- return visitCamelElement(modelResourceFilter);
- }
-
- @objid ("4c4be9e8-1e89-42e9-acb7-0fc58aea1906")
- default Object visitOrganisation(OrganisationImporter extends Organisation,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Organisation> organisation) {
- return visitCamelElement(organisation);
- }
-
- @objid ("2e42428e-9edb-4fa9-953b-3e14ae7d5c16")
- default Object visitOrganisationModel(OrganisationModelImporter extends OrganisationModel,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.package_.OrganisationModel> organisationModel) {
- return visitCamelElement(organisationModel);
- }
-
- @objid ("c1d1ad4c-ec1a-4555-ad85-3ee796a956fc")
- default Object visitPermission(PermissionImporter extends Permission,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Permission> permission) {
- return visitCamelElement(permission);
- }
-
- @objid ("f5c08e57-910e-486d-8e6a-4fd0984f7a55")
- default Object visitPlatformCredentials(PlatformCredentialsImporter extends PlatformCredentials,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.PlatformCredentials> platformCredentials) {
- return visitCamelElement(platformCredentials);
- }
-
- @objid ("e1184071-6904-4c37-9a71-c0d22d7a7f2f")
- default Object visitResourceFilter(ResourceFilterImporter extends ResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ResourceFilter> resourceFilter) {
- return visitCamelElement(resourceFilter);
- }
-
- @objid ("93bbfb83-7c17-415f-9f84-9cf2ff6763ce")
- default Object visitRoleAssignment(RoleAssignmentImporter extends RoleAssignment,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.RoleAssignment> roleAssignment) {
- return visitCamelElement(roleAssignment);
- }
-
- @objid ("712d91ed-1be9-4dd8-b28d-4fba06846ef1")
- default Object visitRole(RoleImporter extends Role,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.Role> role) {
- return visitCamelElement(role);
- }
-
- @objid ("887ea456-3e77-4512-b6b0-e6539787cee1")
- default Object visitServiceResourceFilter(ServiceResourceFilterImporter extends ServiceResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.ServiceResourceFilter> serviceResourceFilter) {
- return visitCamelElement(serviceResourceFilter);
- }
-
- @objid ("1d64ffb9-7efc-4543-b543-459a7833eba6")
- default Object visitSoftwareComponentResourceFilter(SoftwareComponentResourceFilterImporter extends SoftwareComponentResourceFilter,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.SoftwareComponentResourceFilter> softwareComponentResourceFilter) {
- return visitCamelElement(softwareComponentResourceFilter);
- }
-
- @objid ("d34c65b6-ebe3-403b-922f-d54ae1009247")
- default Object visitUserGroup(UserGroupImporter extends UserGroup,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.UserGroup> userGroup) {
- return visitCamelElement(userGroup);
- }
-
- @objid ("c89eb05d-4fe3-451a-980c-48b6036f5641")
- default Object visitUser(UserImporter extends User,? extends fr.softeam.cameldesigner.api.organisationmodel.standard.class_.User> user) {
- return visitCamelElement(user);
- }
-
- @objid ("f04657d6-70f1-4198-8ebe-1ea23b9c6f9a")
- @Override
- default Object visitCamelComponent(CamelComponentImporter extends camel.deployment.Component,? extends CamelComponent> camelComponent) {
- return visitCamelElement(camelComponent);
- }
-
-}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java
index afe475a1..952a12ce 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/ImporterFactory.java
@@ -2,8 +2,13 @@
import java.util.HashMap;
import java.util.Map;
+import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.cdo.CDOObject;
+import camel.core.impl.AttributeImpl;
import camel.core.impl.CamelModelImpl;
import camel.core.impl.FeatureImpl;
+import camel.core.impl.MeasurableAttributeImpl;
+import camel.core.impl.QualityAttributeImpl;
import camel.deployment.impl.BuildConfigurationImpl;
import camel.deployment.impl.ClusterConfigurationImpl;
import camel.deployment.impl.CommunicationImpl;
@@ -28,6 +33,10 @@
import camel.deployment.impl.ServerlessConfigurationImpl;
import camel.deployment.impl.SoftwareComponentImpl;
import camel.deployment.impl.VMImpl;
+import camel.location.impl.CloudLocationImpl;
+import camel.location.impl.GeographicalRegionImpl;
+import camel.location.impl.LocationImpl;
+import camel.location.impl.LocationModelImpl;
import camel.metric.impl.AttributeContextImpl;
import camel.metric.impl.CompositeMetricContextImpl;
import camel.metric.impl.CompositeMetricImpl;
@@ -70,7 +79,6 @@
import camel.organisation.impl.SoftwareComponentResourceFilterImpl;
import camel.organisation.impl.UserGroupImpl;
import camel.organisation.impl.UserImpl;
-import camel.requirement.impl.HardRequirementImpl;
import camel.requirement.impl.HorizontalScaleRequirementImpl;
import camel.requirement.impl.ImageRequirementImpl;
import camel.requirement.impl.LocationRequirementImpl;
@@ -82,13 +90,14 @@
import camel.requirement.impl.ResourceRequirementImpl;
import camel.requirement.impl.SecurityRequirementImpl;
import camel.requirement.impl.ServiceLevelObjectiveImpl;
-import camel.requirement.impl.SoftRequirementImpl;
import camel.requirement.impl.VerticalScaleRequirementImpl;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
-import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
+import camel.type.impl.ValueImpl;
+import fr.softeam.cameldesigner.exchange.importer.core.AttributeImporter;
import fr.softeam.cameldesigner.exchange.importer.core.CamelElementImporter;
import fr.softeam.cameldesigner.exchange.importer.core.CamelModelImporter;
import fr.softeam.cameldesigner.exchange.importer.core.FeatureImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.MeasurableAttributeImporter;
+import fr.softeam.cameldesigner.exchange.importer.core.QualityAttributeImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.BuildConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ClusterConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.CommunicationImporter;
@@ -108,11 +117,15 @@
import fr.softeam.cameldesigner.exchange.importer.deployment.ProvidedHostImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredCommunicationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredHostImporter;
-import fr.softeam.cameldesigner.exchange.importer.deployment.RequiredSetImporter;
+import fr.softeam.cameldesigner.exchange.importer.deployment.RequirementSetImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ScriptConfiguationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.ServerlessConfigurationImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.SoftwareComponentImporter;
import fr.softeam.cameldesigner.exchange.importer.deployment.VMImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.CloudLocationImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.GeographicalRegionImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.LocationImporter;
+import fr.softeam.cameldesigner.exchange.importer.location.LocationModelImporter;
import fr.softeam.cameldesigner.exchange.importer.metadata.MetaDataModelImporter;
import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptImporter;
import fr.softeam.cameldesigner.exchange.importer.metadata.MmsConceptInstanceImporter;
@@ -167,7 +180,7 @@
import fr.softeam.cameldesigner.exchange.importer.requirement.SecurityRequirementImporter;
import fr.softeam.cameldesigner.exchange.importer.requirement.ServiceLevelObjectiveImporter;
import fr.softeam.cameldesigner.exchange.importer.requirement.VerticalScaleRequirementImporter;
-import org.eclipse.emf.cdo.CDOObject;
+import fr.softeam.cameldesigner.exchange.importer.type.ValueImporter;
/**
* Factory that instantiates the right importer class for a model element stereotyped by a 'CamelDesigner' module stereotype.
@@ -175,125 +188,141 @@
@objid ("7b18247b-a2c1-4fda-8356-d4b90b2cb9f7")
public class ImporterFactory {
@objid ("c3ea94fe-bede-493a-997a-3217ea1176ee")
- private static Map, CamelElementImporter extends CDOObject,? extends CamelElement>> _factory = new HashMap<>();
+ private static Map, Class>> _factory = new HashMap<>();
@objid ("c8dc8e2d-b3e2-4418-9f8f-ec583df230cd")
public static CamelElementImporter getImporter(CDOObject elt) throws Exception {
if (!_factory.containsKey(elt.getClass())) {
throw new IllegalArgumentException("Missing Element Factory for Type " + elt.getClass());
}
-
- CamelElementImporter importer = _factory.get(elt.getClass());
- importer.setElement(elt);
- return importer;
+
+ Object obj = _factory.get(elt.getClass()).newInstance();
+ if (obj instanceof CamelElementImporter) {
+ CamelElementImporter importer = (CamelElementImporter) obj;
+ importer.setElement(elt);
+ return importer;
+ }
+ return null;
}
static {
+ //CORE
+ _factory.put(CamelModelImpl.class, CamelModelImporter.class);
+ _factory.put(FeatureImpl.class, FeatureImporter.class);
+ _factory.put(AttributeImpl.class, AttributeImporter.class);
+ _factory.put(QualityAttributeImpl.class, QualityAttributeImporter.class);
+ _factory.put(MeasurableAttributeImpl.class, MeasurableAttributeImporter.class);
+
+ // TYPE
+ _factory.put(ValueImpl.class, ValueImporter.class);
+
// METADATA
- _factory.put(CamelModelImpl.class, new CamelModelImporter<>());
- _factory.put(FeatureImpl.class, new FeatureImporter<>());
- _factory.put(MetaDataModelImpl.class, new MetaDataModelImporter<>());
- _factory.put(MmsConceptImpl.class, new MmsConceptImporter<>());
- _factory.put(MmsConceptInstanceImpl.class, new MmsConceptInstanceImporter<>());
- _factory.put(MmsPropertyInstanceImpl.class, new MmsPropertyInstanceImporter<>());
- _factory.put(MmsPropertyImpl.class, new MmsPropertyImporter<>());
+
+ _factory.put(MetaDataModelImpl.class, MetaDataModelImporter.class);
+ _factory.put(MmsConceptImpl.class, MmsConceptImporter.class);
+ _factory.put(MmsConceptInstanceImpl.class, MmsConceptInstanceImporter.class);
+ _factory.put(MmsPropertyInstanceImpl.class, MmsPropertyInstanceImporter.class);
+ _factory.put(MmsPropertyImpl.class, MmsPropertyImporter.class);
// DEPLOYMENT
- _factory.put(BuildConfigurationImpl.class, new BuildConfigurationImporter<>());
- _factory.put(ClusterConfigurationImpl.class, new ClusterConfigurationImporter<>());
- _factory.put(CommunicationImpl.class, new CommunicationImporter<>());
- _factory.put(CommunicationPortImpl.class, new CommunicationPortImporter<>());
- _factory.put(ComponentRelationImpl.class, new ComponentRelationImporter<>());
- _factory.put(ConfigurationImpl.class, new ConfigurationImporter<>());
- _factory.put(ContainerImpl.class, new ContainerImporter<>());
- _factory.put(DeploymentModelImpl.class, new DeploymentModelImporter<>());
- _factory.put(DeploymentTypeModelImpl.class, new DeploymentTypeModelImporter<>());
- _factory.put(EventConfigurationImpl.class, new EventConfigurationImporter<>());
- _factory.put(HostingImpl.class, new HostingImporter<>());
- _factory.put(HostingPortImpl.class, new HostingPortImporter<>());
- _factory.put(LocationCouplingImpl.class, new LocationCouplingImporter<>());
- _factory.put(PaaSConfigurationImpl.class, new PaaSConfigurationImporter<>());
- _factory.put(PaaSImpl.class, new PaaSImporter<>());
- _factory.put(ProvidedCommunicationImpl.class, new ProvidedCommunicationImporter<>());
- _factory.put(ProvidedHostImpl.class, new ProvidedHostImporter<>());
- _factory.put(RequiredCommunicationImpl.class, new RequiredCommunicationImporter<>());
- _factory.put(RequiredHostImpl.class, new RequiredHostImporter<>());
- _factory.put(RequirementSetImpl.class, new RequiredSetImporter<>());
- _factory.put(ScriptConfigurationImpl.class, new ScriptConfiguationImporter<>());
- _factory.put(ServerlessConfigurationImpl.class, new ServerlessConfigurationImporter<>());
- _factory.put(SoftwareComponentImpl.class, new SoftwareComponentImporter<>());
- _factory.put(VMImpl.class, new VMImporter<>());
+ _factory.put(BuildConfigurationImpl.class, BuildConfigurationImporter.class);
+ _factory.put(ClusterConfigurationImpl.class, ClusterConfigurationImporter.class);
+ _factory.put(CommunicationImpl.class, CommunicationImporter.class);
+ _factory.put(CommunicationPortImpl.class, CommunicationPortImporter.class);
+ _factory.put(ComponentRelationImpl.class, ComponentRelationImporter.class);
+ _factory.put(ConfigurationImpl.class, ConfigurationImporter.class);
+ _factory.put(ContainerImpl.class, ContainerImporter.class);
+ _factory.put(DeploymentModelImpl.class, DeploymentModelImporter.class);
+ _factory.put(DeploymentTypeModelImpl.class, DeploymentTypeModelImporter.class);
+ _factory.put(EventConfigurationImpl.class, EventConfigurationImporter.class);
+ _factory.put(HostingImpl.class, HostingImporter.class);
+ _factory.put(HostingPortImpl.class, HostingPortImporter.class);
+ _factory.put(LocationCouplingImpl.class, LocationCouplingImporter.class);
+ _factory.put(PaaSConfigurationImpl.class, PaaSConfigurationImporter.class);
+ _factory.put(PaaSImpl.class, PaaSImporter.class);
+ _factory.put(ProvidedCommunicationImpl.class, ProvidedCommunicationImporter.class);
+ _factory.put(ProvidedHostImpl.class, ProvidedHostImporter.class);
+ _factory.put(RequiredCommunicationImpl.class, RequiredCommunicationImporter.class);
+ _factory.put(RequiredHostImpl.class, RequiredHostImporter.class);
+ _factory.put(RequirementSetImpl.class, RequirementSetImporter.class);
+ _factory.put(ScriptConfigurationImpl.class, ScriptConfiguationImporter.class);
+ _factory.put(ServerlessConfigurationImpl.class, ServerlessConfigurationImporter.class);
+ _factory.put(SoftwareComponentImpl.class, SoftwareComponentImporter.class);
+ _factory.put(VMImpl.class, VMImporter.class);
// REQUIREMENT
- _factory.put(RequirementModelImpl.class, new RequirementModelImporter<>());
- _factory.put(ServiceLevelObjectiveImpl.class, new ServiceLevelObjectiveImporter<>());
- _factory.put(ProviderRequirementImpl.class, new ProviderRequirementImporter<>() );
- _factory.put(OSRequirementImpl.class, new OSRequirementImporter<>());
- _factory.put(SecurityRequirementImpl.class, new SecurityRequirementImporter<>());
- _factory.put(LocationRequirementImpl.class, new LocationRequirementImporter<>());
- _factory.put(ImageRequirementImpl.class, new ImageRequirementImporter<>());
- _factory.put(HorizontalScaleRequirementImpl.class, new HorizontalScaleRequirementImporter<>());
- _factory.put(VerticalScaleRequirementImpl.class, new VerticalScaleRequirementImporter<>() );
- _factory.put(OptimisationRequirementImpl.class, new OptimisationRequirementImporter<>());
- _factory.put(ResourceRequirementImpl.class, new ResourceRequirementImporter<>());
- _factory.put(PaaSRequirementImpl.class, new PaaSRequirementImporter<>());
+ _factory.put(RequirementModelImpl.class, RequirementModelImporter.class);
+ _factory.put(ServiceLevelObjectiveImpl.class, ServiceLevelObjectiveImporter.class);
+ _factory.put(ProviderRequirementImpl.class, ProviderRequirementImporter.class);
+ _factory.put(OSRequirementImpl.class, OSRequirementImporter.class);
+ _factory.put(SecurityRequirementImpl.class, SecurityRequirementImporter.class);
+ _factory.put(LocationRequirementImpl.class, LocationRequirementImporter.class);
+ _factory.put(ImageRequirementImpl.class, ImageRequirementImporter.class);
+ _factory.put(HorizontalScaleRequirementImpl.class, HorizontalScaleRequirementImporter.class);
+ _factory.put(VerticalScaleRequirementImpl.class, VerticalScaleRequirementImporter.class);
+ _factory.put(OptimisationRequirementImpl.class, OptimisationRequirementImporter.class);
+ _factory.put(ResourceRequirementImpl.class, ResourceRequirementImporter.class);
+ _factory.put(PaaSRequirementImpl.class, PaaSRequirementImporter.class);
+
-
// ORGANISATION
- _factory.put(CloudCredentialsImpl.class, new CloudCredentialsImporter<>());
- _factory.put(CloudProviderImpl.class, new CloudProviderImporter<>());
- _factory.put(CredentialsImpl.class, new CredentialsImporter<>() );
- _factory.put(DataResourceFilterImpl.class, new DataResourceFilterImporter<>());
- _factory.put(EntityImpl.class, new EntityImporter<>());
- _factory.put(ExternalIdentifierImpl.class, new ExternalIdentifierImporter<>());
- _factory.put(ModelResourceFilterImpl.class, new ModelResourceFilterImporter<>());
- _factory.put(OrganisationImpl.class, new OrganisationImporter<>());
- _factory.put(OrganisationModelImpl.class, new OrganisationModelImporter<>());
- _factory.put(PermissionImpl.class, new PermissionImporter<>());
- _factory.put(PlatformCredentialsImpl.class, new PlatformCredentialsImporter<>());
- _factory.put(ResourceFilterImpl.class, new ResourceFilterImporter<>());
- _factory.put(RoleAssignmentImpl.class, new RoleAssignmentImporter<>() );
- _factory.put(RoleImpl.class, new RoleImporter<>());
- _factory.put(ServiceResourceFilterImpl.class, new ServiceResourceFilterImporter<>());
- _factory.put(SoftwareComponentResourceFilterImpl.class, new SoftwareComponentResourceFilterImporter<>());
- _factory.put(UserGroupImpl.class, new UserGroupImporter<>());
- _factory.put(UserImpl.class, new UserImporter<>() );
+ _factory.put(CloudCredentialsImpl.class, CloudCredentialsImporter.class);
+ _factory.put(CloudProviderImpl.class, CloudProviderImporter.class);
+ _factory.put(CredentialsImpl.class, CredentialsImporter.class);
+ _factory.put(DataResourceFilterImpl.class, DataResourceFilterImporter.class);
+ _factory.put(EntityImpl.class, EntityImporter.class);
+ _factory.put(ExternalIdentifierImpl.class, ExternalIdentifierImporter.class);
+ _factory.put(ModelResourceFilterImpl.class, ModelResourceFilterImporter.class);
+ _factory.put(OrganisationImpl.class, OrganisationImporter.class);
+ _factory.put(OrganisationModelImpl.class, OrganisationModelImporter.class);
+ _factory.put(PermissionImpl.class, PermissionImporter.class);
+ _factory.put(PlatformCredentialsImpl.class, PlatformCredentialsImporter.class);
+ _factory.put(ResourceFilterImpl.class, ResourceFilterImporter.class);
+ _factory.put(RoleAssignmentImpl.class, RoleAssignmentImporter.class);
+ _factory.put(RoleImpl.class, RoleImporter.class);
+ _factory.put(ServiceResourceFilterImpl.class, ServiceResourceFilterImporter.class);
+ _factory.put(SoftwareComponentResourceFilterImpl.class, SoftwareComponentResourceFilterImporter.class);
+ _factory.put(UserGroupImpl.class, UserGroupImporter.class);
+ _factory.put(UserImpl.class, UserImporter.class);
// METRIC
- _factory.put(AttributeContextImpl.class, new AttributeContextImporter<>());
- _factory.put(CompositeMetricContextImpl.class, new CompositeMetricContextImporter<>() );
- _factory.put(CompositeMetricImpl.class, new CompositeMetricImporter<>());
- _factory.put(FunctionImpl.class, new FunctionImporter<>());
- _factory.put(MetricContextImpl.class, new MetricContextImporter<>());
- _factory.put(MetricImpl.class, new MetricImporter<>());
- _factory.put(MetricInstanceImpl.class, new MetricInstanceImporter<>());
- _factory.put(MetricInstanceModelImpl.class, new MetricInstanceModelImporter<>());
- _factory.put(MetricModelImpl.class, new MetricModelImporter<>());
- _factory.put(MetricObjectBindingImpl.class, new MetricObjectBindingImporter<>());
- _factory.put(MetricTemplateImpl.class, new MetricTemplateImporter<>());
- _factory.put(MetricTypeModelImpl.class, new MetricTypeModelImporter<>());
- _factory.put(MetricVariableImpl.class, new MetricVariableImporter<>());
- _factory.put(ObjectContextImpl.class, new ObjectContextImporter<>());
- _factory.put(RawMetricImpl.class, new RawMetricImporter<>());
- _factory.put(RawMetricContextImpl.class, new RawMetricContextImporter<>());
- _factory.put(ScheduleImpl.class, new ScheduleImporter<>());
- _factory.put(SensorImpl.class, new SensorImporter<>() );
- _factory.put(WindowImpl.class, new WindowImporter<>() );
+ _factory.put(AttributeContextImpl.class, AttributeContextImporter.class);
+ _factory.put(CompositeMetricContextImpl.class, CompositeMetricContextImporter.class);
+ _factory.put(CompositeMetricImpl.class, CompositeMetricImporter.class);
+ _factory.put(FunctionImpl.class, FunctionImporter.class);
+ _factory.put(MetricContextImpl.class, MetricContextImporter.class);
+ _factory.put(MetricImpl.class, MetricImporter.class);
+ _factory.put(MetricInstanceImpl.class, MetricInstanceImporter.class);
+ _factory.put(MetricInstanceModelImpl.class, MetricInstanceModelImporter.class);
+ _factory.put(MetricModelImpl.class, MetricModelImporter.class);
+ _factory.put(MetricObjectBindingImpl.class, MetricObjectBindingImporter.class);
+ _factory.put(MetricTemplateImpl.class, MetricTemplateImporter.class);
+ _factory.put(MetricTypeModelImpl.class, MetricTypeModelImporter.class);
+ _factory.put(MetricVariableImpl.class, MetricVariableImporter.class);
+ _factory.put(ObjectContextImpl.class, ObjectContextImporter.class);
+ _factory.put(RawMetricImpl.class, RawMetricImporter.class);
+ _factory.put(RawMetricContextImpl.class, RawMetricContextImporter.class);
+ _factory.put(ScheduleImpl.class, ScheduleImporter.class);
+ _factory.put(SensorImpl.class, SensorImporter.class);
+ _factory.put(WindowImpl.class, WindowImporter.class);
// LOCATION
-
-
+
+ _factory.put(LocationModelImpl.class, LocationModelImporter.class);
+ _factory.put(LocationImpl.class, LocationImporter.class);
+ _factory.put(CloudLocationImpl.class, CloudLocationImporter.class);
+ _factory.put(GeographicalRegionImpl.class, GeographicalRegionImporter.class);
+
// EXECUTION
- // _factory.put(.class, new );
-
+
+
// SCALABILITY
// SECURITY
- // TYPE
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/AttributeConstraintImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/AttributeConstraintImporter.java
index ca020477..52b184cd 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/AttributeConstraintImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/AttributeConstraintImporter.java
@@ -32,7 +32,6 @@ public CamelElement createCamelElt(CDOObject owner) {
@objid ("a1e4941d-9f7c-45a7-815e-e9e95a97c3d5")
@Override
public void attach(V elt, CamelElement context) {
- super.attach(elt, context);
}
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/ConstraintModelImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/ConstraintModelImporter.java
new file mode 100644
index 00000000..8bead2e7
--- /dev/null
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/ConstraintModelImporter.java
@@ -0,0 +1,32 @@
+package fr.softeam.cameldesigner.exchange.importer.constraint;
+
+import org.eclipse.emf.cdo.CDOObject;
+import camel.constraint.ConstraintModel;
+import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
+import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
+import fr.softeam.cameldesigner.exchange.importer.core.SubModelImporter;
+
+
+public class ConstraintModelImporter extends SubModelImporter {
+
+ public ConstraintModelImporter() {
+ }
+
+
+ @Override
+ public Object accept(ICamelImporterVisitor v) {
+ return v.visitConstraintModel(this);
+ }
+
+
+ public ConstraintModelImporter(T elt) {
+ super(elt);
+ }
+
+
+ @Override
+ public CamelElement createCamelElt(CDOObject owner) {
+ return null;
+ }
+
+}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/IfThenConstraintImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/IfThenConstraintImporter.java
index e84767ef..9641fe75 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/IfThenConstraintImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/IfThenConstraintImporter.java
@@ -29,4 +29,10 @@ public CamelElement createCamelElt(CDOObject owner) {
return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.IfThenConstraint.create();
}
+ @objid ("9d9e8e57-267c-46ff-a1e8-dd37311c1d57")
+ @Override
+ public void attach(V elt, CamelElement context) {
+ // TODO Auto-generated method stub
+ }
+
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/LogicalConstraintImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/LogicalConstraintImporter.java
index 94335f19..3994348d 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/LogicalConstraintImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/LogicalConstraintImporter.java
@@ -29,4 +29,10 @@ public CamelElement createCamelElt(CDOObject owner) {
return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.LogicalConstraint.create();
}
+ @objid ("f0b65241-e5b0-4b4b-9ce3-86305a11d065")
+ @Override
+ public void attach(V elt, CamelElement context) {
+ // TODO Auto-generated method stub
+ }
+
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricConstraintImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricConstraintImporter.java
index 9e91285e..868acd7c 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricConstraintImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricConstraintImporter.java
@@ -29,4 +29,10 @@ public CamelElement createCamelElt(CDOObject owner) {
return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricConstraint.create();
}
+ @objid ("66493fbf-0f14-4383-902b-667a952d956d")
+ @Override
+ public void attach(V elt, CamelElement context) {
+ // TODO Auto-generated method stub
+ }
+
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricVariableConstraintImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricVariableConstraintImporter.java
index 25444d2e..b92dc71f 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricVariableConstraintImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/constraint/MetricVariableConstraintImporter.java
@@ -29,4 +29,10 @@ public CamelElement createCamelElt(CDOObject owner) {
return fr.softeam.cameldesigner.api.constraintmodel.standard.constraint.MetricVariableConstraint.create();
}
+ @objid ("4e28e761-59a2-4dfc-bf97-5b8a07f80537")
+ @Override
+ public void attach(V elt, CamelElement context) {
+ // TODO Auto-generated method stub
+ }
+
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/AttributeImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/AttributeImporter.java
index 2c15242c..61766a19 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/AttributeImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/AttributeImporter.java
@@ -1,10 +1,24 @@
package fr.softeam.cameldesigner.exchange.importer.core;
import camel.core.Attribute;
+import camel.mms.MmsObject;
+import camel.type.BooleanValue;
+import camel.type.DoubleValue;
+import camel.type.FloatValue;
+import camel.type.IntValue;
+import camel.type.StringValue;
+import camel.type.Value;
+import camel.type.ValueType;
+import camel.unit.Unit;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
+import fr.softeam.cameldesigner.api.camelcore.standard.attribute.AttributeAttribute;
+import fr.softeam.cameldesigner.api.camelcore.standard.classifier.FeatureClassifier;
+import fr.softeam.cameldesigner.api.deploymentmodel.standard.port.HostingPort;
import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
import org.eclipse.emf.cdo.CDOObject;
+import org.eclipse.emf.common.util.EList;
+import org.modelio.metamodel.uml.infrastructure.ModelElement;
@objid ("804d7722-af37-42b3-ace8-7102790c372c")
public class AttributeImporter extends NamedElementImporter {
@@ -21,18 +35,29 @@ public Object accept(ICamelImporterVisitor v) {
@objid ("665b14ab-5a4c-4175-aeb0-35fa05bfd588")
@Override
public CamelElement createCamelElt(CDOObject owner) {
- return null;
+ ModelElement value = this._process.getElement(owner).getElement();
+
+ if ( value instanceof org.modelio.metamodel.uml.statik.Package)
+ return fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass.create();
+ if ( value instanceof org.modelio.metamodel.uml.statik.Class)
+ return fr.softeam.cameldesigner.api.camelcore.standard.attribute.AttributeAttribute.create();
+ else
+ return null;
}
@objid ("8c4f7bea-5e16-4322-a673-3d0db11f72cd")
@Override
public void setProperties(V elt) {
- super.setProperties(elt);
+ setValueType(elt);
+ setUnit(elt);
+ setValue(elt);
}
@objid ("17db46cd-3cb3-4a60-8e59-469a497c8cea")
@Override
public void attach(V elt, CamelElement context) {
+ if ((context instanceof FeatureClassifier) &&( elt instanceof AttributeAttribute))
+ ((FeatureClassifier) context).addAttributes((AttributeAttribute) elt);
}
@objid ("b8229cdb-32b8-4dd8-9bb3-3d64a073a537")
@@ -40,4 +65,50 @@ public AttributeImporter(T elt) {
super(elt);
}
+ @objid ("db3190ad-fde9-4298-8ae7-f84e26c05f62")
+ private void setValue(V elt) {
+ Value value = this._element.getValue();
+ if (value != null) {
+ if (value instanceof IntValue) {
+ elt.setValue(String.valueOf(((IntValue)value).getValue()));
+ }
+ else if (value instanceof BooleanValue) {
+ elt.setValue(String.valueOf(((BooleanValue)value).isValue()));
+ }
+ else if (value instanceof FloatValue) {
+ elt.setValue(String.valueOf(((FloatValue)value).getValue()));
+ }
+ else if (value instanceof DoubleValue) {
+ elt.setValue(String.valueOf(((DoubleValue)value).getValue()));
+ }
+ else if (value instanceof StringValue) {
+ elt.setValue(((StringValue)value).getValue());
+ }
+ }
+ }
+
+ @objid ("e0399787-49a9-476a-814f-ef33f0d2c469")
+ private void setUnit(V elt) {
+ Unit value = this._element.getUnit();
+ if (value != null) {
+ CamelElement valueElt = this._process.getElement(value);
+ if (valueElt instanceof fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Unit) {
+ elt.setUnit( (fr.softeam.cameldesigner.api.unitmodel.standard.datatype.Unit) valueElt);
+
+ }
+ }
+ }
+
+ @objid ("a8758e25-a083-4159-b98b-ef6f85ca08be")
+ private void setValueType(V elt) {
+ // TODO Auto-generated method stub
+ ValueType value = this._element.getValueType();
+ if (value != null) {
+ CamelElement valueElt = this._process.getElement(value);
+ if (valueElt instanceof fr.softeam.cameldesigner.api.typemodel.standard.datatype.ValueType)
+ elt.setValueType((fr.softeam.cameldesigner.api.typemodel.standard.datatype.ValueType) valueElt);
+
+ }
+ }
+
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java
index 90312806..5439e8ae 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/CamelElementImporter.java
@@ -1,11 +1,11 @@
package fr.softeam.cameldesigner.exchange.importer.core;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.cdo.CDOObject;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
import fr.softeam.cameldesigner.exchange.importer.IImporter;
import fr.softeam.cameldesigner.exchange.importer.ImportProcess;
-import org.eclipse.emf.cdo.CDOObject;
@objid ("a380bcee-5614-4bbb-ae51-4fce0eb8f1fe")
public abstract class CamelElementImporter implements IImporter {
@@ -24,6 +24,7 @@ public T getElement() {
return this._element;
}
+
@objid ("2c5f32c3-07a3-46e4-934d-da8a21604749")
public void setProcess(ImportProcess process) {
this._process = process;
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java
index ce0f6451..94b8a141 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/FeatureImporter.java
@@ -30,7 +30,7 @@ public void setProperties(V elt) {
@Override
public void attach(V elt, CamelElement context) {
if ((elt instanceof FeatureClassifier) && (context instanceof FeatureClassifier))
- ((FeatureClassifier) elt).getSubFeatures().add((FeatureClassifier)context);
+ ((FeatureClassifier) context).addSubFeatures((FeatureClassifier)elt);
}
@objid ("26dbd316-0ffe-469f-94ac-abf7ec73cedb")
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/MeasurableAttributeImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/MeasurableAttributeImporter.java
index b4ffc489..d1af1c71 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/MeasurableAttributeImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/MeasurableAttributeImporter.java
@@ -1,10 +1,15 @@
package fr.softeam.cameldesigner.exchange.importer.core;
-import camel.core.MeasurableAttribute;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.cdo.CDOObject;
+import org.modelio.metamodel.uml.statik.Package;
+import camel.core.MeasurableAttribute;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
+import fr.softeam.cameldesigner.api.camelcore.standard.attribute.MeasurableAttributeAttribute;
+import fr.softeam.cameldesigner.api.camelcore.standard.class_.AttributeClass;
+import fr.softeam.cameldesigner.api.camelcore.standard.class_.MeasurableAttributeClass;
+import fr.softeam.cameldesigner.api.metricmodel.standard.package_.MetricTypeModel;
import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
-import org.eclipse.emf.cdo.CDOObject;
@objid ("140dee83-8c43-420a-9d7c-64075ff03fc9")
public class MeasurableAttributeImporter extends QualityAttributeImporter {
@@ -27,6 +32,9 @@ public void setProperties(V elt) {
@objid ("0d5f4286-44ea-40ab-8844-9ee213424671")
@Override
public void attach(V elt, CamelElement context) {
+ if ((context instanceof MetricTypeModel) && (elt instanceof AttributeClass)) {
+ ((MetricTypeModel) context).addAttributes((AttributeClass) elt);
+ }
}
@objid ("3a82108e-9985-43ab-997d-6d34c05739af")
@@ -37,6 +45,16 @@ public MeasurableAttributeImporter(T elt) {
@objid ("3314abcb-df01-4214-9cf6-4bfed700c96f")
@Override
public CamelElement createCamelElt(CDOObject owner) {
+ CamelElement camOwner = this._process.getElement(owner);
+
+ if (camOwner != null) {
+ if (camOwner.getElement() instanceof Package) {
+ return MeasurableAttributeClass.create();
+ }else {
+ return MeasurableAttributeAttribute.create();
+ }
+ }
+
return null;
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java
index 6080bfeb..f082a794 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/core/NamedElementImporter.java
@@ -1,12 +1,14 @@
package fr.softeam.cameldesigner.exchange.importer.core;
-import camel.core.NamedElement;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.common.util.EList;
+import camel.core.NamedElement;
+import camel.mms.MmsObject;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
@objid ("1841f351-6417-46a7-aa5e-a351bae5ee5c")
-public abstract class NamedElementImporter extends CamelElementImporter {
+public abstract class NamedElementImporter extends CamelElementImporter {
@objid ("0bc330fe-2803-44c9-972d-9415258cddd7")
public NamedElementImporter() {
}
@@ -22,12 +24,7 @@ public Object accept(ICamelImporterVisitor v) {
public void setProperties(V elt) {
setName(elt);
setDescription(elt);
- }
-
- @objid ("762fc7e2-08d2-4286-9ebd-939a94707389")
- @Override
- public void attach(V elt, CamelElement context) {
- // TODO Auto-generated method stub
+ setAnnotations(elt);
}
@objid ("bbd61cfc-d9ba-40e5-a08b-8e99cf29dbdb")
@@ -51,4 +48,19 @@ private void setName(V elt) {
}
}
+ @objid ("a7ccca6d-d449-4f8b-be7c-ef829a33121a")
+ private void setAnnotations(V elt) {
+ // TODO Auto-generated method stub
+ EList value = this._element.getAnnotations();
+ if (value != null) {
+ for (MmsObject obj: value) {
+ CamelElement valueElt = this._process.getElement(obj);
+ if (valueElt instanceof fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject) {
+ elt.addAnnotations((fr.softeam.cameldesigner.api.metadatamodel.infrastructure.modelelement.MmsObject) valueElt);
+
+ }
+ }
+ }
+ }
+
}
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/data/DataTypeModelImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/data/DataTypeModelImporter.java
index 8309cb55..3d5c5d9b 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/data/DataTypeModelImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/data/DataTypeModelImporter.java
@@ -1,14 +1,13 @@
package fr.softeam.cameldesigner.exchange.importer.data;
-import camel.data.DataTypeModel;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.cdo.CDOObject;
+import camel.data.DataTypeModel;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
-import fr.softeam.cameldesigner.exchange.importer.core.SubModelImporter;
-import org.eclipse.emf.cdo.CDOObject;
@objid ("6829a6c7-60a4-432d-b2ff-a33b5ce4375c")
-public class DataTypeModelImporter extends SubModelImporter {
+public class DataTypeModelImporter extends DataModelImporter {
@objid ("3563043e-6606-4efe-80e5-1c55027df30f")
public DataTypeModelImporter() {
super();
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/ClusterConfigurationImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/ClusterConfigurationImporter.java
index 364274b1..9cd98a52 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/ClusterConfigurationImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/ClusterConfigurationImporter.java
@@ -1,17 +1,16 @@
package fr.softeam.cameldesigner.exchange.importer.deployment;
-import camel.deployment.ClusterConfiguration;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
+import org.eclipse.emf.cdo.CDOObject;
+import camel.deployment.ClusterConfiguration;
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
-import org.eclipse.emf.cdo.CDOObject;
@objid ("bf2fffa3-9a4c-46a0-afbc-dfa294627756")
public class ClusterConfigurationImporter extends ConfigurationImporter {
@objid ("88e77335-560d-42ba-9bce-5972226a8e39")
public ClusterConfigurationImporter() {
super();
- // TODO Auto-generated constructor stub
}
@objid ("d77394cb-95ae-4f6f-ba26-5c4f97587e36")
@@ -32,6 +31,7 @@ public Object accept(ICamelImporterVisitor v) {
return v.visitClusterConfiguration(this);
}
+ @Override
@objid ("efde7803-3f3e-4b3c-afe6-09df39c7ffa7")
public void setProperties(V elt) {
super.setProperties(elt);
@@ -40,7 +40,6 @@ public void setProperties(V elt) {
@objid ("a20adf1d-023c-48fb-84a7-8f0eb7df82f9")
private void setDownloadURL(V elt) {
- // TODO Auto-generated method stub
String value = this._element.getDownloadURL();
if (value != null) {
elt.setDownloadURL(value);
diff --git a/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/CommunicationImporter.java b/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/CommunicationImporter.java
index 610ce3cd..6704a043 100644
--- a/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/CommunicationImporter.java
+++ b/src/main/java/fr/softeam/cameldesigner/exchange/importer/deployment/CommunicationImporter.java
@@ -7,7 +7,10 @@
import fr.softeam.cameldesigner.api.camelcore.infrastructure.modelelement.CamelElement;
import fr.softeam.cameldesigner.api.deploymentmodel.standard.package_.DeploymentTypeModel;
import fr.softeam.cameldesigner.exchange.importer.ICamelImporterVisitor;
+import fr.softeam.cameldesigner.impl.CamelDesignerModule;
import org.eclipse.emf.cdo.CDOObject;
+import org.modelio.api.modelio.model.IUmlModel;
+import org.modelio.metamodel.uml.statik.ConnectorEnd;
@objid ("bf909600-1629-4a6b-91f1-d7e2713c2226")
public class CommunicationImporter