diff --git a/pom.xml b/pom.xml
index 61340bf..d0e487a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.modelio.modulevariabilitydesigner
- 1.3.01
+ 1.4.00VariabilityDesigner
@@ -31,7 +31,7 @@
org.modelioMDAKit
- [4.0.0,4.0.1)
+ [4.1.0,4.2.0)pomprovided
@@ -57,7 +57,7 @@
org.modeliomodelio-maven-plugin
- 4.0.0.00
+ 4.1.0.00ModuleValidation
@@ -181,7 +181,7 @@
modelio-maven-plugin
- [4.0.0.00,)
+ [4.1.0.00,)
diff --git a/src/main/conf/module.xml b/src/main/conf/module.xml
index ef90c79..ae2b931 100644
--- a/src/main/conf/module.xml
+++ b/src/main/conf/module.xml
@@ -1,5 +1,5 @@
-
+
@@ -205,6 +205,12 @@
+
+
+
+
+
+
@@ -447,7 +453,9 @@
-
+
+
+
diff --git a/src/main/conf/module_fr.properties b/src/main/conf/module_fr.properties
index f18773a..61148fe 100644
--- a/src/main/conf/module_fr.properties
+++ b/src/main/conf/module_fr.properties
@@ -1,6 +1,8 @@
ModuleDescription=Variability Designer is a Modelio Module that allows Modelio users to manage variability on UML/SysML models. It allows to create 150% Models and generate variant model based on VEL configuration file.
ModuleLabel=VariabilityDesigner
+command.Add_Variation_Point.label=Add_Variation_Point
+command.Add_Variation_Point.tooltip=
command.Check_Conformance.label=Check Conformance
command.Check_Conformance.tooltip=
command.Feature_Diagram.label=Feature Diagram
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/IVariabilityDesignerPeerModule.java b/src/main/java/org/modelio/module/variabilitydesigner/api/IVariabilityDesignerPeerModule.java
index 97b0b8f..18f0140 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/IVariabilityDesignerPeerModule.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/IVariabilityDesignerPeerModule.java
@@ -1,11 +1,8 @@
package org.modelio.module.variabilitydesigner.api;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.module.IPeerModule;
-@objid ("ab841c5e-fa06-49be-82cc-17936b3b40fd")
public interface IVariabilityDesignerPeerModule extends IPeerModule {
- @objid ("f8e6ce16-1bc1-480e-a5c4-daee0fa6dd1e")
public static final String MODULE_NAME = "VariabilityDesigner";
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerParameters.java b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerParameters.java
index 4f785af..cea6b59 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerParameters.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerParameters.java
@@ -1,7 +1,5 @@
package org.modelio.module.variabilitydesigner.api;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
-@objid ("0f939752-1bdc-4b81-b540-089ed95c42e2")
public interface VariabilityDesignerParameters {
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerProxyFactory.java b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerProxyFactory.java
index 3f6d8f3..6a381f2 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerProxyFactory.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerProxyFactory.java
@@ -6,7 +6,6 @@
*/
package org.modelio.module.variabilitydesigner.api;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.metamodel.diagrams.AbstractDiagram;
import org.modelio.metamodel.diagrams.ActivityDiagram;
import org.modelio.metamodel.diagrams.ClassDiagram;
@@ -59,9 +58,7 @@
*
<< VariantDefinition >> on a {@link org.modelio.metamodel.uml.infrastructure.matrix.MatrixDefinition}: instantiates a {@link VariantDefinition}
*
*/
-@objid ("5e4a94b1-36a9-4416-9022-28198dad8e79")
public class VariabilityDesignerProxyFactory {
- @objid ("f3bb5a7d-6f86-4533-9976-e5f7838c9013")
private static final InstantiateVisitor instantiateVisitor = new InstantiateVisitor();
/**
@@ -69,11 +66,9 @@ public class VariabilityDesignerProxyFactory {
* The model element must be stereotyped by a 'VariabilityDesigner' module stereotype.
* In the other case the method will return null.
*
- *
* @param e A model element
* @return the right proxy or null.
*/
- @objid ("a5c436b8-efd7-48ad-9ebf-0742e88d2261")
public static final Object instantiate(final ModelElement e) {
for (Stereotype s : e.getExtension()) {
ModuleComponent module = s.getModule();
@@ -89,200 +84,169 @@ public static final Object instantiate(final ModelElement e) {
* The stereotype must be one of the 'VariabilityDesigner' module stereotypes.
* In the other case the method will return null.
*
- *
* @param e A model element.
* @param stName A stereotype name.
* @return the right proxy or null.
*/
- @objid ("4df7b4bd-561b-421e-bb0b-096ccc0c27a1")
public static final Object instantiate(final Element e, final String stName) {
instantiateVisitor.setStereotype(stName);
return e.accept(instantiateVisitor);
}
- @objid ("e4794c69-2d98-49f4-9906-8936ac704c50")
private static class InstantiateVisitor implements IDefaultModelVisitor, IDefaultInfrastructureVisitor {
- @objid ("11516447-a7be-4949-bd6a-9034ae5fecc0")
private String stName;
- @objid ("34c340ea-1650-469e-a07c-09636c34d61e")
public final void setStereotype(final String stName) {
this.stName = stName;
}
- @objid ("7dcd0fe8-5367-4245-b95b-70167b2c4558")
@Override
public final Object visitAbstractDiagram(AbstractDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.infrastructure.abstractdiagram.VariationDiagram.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.infrastructure.abstractdiagram.VariationDiagram.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.infrastructure.abstractdiagram.VariationDiagram.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.infrastructure.abstractdiagram.VariationDiagram.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultInfrastructureVisitor.super.visitAbstractDiagram(obj);
}
- @objid ("71ad3420-0f58-47b8-a8a9-642f7fb6c37e")
@Override
public final Object visitStateMachineDiagram(StateMachineDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.statemachinediagram.StateMachineDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.statemachinediagram.StateMachineDiagramVariability.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.statemachinediagram.StateMachineDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.statemachinediagram.StateMachineDiagramVariability.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitStateMachineDiagram(obj);
}
- @objid ("2b3bbf45-a202-4081-aa22-2d79c1ffbc6c")
@Override
public final Object visitClassDiagram(ClassDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.ClassDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.ClassDiagramVariability.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.FeatureDiagram.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.FeatureDiagram.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.ClassDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.ClassDiagramVariability.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.FeatureDiagram.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.classdiagram.FeatureDiagram.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitClassDiagram(obj);
}
- @objid ("45cf8af7-5d85-4ae0-96bc-039461fa8159")
@Override
public final Object visitPackage(Package obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.projectsetup.standard.package_.Model150.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.projectsetup.standard.package_.Model150.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.feature.standard.package_.FeatureModel.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.package_.FeatureModel.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.projectsetup.standard.package_.Model150.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.projectsetup.standard.package_.Model150.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.feature.standard.package_.FeatureModel.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.package_.FeatureModel.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitPackage(obj);
}
- @objid ("783c74f6-8f38-4d2d-b6c4-2fbc77d82044")
@Override
public final Object visitMatrixDefinition(MatrixDefinition obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.feature.infrastructure.matrixdefinition.VariantDefinition.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.infrastructure.matrixdefinition.VariantDefinition.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.feature.infrastructure.matrixdefinition.VariantDefinition.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.infrastructure.matrixdefinition.VariantDefinition.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultInfrastructureVisitor.super.visitMatrixDefinition(obj);
}
- @objid ("9aac3cf8-e79e-4969-99fc-275e4899046d")
@Override
public final Object visitObjectDiagram(ObjectDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.objectdiagram.ObjectDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.objectdiagram.ObjectDiagramVariability.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.objectdiagram.ObjectDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.objectdiagram.ObjectDiagramVariability.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitObjectDiagram(obj);
}
- @objid ("4aafe765-894c-4ad8-8560-4e8c9f064cb1")
@Override
public final Object visitActivityDiagram(ActivityDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.activitydiagram.ActivityDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.activitydiagram.ActivityDiagramVariability.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.activitydiagram.ActivityDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.activitydiagram.ActivityDiagramVariability.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitActivityDiagram(obj);
}
- @objid ("d4ab5a15-9131-44d7-9cee-0917f2b2c7a6")
@Override
public final Object visitSequenceDiagram(SequenceDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.sequencediagram.SequenceDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.sequencediagram.SequenceDiagramVariability.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.sequencediagram.SequenceDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.sequencediagram.SequenceDiagramVariability.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitSequenceDiagram(obj);
}
- @objid ("a373bb3a-4cb6-4ffb-abb8-9d3285521b0f")
@Override
public final Object visitClass(Class obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.feature.standard.class_.FeatureRoot.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.FeatureRoot.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.feature.standard.class_.Feature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.Feature.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.feature.standard.class_.MandatoryFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.MandatoryFeature.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.feature.standard.class_.OptionalFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.OptionalFeature.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.feature.standard.class_.AlternativeFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.AlternativeFeature.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.feature.standard.class_.OrFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.OrFeature.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.feature.standard.class_.Variant.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.Variant.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.feature.standard.class_.FeatureRoot.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.FeatureRoot.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.feature.standard.class_.Feature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.Feature.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.feature.standard.class_.MandatoryFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.MandatoryFeature.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.feature.standard.class_.OptionalFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.OptionalFeature.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.feature.standard.class_.AlternativeFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.AlternativeFeature.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.feature.standard.class_.OrFeature.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.OrFeature.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.feature.standard.class_.Variant.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.feature.standard.class_.Variant.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitClass(obj);
}
- @objid ("d360b779-3d88-4f9a-9b2a-5b467d5c03e0")
@Override
public final Object visitConstraint(Constraint obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.OptionalStructuralVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.OptionalStructuralVariation.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeStructuralVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeStructuralVariation.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.CalculatedParameterVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.CalculatedParameterVariation.instantiate(obj);
- case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeParameterVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeParameterVariation.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.OptionalStructuralVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.OptionalStructuralVariation.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeStructuralVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeStructuralVariation.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.CalculatedParameterVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.CalculatedParameterVariation.instantiate(obj);
+ case org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeParameterVariation.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.variation.standard.constraint.AlternativeParameterVariation.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitConstraint(obj);
}
- @objid ("0575b6df-cd58-4b74-ba8b-ee988b9eecbe")
@Override
public final Object visitCommunicationDiagram(CommunicationDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.communicationdiagram.CommunicationDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.communicationdiagram.CommunicationDiagramVariability.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.communicationdiagram.CommunicationDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.communicationdiagram.CommunicationDiagramVariability.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitCommunicationDiagram(obj);
}
- @objid ("21e2aaac-5ecd-4f00-a1df-244c4adee77f")
@Override
public final Object visitUseCaseDiagram(UseCaseDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.usecasediagram.UseCaseDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.usecasediagram.UseCaseDiagramVariability.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.usecasediagram.UseCaseDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.usecasediagram.UseCaseDiagramVariability.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitUseCaseDiagram(obj);
}
- @objid ("708f8eb1-ec22-4e2c-91dd-862011d2ef42")
@Override
public final Object visitDeploymentDiagram(DeploymentDiagram obj) {
switch (this.stName) {
- case org.modelio.module.variabilitydesigner.api.automatic.standard.deploymentdiagram.DeploymentDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.deploymentdiagram.DeploymentDiagramVariability.instantiate(obj);
- default:
- break;
+ case org.modelio.module.variabilitydesigner.api.automatic.standard.deploymentdiagram.DeploymentDiagramVariability.STEREOTYPE_NAME: return org.modelio.module.variabilitydesigner.api.automatic.standard.deploymentdiagram.DeploymentDiagramVariability.instantiate(obj);
+ default:
+ break;
}
-
return IDefaultModelVisitor.super.visitDeploymentDiagram(obj);
}
/**
* Get the visitor to delegate to when a {@link IInfrastructureVisitor} is needed.
*
If null is returned the caller will return null.
+ *
* @return the {@link IInfrastructureVisitor} visitor or null.
*/
- @objid ("2b8f386e-6d2c-452e-8991-66667013e794")
@Override
public IInfrastructureVisitor getInfrastructureVisitor() {
return this;
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerStereotypes.java b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerStereotypes.java
index 4e2b09d..2107817 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerStereotypes.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerStereotypes.java
@@ -1,135 +1,102 @@
package org.modelio.module.variabilitydesigner.api;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.metamodel.diagrams.AbstractDiagram;
import org.modelio.metamodel.uml.infrastructure.Constraint;
import org.modelio.metamodel.uml.statik.Package;
import org.modelio.module.variabilitydesigner.impl.VariabilityDesignerPeerModule;
-@objid ("30d75aab-a6c3-456d-9397-e0ab94643ac3")
public final class VariabilityDesignerStereotypes {
- @objid ("5a0339a7-ff20-4e69-9396-96af6b9b644f")
public static final String VARIATION = "Variation";
- @objid ("eeb0ace0-5418-4af2-b3c8-21b286ac1464")
public static final String OPTIONAL_STRUCTURAL = "Optional_Structural_Variation";
- @objid ("88da51c5-7a60-476e-af80-6ed009a8a0bb")
public static final String AlTERNATIVE_STRUCTURAL = "Alternative_Structural_Variation";
- @objid ("23d24ac7-bd6c-45d0-963d-8623883ae9ff")
public static final String CALCULATED_PARAMETER = "Calculated_Parameter_Variation";
- @objid ("8a014805-9265-4f59-931f-5930bf3846c5")
public static final String ALTERNATIVE_PARAMETER = "Alternative_Parameter_Variation";
- @objid ("32c45bc3-1936-46a8-adfe-4e226eab7ea4")
public static final String VARIATION_CLASS_DIAGRAM = "Class_Diagram_(Variability)";
- @objid ("3e10ad7a-a59c-4103-984c-7cf906472f2c")
public static final String VARIATION_MODEL_ROOT = "150%_model_root";
- @objid ("1f2e77e5-e5e5-4d51-97e9-3c53b7efa102")
public static final String VARIATION_ACTIVITY_DIAGRAM = "Activity_Diagram_(Variability)";
- @objid ("d6a37699-9f6c-49f0-bb49-09177cc4d19c")
public static final String VARIATION_COMMUNICATION_DIAGRAM = "Communication_Diagram_(Variability)";
- @objid ("eff9f022-f610-4beb-b8f4-735f3c53db56")
public static final String VARIATION_DEPLOYMENT_DIAGRAM = "Deployment_Diagram_(Variability)";
- @objid ("86c179b7-6678-4eaa-9b35-bbb94f810085")
public static final String VARIATION_OBJECT_DIAGRAM = "Object_Diagram_(Variability)";
- @objid ("f0c6f601-b408-4c12-b2a7-2aba20cfa3af")
public static final String VARIATION_SEQUENCE_DIAGRAM = "Sequence_Diagram_(Variability)";
- @objid ("d6ae3d58-1756-4051-8b25-b789efb188f4")
public static final String VARIATION_STATE_DIAGRAM = "State_Machine_Diagram_(Variability)";
- @objid ("cf7092e3-e68b-485b-bed9-e0a4df684890")
public static final String VARIATION_USECASE_DIAGRAM = "Use_Case_Diagram_(Variability)";
- @objid ("4985f067-5b86-4125-9c9d-5ad78e9bc372")
public static final String VARIATION_DIAGRAM = "Variation_Diagram";
//------------------------------------//
- @objid ("c1423256-36e4-4cb6-9054-3dc538c1a9ec")
public static final boolean isVariation(Constraint element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION);
}
- @objid ("1745bf75-869e-4047-b0cb-70ca5b081638")
public static final boolean isOptionalStructuralVariation(Constraint element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME, OPTIONAL_STRUCTURAL);
}
- @objid ("0946e4b9-1d5d-47d3-bfff-acb3933ccf79")
public static final boolean isXorStructuralVariation(Constraint element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME, AlTERNATIVE_STRUCTURAL);
}
- @objid ("7e84a924-3dbc-4abe-a676-3829b6315ed5")
public static final boolean isCalculatedParameterVariation(Constraint element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME, CALCULATED_PARAMETER);
}
- @objid ("cb1974ff-1d22-496b-b235-a4c081cb16b9")
public static final boolean isXorParameterVariation(Constraint element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME, ALTERNATIVE_PARAMETER);
}
- @objid ("80d57426-be15-4aa4-8464-30da5dc5e1da")
public static final boolean isVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_DIAGRAM);
}
- @objid ("cbc3195f-d613-46ed-ba5a-5f37e2ed1f2f")
public static final boolean isVariationModelRoot(Package element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_MODEL_ROOT);
}
- @objid ("4d8b99a4-f997-4302-a3a2-31ab77f7085e")
public static final boolean isClassVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_CLASS_DIAGRAM);
}
- @objid ("ed80b81b-6a64-4977-b107-09145e2c8566")
public static final boolean isActivityVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_ACTIVITY_DIAGRAM);
}
- @objid ("034790f6-8136-49ae-8a72-633f879b976c")
public static final boolean isCommunicationVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_COMMUNICATION_DIAGRAM);
}
- @objid ("47941c3f-b476-4266-b2ba-3efcfa6fdab6")
public static final boolean isDeploymentVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_DEPLOYMENT_DIAGRAM);
}
- @objid ("b8d381be-c222-4c06-8c16-5c643ac65e38")
public static final boolean isObjectVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_OBJECT_DIAGRAM);
}
- @objid ("d66dec7c-af05-4d26-915d-8fc0d7aef4bf")
public static final boolean isSequenceVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_SEQUENCE_DIAGRAM);
}
- @objid ("1e8277f4-b9b9-45cf-9ed0-4d9ebb15fa25")
public static final boolean isStateVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_STATE_DIAGRAM);
}
- @objid ("9319a530-6336-48f4-b8d2-84b46171029d")
public static final boolean isUseCaseVariationDiagram(AbstractDiagram element) {
return element.isStereotyped(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_USECASE_DIAGRAM);
}
- @objid ("976a3420-876e-4b27-bbf9-52efc2cd60e6")
public static final void removeVariationDiagramStereotype(AbstractDiagram element) {
element.removeStereotypes(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_CLASS_DIAGRAM);
element.removeStereotypes(VariabilityDesignerPeerModule.MODULE_NAME,VARIATION_ACTIVITY_DIAGRAM);
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerTagTypes.java b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerTagTypes.java
index 0d50373..c2eacbb 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerTagTypes.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/VariabilityDesignerTagTypes.java
@@ -1,56 +1,42 @@
package org.modelio.module.variabilitydesigner.api;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.metamodel.uml.infrastructure.Constraint;
import org.modelio.module.variabilitydesigner.impl.VariabilityDesignerPeerModule;
-@objid ("958f8595-820a-4a83-a5cb-60bbac419e53")
public class VariabilityDesignerTagTypes {
- @objid ("e5abe5b6-151d-4666-b404-566ff870293c")
public static final String VARIATION_POINT_ID = "Variation_Point_ID";
- @objid ("fbf2c883-ebac-4404-8033-b6aac00a7eec")
public static final String VARIATION_EXPRESSION_TYPE = "Type";
- @objid ("b7563441-bb8d-47ae-bef0-2d5a11727562")
public static final String VARIATION_EXPRESSION_VALUE = "Expression";
- @objid ("62e0575f-fcbd-4ca7-af84-2bc315c3c986")
public static final String VARIATION_CONDITION_VALUE = "Condition";
- @objid ("3fcd6644-b64f-4bd9-87e3-c6cc73e7c38d")
public static final String VARIATION_VALUE = "Value";
- @objid ("b9b90d8c-61ac-4bbb-9697-7613e0f8f6ee")
public static final String VARIATION_APPLIED_ON = "Applied_on";
//------------------------------------//
- @objid ("2e6b0492-f700-4190-84de-83b386499598")
public static final String getVariationPointID(Constraint element) {
return element.getTagValue(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_POINT_ID);
}
- @objid ("cb42053b-c0e2-4a8f-8afb-160ad5731661")
public static final String getVariationExpressionType(Constraint element) {
return element.getTagValue(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_EXPRESSION_TYPE);
}
- @objid ("de5faa04-29ef-4565-9892-d87a24a7f405")
public static final String getVariationExpressionValue(Constraint element) {
return element.getTagValue(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_EXPRESSION_VALUE);
}
- @objid ("36151b76-6d96-484c-85f9-5bfb9d4f9227")
public static final String getVariationConditionValue(Constraint element) {
return element.getTagValue(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_CONDITION_VALUE);
}
- @objid ("e9f9f796-cf18-4735-b582-2a7b39cbd9bb")
public static final String getVariationValue(Constraint element) {
return element.getTagValue(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_VALUE);
}
- @objid ("ab68eb9d-e0b0-4de6-b122-3e9a4dea4150")
public static final String getVariationAppliedOn(Constraint element) {
return element.getTagValue(VariabilityDesignerPeerModule.MODULE_NAME, VARIATION_APPLIED_ON);
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/infrastructure/abstractdiagram/VariationDiagram.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/infrastructure/abstractdiagram/VariationDiagram.java
index 11e9e59..cfda6d2 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/infrastructure/abstractdiagram/VariationDiagram.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/infrastructure/abstractdiagram/VariationDiagram.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,15 +30,12 @@
*
Stereotype description:
*
*/
-@objid ("6e9f4b6e-ff23-4a7c-a9fd-0fbac2d40405")
public class VariationDiagram {
- @objid ("a0e7e26d-c985-4108-9f46-457df1649261")
public static final String STEREOTYPE_NAME = "Variation_Diagram";
/**
* The underlying {@link AbstractDiagram} represented by this proxy, never null.
*/
- @objid ("2a40b292-171b-47da-a81f-779132299dd6")
protected final AbstractDiagram elt;
/**
@@ -50,7 +46,6 @@ public class VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("e71067ea-91e7-4509-8a2f-f45a9f7c5360")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof AbstractDiagram) && ((AbstractDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, VariationDiagram.STEREOTYPE_NAME));
}
@@ -60,7 +55,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link VariationDiagram} proxy on the created {@link AbstractDiagram}.
*/
- @objid ("3fa69d15-c9c2-4578-91e7-594ae8c36f4b")
public static VariationDiagram create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Infrastructure.AbstractDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, VariationDiagram.STEREOTYPE_NAME);
@@ -68,34 +62,33 @@ public static VariationDiagram create() {
}
/**
- * Tries to instantiate a {@link VariationDiagram} proxy from a {@link AbstractDiagram} stereotyped << Variation_Diagram >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link VariationDiagram} proxy from a {@link AbstractDiagram} stereotyped << Variation_Diagram >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a AbstractDiagram
* @return a {@link VariationDiagram} proxy or null.
*/
- @objid ("17a8e3bc-6e01-451d-bd93-51eeddd46645")
public static VariationDiagram instantiate(final AbstractDiagram obj) {
return VariationDiagram.canInstantiate(obj) ? new VariationDiagram(obj) : null;
}
/**
- * Tries to instantiate a {@link VariationDiagram} proxy from a {@link AbstractDiagram} stereotyped << Variation_Diagram >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link VariationDiagram} proxy from a {@link AbstractDiagram} stereotyped << Variation_Diagram >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link AbstractDiagram}
* @return a {@link VariationDiagram} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("b9ce12a2-7a85-4e09-a3bb-f7693dabe240")
public static VariationDiagram safeInstantiate(final AbstractDiagram obj) throws IllegalArgumentException {
if (VariationDiagram.canInstantiate(obj))
- return new VariationDiagram(obj);
+ return new VariationDiagram(obj);
else
- throw new IllegalArgumentException("VariationDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("VariationDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("5595b490-d6bd-4ec0-923a-e360dcdbb77e")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -112,37 +105,30 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link AbstractDiagram}.
+ * Get the underlying {@link AbstractDiagram}.
+ *
* @return the AbstractDiagram represented by this proxy, never null.
*/
- @objid ("58954ffe-562d-4589-855d-5da515ab728f")
public AbstractDiagram getElement() {
return this.elt;
}
- @objid ("95145801-5d46-442c-8b5b-3d0d4d6f36b4")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("c6533558-76f3-4312-8644-b2cd6615d90c")
protected VariationDiagram(final AbstractDiagram elt) {
this.elt = elt;
}
- @objid ("7b3f38f2-278b-4a7e-80fc-cc0e143a20e8")
public static final class MdaTypes {
- @objid ("b72607fb-9f2d-4d6a-a158-bb11fb19a5d8")
public static Stereotype STEREOTYPE_ELT;
- @objid ("4532d9a2-1017-4b25-9e24-25b965085d3a")
private static Stereotype MDAASSOCDEP;
- @objid ("6d4a84d1-0d82-4006-94ce-89fed9ccd9e2")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("be45a9af-f9b3-4022-ac4f-e77d65d8a675")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "80f753fc-c7a9-424d-9b5a-b9475971dad9");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -150,11 +136,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/activitydiagram/ActivityDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/activitydiagram/ActivityDiagramVariability.java
index 997f651..a56627f 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/activitydiagram/ActivityDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/activitydiagram/ActivityDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("17a4c6c4-bb78-4beb-987e-934739ad3e0e")
public class ActivityDiagramVariability extends VariationDiagram {
- @objid ("d393f222-def1-4403-832b-473b2a364c04")
public static final String STEREOTYPE_NAME = "Activity_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class ActivityDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("d842a524-300c-49b2-b71c-4104e6d1cfbe")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof ActivityDiagram) && ((ActivityDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, ActivityDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link ActivityDiagramVariability} proxy on the created {@link ActivityDiagram}.
*/
- @objid ("bba14d3a-2cc3-4642-ae50-e514d07297d7")
public static ActivityDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ActivityDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, ActivityDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static ActivityDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link ActivityDiagramVariability} proxy from a {@link ActivityDiagram} stereotyped << Activity_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link ActivityDiagramVariability} proxy from a {@link ActivityDiagram} stereotyped << Activity_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a ActivityDiagram
* @return a {@link ActivityDiagramVariability} proxy or null.
*/
- @objid ("079e1f01-52f5-4124-a6fd-24f07785d41c")
public static ActivityDiagramVariability instantiate(final ActivityDiagram obj) {
return ActivityDiagramVariability.canInstantiate(obj) ? new ActivityDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link ActivityDiagramVariability} proxy from a {@link ActivityDiagram} stereotyped << Activity_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link ActivityDiagramVariability} proxy from a {@link ActivityDiagram} stereotyped << Activity_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link ActivityDiagram}
* @return a {@link ActivityDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("6dc62eaa-7d0f-407a-883a-8201bb465a5c")
public static ActivityDiagramVariability safeInstantiate(final ActivityDiagram obj) throws IllegalArgumentException {
if (ActivityDiagramVariability.canInstantiate(obj))
- return new ActivityDiagramVariability(obj);
+ return new ActivityDiagramVariability(obj);
else
- throw new IllegalArgumentException("ActivityDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("ActivityDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("c02528d3-54a9-4066-a0fb-25db67ba975e")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link ActivityDiagram}.
+ * Get the underlying {@link ActivityDiagram}.
+ *
* @return the ActivityDiagram represented by this proxy, never null.
*/
- @objid ("bebdd8d2-54e7-4316-b9a9-953282c44fa5")
@Override
public ActivityDiagram getElement() {
return (ActivityDiagram)super.getElement();
}
- @objid ("593614a8-87f3-46c6-bf86-1bc89ef8b3f9")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("703d5be8-927f-4504-aa42-337737f62cd8")
protected ActivityDiagramVariability(final ActivityDiagram elt) {
super(elt);
}
- @objid ("01c0bcd5-c052-4777-9a61-62d1e56701dd")
public static final class MdaTypes {
- @objid ("0a53cd45-8998-4b80-85ea-4218aed3cbbd")
public static Stereotype STEREOTYPE_ELT;
- @objid ("e5b23673-65a9-4139-91b1-4cac222d14e7")
private static Stereotype MDAASSOCDEP;
- @objid ("49cc56aa-b44e-4fbb-b3a5-d8b2423fc6c3")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("fa56c277-1be1-4158-83c1-b029b4810f8f")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "ab5fd973-2bd6-4d3e-9ec5-01774002b15d");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/ClassDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/ClassDiagramVariability.java
index cbba305..a0e621b 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/ClassDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/ClassDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("d642bd19-a7c8-4b26-8323-d24b83f91460")
public class ClassDiagramVariability extends VariationDiagram {
- @objid ("1d78123e-1f1c-4fb4-8e39-b2f3622b0702")
public static final String STEREOTYPE_NAME = "Class_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class ClassDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("428f75d7-df0d-42ef-aa9d-c12b7e02fd49")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, ClassDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link ClassDiagramVariability} proxy on the created {@link ClassDiagram}.
*/
- @objid ("99f2b19f-da79-4eac-8e54-290a060ef7a3")
public static ClassDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, ClassDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static ClassDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link ClassDiagramVariability} proxy from a {@link ClassDiagram} stereotyped << Class_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link ClassDiagramVariability} proxy from a {@link ClassDiagram} stereotyped << Class_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a ClassDiagram
* @return a {@link ClassDiagramVariability} proxy or null.
*/
- @objid ("2a817e31-57aa-4dc1-a452-596361f381fc")
public static ClassDiagramVariability instantiate(final ClassDiagram obj) {
return ClassDiagramVariability.canInstantiate(obj) ? new ClassDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link ClassDiagramVariability} proxy from a {@link ClassDiagram} stereotyped << Class_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link ClassDiagramVariability} proxy from a {@link ClassDiagram} stereotyped << Class_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link ClassDiagram}
* @return a {@link ClassDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("cb9448df-2d5a-4d97-b44b-c7a5b26a8f3e")
public static ClassDiagramVariability safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException {
if (ClassDiagramVariability.canInstantiate(obj))
- return new ClassDiagramVariability(obj);
+ return new ClassDiagramVariability(obj);
else
- throw new IllegalArgumentException("ClassDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("ClassDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("a10eb228-7f6c-4103-b5c9-cfec34a7dcbb")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link ClassDiagram}.
+ * Get the underlying {@link ClassDiagram}.
+ *
* @return the ClassDiagram represented by this proxy, never null.
*/
- @objid ("9e424341-d69d-4ec8-99ef-5d4f3fcd411c")
@Override
public ClassDiagram getElement() {
return (ClassDiagram)super.getElement();
}
- @objid ("042aa833-6865-4a5f-9936-233b94ac8b94")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("4471d4ac-e751-4f9d-b700-352fb5894fd1")
protected ClassDiagramVariability(final ClassDiagram elt) {
super(elt);
}
- @objid ("b3da098d-0c69-4511-82b9-d87efde6bc0d")
public static final class MdaTypes {
- @objid ("ef67820c-8b10-4a83-8df8-cf3a2e08af32")
public static Stereotype STEREOTYPE_ELT;
- @objid ("62c4c910-c31d-4c37-a9e7-68a22f41da89")
private static Stereotype MDAASSOCDEP;
- @objid ("c57e79f1-0e6c-4e2d-8d95-e579038fffa4")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("479da537-0a31-42cf-ac32-36b48df92968")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7863d1bf-ac2d-4f1c-9a18-54bdd695004a");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/FeatureDiagram.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/FeatureDiagram.java
index 5a5dec8..cf0abcc 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/FeatureDiagram.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/classdiagram/FeatureDiagram.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,15 +30,12 @@
*
Stereotype description:
* null
*/
-@objid ("f9547a29-a090-4b9e-939e-b6e92b8a2e78")
public class FeatureDiagram {
- @objid ("4bd04d67-de1b-44d9-b870-46b753abcc13")
public static final String STEREOTYPE_NAME = "Feature_Diagram";
/**
* The underlying {@link ClassDiagram} represented by this proxy, never null.
*/
- @objid ("212e91ca-8c62-44d1-bcb0-d6344a3a5503")
protected final ClassDiagram elt;
/**
@@ -50,7 +46,6 @@ public class FeatureDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("cc88cfd0-5586-4c4a-8d33-9ffea132ab89")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, FeatureDiagram.STEREOTYPE_NAME));
}
@@ -60,7 +55,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link FeatureDiagram} proxy on the created {@link ClassDiagram}.
*/
- @objid ("5f827745-becf-4d55-8e1e-7d8313593598")
public static FeatureDiagram create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, FeatureDiagram.STEREOTYPE_NAME);
@@ -68,34 +62,33 @@ public static FeatureDiagram create() {
}
/**
- * Tries to instantiate a {@link FeatureDiagram} proxy from a {@link ClassDiagram} stereotyped << Feature_Diagram >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link FeatureDiagram} proxy from a {@link ClassDiagram} stereotyped << Feature_Diagram >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a ClassDiagram
* @return a {@link FeatureDiagram} proxy or null.
*/
- @objid ("723ef1d0-88fb-4bc2-9dee-572f02bfc075")
public static FeatureDiagram instantiate(final ClassDiagram obj) {
return FeatureDiagram.canInstantiate(obj) ? new FeatureDiagram(obj) : null;
}
/**
- * Tries to instantiate a {@link FeatureDiagram} proxy from a {@link ClassDiagram} stereotyped << Feature_Diagram >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link FeatureDiagram} proxy from a {@link ClassDiagram} stereotyped << Feature_Diagram >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link ClassDiagram}
* @return a {@link FeatureDiagram} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("d35ecab7-865a-4ca3-bdd5-3f81bc06cf7b")
public static FeatureDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException {
if (FeatureDiagram.canInstantiate(obj))
- return new FeatureDiagram(obj);
+ return new FeatureDiagram(obj);
else
- throw new IllegalArgumentException("FeatureDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("FeatureDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("1e9cc9ae-d2a3-4050-adda-0c4dd47ef0e3")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -112,37 +105,30 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link ClassDiagram}.
+ * Get the underlying {@link ClassDiagram}.
+ *
* @return the ClassDiagram represented by this proxy, never null.
*/
- @objid ("9eaa7f8f-00a6-4c7f-b789-39c61f0ea0b9")
public ClassDiagram getElement() {
return this.elt;
}
- @objid ("b200308f-4679-4c49-8324-ee9cb8488d59")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("7db3fa45-f1ac-4d71-ad97-c88e1315bd9a")
protected FeatureDiagram(final ClassDiagram elt) {
this.elt = elt;
}
- @objid ("f9c5f827-ca3d-4df3-add1-4ce84f025502")
public static final class MdaTypes {
- @objid ("00c2b6e1-d0ed-4ddb-ab96-2173aa3a2de1")
public static Stereotype STEREOTYPE_ELT;
- @objid ("316ba795-d557-48f8-8a7f-cbbbaff13e70")
private static Stereotype MDAASSOCDEP;
- @objid ("30482a2c-a7f0-48f8-9a21-95fd33bc55d9")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("1664297e-5c17-47b1-add1-7cbd2eeece49")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "154248f2-acd9-4c6e-9b98-8df045ffae53");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -150,11 +136,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/communicationdiagram/CommunicationDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/communicationdiagram/CommunicationDiagramVariability.java
index 78523d6..7500629 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/communicationdiagram/CommunicationDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/communicationdiagram/CommunicationDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("8ab30b0c-1705-4f87-a02a-ebd7f7c31c72")
public class CommunicationDiagramVariability extends VariationDiagram {
- @objid ("e89774e3-285f-4e72-a138-f6592a625fd8")
public static final String STEREOTYPE_NAME = "Communication_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class CommunicationDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("f563ebd0-631f-4b51-8304-aef269bf8d1e")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof CommunicationDiagram) && ((CommunicationDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, CommunicationDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link CommunicationDiagramVariability} proxy on the created {@link CommunicationDiagram}.
*/
- @objid ("6920b9f3-34af-4822-88d9-e0b9cdb2ae36")
public static CommunicationDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.CommunicationDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, CommunicationDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static CommunicationDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link CommunicationDiagramVariability} proxy from a {@link CommunicationDiagram} stereotyped << Communication_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link CommunicationDiagramVariability} proxy from a {@link CommunicationDiagram} stereotyped << Communication_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a CommunicationDiagram
* @return a {@link CommunicationDiagramVariability} proxy or null.
*/
- @objid ("030702da-767b-4693-aca2-e228de3fbbab")
public static CommunicationDiagramVariability instantiate(final CommunicationDiagram obj) {
return CommunicationDiagramVariability.canInstantiate(obj) ? new CommunicationDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link CommunicationDiagramVariability} proxy from a {@link CommunicationDiagram} stereotyped << Communication_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link CommunicationDiagramVariability} proxy from a {@link CommunicationDiagram} stereotyped << Communication_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link CommunicationDiagram}
* @return a {@link CommunicationDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("a65f66e8-edbb-41f7-84ed-776a089cb16e")
public static CommunicationDiagramVariability safeInstantiate(final CommunicationDiagram obj) throws IllegalArgumentException {
if (CommunicationDiagramVariability.canInstantiate(obj))
- return new CommunicationDiagramVariability(obj);
+ return new CommunicationDiagramVariability(obj);
else
- throw new IllegalArgumentException("CommunicationDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("CommunicationDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("79d13f29-5796-4618-ac88-03ed83fac0ef")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link CommunicationDiagram}.
+ * Get the underlying {@link CommunicationDiagram}.
+ *
* @return the CommunicationDiagram represented by this proxy, never null.
*/
- @objid ("4a672b9c-c2e2-4a92-b804-fdabff7ce1c9")
@Override
public CommunicationDiagram getElement() {
return (CommunicationDiagram)super.getElement();
}
- @objid ("050f7cdc-1ab9-429f-9000-2c78b72d9d68")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("ae827349-91a2-4014-bef7-16f7f0f3f00b")
protected CommunicationDiagramVariability(final CommunicationDiagram elt) {
super(elt);
}
- @objid ("d374295d-3cb8-42a3-882f-4ef3b11445a2")
public static final class MdaTypes {
- @objid ("4e56fb17-8fd3-408b-9b27-c806071b5ffc")
public static Stereotype STEREOTYPE_ELT;
- @objid ("fd8c384f-2508-4b16-9d33-4e4cfccdad23")
private static Stereotype MDAASSOCDEP;
- @objid ("aa9c5d53-9306-4bbe-8d57-649a84e18756")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("dfe71845-8154-4b76-888e-842755b33300")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "75f73c97-2807-4f78-8fee-4dcb27015ba0");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/deploymentdiagram/DeploymentDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/deploymentdiagram/DeploymentDiagramVariability.java
index a73aace..af8a15b 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/deploymentdiagram/DeploymentDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/deploymentdiagram/DeploymentDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("6f041b1b-0201-4ce4-ac22-9cb5d89e4518")
public class DeploymentDiagramVariability extends VariationDiagram {
- @objid ("a47f1002-7567-4bfb-b6cd-bdb434744a10")
public static final String STEREOTYPE_NAME = "Deployment_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class DeploymentDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("8378685d-213e-4d5d-b3e2-599a6d4254ed")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof DeploymentDiagram) && ((DeploymentDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, DeploymentDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link DeploymentDiagramVariability} proxy on the created {@link DeploymentDiagram}.
*/
- @objid ("b5810dbc-9d71-4c7f-bed1-9284baea18c1")
public static DeploymentDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.DeploymentDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, DeploymentDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static DeploymentDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link DeploymentDiagramVariability} proxy from a {@link DeploymentDiagram} stereotyped << Deployment_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link DeploymentDiagramVariability} proxy from a {@link DeploymentDiagram} stereotyped << Deployment_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a DeploymentDiagram
* @return a {@link DeploymentDiagramVariability} proxy or null.
*/
- @objid ("8bda618c-268c-4c2f-8473-5471e6fbd336")
public static DeploymentDiagramVariability instantiate(final DeploymentDiagram obj) {
return DeploymentDiagramVariability.canInstantiate(obj) ? new DeploymentDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link DeploymentDiagramVariability} proxy from a {@link DeploymentDiagram} stereotyped << Deployment_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link DeploymentDiagramVariability} proxy from a {@link DeploymentDiagram} stereotyped << Deployment_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link DeploymentDiagram}
* @return a {@link DeploymentDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("cf2c8137-2e9e-496a-b931-2b35e99959b9")
public static DeploymentDiagramVariability safeInstantiate(final DeploymentDiagram obj) throws IllegalArgumentException {
if (DeploymentDiagramVariability.canInstantiate(obj))
- return new DeploymentDiagramVariability(obj);
+ return new DeploymentDiagramVariability(obj);
else
- throw new IllegalArgumentException("DeploymentDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("DeploymentDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("8e2f556f-c7f7-45da-b1c7-f71f17ea2504")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link DeploymentDiagram}.
+ * Get the underlying {@link DeploymentDiagram}.
+ *
* @return the DeploymentDiagram represented by this proxy, never null.
*/
- @objid ("f777f90a-5dba-4218-9e73-f45fd9892e60")
@Override
public DeploymentDiagram getElement() {
return (DeploymentDiagram)super.getElement();
}
- @objid ("129e2fc0-8695-40aa-981b-fbfd11b35d78")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("d01bb2e4-b17f-4151-820a-3ec37e430884")
protected DeploymentDiagramVariability(final DeploymentDiagram elt) {
super(elt);
}
- @objid ("7c5c5445-8f55-4738-a33b-603fc97f8e70")
public static final class MdaTypes {
- @objid ("c942b0bc-0f07-4a8f-818d-f23719c1bf43")
public static Stereotype STEREOTYPE_ELT;
- @objid ("08e735ef-0f91-43e7-8be3-a003170de919")
private static Stereotype MDAASSOCDEP;
- @objid ("9a2b23cc-d162-411f-8d18-c0187014577d")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("f2e442bc-ce4e-4727-90d8-524142b58e02")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "f534f6ce-af80-4e35-9404-5fb8bdd23352");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/objectdiagram/ObjectDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/objectdiagram/ObjectDiagramVariability.java
index 1fbf4fc..157f2a8 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/objectdiagram/ObjectDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/objectdiagram/ObjectDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("5e69d8ce-a14c-43b3-a011-c314dc1cd003")
public class ObjectDiagramVariability extends VariationDiagram {
- @objid ("b2ac15f4-eeaf-4aed-91f7-d25a473b650c")
public static final String STEREOTYPE_NAME = "Object_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class ObjectDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("718dab22-081e-4c60-b2d9-cc68cf87eced")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof ObjectDiagram) && ((ObjectDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, ObjectDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link ObjectDiagramVariability} proxy on the created {@link ObjectDiagram}.
*/
- @objid ("2602a669-31e1-4528-be1d-39c459c8a554")
public static ObjectDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ObjectDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, ObjectDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static ObjectDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link ObjectDiagramVariability} proxy from a {@link ObjectDiagram} stereotyped << Object_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link ObjectDiagramVariability} proxy from a {@link ObjectDiagram} stereotyped << Object_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a ObjectDiagram
* @return a {@link ObjectDiagramVariability} proxy or null.
*/
- @objid ("e5130299-ff91-43fc-a735-14da98815ee6")
public static ObjectDiagramVariability instantiate(final ObjectDiagram obj) {
return ObjectDiagramVariability.canInstantiate(obj) ? new ObjectDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link ObjectDiagramVariability} proxy from a {@link ObjectDiagram} stereotyped << Object_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link ObjectDiagramVariability} proxy from a {@link ObjectDiagram} stereotyped << Object_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link ObjectDiagram}
* @return a {@link ObjectDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("bce830c2-e13c-4b10-b854-2d0cd7ccd69f")
public static ObjectDiagramVariability safeInstantiate(final ObjectDiagram obj) throws IllegalArgumentException {
if (ObjectDiagramVariability.canInstantiate(obj))
- return new ObjectDiagramVariability(obj);
+ return new ObjectDiagramVariability(obj);
else
- throw new IllegalArgumentException("ObjectDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("ObjectDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("0e89f5b1-ee0b-42a2-8d28-57479da68239")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link ObjectDiagram}.
+ * Get the underlying {@link ObjectDiagram}.
+ *
* @return the ObjectDiagram represented by this proxy, never null.
*/
- @objid ("b28639dd-f28d-466b-8577-aa41016ad593")
@Override
public ObjectDiagram getElement() {
return (ObjectDiagram)super.getElement();
}
- @objid ("1b4faddb-6ade-4899-8f1c-8476753f3ff2")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("ac7c0a1e-cd76-4595-b007-0675157b874a")
protected ObjectDiagramVariability(final ObjectDiagram elt) {
super(elt);
}
- @objid ("0f6fe57d-5f1f-4aa6-999f-630215d6cf13")
public static final class MdaTypes {
- @objid ("e0c0ee9a-bb3f-4279-9dcb-40aeb6f845fc")
public static Stereotype STEREOTYPE_ELT;
- @objid ("31ea57bf-6d1f-4ebb-9944-7d70aac44abd")
private static Stereotype MDAASSOCDEP;
- @objid ("30a91750-4ecc-414e-adb7-e76cff573087")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("debec485-0876-4fc4-9fc3-bf2f82f76e6f")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "faabe302-91ef-47cd-92a8-6919e788840d");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/sequencediagram/SequenceDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/sequencediagram/SequenceDiagramVariability.java
index bb715d9..a5d0e6b 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/sequencediagram/SequenceDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/sequencediagram/SequenceDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("67c30a19-5d9d-4659-98dc-1a97023009b2")
public class SequenceDiagramVariability extends VariationDiagram {
- @objid ("047550c7-5239-481f-8a8b-9c727c868ab7")
public static final String STEREOTYPE_NAME = "Sequence_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class SequenceDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("bdc36726-1015-489c-bc0e-1995c7f9f055")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof SequenceDiagram) && ((SequenceDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, SequenceDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link SequenceDiagramVariability} proxy on the created {@link SequenceDiagram}.
*/
- @objid ("605ee59d-d6aa-4552-839e-61239855e1d3")
public static SequenceDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.SequenceDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, SequenceDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static SequenceDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link SequenceDiagramVariability} proxy from a {@link SequenceDiagram} stereotyped << Sequence_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link SequenceDiagramVariability} proxy from a {@link SequenceDiagram} stereotyped << Sequence_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a SequenceDiagram
* @return a {@link SequenceDiagramVariability} proxy or null.
*/
- @objid ("9bd0072f-e5e6-4d20-b447-48bc495eb9d3")
public static SequenceDiagramVariability instantiate(final SequenceDiagram obj) {
return SequenceDiagramVariability.canInstantiate(obj) ? new SequenceDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link SequenceDiagramVariability} proxy from a {@link SequenceDiagram} stereotyped << Sequence_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link SequenceDiagramVariability} proxy from a {@link SequenceDiagram} stereotyped << Sequence_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link SequenceDiagram}
* @return a {@link SequenceDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("00c0ae06-2577-42c2-8614-8ff936859a86")
public static SequenceDiagramVariability safeInstantiate(final SequenceDiagram obj) throws IllegalArgumentException {
if (SequenceDiagramVariability.canInstantiate(obj))
- return new SequenceDiagramVariability(obj);
+ return new SequenceDiagramVariability(obj);
else
- throw new IllegalArgumentException("SequenceDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("SequenceDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("041fc7ba-39df-4330-9954-1ae3db9f874d")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link SequenceDiagram}.
+ * Get the underlying {@link SequenceDiagram}.
+ *
* @return the SequenceDiagram represented by this proxy, never null.
*/
- @objid ("00719f3b-6518-4eac-9a84-b261cddd9018")
@Override
public SequenceDiagram getElement() {
return (SequenceDiagram)super.getElement();
}
- @objid ("5d3671e1-22f9-4637-a8ab-c9817d91a528")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("3234581e-d1a6-4f2c-9e64-78214c10908a")
protected SequenceDiagramVariability(final SequenceDiagram elt) {
super(elt);
}
- @objid ("c959d3ce-53de-4b69-839b-77ea65f2a591")
public static final class MdaTypes {
- @objid ("325c4ba0-2aff-4d0c-8fb8-b7f4c1869082")
public static Stereotype STEREOTYPE_ELT;
- @objid ("87c15122-e12a-4ed1-8b0f-4534debdbae6")
private static Stereotype MDAASSOCDEP;
- @objid ("52c665c0-495d-4778-ab8c-2ea2c294c313")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("42d5b07e-d233-41fe-a201-e54089d2d9a6")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "cd2fe02a-d8c7-40d9-898b-46177e9cf19f");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/statemachinediagram/StateMachineDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/statemachinediagram/StateMachineDiagramVariability.java
index 45cbecd..97437f1 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/statemachinediagram/StateMachineDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/statemachinediagram/StateMachineDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("74b1f369-f31d-4f02-b7fe-0374126a21b9")
public class StateMachineDiagramVariability extends VariationDiagram {
- @objid ("fc11cfd2-cdd8-400f-9038-0d8c98e76a27")
public static final String STEREOTYPE_NAME = "State_Machine_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class StateMachineDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("033ddc4a-a1e0-4b1b-b605-7419537e1730")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof StateMachineDiagram) && ((StateMachineDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, StateMachineDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link StateMachineDiagramVariability} proxy on the created {@link StateMachineDiagram}.
*/
- @objid ("2134a0dd-ada2-490d-a112-efedf3deb81e")
public static StateMachineDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.StateMachineDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, StateMachineDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static StateMachineDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link StateMachineDiagramVariability} proxy from a {@link StateMachineDiagram} stereotyped << State_Machine_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link StateMachineDiagramVariability} proxy from a {@link StateMachineDiagram} stereotyped << State_Machine_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a StateMachineDiagram
* @return a {@link StateMachineDiagramVariability} proxy or null.
*/
- @objid ("8371e0ca-f73b-4925-8119-08f2ccf8f367")
public static StateMachineDiagramVariability instantiate(final StateMachineDiagram obj) {
return StateMachineDiagramVariability.canInstantiate(obj) ? new StateMachineDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link StateMachineDiagramVariability} proxy from a {@link StateMachineDiagram} stereotyped << State_Machine_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link StateMachineDiagramVariability} proxy from a {@link StateMachineDiagram} stereotyped << State_Machine_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link StateMachineDiagram}
* @return a {@link StateMachineDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("ecee6b8b-2692-4a1a-addc-25c83ef31021")
public static StateMachineDiagramVariability safeInstantiate(final StateMachineDiagram obj) throws IllegalArgumentException {
if (StateMachineDiagramVariability.canInstantiate(obj))
- return new StateMachineDiagramVariability(obj);
+ return new StateMachineDiagramVariability(obj);
else
- throw new IllegalArgumentException("StateMachineDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("StateMachineDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("27f8ebb1-10c0-494c-ba66-9f69b8748326")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link StateMachineDiagram}.
+ * Get the underlying {@link StateMachineDiagram}.
+ *
* @return the StateMachineDiagram represented by this proxy, never null.
*/
- @objid ("30131204-c49f-4b1d-b453-8f2c66f6d5f4")
@Override
public StateMachineDiagram getElement() {
return (StateMachineDiagram)super.getElement();
}
- @objid ("5f2d4d8d-8fdd-4c98-9e82-2f15e07f198e")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("334a46fa-4579-4336-a39f-d966b204f5a5")
protected StateMachineDiagramVariability(final StateMachineDiagram elt) {
super(elt);
}
- @objid ("60015466-db0e-412c-8b01-fe2dc9358ec7")
public static final class MdaTypes {
- @objid ("58b3fad6-ee7a-4117-a9ac-55a50810c48a")
public static Stereotype STEREOTYPE_ELT;
- @objid ("bc187205-f7e3-4a74-989a-afa31c7d52fe")
private static Stereotype MDAASSOCDEP;
- @objid ("e119a76f-419c-4ef9-a443-155a02b1ef83")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("21b9e14b-8ce2-452d-874f-3a8df90a1aee")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "1ebf31a3-cebd-4c1d-bfaf-f0cabe9eb4e2");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/usecasediagram/UseCaseDiagramVariability.java b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/usecasediagram/UseCaseDiagramVariability.java
index 0e370e1..86a3fe5 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/usecasediagram/UseCaseDiagramVariability.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/automatic/standard/usecasediagram/UseCaseDiagramVariability.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -32,9 +31,7 @@
*
Stereotype description:
*
*/
-@objid ("141e5757-2ac6-4946-a536-4fa6f6c483f3")
public class UseCaseDiagramVariability extends VariationDiagram {
- @objid ("707ed4ab-55d5-44d8-a2ef-129e337bf4e9")
public static final String STEREOTYPE_NAME = "Use_Case_Diagram_(Variability)";
/**
@@ -45,7 +42,6 @@ public class UseCaseDiagramVariability extends VariationDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("56f4e41a-4c35-40e5-b9df-8337db4d41b8")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof UseCaseDiagram) && ((UseCaseDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, UseCaseDiagramVariability.STEREOTYPE_NAME));
}
@@ -55,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link UseCaseDiagramVariability} proxy on the created {@link UseCaseDiagram}.
*/
- @objid ("ad2c7454-94d5-464b-badd-34519158d1d7")
public static UseCaseDiagramVariability create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.UseCaseDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, UseCaseDiagramVariability.STEREOTYPE_NAME);
@@ -63,34 +58,33 @@ public static UseCaseDiagramVariability create() {
}
/**
- * Tries to instantiate a {@link UseCaseDiagramVariability} proxy from a {@link UseCaseDiagram} stereotyped << Use_Case_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link UseCaseDiagramVariability} proxy from a {@link UseCaseDiagram} stereotyped << Use_Case_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a UseCaseDiagram
* @return a {@link UseCaseDiagramVariability} proxy or null.
*/
- @objid ("14388e99-fe90-42b1-a599-b46e8320ffa5")
public static UseCaseDiagramVariability instantiate(final UseCaseDiagram obj) {
return UseCaseDiagramVariability.canInstantiate(obj) ? new UseCaseDiagramVariability(obj) : null;
}
/**
- * Tries to instantiate a {@link UseCaseDiagramVariability} proxy from a {@link UseCaseDiagram} stereotyped << Use_Case_Diagram_(Variability) >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link UseCaseDiagramVariability} proxy from a {@link UseCaseDiagram} stereotyped << Use_Case_Diagram_(Variability) >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link UseCaseDiagram}
* @return a {@link UseCaseDiagramVariability} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("7707ebb8-faac-4e33-901a-f5441e67d0d6")
public static UseCaseDiagramVariability safeInstantiate(final UseCaseDiagram obj) throws IllegalArgumentException {
if (UseCaseDiagramVariability.canInstantiate(obj))
- return new UseCaseDiagramVariability(obj);
+ return new UseCaseDiagramVariability(obj);
else
- throw new IllegalArgumentException("UseCaseDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("UseCaseDiagramVariability: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("814bd30a-29f3-44ea-9de5-1c1446a1e73e")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -107,38 +101,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link UseCaseDiagram}.
+ * Get the underlying {@link UseCaseDiagram}.
+ *
* @return the UseCaseDiagram represented by this proxy, never null.
*/
- @objid ("b3834940-ff14-4fdb-ade7-815a96becb2a")
@Override
public UseCaseDiagram getElement() {
return (UseCaseDiagram)super.getElement();
}
- @objid ("e84a2b37-27d5-4046-b7e3-89cd73088e67")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("1447f77a-09c7-441e-b8a9-8a58657f34f3")
protected UseCaseDiagramVariability(final UseCaseDiagram elt) {
super(elt);
}
- @objid ("ecd98297-8490-4343-8c46-7cdb411be5ab")
public static final class MdaTypes {
- @objid ("c097d840-971f-4d1d-80bb-7f6b4c3eda22")
public static Stereotype STEREOTYPE_ELT;
- @objid ("b104d41b-1aa8-421b-9370-f474af81673d")
private static Stereotype MDAASSOCDEP;
- @objid ("f3c9ced4-f107-40f6-9257-2ed60af7cc7b")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("340bca0d-351c-4bb4-a885-cc53a84655fc")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "e03a90f1-d88d-4ee7-a169-3d4c07e7c238");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -146,11 +133,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/infrastructure/matrixdefinition/VariantDefinition.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/infrastructure/matrixdefinition/VariantDefinition.java
index e27ee2f..e81100b 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/infrastructure/matrixdefinition/VariantDefinition.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/infrastructure/matrixdefinition/VariantDefinition.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,15 +30,12 @@
*
Stereotype description:
* null
*/
-@objid ("98fad188-38d3-4989-aa9b-006746db544d")
public class VariantDefinition {
- @objid ("d744f5f0-1c9c-4c18-8eac-b6ba1248981a")
public static final String STEREOTYPE_NAME = "VariantDefinition";
/**
* The underlying {@link MatrixDefinition} represented by this proxy, never null.
*/
- @objid ("af3d9b1f-6866-41a8-81e8-204946c3385e")
protected final MatrixDefinition elt;
/**
@@ -50,7 +46,6 @@ public class VariantDefinition {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("6b0ef99e-cf59-462c-ac06-fe77f3dacbd3")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof MatrixDefinition) && ((MatrixDefinition) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, VariantDefinition.STEREOTYPE_NAME));
}
@@ -60,7 +55,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link VariantDefinition} proxy on the created {@link MatrixDefinition}.
*/
- @objid ("c7978840-b7f5-450a-bed5-12e815a37b30")
public static VariantDefinition create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Infrastructure.MatrixDefinition");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, VariantDefinition.STEREOTYPE_NAME);
@@ -68,34 +62,33 @@ public static VariantDefinition create() {
}
/**
- * Tries to instantiate a {@link VariantDefinition} proxy from a {@link MatrixDefinition} stereotyped << VariantDefinition >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link VariantDefinition} proxy from a {@link MatrixDefinition} stereotyped << VariantDefinition >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a MatrixDefinition
* @return a {@link VariantDefinition} proxy or null.
*/
- @objid ("c447c4e2-d24a-4721-b29a-118894dffa0c")
public static VariantDefinition instantiate(final MatrixDefinition obj) {
return VariantDefinition.canInstantiate(obj) ? new VariantDefinition(obj) : null;
}
/**
- * Tries to instantiate a {@link VariantDefinition} proxy from a {@link MatrixDefinition} stereotyped << VariantDefinition >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link VariantDefinition} proxy from a {@link MatrixDefinition} stereotyped << VariantDefinition >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link MatrixDefinition}
* @return a {@link VariantDefinition} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("a6c71079-c7b7-4081-98db-b1e021b87910")
public static VariantDefinition safeInstantiate(final MatrixDefinition obj) throws IllegalArgumentException {
if (VariantDefinition.canInstantiate(obj))
- return new VariantDefinition(obj);
+ return new VariantDefinition(obj);
else
- throw new IllegalArgumentException("VariantDefinition: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("VariantDefinition: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("abefde91-7197-4f42-90f8-38ae0cf9c576")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -112,37 +105,30 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link MatrixDefinition}.
+ * Get the underlying {@link MatrixDefinition}.
+ *
* @return the MatrixDefinition represented by this proxy, never null.
*/
- @objid ("c428c695-6c1d-4710-b56b-793dde32236c")
public MatrixDefinition getElement() {
return this.elt;
}
- @objid ("0224935a-73e0-44dd-9f2a-8f1ef88d938d")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("ed0295c1-ca4e-4153-b919-ad1ce7fdc5b1")
protected VariantDefinition(final MatrixDefinition elt) {
this.elt = elt;
}
- @objid ("a0ed7f92-65c2-4b7c-ad70-011a1952ae6a")
public static final class MdaTypes {
- @objid ("ee5a1f75-ce67-4130-8425-4dd512fb779a")
public static Stereotype STEREOTYPE_ELT;
- @objid ("946697ec-4b6c-464f-834c-8354d598648e")
private static Stereotype MDAASSOCDEP;
- @objid ("b287e07b-1bc8-47e8-abde-db33a985ca73")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("98bfb663-ba1f-4f3a-bab5-765ff36d836b")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "b7482db0-6136-496c-b767-fa2e748eb902");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -150,11 +136,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/AlternativeFeature.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/AlternativeFeature.java
index 31f5bfc..3f83a3d 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/AlternativeFeature.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/AlternativeFeature.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,9 +30,7 @@
*
Stereotype description:
* null
*/
-@objid ("1ca3059a-c96d-47f9-b809-1a70b42cedf8")
public class AlternativeFeature extends Feature {
- @objid ("efd93360-f94d-4560-bf14-7d2c105eac80")
public static final String STEREOTYPE_NAME = "AlternativeFeature";
/**
@@ -44,7 +41,6 @@ public class AlternativeFeature extends Feature {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("61ce85ee-8602-4b72-8fe2-1ed9d6dd05dd")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Class) && ((Class) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, AlternativeFeature.STEREOTYPE_NAME));
}
@@ -54,7 +50,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link AlternativeFeature} proxy on the created {@link Class}.
*/
- @objid ("b16e6b4a-a6e7-4bd8-8951-d954fbad1149")
public static AlternativeFeature create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, AlternativeFeature.STEREOTYPE_NAME);
@@ -62,34 +57,33 @@ public static AlternativeFeature create() {
}
/**
- * Tries to instantiate a {@link AlternativeFeature} proxy from a {@link Class} stereotyped << AlternativeFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link AlternativeFeature} proxy from a {@link Class} stereotyped << AlternativeFeature >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Class
* @return a {@link AlternativeFeature} proxy or null.
*/
- @objid ("80ac7c75-71ff-4aec-96aa-a9c1771b60ae")
public static AlternativeFeature instantiate(final Class obj) {
return AlternativeFeature.canInstantiate(obj) ? new AlternativeFeature(obj) : null;
}
/**
- * Tries to instantiate a {@link AlternativeFeature} proxy from a {@link Class} stereotyped << AlternativeFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link AlternativeFeature} proxy from a {@link Class} stereotyped << AlternativeFeature >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Class}
* @return a {@link AlternativeFeature} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("1340df5f-0b89-40e5-954f-535a2c6e8331")
public static AlternativeFeature safeInstantiate(final Class obj) throws IllegalArgumentException {
if (AlternativeFeature.canInstantiate(obj))
- return new AlternativeFeature(obj);
+ return new AlternativeFeature(obj);
else
- throw new IllegalArgumentException("AlternativeFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("AlternativeFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("608c1ba4-e4e1-4336-8d15-084c15ff6ae8")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -106,38 +100,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Class}.
+ * Get the underlying {@link Class}.
+ *
* @return the Class represented by this proxy, never null.
*/
- @objid ("2b854629-615b-4d3b-a83e-dcf46c248470")
@Override
public Class getElement() {
return (Class)super.getElement();
}
- @objid ("72b8de2e-5f10-45dd-97c9-bcab29f914a9")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("fdb86775-62d9-48a7-bfa1-23005e9d9c1e")
protected AlternativeFeature(final Class elt) {
super(elt);
}
- @objid ("f4136720-d5fc-413a-8193-49d86a436526")
public static final class MdaTypes {
- @objid ("8d87a4ac-b235-4ae9-8a85-1343294cf371")
public static Stereotype STEREOTYPE_ELT;
- @objid ("5888d8c5-871f-43a8-8ba0-edf83078b986")
private static Stereotype MDAASSOCDEP;
- @objid ("5e3fb44e-8873-4931-8c76-2d0d18979f8f")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("86ecfb3c-9f1c-47de-affb-434ec1ad654e")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7a57929a-4732-49b8-aeab-83709e8be6c6");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -145,11 +132,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Feature.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Feature.java
index 76c70f9..a97ab0f 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Feature.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Feature.java
@@ -10,7 +10,6 @@
import java.util.Collections;
import java.util.List;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.module.context.IModuleContext;
import org.modelio.metamodel.uml.infrastructure.Dependency;
@@ -28,36 +27,31 @@
*
Stereotype description:
* null
*/
-@objid ("d7faef9f-820f-4ebe-98e8-bc811a70843e")
public class Feature {
- @objid ("27ce4bb8-e133-4519-8786-6d9f9161f42c")
public static final String STEREOTYPE_NAME = "Feature";
/**
* The underlying {@link Class} represented by this proxy, never null.
*/
- @objid ("a65f6a3f-68e9-462d-8697-57eea9144f62")
protected final Class elt;
/**
* Tells whether a {@link Feature proxy} can be instantiated from a {@link MObject} checking it is a {@link Class} stereotyped << Feature >>.
*
* 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.
*/
- @objid ("6592e4cc-40f9-4fb6-84f2-37dfb15458b7")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Class) && ((Class) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, Feature.STEREOTYPE_NAME));
}
/**
* Create a new {@link Class} stereotyped << Feature >> then instantiate a {@link Feature} proxy.
- *
+ *
* @return a {@link Feature} proxy on the created {@link Class}.
*/
- @objid ("617c6f0d-519a-4435-adaa-43d3180dd737")
public static Feature create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, Feature.STEREOTYPE_NAME);
@@ -68,10 +62,10 @@ public static Feature create() {
* Tries to instantiate a {@link Feature} proxy from a {@link Class} stereotyped << Feature >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Class
* @return a {@link Feature} proxy or null.
*/
- @objid ("049ef336-57ea-40e9-9383-e600f15f1fe5")
public static Feature instantiate(final Class obj) {
return Feature.canInstantiate(obj) ? new Feature(obj) : null;
}
@@ -80,25 +74,23 @@ public static Feature instantiate(final Class obj) {
* Tries to instantiate a {@link Feature} proxy from a {@link Class} stereotyped << Feature >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Class}
* @return a {@link Feature} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("78c75c83-97dc-4a24-8400-c135d561668a")
public static Feature safeInstantiate(final Class obj) throws IllegalArgumentException {
if (Feature.canInstantiate(obj))
- return new Feature(obj);
+ return new Feature(obj);
else
- throw new IllegalArgumentException("Feature: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("Feature: Cannot instantiate "+obj+": wrong element type or stereotype");
}
/**
* Add a value to the 'featuredElt' role.
* Role description:
* null
- *
*/
- @objid ("e500aaf2-d9b0-4718-af83-99e48662911f")
public void addFeaturedElt(final ModelElement obj) {
if (obj != null) {
IModelingSession session = VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession();
@@ -112,9 +104,7 @@ public void addFeaturedElt(final ModelElement obj) {
* Add a value of the 'variant' role.
* Role description:
* null
- *
*/
- @objid ("71686ee1-765f-4e79-bb0a-ef953933c021")
public void addVariant(final Variant obj) {
if (obj != null) {
IModelingSession session = VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession();
@@ -124,7 +114,6 @@ public void addVariant(final Variant obj) {
}
}
- @objid ("f576cb8f-35d8-4ebb-8c31-d3205c079d62")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -142,9 +131,9 @@ public boolean equals(final Object obj) {
/**
* Get the underlying {@link Class}.
+ *
* @return the Class represented by this proxy, never null.
*/
- @objid ("1615cdc7-ee5b-4bfd-add8-ae1bb546d2f3")
public Class getElement() {
return this.elt;
}
@@ -153,9 +142,7 @@ public Class getElement() {
* Get the values of the 'featuredElt' role.
* Role description:
* null
- *
*/
- @objid ("95c03670-e1ce-4a89-a73a-34a2b1e401cc")
public List getFeaturedElt() {
List results = new ArrayList<>();
for (Dependency d : this.elt.getDependsOnDependency()) {
@@ -170,9 +157,7 @@ public List getFeaturedElt() {
* Get the values of the 'variant' role.
* Role description:
* null
- *
*/
- @objid ("254dafb9-a267-4514-b7ab-f17acb8e3197")
public List getVariant() {
List results = new ArrayList<>();
for (Dependency d : this.elt.getImpactedDependency()) {
@@ -185,7 +170,6 @@ public List getVariant() {
return Collections.unmodifiableList(results);
}
- @objid ("56a74025-45d5-4dc2-a5e7-152851a50223")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -195,9 +179,7 @@ public int hashCode() {
* Remove a value from the 'featuredElt' role.
* Role description:
* null
- *
*/
- @objid ("19f04f13-3e5b-4742-832e-b162bced47ae")
public boolean removeFeaturedElt(final ModelElement obj) {
if (obj != null) {
for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) {
@@ -215,9 +197,7 @@ public boolean removeFeaturedElt(final ModelElement obj) {
* Remove a value from 'variant' role.
*/
-@objid ("563bce98-be27-43c1-8fd1-58af9d80b4c8")
public class FeatureRoot extends Feature {
- @objid ("0522db50-0e59-4841-8a23-ea239bde2e13")
public static final String STEREOTYPE_NAME = "FeatureRoot";
/**
@@ -46,7 +42,6 @@ public class FeatureRoot extends Feature {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("7c930e5a-63a0-49e9-89e9-93d58172f1aa")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Class) && ((Class) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, FeatureRoot.STEREOTYPE_NAME));
}
@@ -56,7 +51,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link FeatureRoot} proxy on the created {@link Class}.
*/
- @objid ("8c4935a0-0cd0-4ca3-af0a-a24b7deb0e8b")
public static FeatureRoot create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, FeatureRoot.STEREOTYPE_NAME);
@@ -64,40 +58,38 @@ public static FeatureRoot create() {
}
/**
- * Tries to instantiate a {@link FeatureRoot} proxy from a {@link Class} stereotyped << FeatureRoot >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link FeatureRoot} proxy from a {@link Class} stereotyped << FeatureRoot >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Class
* @return a {@link FeatureRoot} proxy or null.
*/
- @objid ("4aceaa05-1032-4713-adff-37151b83d9fa")
public static FeatureRoot instantiate(final Class obj) {
return FeatureRoot.canInstantiate(obj) ? new FeatureRoot(obj) : null;
}
/**
- * Tries to instantiate a {@link FeatureRoot} proxy from a {@link Class} stereotyped << FeatureRoot >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link FeatureRoot} proxy from a {@link Class} stereotyped << FeatureRoot >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Class}
* @return a {@link FeatureRoot} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("c4eec3e6-5e2d-406b-9374-874ecbc9182c")
public static FeatureRoot safeInstantiate(final Class obj) throws IllegalArgumentException {
if (FeatureRoot.canInstantiate(obj))
- return new FeatureRoot(obj);
+ return new FeatureRoot(obj);
else
- throw new IllegalArgumentException("FeatureRoot: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("FeatureRoot: Cannot instantiate "+obj+": wrong element type or stereotype");
}
/**
* Add a value of the 'variant' role.
* Role description:
* null
- *
*/
- @objid ("d25f3182-ace7-45f2-a977-338a58fa6ce6")
public void addVariant(final Variant obj) {
if (obj != null) {
IModelingSession session = VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession();
@@ -107,7 +99,6 @@ public void addVariant(final Variant obj) {
}
}
- @objid ("b44f70f3-4039-48cc-8b52-6591d2b8e6d5")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -124,10 +115,10 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Class}.
+ * Get the underlying {@link Class}.
+ *
* @return the Class represented by this proxy, never null.
*/
- @objid ("57a7c398-13a9-4c67-9d26-58656fb24066")
@Override
public Class getElement() {
return (Class)super.getElement();
@@ -137,9 +128,7 @@ public Class getElement() {
* Get the values of the 'variant' role.
* Role description:
* null
- *
*/
- @objid ("e049ce99-cd83-4334-8583-f3332b7705c2")
public List getVariant() {
List results = new ArrayList<>();
for (Dependency d : this.elt.getImpactedDependency()) {
@@ -152,7 +141,6 @@ public List getVariant() {
return Collections.unmodifiableList(results);
}
- @objid ("0228c46a-e85b-4418-b5e8-555e8be5832f")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -162,9 +150,7 @@ public int hashCode() {
* Remove a value from 'variant' role.
*/
-@objid ("f9a88220-fe1f-4720-964a-ace39b4d0da8")
public class MandatoryFeature extends Feature {
- @objid ("8b209d71-cd33-4280-8d7a-80f9e2c65b91")
public static final String STEREOTYPE_NAME = "MandatoryFeature";
/**
@@ -44,7 +41,6 @@ public class MandatoryFeature extends Feature {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("b8bcbd7e-8231-44b4-8f4c-1acd8d29eac9")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Class) && ((Class) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, MandatoryFeature.STEREOTYPE_NAME));
}
@@ -54,7 +50,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link MandatoryFeature} proxy on the created {@link Class}.
*/
- @objid ("a86dd5f6-a08b-4e23-97a2-a9024580da6a")
public static MandatoryFeature create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, MandatoryFeature.STEREOTYPE_NAME);
@@ -62,34 +57,33 @@ public static MandatoryFeature create() {
}
/**
- * Tries to instantiate a {@link MandatoryFeature} proxy from a {@link Class} stereotyped << MandatoryFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link MandatoryFeature} proxy from a {@link Class} stereotyped << MandatoryFeature >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Class
* @return a {@link MandatoryFeature} proxy or null.
*/
- @objid ("b9e76a6a-31f4-4051-82bc-ca5d6977175f")
public static MandatoryFeature instantiate(final Class obj) {
return MandatoryFeature.canInstantiate(obj) ? new MandatoryFeature(obj) : null;
}
/**
- * Tries to instantiate a {@link MandatoryFeature} proxy from a {@link Class} stereotyped << MandatoryFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link MandatoryFeature} proxy from a {@link Class} stereotyped << MandatoryFeature >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Class}
* @return a {@link MandatoryFeature} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("9426cab4-e9a0-498f-b964-16d220a4ea5f")
public static MandatoryFeature safeInstantiate(final Class obj) throws IllegalArgumentException {
if (MandatoryFeature.canInstantiate(obj))
- return new MandatoryFeature(obj);
+ return new MandatoryFeature(obj);
else
- throw new IllegalArgumentException("MandatoryFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("MandatoryFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("ffce1041-d5db-41cb-bda2-f78c06e066e1")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -106,38 +100,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Class}.
+ * Get the underlying {@link Class}.
+ *
* @return the Class represented by this proxy, never null.
*/
- @objid ("e54e58e8-eb2e-4b26-9ec6-71c7d9b43059")
@Override
public Class getElement() {
return (Class)super.getElement();
}
- @objid ("1bb671cb-449e-40e8-93c7-7b46d7977345")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("ee8fe65e-eb93-44b1-946e-2d30a9b770dc")
protected MandatoryFeature(final Class elt) {
super(elt);
}
- @objid ("4699ea48-1417-4aac-abcd-6b0cb248048b")
public static final class MdaTypes {
- @objid ("a6ac8bf4-dec8-4f3a-81ac-f855dafbb7fc")
public static Stereotype STEREOTYPE_ELT;
- @objid ("a3b4c562-beaa-4aa7-afdb-7e5d08ad0234")
private static Stereotype MDAASSOCDEP;
- @objid ("a4b1cea9-0e50-4b3c-a327-d0c468bb6383")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("1ce427cb-45ca-43d2-a90e-b0600fe17791")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "523c9b53-38f5-4f81-887d-57d47ee96b91");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -145,11 +132,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OptionalFeature.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OptionalFeature.java
index a3960b6..851248b 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OptionalFeature.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OptionalFeature.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,9 +30,7 @@
*
Stereotype description:
* null
*/
-@objid ("b78a7b97-1700-4445-99fb-273c076e7394")
public class OptionalFeature extends Feature {
- @objid ("ddf4c779-e453-4544-abb4-390783aedff8")
public static final String STEREOTYPE_NAME = "OptionalFeature";
/**
@@ -44,7 +41,6 @@ public class OptionalFeature extends Feature {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("915ff068-a911-4a9b-bdfb-4fc5ff5bf8fa")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Class) && ((Class) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, OptionalFeature.STEREOTYPE_NAME));
}
@@ -54,7 +50,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link OptionalFeature} proxy on the created {@link Class}.
*/
- @objid ("d4d06285-1e70-4082-a9bf-af277fe3a997")
public static OptionalFeature create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, OptionalFeature.STEREOTYPE_NAME);
@@ -62,34 +57,33 @@ public static OptionalFeature create() {
}
/**
- * Tries to instantiate a {@link OptionalFeature} proxy from a {@link Class} stereotyped << OptionalFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link OptionalFeature} proxy from a {@link Class} stereotyped << OptionalFeature >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Class
* @return a {@link OptionalFeature} proxy or null.
*/
- @objid ("9047de1a-eb4c-49d7-a55d-107be0470521")
public static OptionalFeature instantiate(final Class obj) {
return OptionalFeature.canInstantiate(obj) ? new OptionalFeature(obj) : null;
}
/**
- * Tries to instantiate a {@link OptionalFeature} proxy from a {@link Class} stereotyped << OptionalFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link OptionalFeature} proxy from a {@link Class} stereotyped << OptionalFeature >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Class}
* @return a {@link OptionalFeature} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("2ad3d53f-7d7f-45f4-b69b-4eac01f59ec4")
public static OptionalFeature safeInstantiate(final Class obj) throws IllegalArgumentException {
if (OptionalFeature.canInstantiate(obj))
- return new OptionalFeature(obj);
+ return new OptionalFeature(obj);
else
- throw new IllegalArgumentException("OptionalFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("OptionalFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("fb7103d3-555d-431f-8802-9ab51bd7e9b1")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -106,38 +100,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Class}.
+ * Get the underlying {@link Class}.
+ *
* @return the Class represented by this proxy, never null.
*/
- @objid ("67f073d3-d48c-4daa-8f3c-e0ffc65c13c6")
@Override
public Class getElement() {
return (Class)super.getElement();
}
- @objid ("ecc313f8-d0fd-49e1-afec-d185340481b6")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("b369f32f-f007-480e-82dd-332ac07b44a9")
protected OptionalFeature(final Class elt) {
super(elt);
}
- @objid ("f7f3ee67-f9aa-471f-97e2-3e5a0ce9ac8a")
public static final class MdaTypes {
- @objid ("5dfdba44-977e-479a-9ef6-a7ac1b351bcf")
public static Stereotype STEREOTYPE_ELT;
- @objid ("63d7b6ca-8658-407e-81bb-ba4ceb095b7f")
private static Stereotype MDAASSOCDEP;
- @objid ("5c0bb785-7c9f-49d3-beff-c057b2905352")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("b4320722-31f8-4e4b-971d-32a06a1823d7")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "7f47f70f-9623-422b-b953-1791a7dc994c");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -145,11 +132,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OrFeature.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OrFeature.java
index b88cbac..b0de55a 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OrFeature.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/OrFeature.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,9 +30,7 @@
*
Stereotype description:
* null
*/
-@objid ("a47886f2-a78e-41d0-b16b-ff3d34a99909")
public class OrFeature extends Feature {
- @objid ("c1806798-5c6d-4fac-8c1c-12eed823e37c")
public static final String STEREOTYPE_NAME = "OrFeature";
/**
@@ -44,7 +41,6 @@ public class OrFeature extends Feature {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("4743f84e-ad16-4b39-a421-a5d6c84a1917")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Class) && ((Class) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, OrFeature.STEREOTYPE_NAME));
}
@@ -54,7 +50,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link OrFeature} proxy on the created {@link Class}.
*/
- @objid ("104c280e-e89f-494f-a184-fd46cff23b5d")
public static OrFeature create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, OrFeature.STEREOTYPE_NAME);
@@ -62,34 +57,33 @@ public static OrFeature create() {
}
/**
- * Tries to instantiate a {@link OrFeature} proxy from a {@link Class} stereotyped << OrFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link OrFeature} proxy from a {@link Class} stereotyped << OrFeature >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Class
* @return a {@link OrFeature} proxy or null.
*/
- @objid ("9b91263e-4466-4dba-b645-e1800773ab74")
public static OrFeature instantiate(final Class obj) {
return OrFeature.canInstantiate(obj) ? new OrFeature(obj) : null;
}
/**
- * Tries to instantiate a {@link OrFeature} proxy from a {@link Class} stereotyped << OrFeature >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link OrFeature} proxy from a {@link Class} stereotyped << OrFeature >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Class}
* @return a {@link OrFeature} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("8d74851a-f55e-4bb4-94fb-564382b27ee9")
public static OrFeature safeInstantiate(final Class obj) throws IllegalArgumentException {
if (OrFeature.canInstantiate(obj))
- return new OrFeature(obj);
+ return new OrFeature(obj);
else
- throw new IllegalArgumentException("OrFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("OrFeature: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("dba63b1e-aad5-4b7e-ab15-9b3b04f7ac3c")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -106,38 +100,31 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Class}.
+ * Get the underlying {@link Class}.
+ *
* @return the Class represented by this proxy, never null.
*/
- @objid ("29f089be-ca42-4171-975f-0da8f11aa6c7")
@Override
public Class getElement() {
return (Class)super.getElement();
}
- @objid ("e88c858e-76f4-4ca0-98a0-a12522f29a34")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("b54edfcf-f0d1-420b-ab3b-57e69d0457f8")
protected OrFeature(final Class elt) {
super(elt);
}
- @objid ("985a11db-d643-40e0-9ba1-9dafd0c23801")
public static final class MdaTypes {
- @objid ("6996ae2c-0983-4971-85cb-18967f6a236a")
public static Stereotype STEREOTYPE_ELT;
- @objid ("c3daf46c-3ea5-4aa9-812b-256419b0e733")
private static Stereotype MDAASSOCDEP;
- @objid ("90bc2048-30ca-4526-9c26-4f697c8fb253")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("ad095541-dac4-4cdf-bd6d-ad68a3a76b71")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "a33dfdac-cf62-4751-b671-820cee4606f6");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -145,11 +132,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Variant.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Variant.java
index 84b4e38..e09c8fa 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Variant.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/class_/Variant.java
@@ -10,7 +10,6 @@
import java.util.Collections;
import java.util.List;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -24,8 +23,6 @@
import org.modelio.metamodel.uml.statik.Class;
import org.modelio.module.variabilitydesigner.api.IVariabilityDesignerPeerModule;
import org.modelio.module.variabilitydesigner.api.VariabilityDesignerProxyFactory;
-import org.modelio.module.variabilitydesigner.api.feature.standard.class_.Feature;
-import org.modelio.module.variabilitydesigner.api.feature.standard.class_.FeatureRoot;
import org.modelio.module.variabilitydesigner.impl.VariabilityDesignerModule;
import org.modelio.vcore.smkernel.mapi.MObject;
@@ -34,15 +31,12 @@
*
Stereotype description:
* null
*/
-@objid ("939b5316-2866-4100-bc9b-8c9e61d4b80c")
public class Variant {
- @objid ("40c17591-caf4-4f3b-8d27-930968f335f4")
public static final String STEREOTYPE_NAME = "Variant";
/**
* The underlying {@link Class} represented by this proxy, never null.
*/
- @objid ("01bb24f5-eae6-4e74-b3f2-53500435ed45")
protected final Class elt;
/**
@@ -53,7 +47,6 @@ public class Variant {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("c9329b27-8eb7-48d1-8054-452ef9edccd7")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Class) && ((Class) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, Variant.STEREOTYPE_NAME));
}
@@ -63,7 +56,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link Variant} proxy on the created {@link Class}.
*/
- @objid ("1862d85e-cc03-460d-8f59-52391597b106")
public static Variant create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Class");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, Variant.STEREOTYPE_NAME);
@@ -71,40 +63,38 @@ public static Variant create() {
}
/**
- * Tries to instantiate a {@link Variant} proxy from a {@link Class} stereotyped << Variant >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link Variant} proxy from a {@link Class} stereotyped << Variant >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Class
* @return a {@link Variant} proxy or null.
*/
- @objid ("b0ac5115-69df-4916-a799-7923265943c4")
public static Variant instantiate(final Class obj) {
return Variant.canInstantiate(obj) ? new Variant(obj) : null;
}
/**
- * Tries to instantiate a {@link Variant} proxy from a {@link Class} stereotyped << Variant >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link Variant} proxy from a {@link Class} stereotyped << Variant >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Class}
* @return a {@link Variant} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("cb876e5c-e655-4975-9043-129dd7b9c2c5")
public static Variant safeInstantiate(final Class obj) throws IllegalArgumentException {
if (Variant.canInstantiate(obj))
- return new Variant(obj);
+ return new Variant(obj);
else
- throw new IllegalArgumentException("Variant: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("Variant: Cannot instantiate "+obj+": wrong element type or stereotype");
}
/**
* Add a value to the 'feature' role.
* Role description:
* null
- *
*/
- @objid ("b4a66323-627c-4f16-9ce7-dc4a99dcc3a2")
public void addFeature(final Feature obj) {
if (obj != null) {
IModelingSession session = VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession();
@@ -114,7 +104,6 @@ public void addFeature(final Feature obj) {
}
}
- @objid ("7f87a6cf-f8d7-4ff7-aa13-fd56fa1918ca")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -131,10 +120,10 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Class}.
+ * Get the underlying {@link Class}.
+ *
* @return the Class represented by this proxy, never null.
*/
- @objid ("9a434324-875e-4a49-bb7d-294c1e32bfdb")
public Class getElement() {
return this.elt;
}
@@ -143,9 +132,7 @@ public Class getElement() {
* Get the values of the 'feature' role.
* Role description:
* null
- *
*/
- @objid ("64248b80-c957-43d8-a736-cb0048b400c8")
public List getFeature() {
List results = new ArrayList<>();
for (Dependency d : this.elt.getDependsOnDependency()) {
@@ -161,9 +148,7 @@ public List getFeature() {
* Get the value of the 'root' role.
* Role description:
* null
- *
*/
- @objid ("a3b0b4f4-8ae5-4c10-aa27-2e302358c720")
public FeatureRoot getRoot() {
for (Dependency d : this.elt.getDependsOnDependency()) {
if (d.isStereotyped(Variant.MdaTypes.MDAASSOCDEP)
@@ -175,7 +160,6 @@ public FeatureRoot getRoot() {
return null;
}
- @objid ("f20056fe-1b65-4c85-8bf3-945f8f2f50e8")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -185,9 +169,7 @@ public int hashCode() {
* Remove a value from the 'feature' role.
* Role description:
* null
- *
*/
- @objid ("817674f3-d409-49ce-b29c-deeeb890431f")
public boolean removeFeature(final Feature obj) {
if (obj != null) {
for (Dependency d : new ArrayList<>(this.elt.getDependsOnDependency())) {
@@ -205,9 +187,7 @@ public boolean removeFeature(final Feature obj) {
* Set the value of the 'root' role.
*/
-@objid ("1f51683d-fa55-468f-a988-cce4e3c0d6ac")
public class VariabilityDiagram {
- @objid ("2310f658-521b-4d28-82c0-dee2ea2a3032")
public static final String STEREOTYPE_NAME = "VariabilityDiagram";
/**
* The underlying {@link ClassDiagram} represented by this proxy, never null.
*/
- @objid ("248d96d8-463f-4fe8-af29-17665658e36a")
protected final ClassDiagram elt;
/**
@@ -50,7 +46,6 @@ public class VariabilityDiagram {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("ffc40db7-5329-40de-8500-3f9812f326e0")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof ClassDiagram) && ((ClassDiagram) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, VariabilityDiagram.STEREOTYPE_NAME));
}
@@ -60,7 +55,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link VariabilityDiagram} proxy on the created {@link ClassDiagram}.
*/
- @objid ("f93ea8f6-942a-470e-b6ef-be267c77e113")
public static VariabilityDiagram create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.ClassDiagram");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, VariabilityDiagram.STEREOTYPE_NAME);
@@ -75,7 +69,6 @@ public static VariabilityDiagram create() {
* @param obj a ClassDiagram
* @return a {@link VariabilityDiagram} proxy or null.
*/
- @objid ("b9e8e1f7-9547-4d55-b428-8c503f982d97")
public static VariabilityDiagram instantiate(final ClassDiagram obj) {
return VariabilityDiagram.canInstantiate(obj) ? new VariabilityDiagram(obj) : null;
}
@@ -89,7 +82,6 @@ public static VariabilityDiagram instantiate(final ClassDiagram obj) {
* @return a {@link VariabilityDiagram} proxy.
* @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("0dc9caa9-df3c-401e-a14a-a27fe3f1efbb")
public static VariabilityDiagram safeInstantiate(final ClassDiagram obj) throws IllegalArgumentException {
if (VariabilityDiagram.canInstantiate(obj))
return new VariabilityDiagram(obj);
@@ -97,7 +89,6 @@ public static VariabilityDiagram safeInstantiate(final ClassDiagram obj) throws
throw new IllegalArgumentException("VariabilityDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("c7d013a2-15ed-4c90-92fe-a2355f134ab5")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -118,34 +109,26 @@ public boolean equals(final Object obj) {
*
* @return the ClassDiagram represented by this proxy, never null.
*/
- @objid ("9381cf5e-6270-4094-85c7-c58361ce867a")
public ClassDiagram getElement() {
return this.elt;
}
- @objid ("f54365a3-d57b-4cba-a816-d8a93eb0e1b2")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("b6dfbfc3-57f5-4cfc-bb78-c90098015bde")
protected VariabilityDiagram(final ClassDiagram elt) {
this.elt = elt;
}
- @objid ("4d214dce-c095-447c-ac38-7dcab6ba7555")
public static final class MdaTypes {
- @objid ("30ece6c7-e08b-435e-a7d0-3be8a14317b6")
public static Stereotype STEREOTYPE_ELT;
- @objid ("fc569ec4-6ec9-411a-b1ef-6b36a4288ef3")
private static Stereotype MDAASSOCDEP;
- @objid ("00133a74-3c02-454e-afbf-fb3900de3e65")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("bd5d0324-1d34-4cdc-9a21-921779177a9e")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "525c6525-7dd9-438e-8317-eb2ba304b770");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/package_/FeatureModel.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/package_/FeatureModel.java
index 7ec0a71..ab6b43f 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/package_/FeatureModel.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/package_/FeatureModel.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,15 +30,12 @@
*
Stereotype description:
* null
*/
-@objid ("2e974c37-91e7-4a51-87c7-c5b37727fb97")
public class FeatureModel {
- @objid ("8021de3f-e691-42d4-9cd5-784c9223b6f9")
public static final String STEREOTYPE_NAME = "FeatureModel";
/**
* The underlying {@link Package} represented by this proxy, never null.
*/
- @objid ("f6648571-6c06-42e5-8526-420a06dc9fc0")
protected final Package elt;
/**
@@ -50,7 +46,6 @@ public class FeatureModel {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("80ba8779-c844-4b63-b5a3-039bcc287269")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Package) && ((Package) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, FeatureModel.STEREOTYPE_NAME));
}
@@ -60,7 +55,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link FeatureModel} proxy on the created {@link Package}.
*/
- @objid ("1c66fc09-a384-4f5a-9600-d3ef6c02cbdb")
public static FeatureModel create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, FeatureModel.STEREOTYPE_NAME);
@@ -68,34 +62,33 @@ public static FeatureModel create() {
}
/**
- * Tries to instantiate a {@link FeatureModel} proxy from a {@link Package} stereotyped << FeatureModel >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link FeatureModel} proxy from a {@link Package} stereotyped << FeatureModel >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Package
* @return a {@link FeatureModel} proxy or null.
*/
- @objid ("1cb2b317-c37c-4beb-b1ba-856cf0dcf8b9")
public static FeatureModel instantiate(final Package obj) {
return FeatureModel.canInstantiate(obj) ? new FeatureModel(obj) : null;
}
/**
- * Tries to instantiate a {@link FeatureModel} proxy from a {@link Package} stereotyped << FeatureModel >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link FeatureModel} proxy from a {@link Package} stereotyped << FeatureModel >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Package}
* @return a {@link FeatureModel} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("48661dee-1425-4856-998c-479a0987d090")
public static FeatureModel safeInstantiate(final Package obj) throws IllegalArgumentException {
if (FeatureModel.canInstantiate(obj))
- return new FeatureModel(obj);
+ return new FeatureModel(obj);
else
- throw new IllegalArgumentException("FeatureModel: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("FeatureModel: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("942ac058-769f-4474-be65-3156da6c5acc")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -112,37 +105,30 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Package}.
+ * Get the underlying {@link Package}.
+ *
* @return the Package represented by this proxy, never null.
*/
- @objid ("77a6eac0-5b48-4276-b145-9284710f7c08")
public Package getElement() {
return this.elt;
}
- @objid ("392382c2-4858-4a56-9043-64c3f10437e6")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("5782d162-bb1b-42ed-bc4d-898bd2004633")
protected FeatureModel(final Package elt) {
this.elt = elt;
}
- @objid ("4cb7f9c1-c03b-4fa9-bdd4-a57abd3c9e46")
public static final class MdaTypes {
- @objid ("c33459e5-dc2d-46da-9ab5-4e2415f6b63f")
public static Stereotype STEREOTYPE_ELT;
- @objid ("7c92528d-6d8d-4465-9303-9b8276b842c9")
private static Stereotype MDAASSOCDEP;
- @objid ("a149b073-4633-421e-bb9e-883a24e3391c")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("fc92c6fe-cf43-4f65-a09b-b7857bb3d074")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "9e29638a-e6aa-4437-9bfc-1961caa78867");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -150,11 +136,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/umlmodelelement/ModelElement.java b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/umlmodelelement/ModelElement.java
index 8f2b88c..76ccbe0 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/umlmodelelement/ModelElement.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/feature/standard/umlmodelelement/ModelElement.java
@@ -7,7 +7,6 @@
package org.modelio.module.variabilitydesigner.api.feature.standard.umlmodelelement;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.module.context.IModuleContext;
import org.modelio.metamodel.uml.infrastructure.Dependency;
@@ -25,26 +24,22 @@
*
Description:
* ModelElement
*/
-@objid ("af9544a7-7894-4094-b41c-95fffac80f62")
public class ModelElement {
- @objid ("38427820-b606-4fe9-b16e-13609b551ca0")
public static final String FEATURE_NOTETYPE = "Feature";
/**
* The underlying {@link UmlModelElement} represented by this proxy, never null.
*/
- @objid ("b19fc752-54f2-4e7a-afdc-25afa30704ab")
protected final UmlModelElement elt;
/**
* Tells whether a {@link ModelElement proxy} can be instantiated from a {@link MObject} checking it is a {@link UmlModelElement}.
*
* 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.
*/
- @objid ("023a2c4b-3ff6-4fac-b2ef-610e034838d1")
public static boolean canInstantiate(final MObject elt) {
return (elt instanceof UmlModelElement);
}
@@ -53,15 +48,14 @@ public static boolean canInstantiate(final MObject elt) {
* Tries to instantiate a {@link ModelElement} proxy from a {@link UmlModelElement} checking its metaclass.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a UmlModelElement
* @return a {@link ModelElement} proxy or null.
*/
- @objid ("471ca3a2-7594-49c7-8ede-9781d82dfa2f")
public static ModelElement instantiate(final UmlModelElement obj) {
return ModelElement.canInstantiate(obj) ? new ModelElement(obj) : null;
}
- @objid ("218b052d-34bb-436d-9d62-008143ef8022")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -79,9 +73,9 @@ public boolean equals(final Object obj) {
/**
* Get the underlying {@link UmlModelElement}.
+ *
* @return the UmlModelElement represented by this proxy, never null.
*/
- @objid ("3bfee931-3f30-4cf0-90f9-0bf533ff7624")
public UmlModelElement getElement() {
return this.elt;
}
@@ -91,7 +85,6 @@ public UmlModelElement getElement() {
*
Note description:
* null
*/
- @objid ("8aaedc49-0e98-4fa7-825a-eddbafdb3c89")
public String getFeatureNote() {
return this.elt.getNoteContent(ModelElement.MdaTypes.FEATURE_NOTETYPE_ELT);
}
@@ -100,9 +93,7 @@ public String getFeatureNote() {
* Get the value of the 'relatedFeature' role.
* Role description:
* null
- *
*/
- @objid ("429862b3-28b5-4e5d-a16b-04f690ce4d03")
public Feature getRelatedFeature() {
for (Dependency d : this.elt.getImpactedDependency()) {
if (d.isStereotyped(ModelElement.MdaTypes.MDAASSOCDEP)
@@ -114,7 +105,6 @@ public Feature getRelatedFeature() {
return null;
}
- @objid ("f6a70086-dc7f-4fd4-881f-3f36faedcfcf")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -125,7 +115,6 @@ public int hashCode() {
*
Note description:
* null
*/
- @objid ("af6f797f-237f-4de5-9da0-e04a3be5b543")
public void setFeatureNote(final String value) {
this.elt.putNoteContent(ModelElement.MdaTypes.FEATURE_NOTETYPE_ELT, value);
}
@@ -134,9 +123,7 @@ public void setFeatureNote(final String value) {
* Set the value of the 'relatedFeature' role.
*/
-@objid ("7e41c2d4-3d73-4b78-94c1-d1be998aa617")
public class Model150 {
- @objid ("f8997203-5783-4c86-9d57-d15ea52b854d")
public static final String STEREOTYPE_NAME = "model150";
/**
* The underlying {@link Package} represented by this proxy, never null.
*/
- @objid ("99dc144f-0bfe-4f9a-9c07-8b08a3ffd868")
protected final Package elt;
/**
@@ -50,7 +46,6 @@ public class Model150 {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("127283d4-06e7-4f4b-b880-895fb2cb1d9e")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Package) && ((Package) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, Model150.STEREOTYPE_NAME));
}
@@ -60,7 +55,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link Model150} proxy on the created {@link Package}.
*/
- @objid ("10e885f3-3a21-4a85-a8f2-064925060d4a")
public static Model150 create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Package");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, Model150.STEREOTYPE_NAME);
@@ -68,34 +62,33 @@ public static Model150 create() {
}
/**
- * Tries to instantiate a {@link Model150} proxy from a {@link Package} stereotyped << model150 >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link Model150} proxy from a {@link Package} stereotyped << model150 >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Package
* @return a {@link Model150} proxy or null.
*/
- @objid ("24d60e20-1037-43c9-b9ef-fc11cf93cef1")
public static Model150 instantiate(final Package obj) {
return Model150.canInstantiate(obj) ? new Model150(obj) : null;
}
/**
- * Tries to instantiate a {@link Model150} proxy from a {@link Package} stereotyped << model150 >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link Model150} proxy from a {@link Package} stereotyped << model150 >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Package}
* @return a {@link Model150} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("becf5f10-dc69-4d75-95cf-44c0e7c6b871")
public static Model150 safeInstantiate(final Package obj) throws IllegalArgumentException {
if (Model150.canInstantiate(obj))
- return new Model150(obj);
+ return new Model150(obj);
else
- throw new IllegalArgumentException("Model150: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("Model150: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("de97bb99-1ece-4bd4-9cb5-914c8ccdc234")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -112,37 +105,30 @@ public boolean equals(final Object obj) {
}
/**
- * Get the underlying {@link Package}.
+ * Get the underlying {@link Package}.
+ *
* @return the Package represented by this proxy, never null.
*/
- @objid ("544fc9ce-f2ea-4682-bee4-850efa0c3691")
public Package getElement() {
return this.elt;
}
- @objid ("aeb576e3-1f07-4064-9dfb-fbbd155be55c")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
}
- @objid ("7d898fa2-9207-4613-b262-c526b8bad376")
protected Model150(final Package elt) {
this.elt = elt;
}
- @objid ("1b61205d-fc72-493b-bca2-b3549f9ce5d8")
public static final class MdaTypes {
- @objid ("0ff1022a-ca8d-42ef-94fb-06ffb906a278")
public static Stereotype STEREOTYPE_ELT;
- @objid ("65b536b7-e6cc-4dc4-bb63-e6d51cc36f68")
private static Stereotype MDAASSOCDEP;
- @objid ("9e6ad3c8-09d2-4735-894d-8290fa22d7fc")
private static TagType MDAASSOCDEP_ROLE;
- @objid ("758f0f1f-9977-4980-86e0-e4b790a33c10")
public static void init(final IModuleContext ctx) {
STEREOTYPE_ELT = ctx.getModelingSession().findElementById(Stereotype.class, "8518a7a5-144c-4189-a2c4-5bb7df84003f");
MDAASSOCDEP = ctx.getModelingSession().findElementById(Stereotype.class, "94b7efa5-f94c-4d1d-896f-f103e56a8e2e");
@@ -150,11 +136,11 @@ public static void init(final IModuleContext ctx) {
}
- static {
- if(VariabilityDesignerModule.getInstance() != null) {
- init(VariabilityDesignerModule.getInstance().getModuleContext());
- }
- }
+static {
+ if(VariabilityDesignerModule.getInstance() != null) {
+ init(VariabilityDesignerModule.getInstance().getModuleContext());
+ }
+ }
}
}
diff --git a/src/main/java/org/modelio/module/variabilitydesigner/api/variation/standard/constraint/AlternativeParameterVariation.java b/src/main/java/org/modelio/module/variabilitydesigner/api/variation/standard/constraint/AlternativeParameterVariation.java
index 61c3d40..eb3bef4 100644
--- a/src/main/java/org/modelio/module/variabilitydesigner/api/variation/standard/constraint/AlternativeParameterVariation.java
+++ b/src/main/java/org/modelio/module/variabilitydesigner/api/variation/standard/constraint/AlternativeParameterVariation.java
@@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
-import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.modelio.api.modelio.model.IModelingSession;
import org.modelio.api.modelio.model.PropertyConverter;
import org.modelio.api.module.context.IModuleContext;
@@ -31,21 +30,15 @@
*
Stereotype description:
*
*/
-@objid ("dcbab187-0621-494f-a710-9a2f1770f4ed")
public class AlternativeParameterVariation extends Variation {
- @objid ("d564a592-51c0-451e-819d-3f63dc7b6cef")
public static final String STEREOTYPE_NAME = "Alternative_Parameter_Variation";
- @objid ("2dbe0668-dd91-43b2-9ef7-a28bf0801126")
public static final String APPLIED_ON_TAGTYPE = "Applied_on";
- @objid ("f4605a1e-e709-4066-beb2-d637d7d91442")
public static final String CONDITION_TAGTYPE = "Condition";
- @objid ("a9150d4f-755a-4ea1-8e0d-fbbadd411afc")
public static final String TYPE_TAGTYPE = "Type";
- @objid ("4c501b3b-d70b-4ca3-a82e-cbdd3251b853")
public static final String VALUE_TAGTYPE = "Value";
/**
@@ -56,7 +49,6 @@ public class AlternativeParameterVariation extends Variation {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("20af1822-5a12-406c-a7f0-97f602e71ddc")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, AlternativeParameterVariation.STEREOTYPE_NAME));
}
@@ -66,7 +58,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link AlternativeParameterVariation} proxy on the created {@link Constraint}.
*/
- @objid ("d9e61a09-1c46-46c0-83e4-62fc91364608")
public static AlternativeParameterVariation create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, AlternativeParameterVariation.STEREOTYPE_NAME);
@@ -74,34 +65,33 @@ public static AlternativeParameterVariation create() {
}
/**
- * Tries to instantiate a {@link AlternativeParameterVariation} proxy from a {@link Constraint} stereotyped << Alternative_Parameter_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link AlternativeParameterVariation} proxy from a {@link Constraint} stereotyped << Alternative_Parameter_Variation >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Constraint
* @return a {@link AlternativeParameterVariation} proxy or null.
*/
- @objid ("67e8d624-49cb-4a84-820d-40e4116af94e")
public static AlternativeParameterVariation instantiate(final Constraint obj) {
return AlternativeParameterVariation.canInstantiate(obj) ? new AlternativeParameterVariation(obj) : null;
}
/**
- * Tries to instantiate a {@link AlternativeParameterVariation} proxy from a {@link Constraint} stereotyped << Alternative_Parameter_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link AlternativeParameterVariation} proxy from a {@link Constraint} stereotyped << Alternative_Parameter_Variation >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Constraint}
* @return a {@link AlternativeParameterVariation} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("5ba27c5a-7b96-4ef0-88aa-394ec4214d55")
public static AlternativeParameterVariation safeInstantiate(final Constraint obj) throws IllegalArgumentException {
if (AlternativeParameterVariation.canInstantiate(obj))
- return new AlternativeParameterVariation(obj);
+ return new AlternativeParameterVariation(obj);
else
- throw new IllegalArgumentException("AlternativeParameterVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("AlternativeParameterVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("7a7d330e-9826-4ffb-9e48-96895bba9b73")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -122,7 +112,6 @@ public boolean equals(final Object obj) {
*
Property description:
*
*/
- @objid ("8fc7e688-0311-4234-a7c2-0f7e87f00890")
public String getApplied_on() {
return this.elt.getTagValue(AlternativeParameterVariation.MdaTypes.APPLIED_ON_TAGTYPE_ELT);
}
@@ -132,16 +121,15 @@ public String getApplied_on() {
*
Property description:
*
*/
- @objid ("f206032e-f0a8-439f-8abc-112551499dbb")
public String getCondition() {
return this.elt.getTagValue(AlternativeParameterVariation.MdaTypes.CONDITION_TAGTYPE_ELT);
}
/**
- * Get the underlying {@link Constraint}.
+ * Get the underlying {@link Constraint}.
+ *
* @return the Constraint represented by this proxy, never null.
*/
- @objid ("0a721037-b5cf-4e40-80ae-8553be912b44")
@Override
public Constraint getElement() {
return (Constraint)super.getElement();
@@ -152,7 +140,6 @@ public Constraint getElement() {
*
Property description:
*
*/
- @objid ("32d52834-7e29-462a-a47b-e1c437b5b3b6")
public String getType() {
return this.elt.getTagValue(AlternativeParameterVariation.MdaTypes.TYPE_TAGTYPE_ELT);
}
@@ -162,12 +149,10 @@ public String getType() {
*
Property description:
*
*/
- @objid ("afea96b5-de95-41c9-83cc-4205b05606fc")
public String getValue() {
return this.elt.getTagValue(AlternativeParameterVariation.MdaTypes.VALUE_TAGTYPE_ELT);
}
- @objid ("32462582-e3b3-4721-9bfb-5959b48c767e")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -178,7 +163,6 @@ public int hashCode() {
*
*/
-@objid ("eb6666d5-d22d-404b-97c4-34be40946f90")
public class AlternativeStructuralVariation extends Variation {
- @objid ("eb46f8b2-f0e3-4a7c-ad2d-5791384f0690")
public static final String STEREOTYPE_NAME = "Alternative_Structural_Variation";
- @objid ("94521e35-c080-4bc6-98f3-358db21e42ca")
public static final String CONDITION_TAGTYPE = "Condition";
- @objid ("2a8c7ba2-8735-4565-895a-3089f65f12bc")
public static final String TYPE_TAGTYPE = "Type";
/**
@@ -50,7 +45,6 @@ public class AlternativeStructuralVariation extends Variation {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("adfea0df-2882-452c-8390-29f86382eebc")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, AlternativeStructuralVariation.STEREOTYPE_NAME));
}
@@ -60,7 +54,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link AlternativeStructuralVariation} proxy on the created {@link Constraint}.
*/
- @objid ("494894cb-2fed-4315-ace8-a472c0b36020")
public static AlternativeStructuralVariation create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, AlternativeStructuralVariation.STEREOTYPE_NAME);
@@ -68,34 +61,33 @@ public static AlternativeStructuralVariation create() {
}
/**
- * Tries to instantiate a {@link AlternativeStructuralVariation} proxy from a {@link Constraint} stereotyped << Alternative_Structural_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link AlternativeStructuralVariation} proxy from a {@link Constraint} stereotyped << Alternative_Structural_Variation >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Constraint
* @return a {@link AlternativeStructuralVariation} proxy or null.
*/
- @objid ("10315351-5f4c-495b-8baa-0814ae6c1d19")
public static AlternativeStructuralVariation instantiate(final Constraint obj) {
return AlternativeStructuralVariation.canInstantiate(obj) ? new AlternativeStructuralVariation(obj) : null;
}
/**
- * Tries to instantiate a {@link AlternativeStructuralVariation} proxy from a {@link Constraint} stereotyped << Alternative_Structural_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link AlternativeStructuralVariation} proxy from a {@link Constraint} stereotyped << Alternative_Structural_Variation >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Constraint}
* @return a {@link AlternativeStructuralVariation} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("27c8ce08-868d-4e63-98f1-d9ec67e821f1")
public static AlternativeStructuralVariation safeInstantiate(final Constraint obj) throws IllegalArgumentException {
if (AlternativeStructuralVariation.canInstantiate(obj))
- return new AlternativeStructuralVariation(obj);
+ return new AlternativeStructuralVariation(obj);
else
- throw new IllegalArgumentException("AlternativeStructuralVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("AlternativeStructuralVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("507fcca8-d44c-4f3e-846f-f3bd14edeeeb")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -116,16 +108,15 @@ public boolean equals(final Object obj) {
*
Property description:
*
*/
- @objid ("d9053829-e0a1-4f41-ae9b-f903da02a28b")
public String getCondition() {
return this.elt.getTagValue(AlternativeStructuralVariation.MdaTypes.CONDITION_TAGTYPE_ELT);
}
/**
- * Get the underlying {@link Constraint}.
+ * Get the underlying {@link Constraint}.
+ *
* @return the Constraint represented by this proxy, never null.
*/
- @objid ("21eb3eb7-6dfe-4755-8213-500d8f7d9347")
@Override
public Constraint getElement() {
return (Constraint)super.getElement();
@@ -136,12 +127,10 @@ public Constraint getElement() {
*
Property description:
*
*/
- @objid ("2ca16dce-a283-46b4-9473-60cde82786ed")
public String getType() {
return this.elt.getTagValue(AlternativeStructuralVariation.MdaTypes.TYPE_TAGTYPE_ELT);
}
- @objid ("0d9adabc-e08d-463f-bc1e-2c14881e65ed")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -152,7 +141,6 @@ public int hashCode() {
*
*/
-@objid ("d49f83fb-6562-45ae-b3b4-dafcabdac9dc")
public class CalculatedParameterVariation extends Variation {
- @objid ("97d2668a-3462-4f93-8daf-aafaf6064279")
public static final String STEREOTYPE_NAME = "Calculated_Parameter_Variation";
- @objid ("6ed8098a-2ded-45eb-96f2-4f725a95a8a5")
public static final String APPLIED_ON_TAGTYPE = "Applied_on";
- @objid ("09eb7d20-67df-46e9-b3e9-2490dd778dcc")
public static final String EXPRESSION_TAGTYPE = "Expression";
- @objid ("968baa58-ecd1-4a4d-b749-5ca38422ef8b")
public static final String TYPE_TAGTYPE = "Type";
/**
@@ -53,7 +47,6 @@ public class CalculatedParameterVariation extends Variation {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("5ea55d88-72de-470e-bf64-70a08afa1c91")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, CalculatedParameterVariation.STEREOTYPE_NAME));
}
@@ -63,7 +56,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link CalculatedParameterVariation} proxy on the created {@link Constraint}.
*/
- @objid ("9fe16caa-41ee-4c89-8b8d-81faf8e4544b")
public static CalculatedParameterVariation create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, CalculatedParameterVariation.STEREOTYPE_NAME);
@@ -71,34 +63,33 @@ public static CalculatedParameterVariation create() {
}
/**
- * Tries to instantiate a {@link CalculatedParameterVariation} proxy from a {@link Constraint} stereotyped << Calculated_Parameter_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link CalculatedParameterVariation} proxy from a {@link Constraint} stereotyped << Calculated_Parameter_Variation >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Constraint
* @return a {@link CalculatedParameterVariation} proxy or null.
*/
- @objid ("2a59f8e4-7563-4e77-bd82-3f20e06c3c77")
public static CalculatedParameterVariation instantiate(final Constraint obj) {
return CalculatedParameterVariation.canInstantiate(obj) ? new CalculatedParameterVariation(obj) : null;
}
/**
- * Tries to instantiate a {@link CalculatedParameterVariation} proxy from a {@link Constraint} stereotyped << Calculated_Parameter_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link CalculatedParameterVariation} proxy from a {@link Constraint} stereotyped << Calculated_Parameter_Variation >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Constraint}
* @return a {@link CalculatedParameterVariation} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("0e3ab9e5-d048-4809-8801-db584d539a07")
public static CalculatedParameterVariation safeInstantiate(final Constraint obj) throws IllegalArgumentException {
if (CalculatedParameterVariation.canInstantiate(obj))
- return new CalculatedParameterVariation(obj);
+ return new CalculatedParameterVariation(obj);
else
- throw new IllegalArgumentException("CalculatedParameterVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("CalculatedParameterVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("64660703-8dba-4d5e-b17f-f358b9568552")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -119,16 +110,15 @@ public boolean equals(final Object obj) {
*
Property description:
*
*/
- @objid ("dde0c6fa-e119-426a-b448-882ba837a073")
public String getApplied_on() {
return this.elt.getTagValue(CalculatedParameterVariation.MdaTypes.APPLIED_ON_TAGTYPE_ELT);
}
/**
- * Get the underlying {@link Constraint}.
+ * Get the underlying {@link Constraint}.
+ *
* @return the Constraint represented by this proxy, never null.
*/
- @objid ("ec9e4a92-0ec5-4f17-acef-cec551cd64af")
@Override
public Constraint getElement() {
return (Constraint)super.getElement();
@@ -139,7 +129,6 @@ public Constraint getElement() {
*
Property description:
*
*/
- @objid ("13112dd8-d06f-4c17-b65c-44b4822edefe")
public String getExpression() {
return this.elt.getTagValue(CalculatedParameterVariation.MdaTypes.EXPRESSION_TAGTYPE_ELT);
}
@@ -149,12 +138,10 @@ public String getExpression() {
*
Property description:
*
*/
- @objid ("2dbf1c70-724c-43dc-b901-0f424b0f7b85")
public String getType() {
return this.elt.getTagValue(CalculatedParameterVariation.MdaTypes.TYPE_TAGTYPE_ELT);
}
- @objid ("31502a68-3d06-4352-8d3d-bf551fd632d4")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -165,7 +152,6 @@ public int hashCode() {
*
*/
-@objid ("4b0aaea0-6643-4553-a985-b88ba0ee68d7")
public class OptionalStructuralVariation extends Variation {
- @objid ("d975a14d-6fe5-47a3-aabf-8809081e0324")
public static final String STEREOTYPE_NAME = "Optional_Structural_Variation";
- @objid ("c85136bb-94dd-4b4b-bff8-643caec61e4d")
public static final String CONDITION_TAGTYPE = "Condition";
- @objid ("99bd6921-71ab-4207-be41-a596b6a8c72c")
public static final String TYPE_TAGTYPE = "Type";
/**
@@ -50,7 +45,6 @@ public class OptionalStructuralVariation extends Variation {
* @param elt a model object
* @return true if the instantiation can be carried out else false.
*/
- @objid ("abe5ef11-1ff9-43c7-a185-699a1032f122")
public static boolean canInstantiate(final MObject elt) {
return ((elt instanceof Constraint) && ((Constraint) elt).isStereotyped(IVariabilityDesignerPeerModule.MODULE_NAME, OptionalStructuralVariation.STEREOTYPE_NAME));
}
@@ -60,7 +54,6 @@ public static boolean canInstantiate(final MObject elt) {
*
* @return a {@link OptionalStructuralVariation} proxy on the created {@link Constraint}.
*/
- @objid ("4ad2c2d7-5897-40d0-bfff-2352c0cd5445")
public static OptionalStructuralVariation create() {
ModelElement e = (ModelElement)VariabilityDesignerModule.getInstance().getModuleContext().getModelingSession().getModel().createElement("Standard.Constraint");
e.addStereotype(IVariabilityDesignerPeerModule.MODULE_NAME, OptionalStructuralVariation.STEREOTYPE_NAME);
@@ -68,34 +61,33 @@ public static OptionalStructuralVariation create() {
}
/**
- * Tries to instantiate a {@link OptionalStructuralVariation} proxy from a {@link Constraint} stereotyped << Optional_Structural_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link OptionalStructuralVariation} proxy from a {@link Constraint} stereotyped << Optional_Structural_Variation >> checking its metaclass and its stereotype.
*
* The method returns null if the instantiation cannot be carried out.
+ *
* @param obj a Constraint
* @return a {@link OptionalStructuralVariation} proxy or null.
*/
- @objid ("b5484d3c-f8cd-4971-af38-f63a5e496a26")
public static OptionalStructuralVariation instantiate(final Constraint obj) {
return OptionalStructuralVariation.canInstantiate(obj) ? new OptionalStructuralVariation(obj) : null;
}
/**
- * Tries to instantiate a {@link OptionalStructuralVariation} proxy from a {@link Constraint} stereotyped << Optional_Structural_Variation >> checking its metaclass and its stereotype.
+ * Tries to instantiate a {@link OptionalStructuralVariation} proxy from a {@link Constraint} stereotyped << Optional_Structural_Variation >> checking its metaclass and its stereotype.
*
* The method throws an {@link IllegalArgumentException} if the instantiation cannot be carried out.
+ *
* @param obj a {@link Constraint}
* @return a {@link OptionalStructuralVariation} proxy.
- * @throws IllegalArgumentException if the instantiation cannot be carried out.
+ * @throws java.lang.IllegalArgumentException if the instantiation cannot be carried out.
*/
- @objid ("21c19343-fff5-45bd-9289-23d22969748b")
public static OptionalStructuralVariation safeInstantiate(final Constraint obj) throws IllegalArgumentException {
if (OptionalStructuralVariation.canInstantiate(obj))
- return new OptionalStructuralVariation(obj);
+ return new OptionalStructuralVariation(obj);
else
- throw new IllegalArgumentException("OptionalStructuralVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
+ throw new IllegalArgumentException("OptionalStructuralVariation: Cannot instantiate "+obj+": wrong element type or stereotype");
}
- @objid ("b398217b-82c0-4cb3-bb1c-e291563f7613")
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -116,16 +108,15 @@ public boolean equals(final Object obj) {
*
Property description:
*
*/
- @objid ("05825160-0ac0-40e9-9f2f-14b3095423ac")
public String getCondition() {
return this.elt.getTagValue(OptionalStructuralVariation.MdaTypes.CONDITION_TAGTYPE_ELT);
}
/**
- * Get the underlying {@link Constraint}.
+ * Get the underlying {@link Constraint}.
+ *
* @return the Constraint represented by this proxy, never null.
*/
- @objid ("fb7dc9e3-d887-4050-87b5-63602bd35666")
@Override
public Constraint getElement() {
return (Constraint)super.getElement();
@@ -136,12 +127,10 @@ public Constraint getElement() {
*
Property description:
*
*/
- @objid ("07c59139-9c3f-408c-9f82-d2757173fbff")
public String getType() {
return this.elt.getTagValue(OptionalStructuralVariation.MdaTypes.TYPE_TAGTYPE_ELT);
}
- @objid ("0e506a80-7f38-4219-ab81-a30082c88b4a")
@Override
public int hashCode() {
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
@@ -152,7 +141,6 @@ public int hashCode() {
*