Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraint.java130
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintKind.java544
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintSet.java42
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsFactory.java7
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsPackage.java297
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/TakeRateConstraint.java21
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintImpl.java306
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintSetImpl.java146
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsFactoryImpl.java58
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsPackageImpl.java202
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/TakeRateConstraintImpl.java77
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java117
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceFactoryImpl.java4
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceImpl.java6
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsSwitch.java119
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsXMLProcessor.java7
16 files changed, 1038 insertions, 1045 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraint.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraint.java
index dd148c91917..6bba75fa40e 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraint.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraint.java
@@ -18,6 +18,7 @@ package org.eclipse.papyrus.eastadl.genericconstraints;
import org.eclipse.emf.common.util.EList;
import org.eclipse.papyrus.eastadl.behavior.Mode;
import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification;
+import org.eclipse.papyrus.eastadl.infrastructure.values.EAValue;
import org.eclipse.uml2.uml.Constraint;
import org.eclipse.uml2.uml.NamedElement;
@@ -26,87 +27,75 @@ import org.eclipse.uml2.uml.NamedElement;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Generic Constraint</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <!-- begin-model-doc -->
- * The GenericConstraint denotes a property, requirement, or a validation result for the identified element of the model. The kind of
- * GenericConstraint is described as one of the GenericConstraintKind literals.
+ * The GenericConstraint denotes a property, requirement, or a validation result for the identified element of the model. The kind of GenericConstraint is described as one of the GenericConstraintKind literals.
*
- * Example: If the attribute genericConstraintType is cableLength, the genericConstraintValue could be "5 meters" (value of a numerical datatype with
- * unit "meters").
+ * Example: If the attribute genericConstraintType is cableLength, the genericConstraintValue could be "5 meters" (value of a numerical datatype with unit "meters").
*
* Semantics:
- * The GenericConstraint does not describe what is classically referred to as a design constraint but has the role of a property, requirement, or a
- * validation result. It is a requirement if this GenericConstraint refines a Requirement (by the Refine relationship). The GenericConstraint is a
- * validation result if it realizes a VVActualOutcome, it is an intended validation result if it realizes a VVIntendedOutcome, and in other cases it
- * denotes a property.
+ * The GenericConstraint does not describe what is classically referred to as a design constraint but has the role of a property, requirement, or a validation result. It is a requirement if this GenericConstraint refines a Requirement (by the Refine relationship). The GenericConstraint is a validation result if it realizes a VVActualOutcome, it is an intended validation result if it realizes a VVIntendedOutcome, and in other cases it denotes a property.
*
*
*
* Extension: Class, Constraint
* <!-- end-model-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getDesignConstraintType <em>Design Constraint Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Constraint <em>Base Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getGenericConstraintValue <em>Generic Constraint Value</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Class <em>Base Class</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getTarget <em>Target</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getMode <em>Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Constraint <em>Base Constraint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Class <em>Base Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getTarget <em>Target</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getMode <em>Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getValue <em>Value</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint()
* @model
* @generated
*/
public interface GenericConstraint extends TraceableSpecification {
-
/**
- * Returns the value of the '<em><b>Design Constraint Type</b></em>' attribute.
+ * Returns the value of the '<em><b>Kind</b></em>' attribute.
* The literals are from the enumeration {@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Design Constraint Type</em>' attribute isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Kind</em>' attribute isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Design Constraint Type</em>' attribute.
+ * @return the value of the '<em>Kind</em>' attribute.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind
- * @see #setDesignConstraintType(GenericConstraintKind)
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_DesignConstraintType()
+ * @see #setKind(GenericConstraintKind)
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_Kind()
* @model ordered="false"
* @generated
*/
- GenericConstraintKind getDesignConstraintType();
+ GenericConstraintKind getKind();
/**
- * Returns the value of the '<em><b>Generic Constraint Value</b></em>' attribute.
+ * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getKind <em>Kind</em>}' attribute.
* <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Generic Constraint Value</em>' containment reference isn't clear, there really should be more of a description
- * here...
- * </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Generic Constraint Value</em>' attribute.
- * @see #setGenericConstraintValue(String)
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_GenericConstraintValue()
- * @model dataType="org.eclipse.uml2.types.String" required="true" ordered="false"
+ * @param value the new value of the '<em>Kind</em>' attribute.
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind
+ * @see #getKind()
* @generated
*/
- String getGenericConstraintValue();
+ void setKind(GenericConstraintKind value);
/**
* Returns the value of the '<em><b>Mode</b></em>' reference list.
* The list contents are of type {@link org.eclipse.papyrus.eastadl.behavior.Mode}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Mode</em>' reference list isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Mode</em>' reference list isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Mode</em>' reference list.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_Mode()
* @model ordered="false"
@@ -115,43 +104,44 @@ public interface GenericConstraint extends TraceableSpecification {
EList<Mode> getMode();
/**
- * Returns the value of the '<em><b>Target</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.uml2.uml.NamedElement}.
+ * Returns the value of the '<em><b>Value</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Target</em>' reference list isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Value</em>' reference isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Target</em>' reference list.
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_Target()
- * @model ordered="false"
+ * @return the value of the '<em>Value</em>' reference.
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_Value()
+ * @model transient="true" changeable="false" volatile="true" derived="true" ordered="false"
* @generated
*/
- EList<NamedElement> getTarget();
+ EAValue getValue();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getDesignConstraintType
- * <em>Design Constraint Type</em>}' attribute.
+ * Returns the value of the '<em><b>Target</b></em>' reference list.
+ * The list contents are of type {@link org.eclipse.uml2.uml.NamedElement}.
* <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Target</em>' reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Design Constraint Type</em>' attribute.
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind
- * @see #getDesignConstraintType()
+ * @return the value of the '<em>Target</em>' reference list.
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_Target()
+ * @model ordered="false"
* @generated
*/
- void setDesignConstraintType(GenericConstraintKind value);
+ EList<NamedElement> getTarget();
/**
* Returns the value of the '<em><b>Base Constraint</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Base Constraint</em>' reference isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Base Constraint</em>' reference isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Base Constraint</em>' reference.
* @see #setBase_Constraint(Constraint)
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_Base_Constraint()
@@ -161,39 +151,23 @@ public interface GenericConstraint extends TraceableSpecification {
Constraint getBase_Constraint();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Constraint <em>Base Constraint</em>}'
- * reference.
+ * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Constraint <em>Base Constraint</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Constraint</em>' reference.
+ * @param value the new value of the '<em>Base Constraint</em>' reference.
* @see #getBase_Constraint()
* @generated
*/
void setBase_Constraint(Constraint value);
/**
- * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getGenericConstraintValue
- * <em>Generic Constraint Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Generic Constraint Value</em>' attribute.
- * @see #getGenericConstraintValue()
- * @generated
- */
- void setGenericConstraintValue(String value);
-
- /**
* Returns the value of the '<em><b>Base Class</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Base Class</em>' reference isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Base Class</em>' reference isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Base Class</em>' reference.
* @see #setBase_Class(org.eclipse.uml2.uml.Class)
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraint_Base_Class()
@@ -206,9 +180,7 @@ public interface GenericConstraint extends TraceableSpecification {
* Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Class <em>Base Class</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Class</em>' reference.
+ * @param value the new value of the '<em>Base Class</em>' reference.
* @see #getBase_Class()
* @generated
*/
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintKind.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintKind.java
index 70311fefa23..944471b8c2f 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintKind.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintKind.java
@@ -29,276 +29,555 @@ import org.eclipse.emf.common.util.Enumerator;
* <!-- begin-model-doc -->
* Enumeration for different type of constraints.
* <!-- end-model-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraintKind()
* @model
* @generated
*/
public enum GenericConstraintKind implements Enumerator {
/**
- * The '<em><b>Power Consumption</b></em>' literal object.
+ * The '<em><b>Cable Length</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #POWER_CONSUMPTION_VALUE
+ * @see #CABLE_LENGTH_VALUE
* @generated
* @ordered
*/
- POWER_CONSUMPTION(0, "powerConsumption", "powerConsumption"),
-
- /**
+ CABLE_LENGTH(0, "cableLength", "cableLength"), /**
+ * The '<em><b>Current</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #CURRENT_VALUE
+ * @generated
+ * @ordered
+ */
+ CURRENT(1, "current", "current"), /**
+ * The '<em><b>Development Cost</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #DEVELOPMENT_COST_VALUE
+ * @generated
+ * @ordered
+ */
+ DEVELOPMENT_COST(2, "developmentCost", "developmentCost"), /**
+ * The '<em><b>Function Allocation Different HW</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #FUNCTION_ALLOCATION_DIFFERENT_HW_VALUE
+ * @generated
+ * @ordered
+ */
+ FUNCTION_ALLOCATION_DIFFERENT_HW(3, "functionAllocationDifferentHW", "functionAllocationDifferentHW"), /**
+ * The '<em><b>Function Allocation Same HW</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #FUNCTION_ALLOCATION_SAME_HW_VALUE
+ * @generated
+ * @ordered
+ */
+ FUNCTION_ALLOCATION_SAME_HW(4, "functionAllocationSameHW", "functionAllocationSameHW"), /**
+ * The '<em><b>Impedance</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #IMPEDANCE_VALUE
+ * @generated
+ * @ordered
+ */
+ IMPEDANCE(5, "impedance", "impedance"), /**
+ * The '<em><b>Insulation</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #INSULATION_VALUE
+ * @generated
+ * @ordered
+ */
+ INSULATION(6, "insulation", "insulation"), /**
+ * The '<em><b>Memory</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #MEMORY_VALUE
+ * @generated
+ * @ordered
+ */
+ MEMORY(7, "memory", "memory"), /**
+ * The '<em><b>Non Volatile Memory</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #NON_VOLATILE_MEMORY_VALUE
+ * @generated
+ * @ordered
+ */
+ NON_VOLATILE_MEMORY(8, "nonVolatileMemory", "nonVolatileMemory"), /**
* The '<em><b>Other</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #OTHER_VALUE
* @generated
* @ordered
*/
- OTHER(1, "other", "other"),
-
- /**
+ OTHER(9, "other", "other"), /**
* The '<em><b>Piece Cost</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #PIECE_COST_VALUE
* @generated
* @ordered
*/
- PIECE_COST(2, "pieceCost", "pieceCost"), /**
- * The '<em><b>Weight</b></em>' literal object.
+ PIECE_COST(10, "pieceCost", "pieceCost"), /**
+ * The '<em><b>Power Consumption</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #WEIGHT_VALUE
+ * @see #POWER_CONSUMPTION_VALUE
* @generated
* @ordered
*/
- WEIGHT(3, "weight", "weight"), /**
+ POWER_CONSUMPTION(11, "powerConsumption", "powerConsumption"), /**
+ * The '<em><b>Power Supply Independent</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #POWER_SUPPLY_INDEPENDENT_VALUE
+ * @generated
+ * @ordered
+ */
+ POWER_SUPPLY_INDEPENDENT(12, "powerSupplyIndependent", "powerSupplyIndependent"), /**
+ * The '<em><b>Realization Different</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #REALIZATION_DIFFERENT_VALUE
+ * @generated
+ * @ordered
+ */
+ REALIZATION_DIFFERENT(13, "realizationDifferent", "realizationDifferent"), /**
+ * The '<em><b>Realization Same</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #REALIZATION_SAME_VALUE
+ * @generated
+ * @ordered
+ */
+ REALIZATION_SAME(14, "realizationSame", "realizationSame"), /**
+ * The '<em><b>Space Redundancy</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #SPACE_REDUNDANCY_VALUE
+ * @generated
+ * @ordered
+ */
+ SPACE_REDUNDANCY(15, "spaceRedundancy", "spaceRedundancy"), /**
* The '<em><b>Standard</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #STANDARD_VALUE
* @generated
* @ordered
*/
- STANDARD(4, "standard", "standard"), /**
- * The '<em><b>Cable Length</b></em>' literal object.
+ STANDARD(16, "standard", "standard"), /**
+ * The '<em><b>Time Redundancy</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #CABLE_LENGTH_VALUE
+ * @see #TIME_REDUNDANCY_VALUE
* @generated
* @ordered
*/
- CABLE_LENGTH(5, "cableLength", "cableLength"), /**
- * The '<em><b>Development Cost</b></em>' literal object.
+ TIME_REDUNDANCY(17, "timeRedundancy", "timeRedundancy"), /**
+ * The '<em><b>Utilization</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #DEVELOPMENT_COST_VALUE
+ * @see #UTILIZATION_VALUE
* @generated
* @ordered
*/
- DEVELOPMENT_COST(6, "developmentCost", "developmentCost"), /**
- * The '<em><b>Function Allocation Different Nodes</b></em>' literal object.
+ UTILIZATION(18, "utilization", "utilization"), /**
+ * The '<em><b>Voltage</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #FUNCTION_ALLOCATION_DIFFERENT_NODES_VALUE
+ * @see #VOLTAGE_VALUE
* @generated
* @ordered
*/
- FUNCTION_ALLOCATION_DIFFERENT_NODES(7, "functionAllocationDifferentNodes", "functionAllocationDifferentNodes"), /**
- * The '
- * <em><b>Function Allocation Same Node</b></em>' literal object.
+ VOLTAGE(19, "voltage", "voltage"), /**
+ * The '<em><b>Volatile Memory</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #FUNCTION_ALLOCATION_SAME_NODE_VALUE
+ * @see #VOLATILE_MEMORY_VALUE
* @generated
* @ordered
*/
- FUNCTION_ALLOCATION_SAME_NODE(8, "functionAllocationSameNode", "functionAllocationSameNode"), /**
- * The '<em><b>Power Supply Independent</b></em>'
- * literal object.
+ VOLATILE_MEMORY(20, "volatileMemory", "volatileMemory"), /**
+ * The '<em><b>Weight</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #POWER_SUPPLY_INDEPENDENT_VALUE
+ * @see #WEIGHT_VALUE
* @generated
* @ordered
*/
- POWER_SUPPLY_INDEPENDENT(9, "powerSupplyIndependent", "powerSupplyIndependent");
+ WEIGHT(21, "weight", "weight");
/**
- * The '<em><b>Power Consumption</b></em>' literal value.
+ * The '<em><b>Cable Length</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Power Consumption</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Cable Length</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @see #POWER_CONSUMPTION
- * @model name="powerConsumption"
+ * @see #CABLE_LENGTH
+ * @model name="cableLength"
+ * @generated
+ * @ordered
+ */
+ public static final int CABLE_LENGTH_VALUE = 0;
+
+ /**
+ * The '<em><b>Current</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Current</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #CURRENT
+ * @model name="current"
+ * @generated
+ * @ordered
+ */
+ public static final int CURRENT_VALUE = 1;
+
+ /**
+ * The '<em><b>Development Cost</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Development Cost</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #DEVELOPMENT_COST
+ * @model name="developmentCost"
+ * @generated
+ * @ordered
+ */
+ public static final int DEVELOPMENT_COST_VALUE = 2;
+
+ /**
+ * The '<em><b>Function Allocation Different HW</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Function Allocation Different HW</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #FUNCTION_ALLOCATION_DIFFERENT_HW
+ * @model name="functionAllocationDifferentHW"
+ * @generated
+ * @ordered
+ */
+ public static final int FUNCTION_ALLOCATION_DIFFERENT_HW_VALUE = 3;
+
+ /**
+ * The '<em><b>Function Allocation Same HW</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Function Allocation Same HW</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #FUNCTION_ALLOCATION_SAME_HW
+ * @model name="functionAllocationSameHW"
+ * @generated
+ * @ordered
+ */
+ public static final int FUNCTION_ALLOCATION_SAME_HW_VALUE = 4;
+
+ /**
+ * The '<em><b>Impedance</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Impedance</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #IMPEDANCE
+ * @model name="impedance"
+ * @generated
+ * @ordered
+ */
+ public static final int IMPEDANCE_VALUE = 5;
+
+ /**
+ * The '<em><b>Insulation</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Insulation</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #INSULATION
+ * @model name="insulation"
+ * @generated
+ * @ordered
+ */
+ public static final int INSULATION_VALUE = 6;
+
+ /**
+ * The '<em><b>Memory</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Memory</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #MEMORY
+ * @model name="memory"
+ * @generated
+ * @ordered
+ */
+ public static final int MEMORY_VALUE = 7;
+
+ /**
+ * The '<em><b>Non Volatile Memory</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Non Volatile Memory</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #NON_VOLATILE_MEMORY
+ * @model name="nonVolatileMemory"
* @generated
* @ordered
*/
- public static final int POWER_CONSUMPTION_VALUE = 0;
+ public static final int NON_VOLATILE_MEMORY_VALUE = 8;
/**
* The '<em><b>Other</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Other</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Other</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #OTHER
* @model name="other"
* @generated
* @ordered
*/
- public static final int OTHER_VALUE = 1;
+ public static final int OTHER_VALUE = 9;
/**
* The '<em><b>Piece Cost</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Piece Cost</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Piece Cost</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #PIECE_COST
* @model name="pieceCost"
* @generated
* @ordered
*/
- public static final int PIECE_COST_VALUE = 2;
+ public static final int PIECE_COST_VALUE = 10;
/**
- * The '<em><b>Weight</b></em>' literal value.
+ * The '<em><b>Power Consumption</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Weight</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Power Consumption</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @see #WEIGHT
- * @model name="weight"
+ * @see #POWER_CONSUMPTION
+ * @model name="powerConsumption"
+ * @generated
+ * @ordered
+ */
+ public static final int POWER_CONSUMPTION_VALUE = 11;
+
+ /**
+ * The '<em><b>Power Supply Independent</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Power Supply Independent</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #POWER_SUPPLY_INDEPENDENT
+ * @model name="powerSupplyIndependent"
* @generated
* @ordered
*/
- public static final int WEIGHT_VALUE = 3;
+ public static final int POWER_SUPPLY_INDEPENDENT_VALUE = 12;
+
+ /**
+ * The '<em><b>Realization Different</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Realization Different</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #REALIZATION_DIFFERENT
+ * @model name="realizationDifferent"
+ * @generated
+ * @ordered
+ */
+ public static final int REALIZATION_DIFFERENT_VALUE = 13;
+
+ /**
+ * The '<em><b>Realization Same</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Realization Same</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #REALIZATION_SAME
+ * @model name="realizationSame"
+ * @generated
+ * @ordered
+ */
+ public static final int REALIZATION_SAME_VALUE = 14;
+
+ /**
+ * The '<em><b>Space Redundancy</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Space Redundancy</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #SPACE_REDUNDANCY
+ * @model name="spaceRedundancy"
+ * @generated
+ * @ordered
+ */
+ public static final int SPACE_REDUNDANCY_VALUE = 15;
/**
* The '<em><b>Standard</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Standard</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Standard</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #STANDARD
* @model name="standard"
* @generated
* @ordered
*/
- public static final int STANDARD_VALUE = 4;
+ public static final int STANDARD_VALUE = 16;
/**
- * The '<em><b>Cable Length</b></em>' literal value.
+ * The '<em><b>Time Redundancy</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Cable Length</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Time Redundancy</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @see #CABLE_LENGTH
- * @model name="cableLength"
+ * @see #TIME_REDUNDANCY
+ * @model name="timeRedundancy"
* @generated
* @ordered
*/
- public static final int CABLE_LENGTH_VALUE = 5;
+ public static final int TIME_REDUNDANCY_VALUE = 17;
/**
- * The '<em><b>Development Cost</b></em>' literal value.
+ * The '<em><b>Utilization</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Development Cost</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Utilization</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @see #DEVELOPMENT_COST
- * @model name="developmentCost"
+ * @see #UTILIZATION
+ * @model name="utilization"
* @generated
* @ordered
*/
- public static final int DEVELOPMENT_COST_VALUE = 6;
+ public static final int UTILIZATION_VALUE = 18;
/**
- * The '<em><b>Function Allocation Different Nodes</b></em>' literal value.
+ * The '<em><b>Voltage</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Function Allocation Different Nodes</b></em>' literal object isn't clear, there really should be more of a
- * description here...
+ * If the meaning of '<em><b>Voltage</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @see #FUNCTION_ALLOCATION_DIFFERENT_NODES
- * @model name="functionAllocationDifferentNodes"
+ * @see #VOLTAGE
+ * @model name="voltage"
* @generated
* @ordered
*/
- public static final int FUNCTION_ALLOCATION_DIFFERENT_NODES_VALUE = 7;
+ public static final int VOLTAGE_VALUE = 19;
/**
- * The '<em><b>Function Allocation Same Node</b></em>' literal value.
+ * The '<em><b>Volatile Memory</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Function Allocation Same Node</b></em>' literal object isn't clear, there really should be more of a description
- * here...
+ * If the meaning of '<em><b>Volatile Memory</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @see #FUNCTION_ALLOCATION_SAME_NODE
- * @model name="functionAllocationSameNode"
+ * @see #VOLATILE_MEMORY
+ * @model name="volatileMemory"
* @generated
* @ordered
*/
- public static final int FUNCTION_ALLOCATION_SAME_NODE_VALUE = 8;
+ public static final int VOLATILE_MEMORY_VALUE = 20;
/**
- * The '<em><b>Power Supply Independent</b></em>' literal value.
+ * The '<em><b>Weight</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of '<em><b>Power Supply Independent</b></em>' literal object isn't clear, there really should be more of a description here...
+ * If the meaning of '<em><b>Weight</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @see #POWER_SUPPLY_INDEPENDENT
- * @model name="powerSupplyIndependent"
+ * @see #WEIGHT
+ * @model name="weight"
* @generated
* @ordered
*/
- public static final int POWER_SUPPLY_INDEPENDENT_VALUE = 9;
+ public static final int WEIGHT_VALUE = 21;
/**
* An array of all the '<em><b>Generic Constraint Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- private static final GenericConstraintKind[] VALUES_ARRAY = new GenericConstraintKind[]{ POWER_CONSUMPTION, OTHER, PIECE_COST, WEIGHT, STANDARD, CABLE_LENGTH, DEVELOPMENT_COST, FUNCTION_ALLOCATION_DIFFERENT_NODES, FUNCTION_ALLOCATION_SAME_NODE, POWER_SUPPLY_INDEPENDENT, };
+ private static final GenericConstraintKind[] VALUES_ARRAY =
+ new GenericConstraintKind[] {
+ CABLE_LENGTH,
+ CURRENT,
+ DEVELOPMENT_COST,
+ FUNCTION_ALLOCATION_DIFFERENT_HW,
+ FUNCTION_ALLOCATION_SAME_HW,
+ IMPEDANCE,
+ INSULATION,
+ MEMORY,
+ NON_VOLATILE_MEMORY,
+ OTHER,
+ PIECE_COST,
+ POWER_CONSUMPTION,
+ POWER_SUPPLY_INDEPENDENT,
+ REALIZATION_DIFFERENT,
+ REALIZATION_SAME,
+ SPACE_REDUNDANCY,
+ STANDARD,
+ TIME_REDUNDANCY,
+ UTILIZATION,
+ VOLTAGE,
+ VOLATILE_MEMORY,
+ WEIGHT,
+ };
/**
* A public read-only list of all the '<em><b>Generic Constraint Kind</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static final List<GenericConstraintKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
@@ -307,31 +586,32 @@ public enum GenericConstraintKind implements Enumerator {
* Returns the '<em><b>Generic Constraint Kind</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static GenericConstraintKind get(int value) {
- switch(value) {
- case POWER_CONSUMPTION_VALUE:
- return POWER_CONSUMPTION;
- case OTHER_VALUE:
- return OTHER;
- case PIECE_COST_VALUE:
- return PIECE_COST;
- case WEIGHT_VALUE:
- return WEIGHT;
- case STANDARD_VALUE:
- return STANDARD;
- case CABLE_LENGTH_VALUE:
- return CABLE_LENGTH;
- case DEVELOPMENT_COST_VALUE:
- return DEVELOPMENT_COST;
- case FUNCTION_ALLOCATION_DIFFERENT_NODES_VALUE:
- return FUNCTION_ALLOCATION_DIFFERENT_NODES;
- case FUNCTION_ALLOCATION_SAME_NODE_VALUE:
- return FUNCTION_ALLOCATION_SAME_NODE;
- case POWER_SUPPLY_INDEPENDENT_VALUE:
- return POWER_SUPPLY_INDEPENDENT;
+ switch (value) {
+ case CABLE_LENGTH_VALUE: return CABLE_LENGTH;
+ case CURRENT_VALUE: return CURRENT;
+ case DEVELOPMENT_COST_VALUE: return DEVELOPMENT_COST;
+ case FUNCTION_ALLOCATION_DIFFERENT_HW_VALUE: return FUNCTION_ALLOCATION_DIFFERENT_HW;
+ case FUNCTION_ALLOCATION_SAME_HW_VALUE: return FUNCTION_ALLOCATION_SAME_HW;
+ case IMPEDANCE_VALUE: return IMPEDANCE;
+ case INSULATION_VALUE: return INSULATION;
+ case MEMORY_VALUE: return MEMORY;
+ case NON_VOLATILE_MEMORY_VALUE: return NON_VOLATILE_MEMORY;
+ case OTHER_VALUE: return OTHER;
+ case PIECE_COST_VALUE: return PIECE_COST;
+ case POWER_CONSUMPTION_VALUE: return POWER_CONSUMPTION;
+ case POWER_SUPPLY_INDEPENDENT_VALUE: return POWER_SUPPLY_INDEPENDENT;
+ case REALIZATION_DIFFERENT_VALUE: return REALIZATION_DIFFERENT;
+ case REALIZATION_SAME_VALUE: return REALIZATION_SAME;
+ case SPACE_REDUNDANCY_VALUE: return SPACE_REDUNDANCY;
+ case STANDARD_VALUE: return STANDARD;
+ case TIME_REDUNDANCY_VALUE: return TIME_REDUNDANCY;
+ case UTILIZATION_VALUE: return UTILIZATION;
+ case VOLTAGE_VALUE: return VOLTAGE;
+ case VOLATILE_MEMORY_VALUE: return VOLATILE_MEMORY;
+ case WEIGHT_VALUE: return WEIGHT;
}
return null;
}
@@ -340,13 +620,12 @@ public enum GenericConstraintKind implements Enumerator {
* Returns the '<em><b>Generic Constraint Kind</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static GenericConstraintKind get(String literal) {
- for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GenericConstraintKind result = VALUES_ARRAY[i];
- if(result.toString().equals(literal)) {
+ if (result.toString().equals(literal)) {
return result;
}
}
@@ -357,13 +636,12 @@ public enum GenericConstraintKind implements Enumerator {
* Returns the '<em><b>Generic Constraint Kind</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static GenericConstraintKind getByName(String name) {
- for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
GenericConstraintKind result = VALUES_ARRAY[i];
- if(result.getName().equals(name)) {
+ if (result.getName().equals(name)) {
return result;
}
}
@@ -373,7 +651,6 @@ public enum GenericConstraintKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final int value;
@@ -381,7 +658,6 @@ public enum GenericConstraintKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String name;
@@ -389,7 +665,6 @@ public enum GenericConstraintKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private final String literal;
@@ -398,7 +673,6 @@ public enum GenericConstraintKind implements Enumerator {
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private GenericConstraintKind(int value, String name, String literal) {
@@ -410,43 +684,39 @@ public enum GenericConstraintKind implements Enumerator {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getLiteral() {
- return literal;
+ return literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String getName() {
- return name;
+ return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public int getValue() {
- return value;
+ return value;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
return literal;
}
-
+
} //GenericConstraintKind
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintSet.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintSet.java
index dfd5af27311..70851fdfb0e 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintSet.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericConstraintSet.java
@@ -23,39 +23,37 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.Context;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Generic Constraint Set</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <!-- begin-model-doc -->
* The collection of generic constraints. This collection can be done across the EAST-ADL2 abstraction levels.
* <!-- end-model-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getGenericConstraint <em>Generic Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Package <em>Base Package</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Class <em>Base Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getGenericConstraint <em>Generic Constraint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Package <em>Base Package</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Class <em>Base Class</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraintSet()
* @model
* @generated
*/
public interface GenericConstraintSet extends Context {
-
/**
* Returns the value of the '<em><b>Generic Constraint</b></em>' reference list.
* The list contents are of type {@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Generic Constraint</em>' containment reference list isn't clear, there really should be more of a description
- * here...
+ * If the meaning of the '<em>Generic Constraint</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Generic Constraint</em>' reference list.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraintSet_GenericConstraint()
- * @model ordered="false"
+ * @model transient="true" changeable="false" volatile="true" derived="true" ordered="false"
* @generated
*/
EList<GenericConstraint> getGenericConstraint();
@@ -64,10 +62,10 @@ public interface GenericConstraintSet extends Context {
* Returns the value of the '<em><b>Base Package</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Base Package</em>' reference isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Base Package</em>' reference isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Base Package</em>' reference.
* @see #setBase_Package(org.eclipse.uml2.uml.Package)
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraintSet_Base_Package()
@@ -77,13 +75,10 @@ public interface GenericConstraintSet extends Context {
org.eclipse.uml2.uml.Package getBase_Package();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Package <em>Base Package</em>}'
- * reference.
+ * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Package <em>Base Package</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Package</em>' reference.
+ * @param value the new value of the '<em>Base Package</em>' reference.
* @see #getBase_Package()
* @generated
*/
@@ -93,10 +88,10 @@ public interface GenericConstraintSet extends Context {
* Returns the value of the '<em><b>Base Class</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Base Class</em>' reference isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Base Class</em>' reference isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Base Class</em>' reference.
* @see #setBase_Class(org.eclipse.uml2.uml.Class)
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getGenericConstraintSet_Base_Class()
@@ -106,13 +101,10 @@ public interface GenericConstraintSet extends Context {
org.eclipse.uml2.uml.Class getBase_Class();
/**
- * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Class <em>Base Class</em>}'
- * reference.
+ * Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Class <em>Base Class</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Class</em>' reference.
+ * @param value the new value of the '<em>Base Class</em>' reference.
* @see #getBase_Class()
* @generated
*/
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsFactory.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsFactory.java
index bb6a68ffa28..3a89086f25f 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsFactory.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsFactory.java
@@ -22,17 +22,14 @@ import org.eclipse.emf.ecore.EFactory;
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage
* @generated
*/
public interface GenericconstraintsFactory extends EFactory {
-
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
GenericconstraintsFactory eINSTANCE = org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsFactoryImpl.init();
@@ -41,7 +38,6 @@ public interface GenericconstraintsFactory extends EFactory {
* Returns a new object of class '<em>Generic Constraint</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return a new object of class '<em>Generic Constraint</em>'.
* @generated
*/
@@ -51,7 +47,6 @@ public interface GenericconstraintsFactory extends EFactory {
* Returns a new object of class '<em>Generic Constraint Set</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return a new object of class '<em>Generic Constraint Set</em>'.
* @generated
*/
@@ -61,7 +56,6 @@ public interface GenericconstraintsFactory extends EFactory {
* Returns a new object of class '<em>Take Rate Constraint</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return a new object of class '<em>Take Rate Constraint</em>'.
* @generated
*/
@@ -71,7 +65,6 @@ public interface GenericconstraintsFactory extends EFactory {
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the package supported by this factory.
* @generated
*/
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsPackage.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsPackage.java
index 0eb0d314f1b..9931312738e 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsPackage.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/GenericconstraintsPackage.java
@@ -28,40 +28,34 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.ElementsPackage;
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsFactory
* @model kind="package"
* @generated
*/
public interface GenericconstraintsPackage extends EPackage {
-
/**
* <!-- begin-user-doc -->
* Defines literals for the meta objects that represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
* @generated
*/
interface Literals {
-
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl
- * <em>Generic Constraint Set</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl <em>Generic Constraint Set</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getGenericConstraintSet()
* @generated
@@ -72,7 +66,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The meta object literal for the '<em><b>Generic Constraint</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT = eINSTANCE.getGenericConstraintSet_GenericConstraint();
@@ -81,7 +74,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The meta object literal for the '<em><b>Base Package</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference GENERIC_CONSTRAINT_SET__BASE_PACKAGE = eINSTANCE.getGenericConstraintSet_Base_Package();
@@ -90,17 +82,14 @@ public interface GenericconstraintsPackage extends EPackage {
* The meta object literal for the '<em><b>Base Class</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference GENERIC_CONSTRAINT_SET__BASE_CLASS = eINSTANCE.getGenericConstraintSet_Base_Class();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl
- * <em>Take Rate Constraint</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl <em>Take Rate Constraint</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getTakeRateConstraint()
* @generated
@@ -111,7 +100,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The meta object literal for the '<em><b>Source</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference TAKE_RATE_CONSTRAINT__SOURCE = eINSTANCE.getTakeRateConstraint_Source();
@@ -120,17 +108,14 @@ public interface GenericconstraintsPackage extends EPackage {
* The meta object literal for the '<em><b>Take Rate</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EAttribute TAKE_RATE_CONSTRAINT__TAKE_RATE = eINSTANCE.getTakeRateConstraint_TakeRate();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl
- * <em>Generic Constraint</em>}' class.
+ * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl <em>Generic Constraint</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getGenericConstraint()
* @generated
@@ -138,37 +123,25 @@ public interface GenericconstraintsPackage extends EPackage {
EClass GENERIC_CONSTRAINT = eINSTANCE.getGenericConstraint();
/**
- * The meta object literal for the '<em><b>Design Constraint Type</b></em>' attribute feature.
+ * The meta object literal for the '<em><b>Kind</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- EAttribute GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE = eINSTANCE.getGenericConstraint_DesignConstraintType();
+ EAttribute GENERIC_CONSTRAINT__KIND = eINSTANCE.getGenericConstraint_Kind();
/**
* The meta object literal for the '<em><b>Base Constraint</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference GENERIC_CONSTRAINT__BASE_CONSTRAINT = eINSTANCE.getGenericConstraint_Base_Constraint();
/**
- * The meta object literal for the '<em><b>Generic Constraint Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE = eINSTANCE.getGenericConstraint_GenericConstraintValue();
-
- /**
* The meta object literal for the '<em><b>Base Class</b></em>' reference feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference GENERIC_CONSTRAINT__BASE_CLASS = eINSTANCE.getGenericConstraint_Base_Class();
@@ -177,7 +150,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The meta object literal for the '<em><b>Target</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference GENERIC_CONSTRAINT__TARGET = eINSTANCE.getGenericConstraint_Target();
@@ -186,17 +158,22 @@ public interface GenericconstraintsPackage extends EPackage {
* The meta object literal for the '<em><b>Mode</b></em>' reference list feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
EReference GENERIC_CONSTRAINT__MODE = eINSTANCE.getGenericConstraint_Mode();
/**
- * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind
- * <em>Generic Constraint Kind</em>}' enum.
+ * The meta object literal for the '<em><b>Value</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference GENERIC_CONSTRAINT__VALUE = eINSTANCE.getGenericConstraint_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind <em>Generic Constraint Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getGenericConstraintKind()
* @generated
@@ -209,7 +186,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The package name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNAME = "genericconstraints";
@@ -218,7 +194,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The package namespace URI.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNS_URI = "http://www.papyrusuml.org/EAST-ADL2/GenericConstraints/1";
@@ -227,7 +202,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The package namespace name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
String eNS_PREFIX = "GenericConstraints";
@@ -236,17 +210,14 @@ public interface GenericconstraintsPackage extends EPackage {
* The singleton instance of the package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
GenericconstraintsPackage eINSTANCE = org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl.init();
/**
- * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl
- * <em>Generic Constraint Set</em>}' class.
+ * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl <em>Generic Constraint Set</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getGenericConstraintSet()
* @generated
@@ -254,11 +225,9 @@ public interface GenericconstraintsPackage extends EPackage {
int GENERIC_CONSTRAINT_SET = 1;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl <em>Generic Constraint</em>}'
- * class.
+ * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl <em>Generic Constraint</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getGenericConstraint()
* @generated
@@ -266,30 +235,27 @@ public interface GenericconstraintsPackage extends EPackage {
int GENERIC_CONSTRAINT = 0;
/**
- * The feature id for the '<em><b>Name</b></em>' attribute.
+ * The feature id for the '<em><b>Base Named Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT__NAME = ElementsPackage.TRACEABLE_SPECIFICATION__NAME;
+ int GENERIC_CONSTRAINT__BASE_NAMED_ELEMENT = ElementsPackage.TRACEABLE_SPECIFICATION__BASE_NAMED_ELEMENT;
/**
- * The feature id for the '<em><b>Base Named Element</b></em>' reference.
+ * The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT__BASE_NAMED_ELEMENT = ElementsPackage.TRACEABLE_SPECIFICATION__BASE_NAMED_ELEMENT;
+ int GENERIC_CONSTRAINT__NAME = ElementsPackage.TRACEABLE_SPECIFICATION__NAME;
/**
* The feature id for the '<em><b>Owned Comment</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -299,7 +265,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Base Packageable Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -309,117 +274,123 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Note</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int GENERIC_CONSTRAINT__NOTE = ElementsPackage.TRACEABLE_SPECIFICATION__NOTE;
/**
- * The feature id for the '<em><b>Design Constraint Type</b></em>' attribute.
+ * The feature id for the '<em><b>Kind</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 0;
+ int GENERIC_CONSTRAINT__KIND = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 0;
/**
* The feature id for the '<em><b>Base Constraint</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int GENERIC_CONSTRAINT__BASE_CONSTRAINT = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 1;
/**
- * The feature id for the '<em><b>Generic Constraint Value</b></em>' attribute.
+ * The feature id for the '<em><b>Base Class</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 2;
+ int GENERIC_CONSTRAINT__BASE_CLASS = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 2;
/**
- * The feature id for the '<em><b>Base Class</b></em>' reference.
+ * The feature id for the '<em><b>Target</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT__BASE_CLASS = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 3;
+ int GENERIC_CONSTRAINT__TARGET = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 3;
/**
- * The feature id for the '<em><b>Target</b></em>' reference list.
+ * The feature id for the '<em><b>Mode</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT__TARGET = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 4;
+ int GENERIC_CONSTRAINT__MODE = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 4;
/**
- * The feature id for the '<em><b>Mode</b></em>' reference list.
+ * The feature id for the '<em><b>Value</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT__MODE = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 5;
+ int GENERIC_CONSTRAINT__VALUE = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 5;
/**
* The number of structural features of the '<em>Generic Constraint</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int GENERIC_CONSTRAINT_FEATURE_COUNT = ElementsPackage.TRACEABLE_SPECIFICATION_FEATURE_COUNT + 6;
/**
- * The feature id for the '<em><b>Name</b></em>' attribute.
+ * The number of operations of the '<em>Generic Constraint</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int GENERIC_CONSTRAINT_SET__NAME = ElementsPackage.CONTEXT__NAME;
+ int GENERIC_CONSTRAINT_OPERATION_COUNT = ElementsPackage.TRACEABLE_SPECIFICATION_OPERATION_COUNT + 0;
/**
* The feature id for the '<em><b>Base Named Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int GENERIC_CONSTRAINT_SET__BASE_NAMED_ELEMENT = ElementsPackage.CONTEXT__BASE_NAMED_ELEMENT;
/**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GENERIC_CONSTRAINT_SET__NAME = ElementsPackage.CONTEXT__NAME;
+
+ /**
* The feature id for the '<em><b>Owned Comment</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int GENERIC_CONSTRAINT_SET__OWNED_COMMENT = ElementsPackage.CONTEXT__OWNED_COMMENT;
/**
+ * The feature id for the '<em><b>Base Packageable Element</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GENERIC_CONSTRAINT_SET__BASE_PACKAGEABLE_ELEMENT = ElementsPackage.CONTEXT__BASE_PACKAGEABLE_ELEMENT;
+
+ /**
* The feature id for the '<em><b>Traceable Specification</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -429,7 +400,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Owned Relationship</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -439,7 +409,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Generic Constraint</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -449,7 +418,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Base Package</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -459,7 +427,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Base Class</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -469,7 +436,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The number of structural features of the '<em>Generic Constraint Set</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -477,11 +443,18 @@ public interface GenericconstraintsPackage extends EPackage {
/**
- * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl <em>Take Rate Constraint</em>}'
- * class.
+ * The number of operations of the '<em>Generic Constraint Set</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int GENERIC_CONSTRAINT_SET_OPERATION_COUNT = ElementsPackage.CONTEXT_OPERATION_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl <em>Take Rate Constraint</em>}' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getTakeRateConstraint()
* @generated
@@ -489,30 +462,27 @@ public interface GenericconstraintsPackage extends EPackage {
int TAKE_RATE_CONSTRAINT = 2;
/**
- * The feature id for the '<em><b>Name</b></em>' attribute.
+ * The feature id for the '<em><b>Base Named Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int TAKE_RATE_CONSTRAINT__NAME = GENERIC_CONSTRAINT__NAME;
+ int TAKE_RATE_CONSTRAINT__BASE_NAMED_ELEMENT = GENERIC_CONSTRAINT__BASE_NAMED_ELEMENT;
/**
- * The feature id for the '<em><b>Base Named Element</b></em>' reference.
+ * The feature id for the '<em><b>Name</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int TAKE_RATE_CONSTRAINT__BASE_NAMED_ELEMENT = GENERIC_CONSTRAINT__BASE_NAMED_ELEMENT;
+ int TAKE_RATE_CONSTRAINT__NAME = GENERIC_CONSTRAINT__NAME;
/**
* The feature id for the '<em><b>Owned Comment</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -522,7 +492,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Base Packageable Element</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -532,77 +501,69 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Note</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int TAKE_RATE_CONSTRAINT__NOTE = GENERIC_CONSTRAINT__NOTE;
/**
- * The feature id for the '<em><b>Design Constraint Type</b></em>' attribute.
+ * The feature id for the '<em><b>Kind</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int TAKE_RATE_CONSTRAINT__DESIGN_CONSTRAINT_TYPE = GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE;
+ int TAKE_RATE_CONSTRAINT__KIND = GENERIC_CONSTRAINT__KIND;
/**
* The feature id for the '<em><b>Base Constraint</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int TAKE_RATE_CONSTRAINT__BASE_CONSTRAINT = GENERIC_CONSTRAINT__BASE_CONSTRAINT;
/**
- * The feature id for the '<em><b>Generic Constraint Value</b></em>' attribute.
+ * The feature id for the '<em><b>Base Class</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int TAKE_RATE_CONSTRAINT__GENERIC_CONSTRAINT_VALUE = GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE;
+ int TAKE_RATE_CONSTRAINT__BASE_CLASS = GENERIC_CONSTRAINT__BASE_CLASS;
/**
- * The feature id for the '<em><b>Base Class</b></em>' reference.
+ * The feature id for the '<em><b>Target</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int TAKE_RATE_CONSTRAINT__BASE_CLASS = GENERIC_CONSTRAINT__BASE_CLASS;
+ int TAKE_RATE_CONSTRAINT__TARGET = GENERIC_CONSTRAINT__TARGET;
/**
- * The feature id for the '<em><b>Target</b></em>' reference list.
+ * The feature id for the '<em><b>Mode</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int TAKE_RATE_CONSTRAINT__TARGET = GENERIC_CONSTRAINT__TARGET;
+ int TAKE_RATE_CONSTRAINT__MODE = GENERIC_CONSTRAINT__MODE;
/**
- * The feature id for the '<em><b>Mode</b></em>' reference list.
+ * The feature id for the '<em><b>Value</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
- int TAKE_RATE_CONSTRAINT__MODE = GENERIC_CONSTRAINT__MODE;
+ int TAKE_RATE_CONSTRAINT__VALUE = GENERIC_CONSTRAINT__VALUE;
/**
* The feature id for the '<em><b>Source</b></em>' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -612,7 +573,6 @@ public interface GenericconstraintsPackage extends EPackage {
* The feature id for the '<em><b>Take Rate</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
@@ -622,18 +582,24 @@ public interface GenericconstraintsPackage extends EPackage {
* The number of structural features of the '<em>Take Rate Constraint</em>' class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
* @ordered
*/
int TAKE_RATE_CONSTRAINT_FEATURE_COUNT = GENERIC_CONSTRAINT_FEATURE_COUNT + 2;
/**
- * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind <em>Generic Constraint Kind</em>}'
- * enum.
+ * The number of operations of the '<em>Take Rate Constraint</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TAKE_RATE_CONSTRAINT_OPERATION_COUNT = GENERIC_CONSTRAINT_OPERATION_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind <em>Generic Constraint Kind</em>}' enum.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind
* @see org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericconstraintsPackageImpl#getGenericConstraintKind()
* @generated
@@ -644,7 +610,6 @@ public interface GenericconstraintsPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint <em>Generic Constraint</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for class '<em>Generic Constraint</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint
* @generated
@@ -652,24 +617,20 @@ public interface GenericconstraintsPackage extends EPackage {
EClass getGenericConstraint();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getDesignConstraintType
- * <em>Design Constraint Type</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getKind <em>Kind</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Design Constraint Type</em>'.
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getDesignConstraintType()
+ * @return the meta object for the attribute '<em>Kind</em>'.
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getKind()
* @see #getGenericConstraint()
* @generated
*/
- EAttribute getGenericConstraint_DesignConstraintType();
+ EAttribute getGenericConstraint_Kind();
/**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Constraint
- * <em>Base Constraint</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Constraint <em>Base Constraint</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the reference '<em>Base Constraint</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Constraint()
* @see #getGenericConstraint()
@@ -678,50 +639,42 @@ public interface GenericconstraintsPackage extends EPackage {
EReference getGenericConstraint_Base_Constraint();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getGenericConstraintValue
- * <em>Generic Constraint Value</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Class <em>Base Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Generic Constraint Value</em>'.
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getGenericConstraintValue()
+ * @return the meta object for the reference '<em>Base Class</em>'.
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Class()
* @see #getGenericConstraint()
* @generated
*/
- EAttribute getGenericConstraint_GenericConstraintValue();
+ EReference getGenericConstraint_Base_Class();
/**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Class
- * <em>Base Class</em>}'.
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getMode <em>Mode</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Base Class</em>'.
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getBase_Class()
+ * @return the meta object for the reference list '<em>Mode</em>'.
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getMode()
* @see #getGenericConstraint()
* @generated
*/
- EReference getGenericConstraint_Base_Class();
+ EReference getGenericConstraint_Mode();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getMode <em>Mode</em>}
- * '.
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getValue <em>Value</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @return the meta object for the reference list '<em>Mode</em>'.
- * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getMode()
+ * @return the meta object for the reference '<em>Value</em>'.
+ * @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getValue()
* @see #getGenericConstraint()
* @generated
*/
- EReference getGenericConstraint_Mode();
+ EReference getGenericConstraint_Value();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getTarget
- * <em>Target</em>}'.
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getTarget <em>Target</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the reference list '<em>Target</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint#getTarget()
* @see #getGenericConstraint()
@@ -730,11 +683,9 @@ public interface GenericconstraintsPackage extends EPackage {
EReference getGenericConstraint_Target();
/**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind <em>Generic Constraint Kind</em>}
- * '.
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind <em>Generic Constraint Kind</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for enum '<em>Generic Constraint Kind</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind
* @generated
@@ -742,11 +693,9 @@ public interface GenericconstraintsPackage extends EPackage {
EEnum getGenericConstraintKind();
/**
- * Returns the meta object for class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet <em>Generic Constraint Set</em>}
- * '.
+ * Returns the meta object for class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet <em>Generic Constraint Set</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for class '<em>Generic Constraint Set</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet
* @generated
@@ -754,11 +703,9 @@ public interface GenericconstraintsPackage extends EPackage {
EClass getGenericConstraintSet();
/**
- * Returns the meta object for the reference list '
- * {@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getGenericConstraint <em>Generic Constraint</em>}'.
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getGenericConstraint <em>Generic Constraint</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the reference list '<em>Generic Constraint</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getGenericConstraint()
* @see #getGenericConstraintSet()
@@ -767,11 +714,9 @@ public interface GenericconstraintsPackage extends EPackage {
EReference getGenericConstraintSet_GenericConstraint();
/**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Package
- * <em>Base Package</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Package <em>Base Package</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the reference '<em>Base Package</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Package()
* @see #getGenericConstraintSet()
@@ -780,11 +725,9 @@ public interface GenericconstraintsPackage extends EPackage {
EReference getGenericConstraintSet_Base_Package();
/**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Class
- * <em>Base Class</em>}'.
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Class <em>Base Class</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the reference '<em>Base Class</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet#getBase_Class()
* @see #getGenericConstraintSet()
@@ -796,7 +739,6 @@ public interface GenericconstraintsPackage extends EPackage {
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the factory that creates the instances of the model.
* @generated
*/
@@ -806,7 +748,6 @@ public interface GenericconstraintsPackage extends EPackage {
* Returns the meta object for class '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint <em>Take Rate Constraint</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for class '<em>Take Rate Constraint</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint
* @generated
@@ -814,11 +755,9 @@ public interface GenericconstraintsPackage extends EPackage {
EClass getTakeRateConstraint();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getSource
- * <em>Source</em>}'.
+ * Returns the meta object for the reference list '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getSource <em>Source</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the reference list '<em>Source</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getSource()
* @see #getTakeRateConstraint()
@@ -827,11 +766,9 @@ public interface GenericconstraintsPackage extends EPackage {
EReference getTakeRateConstraint_Source();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getTakeRate
- * <em>Take Rate</em>}'.
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getTakeRate <em>Take Rate</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Take Rate</em>'.
* @see org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getTakeRate()
* @see #getTakeRateConstraint()
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/TakeRateConstraint.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/TakeRateConstraint.java
index e900e21787e..4032c7b79dc 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/TakeRateConstraint.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/TakeRateConstraint.java
@@ -22,30 +22,29 @@ import org.eclipse.uml2.uml.NamedElement;
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Take Rate Constraint</b></em>'.
* <!-- end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getSource <em>Source</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getTakeRate <em>Take Rate</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getSource <em>Source</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getTakeRate <em>Take Rate</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getTakeRateConstraint()
* @model
* @generated
*/
public interface TakeRateConstraint extends GenericConstraint {
-
/**
* Returns the value of the '<em><b>Source</b></em>' reference list.
* The list contents are of type {@link org.eclipse.uml2.uml.NamedElement}.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Source</em>' reference list isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Source</em>' reference list isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Source</em>' reference list.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getTakeRateConstraint_Source()
* @model ordered="false"
@@ -57,10 +56,10 @@ public interface TakeRateConstraint extends GenericConstraint {
* Returns the value of the '<em><b>Take Rate</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
- * If the meaning of the '<em>Take Rate</em>' attribute isn't clear, there really should be more of a description here...
+ * If the meaning of the '<em>Take Rate</em>' attribute isn't clear,
+ * there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Take Rate</em>' attribute.
* @see #setTakeRate(Float)
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#getTakeRateConstraint_TakeRate()
@@ -73,9 +72,7 @@ public interface TakeRateConstraint extends GenericConstraint {
* Sets the value of the '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint#getTakeRate <em>Take Rate</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Take Rate</em>' attribute.
+ * @param value the new value of the '<em>Take Rate</em>' attribute.
* @see #getTakeRate()
* @generated
*/
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintImpl.java
index 5fcf0ac4840..2205679a0a5 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintImpl.java
@@ -16,6 +16,7 @@
package org.eclipse.papyrus.eastadl.genericconstraints.impl;
import java.util.Collection;
+import java.util.Iterator;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
@@ -28,8 +29,11 @@ import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage;
import org.eclipse.papyrus.eastadl.infrastructure.elements.impl.TraceableSpecificationImpl;
+import org.eclipse.papyrus.eastadl.infrastructure.values.EAValue;
import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.util.UMLUtil;
/**
@@ -39,46 +43,42 @@ import org.eclipse.uml2.uml.NamedElement;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getDesignConstraintType <em>Design Constraint Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getBase_Constraint <em>Base Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getGenericConstraintValue <em>Generic Constraint Value</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getBase_Class <em>Base Class</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getTarget <em>Target</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getMode <em>Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getBase_Constraint <em>Base Constraint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getBase_Class <em>Base Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getTarget <em>Target</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getMode <em>Mode</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintImpl#getValue <em>Value</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class GenericConstraintImpl extends TraceableSpecificationImpl implements GenericConstraint {
-
/**
- * The default value of the '{@link #getDesignConstraintType() <em>Design Constraint Type</em>}' attribute.
+ * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #getDesignConstraintType()
+ * @see #getKind()
* @generated
* @ordered
*/
- protected static final GenericConstraintKind DESIGN_CONSTRAINT_TYPE_EDEFAULT = GenericConstraintKind.POWER_CONSUMPTION;
+ protected static final GenericConstraintKind KIND_EDEFAULT = GenericConstraintKind.CABLE_LENGTH;
/**
- * The cached value of the '{@link #getDesignConstraintType() <em>Design Constraint Type</em>}' attribute.
+ * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @see #getDesignConstraintType()
+ * @see #getKind()
* @generated
* @ordered
*/
- protected GenericConstraintKind designConstraintType = DESIGN_CONSTRAINT_TYPE_EDEFAULT;
+ protected GenericConstraintKind kind = KIND_EDEFAULT;
/**
* The cached value of the '{@link #getBase_Constraint() <em>Base Constraint</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Constraint()
* @generated
* @ordered
@@ -86,32 +86,9 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
protected Constraint base_Constraint;
/**
- * The default value of the '{@link #getGenericConstraintValue() <em>Generic Constraint Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getGenericConstraintValue()
- * @generated
- * @ordered
- */
- protected static final String GENERIC_CONSTRAINT_VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getGenericConstraintValue() <em>Generic Constraint Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getGenericConstraintValue()
- * @generated
- * @ordered
- */
- protected String genericConstraintValue = GENERIC_CONSTRAINT_VALUE_EDEFAULT;
-
- /**
* The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Class()
* @generated
* @ordered
@@ -122,7 +99,6 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
* The cached value of the '{@link #getTarget() <em>Target</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getTarget()
* @generated
* @ordered
@@ -133,7 +109,6 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
* The cached value of the '{@link #getMode() <em>Mode</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getMode()
* @generated
* @ordered
@@ -143,7 +118,6 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected GenericConstraintImpl() {
@@ -153,28 +127,26 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE:
- return getDesignConstraintType();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
- if(resolve)
- return getBase_Constraint();
- return basicGetBase_Constraint();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE:
- return getGenericConstraintValue();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
- if(resolve)
- return getBase_Class();
- return basicGetBase_Class();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
- return getTarget();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
- return getMode();
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__KIND:
+ return getKind();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
+ if (resolve) return getBase_Constraint();
+ return basicGetBase_Constraint();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
+ if (resolve) return getBase_Class();
+ return basicGetBase_Class();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
+ return getTarget();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
+ return getMode();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__VALUE:
+ if (resolve) return getValue();
+ return basicGetValue();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -182,24 +154,23 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE:
- return designConstraintType != DESIGN_CONSTRAINT_TYPE_EDEFAULT;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
- return base_Constraint != null;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE:
- return GENERIC_CONSTRAINT_VALUE_EDEFAULT == null ? genericConstraintValue != null : !GENERIC_CONSTRAINT_VALUE_EDEFAULT.equals(genericConstraintValue);
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
- return base_Class != null;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
- return target != null && !target.isEmpty();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
- return mode != null && !mode.isEmpty();
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__KIND:
+ return kind != KIND_EDEFAULT;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
+ return base_Constraint != null;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
+ return base_Class != null;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
+ return target != null && !target.isEmpty();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
+ return mode != null && !mode.isEmpty();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__VALUE:
+ return basicGetValue() != null;
}
return super.eIsSet(featureID);
}
@@ -207,33 +178,29 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE:
- setDesignConstraintType((GenericConstraintKind)newValue);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
- setBase_Constraint((Constraint)newValue);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE:
- setGenericConstraintValue((String)newValue);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)newValue);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
- getTarget().clear();
- getTarget().addAll((Collection<? extends NamedElement>)newValue);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
- getMode().clear();
- getMode().addAll((Collection<? extends Mode>)newValue);
- return;
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__KIND:
+ setKind((GenericConstraintKind)newValue);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
+ setBase_Constraint((Constraint)newValue);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)newValue);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
+ getTarget().clear();
+ getTarget().addAll((Collection<? extends NamedElement>)newValue);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
+ getMode().clear();
+ getMode().addAll((Collection<? extends Mode>)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -241,7 +208,6 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -252,62 +218,58 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- @Override
- public void eUnset(int featureID) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE:
- setDesignConstraintType(DESIGN_CONSTRAINT_TYPE_EDEFAULT);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
- setBase_Constraint((Constraint)null);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE:
- setGenericConstraintValue(GENERIC_CONSTRAINT_VALUE_EDEFAULT);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)null);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
- getTarget().clear();
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
- getMode().clear();
- return;
- }
- super.eUnset(featureID);
+ public GenericConstraintKind getKind() {
+ return kind;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public GenericConstraintKind getDesignConstraintType() {
- return designConstraintType;
+ public void setKind(GenericConstraintKind newKind) {
+ GenericConstraintKind oldKind = kind;
+ kind = newKind == null ? KIND_EDEFAULT : newKind;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.GENERIC_CONSTRAINT__KIND, oldKind, kind));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public String getGenericConstraintValue() {
- return genericConstraintValue;
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__KIND:
+ setKind(KIND_EDEFAULT);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT:
+ setBase_Constraint((Constraint)null);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)null);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET:
+ getTarget().clear();
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE:
+ getMode().clear();
+ return;
+ }
+ super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<Mode> getMode() {
- if(mode == null) {
+ if (mode == null) {
mode = new EObjectResolvingEList<Mode>(Mode.class, this, GenericconstraintsPackage.GENERIC_CONSTRAINT__MODE);
}
return mode;
@@ -316,41 +278,57 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public EList<NamedElement> getTarget() {
- if(target == null) {
- target = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET);
+ public EAValue getValue() {
+ EAValue value = basicGetValue();
+ return value != null && value.eIsProxy() ? (EAValue)eResolveProxy((InternalEObject)value) : value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated NOT
+ */
+ public EAValue basicGetValue() {
+ EAValue adlEAValue = null;
+ if (getBase_NamedElement() != null) {
+ Iterator<Element> it = getBase_NamedElement().getOwnedElements().iterator();
+
+ while (it.hasNext()) {
+ Element element = it.next();
+ adlEAValue = (EAValue )UMLUtil.getStereotypeApplication(element, EAValue.class);
+ if (adlEAValue != null)
+ return adlEAValue;
+ }
}
- return target;
+
+ return adlEAValue;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public void setDesignConstraintType(GenericConstraintKind newDesignConstraintType) {
- GenericConstraintKind oldDesignConstraintType = designConstraintType;
- designConstraintType = newDesignConstraintType == null ? DESIGN_CONSTRAINT_TYPE_EDEFAULT : newDesignConstraintType;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE, oldDesignConstraintType, designConstraintType));
+ public EList<NamedElement> getTarget() {
+ if (target == null) {
+ target = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, GenericconstraintsPackage.GENERIC_CONSTRAINT__TARGET);
+ }
+ return target;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Constraint getBase_Constraint() {
- if(base_Constraint != null && base_Constraint.eIsProxy()) {
+ if (base_Constraint != null && base_Constraint.eIsProxy()) {
InternalEObject oldBase_Constraint = (InternalEObject)base_Constraint;
base_Constraint = (Constraint)eResolveProxy(oldBase_Constraint);
- if(base_Constraint != oldBase_Constraint) {
- if(eNotificationRequired())
+ if (base_Constraint != oldBase_Constraint) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
}
}
@@ -360,7 +338,6 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Constraint basicGetBase_Constraint() {
@@ -370,41 +347,26 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Constraint(Constraint newBase_Constraint) {
Constraint oldBase_Constraint = base_Constraint;
base_Constraint = newBase_Constraint;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @generated
- */
- public void setGenericConstraintValue(String newGenericConstraintValue) {
- String oldGenericConstraintValue = genericConstraintValue;
- genericConstraintValue = newGenericConstraintValue;
- if(eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE, oldGenericConstraintValue, genericConstraintValue));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
* @generated
*/
public org.eclipse.uml2.uml.Class getBase_Class() {
- if(base_Class != null && base_Class.eIsProxy()) {
+ if (base_Class != null && base_Class.eIsProxy()) {
InternalEObject oldBase_Class = (InternalEObject)base_Class;
base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
- if(base_Class != oldBase_Class) {
- if(eNotificationRequired())
+ if (base_Class != oldBase_Class) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS, oldBase_Class, base_Class));
}
}
@@ -414,7 +376,6 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public org.eclipse.uml2.uml.Class basicGetBase_Class() {
@@ -424,32 +385,27 @@ public class GenericConstraintImpl extends TraceableSpecificationImpl implements
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
base_Class = newBase_Class;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.GENERIC_CONSTRAINT__BASE_CLASS, oldBase_Class, base_Class));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (designConstraintType: ");
- result.append(designConstraintType);
- result.append(", genericConstraintValue: ");
- result.append(genericConstraintValue);
+ result.append(" (kind: ");
+ result.append(kind);
result.append(')');
return result.toString();
}
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintSetImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintSetImpl.java
index 2dfc0961dae..c463fb27d64 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintSetImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericConstraintSetImpl.java
@@ -15,18 +15,21 @@
*****************************************************************************/
package org.eclipse.papyrus.eastadl.genericconstraints.impl;
-import java.util.Collection;
+import java.util.Iterator;
import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+import org.eclipse.emf.ecore.util.BasicInternalEList;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage;
import org.eclipse.papyrus.eastadl.infrastructure.elements.impl.ContextImpl;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.util.UMLUtil;
/**
@@ -36,32 +39,19 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.impl.ContextImpl;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl#getGenericConstraint <em>Generic Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl#getBase_Package <em>Base Package</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl#getBase_Class <em>Base Class</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl#getGenericConstraint <em>Generic Constraint</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl#getBase_Package <em>Base Package</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.GenericConstraintSetImpl#getBase_Class <em>Base Class</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class GenericConstraintSetImpl extends ContextImpl implements GenericConstraintSet {
-
- /**
- * The cached value of the '{@link #getGenericConstraint() <em>Generic Constraint</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getGenericConstraint()
- * @generated
- * @ordered
- */
- protected EList<GenericConstraint> genericConstraint;
-
/**
* The cached value of the '{@link #getBase_Package() <em>Base Package</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Package()
* @generated
* @ordered
@@ -72,7 +62,6 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
* The cached value of the '{@link #getBase_Class() <em>Base Class</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getBase_Class()
* @generated
* @ordered
@@ -82,7 +71,6 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected GenericConstraintSetImpl() {
@@ -92,22 +80,19 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT:
- return getGenericConstraint();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
- if(resolve)
- return getBase_Package();
- return basicGetBase_Package();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
- if(resolve)
- return getBase_Class();
- return basicGetBase_Class();
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT:
+ return getGenericConstraint();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
+ if (resolve) return getBase_Package();
+ return basicGetBase_Package();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
+ if (resolve) return getBase_Class();
+ return basicGetBase_Class();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -115,18 +100,17 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT:
- return genericConstraint != null && !genericConstraint.isEmpty();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
- return base_Package != null;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
- return base_Class != null;
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT:
+ return !getGenericConstraint().isEmpty();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
+ return base_Package != null;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
+ return base_Class != null;
}
return super.eIsSet(featureID);
}
@@ -134,23 +118,17 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- @SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT:
- getGenericConstraint().clear();
- getGenericConstraint().addAll((Collection<? extends GenericConstraint>)newValue);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package)newValue);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)newValue);
- return;
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
+ setBase_Package((org.eclipse.uml2.uml.Package)newValue);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -158,7 +136,6 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -169,21 +146,17 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT:
- getGenericConstraint().clear();
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package)null);
- return;
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
- setBase_Class((org.eclipse.uml2.uml.Class)null);
- return;
+ switch (featureID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE:
+ setBase_Package((org.eclipse.uml2.uml.Package)null);
+ return;
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS:
+ setBase_Class((org.eclipse.uml2.uml.Class)null);
+ return;
}
super.eUnset(featureID);
}
@@ -191,28 +164,36 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @generated
+ * @generated NOT
*/
public EList<GenericConstraint> getGenericConstraint() {
- if(genericConstraint == null) {
- genericConstraint = new EObjectResolvingEList<GenericConstraint>(GenericConstraint.class, this, GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT);
+ EList<GenericConstraint> results = new BasicEList<GenericConstraint>();
+ GenericConstraint adlGenericConstraint = null;
+ if (getBase_NamedElement() != null) {
+ Iterator<Element> it = getBase_NamedElement().getOwnedElements().iterator();
+
+ while (it.hasNext()) {
+ Element element = it.next();
+ adlGenericConstraint = (GenericConstraint )UMLUtil.getStereotypeApplication(element, GenericConstraint.class);
+ if (adlGenericConstraint != null)
+ results.add(adlGenericConstraint);
+ }
}
- return genericConstraint;
+
+ return new BasicInternalEList<GenericConstraint>(GenericConstraint.class, results.size(), results.toArray());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public org.eclipse.uml2.uml.Package getBase_Package() {
- if(base_Package != null && base_Package.eIsProxy()) {
+ if (base_Package != null && base_Package.eIsProxy()) {
InternalEObject oldBase_Package = (InternalEObject)base_Package;
base_Package = (org.eclipse.uml2.uml.Package)eResolveProxy(oldBase_Package);
- if(base_Package != oldBase_Package) {
- if(eNotificationRequired())
+ if (base_Package != oldBase_Package) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE, oldBase_Package, base_Package));
}
}
@@ -222,7 +203,6 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public org.eclipse.uml2.uml.Package basicGetBase_Package() {
@@ -232,28 +212,26 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) {
org.eclipse.uml2.uml.Package oldBase_Package = base_Package;
base_Package = newBase_Package;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_PACKAGE, oldBase_Package, base_Package));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public org.eclipse.uml2.uml.Class getBase_Class() {
- if(base_Class != null && base_Class.eIsProxy()) {
+ if (base_Class != null && base_Class.eIsProxy()) {
InternalEObject oldBase_Class = (InternalEObject)base_Class;
base_Class = (org.eclipse.uml2.uml.Class)eResolveProxy(oldBase_Class);
- if(base_Class != oldBase_Class) {
- if(eNotificationRequired())
+ if (base_Class != oldBase_Class) {
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS, oldBase_Class, base_Class));
}
}
@@ -263,7 +241,6 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public org.eclipse.uml2.uml.Class basicGetBase_Class() {
@@ -273,13 +250,12 @@ public class GenericConstraintSetImpl extends ContextImpl implements GenericCons
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setBase_Class(org.eclipse.uml2.uml.Class newBase_Class) {
org.eclipse.uml2.uml.Class oldBase_Class = base_Class;
base_Class = newBase_Class;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.GENERIC_CONSTRAINT_SET__BASE_CLASS, oldBase_Class, base_Class));
}
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsFactoryImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsFactoryImpl.java
index bd71285c7aa..ffbc7228bc2 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsFactoryImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsFactoryImpl.java
@@ -21,7 +21,6 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.eclipse.papyrus.eastadl.genericconstraints.*;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintKind;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet;
@@ -34,15 +33,12 @@ import org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint;
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
public class GenericconstraintsFactoryImpl extends EFactoryImpl implements GenericconstraintsFactory {
-
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @deprecated
* @generated
*/
@@ -55,16 +51,16 @@ public class GenericconstraintsFactoryImpl extends EFactoryImpl implements Gener
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static GenericconstraintsFactory init() {
try {
GenericconstraintsFactory theGenericconstraintsFactory = (GenericconstraintsFactory)EPackage.Registry.INSTANCE.getEFactory(GenericconstraintsPackage.eNS_URI);
- if(theGenericconstraintsFactory != null) {
+ if (theGenericconstraintsFactory != null) {
return theGenericconstraintsFactory;
}
- } catch (Exception exception) {
+ }
+ catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new GenericconstraintsFactoryImpl();
@@ -74,7 +70,6 @@ public class GenericconstraintsFactoryImpl extends EFactoryImpl implements Gener
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericconstraintsFactoryImpl() {
@@ -84,7 +79,6 @@ public class GenericconstraintsFactoryImpl extends EFactoryImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public String convertGenericConstraintKindToString(EDataType eDataType, Object instanceValue) {
@@ -94,59 +88,52 @@ public class GenericconstraintsFactoryImpl extends EFactoryImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String convertToString(EDataType eDataType, Object instanceValue) {
- switch(eDataType.getClassifierID()) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_KIND:
- return convertGenericConstraintKindToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ switch (eDataType.getClassifierID()) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_KIND:
+ return convertGenericConstraintKindToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public EObject create(EClass eClass) {
- switch(eClass.getClassifierID()) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT:
- return createGenericConstraint();
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET:
- return createGenericConstraintSet();
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT:
- return createTakeRateConstraint();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ switch (eClass.getClassifierID()) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT: return createGenericConstraint();
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET: return createGenericConstraintSet();
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT: return createTakeRateConstraint();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object createFromString(EDataType eDataType, String initialValue) {
- switch(eDataType.getClassifierID()) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_KIND:
- return createGenericConstraintKindFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ switch (eDataType.getClassifierID()) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_KIND:
+ return createGenericConstraintKindFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericConstraint createGenericConstraint() {
@@ -157,20 +144,17 @@ public class GenericconstraintsFactoryImpl extends EFactoryImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericConstraintKind createGenericConstraintKindFromString(EDataType eDataType, String initialValue) {
GenericConstraintKind result = GenericConstraintKind.get(initialValue);
- if(result == null)
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
return result;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericConstraintSet createGenericConstraintSet() {
@@ -181,7 +165,6 @@ public class GenericconstraintsFactoryImpl extends EFactoryImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public TakeRateConstraint createTakeRateConstraint() {
@@ -192,7 +175,6 @@ public class GenericconstraintsFactoryImpl extends EFactoryImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericconstraintsPackage getGenericconstraintsPackage() {
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsPackageImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsPackageImpl.java
index b7c5b7da162..294171166d0 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsPackageImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/GenericconstraintsPackageImpl.java
@@ -23,9 +23,17 @@ import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.eclipse.papyrus.eastadl.EastadlPackage;
import org.eclipse.papyrus.eastadl.annex.AnnexPackage;
+import org.eclipse.papyrus.eastadl.annex.attributequantificationconstraint.AttributequantificationconstraintPackage;
+import org.eclipse.papyrus.eastadl.annex.attributequantificationconstraint.impl.AttributequantificationconstraintPackageImpl;
+import org.eclipse.papyrus.eastadl.annex.behaviordescription.BehaviordescriptionPackage;
+import org.eclipse.papyrus.eastadl.annex.behaviordescription.impl.BehaviordescriptionPackageImpl;
+import org.eclipse.papyrus.eastadl.annex.computationconstraint.ComputationconstraintPackage;
+import org.eclipse.papyrus.eastadl.annex.computationconstraint.impl.ComputationconstraintPackageImpl;
import org.eclipse.papyrus.eastadl.annex.impl.AnnexPackageImpl;
import org.eclipse.papyrus.eastadl.annex.needs.NeedsPackage;
import org.eclipse.papyrus.eastadl.annex.needs.impl.NeedsPackageImpl;
+import org.eclipse.papyrus.eastadl.annex.temporalconstraint.TemporalconstraintPackage;
+import org.eclipse.papyrus.eastadl.annex.temporalconstraint.impl.TemporalconstraintPackageImpl;
import org.eclipse.papyrus.eastadl.behavior.BehaviorPackage;
import org.eclipse.papyrus.eastadl.behavior.impl.BehaviorPackageImpl;
import org.eclipse.papyrus.eastadl.dependability.DependabilityPackage;
@@ -55,10 +63,12 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.impl.ElementsPackageI
import org.eclipse.papyrus.eastadl.infrastructure.impl.InfrastructurePackageImpl;
import org.eclipse.papyrus.eastadl.infrastructure.userattributes.UserattributesPackage;
import org.eclipse.papyrus.eastadl.infrastructure.userattributes.impl.UserattributesPackageImpl;
-import org.eclipse.papyrus.eastadl.interchange.InterchangePackage;
-import org.eclipse.papyrus.eastadl.interchange.impl.InterchangePackageImpl;
+import org.eclipse.papyrus.eastadl.infrastructure.values.ValuesPackage;
+import org.eclipse.papyrus.eastadl.infrastructure.values.impl.ValuesPackageImpl;
import org.eclipse.papyrus.eastadl.requirements.RequirementsPackage;
import org.eclipse.papyrus.eastadl.requirements.impl.RequirementsPackageImpl;
+import org.eclipse.papyrus.eastadl.requirements.usecases.UsecasesPackage;
+import org.eclipse.papyrus.eastadl.requirements.usecases.impl.UsecasesPackageImpl;
import org.eclipse.papyrus.eastadl.requirements.verificationvalidation.VerificationvalidationPackage;
import org.eclipse.papyrus.eastadl.requirements.verificationvalidation.impl.VerificationvalidationPackageImpl;
import org.eclipse.papyrus.eastadl.structure.StructurePackage;
@@ -82,7 +92,6 @@ import org.eclipse.papyrus.eastadl.timing.timingconstraints.impl.Timingconstrain
import org.eclipse.papyrus.eastadl.variability.VariabilityPackage;
import org.eclipse.papyrus.eastadl.variability.impl.VariabilityPackageImpl;
import org.eclipse.papyrus.sysml.SysmlPackage;
-import org.eclipse.uml2.types.TypesPackage;
import org.eclipse.uml2.uml.UMLPackage;
@@ -90,7 +99,6 @@ import org.eclipse.uml2.uml.UMLPackage;
* <!-- begin-user-doc -->
* An implementation of the model <b>Package</b>.
* <!-- end-user-doc -->
- *
* @generated
*/
public class GenericconstraintsPackageImpl extends EPackageImpl implements GenericconstraintsPackage {
@@ -98,7 +106,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EClass genericConstraintSetEClass = null;
@@ -106,7 +113,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EClass takeRateConstraintEClass = null;
@@ -114,7 +120,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EClass genericConstraintEClass = null;
@@ -122,7 +127,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private EEnum genericConstraintKindEEnum = null;
@@ -130,7 +134,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private static boolean isInited = false;
@@ -138,18 +141,16 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
- * <p>
- * This method is used to initialize {@link GenericconstraintsPackage#eINSTANCE} when that field is accessed. Clients should not invoke it
- * directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * <p>This method is used to initialize {@link GenericconstraintsPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
* @generated
*/
public static GenericconstraintsPackage init() {
- if(isInited)
- return (GenericconstraintsPackage)EPackage.Registry.INSTANCE.getEPackage(GenericconstraintsPackage.eNS_URI);
+ if (isInited) return (GenericconstraintsPackage)EPackage.Registry.INSTANCE.getEPackage(GenericconstraintsPackage.eNS_URI);
// Obtain or create and register package
GenericconstraintsPackageImpl theGenericconstraintsPackage = (GenericconstraintsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof GenericconstraintsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new GenericconstraintsPackageImpl());
@@ -165,28 +166,34 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
InfrastructurePackageImpl theInfrastructurePackage = (InfrastructurePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI) instanceof InfrastructurePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI) : InfrastructurePackage.eINSTANCE);
DatatypesPackageImpl theDatatypesPackage = (DatatypesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI) instanceof DatatypesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI) : DatatypesPackage.eINSTANCE);
UserattributesPackageImpl theUserattributesPackage = (UserattributesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UserattributesPackage.eNS_URI) instanceof UserattributesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UserattributesPackage.eNS_URI) : UserattributesPackage.eINSTANCE);
+ ValuesPackageImpl theValuesPackage = (ValuesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ValuesPackage.eNS_URI) instanceof ValuesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ValuesPackage.eNS_URI) : ValuesPackage.eINSTANCE);
ElementsPackageImpl theElementsPackage = (ElementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ElementsPackage.eNS_URI) instanceof ElementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ElementsPackage.eNS_URI) : ElementsPackage.eINSTANCE);
StructurePackageImpl theStructurePackage = (StructurePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(StructurePackage.eNS_URI) instanceof StructurePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(StructurePackage.eNS_URI) : StructurePackage.eINSTANCE);
FunctionmodelingPackageImpl theFunctionmodelingPackage = (FunctionmodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FunctionmodelingPackage.eNS_URI) instanceof FunctionmodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FunctionmodelingPackage.eNS_URI) : FunctionmodelingPackage.eINSTANCE);
- HardwaremodelingPackageImpl theHardwaremodelingPackage = (HardwaremodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HardwaremodelingPackage.eNS_URI) instanceof HardwaremodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HardwaremodelingPackage.eNS_URI) : HardwaremodelingPackage.eINSTANCE);
+ FeaturemodelingPackageImpl theFeaturemodelingPackage = (FeaturemodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FeaturemodelingPackage.eNS_URI) instanceof FeaturemodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FeaturemodelingPackage.eNS_URI) : FeaturemodelingPackage.eINSTANCE);
SystemmodelingPackageImpl theSystemmodelingPackage = (SystemmodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemmodelingPackage.eNS_URI) instanceof SystemmodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemmodelingPackage.eNS_URI) : SystemmodelingPackage.eINSTANCE);
VehiclefeaturemodelingPackageImpl theVehiclefeaturemodelingPackage = (VehiclefeaturemodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VehiclefeaturemodelingPackage.eNS_URI) instanceof VehiclefeaturemodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VehiclefeaturemodelingPackage.eNS_URI) : VehiclefeaturemodelingPackage.eINSTANCE);
- FeaturemodelingPackageImpl theFeaturemodelingPackage = (FeaturemodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FeaturemodelingPackage.eNS_URI) instanceof FeaturemodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FeaturemodelingPackage.eNS_URI) : FeaturemodelingPackage.eINSTANCE);
- BehaviorPackageImpl theBehaviorPackage = (BehaviorPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BehaviorPackage.eNS_URI) instanceof BehaviorPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BehaviorPackage.eNS_URI) : BehaviorPackage.eINSTANCE);
+ HardwaremodelingPackageImpl theHardwaremodelingPackage = (HardwaremodelingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(HardwaremodelingPackage.eNS_URI) instanceof HardwaremodelingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(HardwaremodelingPackage.eNS_URI) : HardwaremodelingPackage.eINSTANCE);
+ DependabilityPackageImpl theDependabilityPackage = (DependabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DependabilityPackage.eNS_URI) instanceof DependabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DependabilityPackage.eNS_URI) : DependabilityPackage.eINSTANCE);
+ SafetyrequirementPackageImpl theSafetyrequirementPackage = (SafetyrequirementPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetyrequirementPackage.eNS_URI) instanceof SafetyrequirementPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetyrequirementPackage.eNS_URI) : SafetyrequirementPackage.eINSTANCE);
+ SafetyconstraintsPackageImpl theSafetyconstraintsPackage = (SafetyconstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetyconstraintsPackage.eNS_URI) instanceof SafetyconstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetyconstraintsPackage.eNS_URI) : SafetyconstraintsPackage.eINSTANCE);
+ SafetycasePackageImpl theSafetycasePackage = (SafetycasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetycasePackage.eNS_URI) instanceof SafetycasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetycasePackage.eNS_URI) : SafetycasePackage.eINSTANCE);
+ ErrormodelPackageImpl theErrormodelPackage = (ErrormodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ErrormodelPackage.eNS_URI) instanceof ErrormodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ErrormodelPackage.eNS_URI) : ErrormodelPackage.eINSTANCE);
RequirementsPackageImpl theRequirementsPackage = (RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) instanceof RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RequirementsPackage.eNS_URI) : RequirementsPackage.eINSTANCE);
+ UsecasesPackageImpl theUsecasesPackage = (UsecasesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) instanceof UsecasesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(UsecasesPackage.eNS_URI) : UsecasesPackage.eINSTANCE);
VerificationvalidationPackageImpl theVerificationvalidationPackage = (VerificationvalidationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(VerificationvalidationPackage.eNS_URI) instanceof VerificationvalidationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(VerificationvalidationPackage.eNS_URI) : VerificationvalidationPackage.eINSTANCE);
+ org.eclipse.papyrus.eastadl.requirements.requirements.impl.RequirementsPackageImpl theRequirementsPackage_1 = (org.eclipse.papyrus.eastadl.requirements.requirements.impl.RequirementsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsPackage.eNS_URI) instanceof org.eclipse.papyrus.eastadl.requirements.requirements.impl.RequirementsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsPackage.eNS_URI) : org.eclipse.papyrus.eastadl.requirements.requirements.RequirementsPackage.eINSTANCE);
+ BehaviorPackageImpl theBehaviorPackage = (BehaviorPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BehaviorPackage.eNS_URI) instanceof BehaviorPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BehaviorPackage.eNS_URI) : BehaviorPackage.eINSTANCE);
TimingPackageImpl theTimingPackage = (TimingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimingPackage.eNS_URI) instanceof TimingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimingPackage.eNS_URI) : TimingPackage.eINSTANCE);
TimingconstraintsPackageImpl theTimingconstraintsPackage = (TimingconstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TimingconstraintsPackage.eNS_URI) instanceof TimingconstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TimingconstraintsPackage.eNS_URI) : TimingconstraintsPackage.eINSTANCE);
EventsPackageImpl theEventsPackage = (EventsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EventsPackage.eNS_URI) instanceof EventsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EventsPackage.eNS_URI) : EventsPackage.eINSTANCE);
- InterchangePackageImpl theInterchangePackage = (InterchangePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(InterchangePackage.eNS_URI) instanceof InterchangePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(InterchangePackage.eNS_URI) : InterchangePackage.eINSTANCE);
EnvironmentPackageImpl theEnvironmentPackage = (EnvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) instanceof EnvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EnvironmentPackage.eNS_URI) : EnvironmentPackage.eINSTANCE);
- DependabilityPackageImpl theDependabilityPackage = (DependabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DependabilityPackage.eNS_URI) instanceof DependabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DependabilityPackage.eNS_URI) : DependabilityPackage.eINSTANCE);
- ErrormodelPackageImpl theErrormodelPackage = (ErrormodelPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ErrormodelPackage.eNS_URI) instanceof ErrormodelPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ErrormodelPackage.eNS_URI) : ErrormodelPackage.eINSTANCE);
- SafetyrequirementPackageImpl theSafetyrequirementPackage = (SafetyrequirementPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetyrequirementPackage.eNS_URI) instanceof SafetyrequirementPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetyrequirementPackage.eNS_URI) : SafetyrequirementPackage.eINSTANCE);
- SafetyconstraintsPackageImpl theSafetyconstraintsPackage = (SafetyconstraintsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetyconstraintsPackage.eNS_URI) instanceof SafetyconstraintsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetyconstraintsPackage.eNS_URI) : SafetyconstraintsPackage.eINSTANCE);
- SafetycasePackageImpl theSafetycasePackage = (SafetycasePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SafetycasePackage.eNS_URI) instanceof SafetycasePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SafetycasePackage.eNS_URI) : SafetycasePackage.eINSTANCE);
AnnexPackageImpl theAnnexPackage = (AnnexPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AnnexPackage.eNS_URI) instanceof AnnexPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AnnexPackage.eNS_URI) : AnnexPackage.eINSTANCE);
NeedsPackageImpl theNeedsPackage = (NeedsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(NeedsPackage.eNS_URI) instanceof NeedsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(NeedsPackage.eNS_URI) : NeedsPackage.eINSTANCE);
+ BehaviordescriptionPackageImpl theBehaviordescriptionPackage = (BehaviordescriptionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(BehaviordescriptionPackage.eNS_URI) instanceof BehaviordescriptionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(BehaviordescriptionPackage.eNS_URI) : BehaviordescriptionPackage.eINSTANCE);
+ AttributequantificationconstraintPackageImpl theAttributequantificationconstraintPackage = (AttributequantificationconstraintPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AttributequantificationconstraintPackage.eNS_URI) instanceof AttributequantificationconstraintPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AttributequantificationconstraintPackage.eNS_URI) : AttributequantificationconstraintPackage.eINSTANCE);
+ TemporalconstraintPackageImpl theTemporalconstraintPackage = (TemporalconstraintPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TemporalconstraintPackage.eNS_URI) instanceof TemporalconstraintPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(TemporalconstraintPackage.eNS_URI) : TemporalconstraintPackage.eINSTANCE);
+ ComputationconstraintPackageImpl theComputationconstraintPackage = (ComputationconstraintPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ComputationconstraintPackage.eNS_URI) instanceof ComputationconstraintPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ComputationconstraintPackage.eNS_URI) : ComputationconstraintPackage.eINSTANCE);
// Create package meta-data objects
theGenericconstraintsPackage.createPackageContents();
@@ -195,28 +202,34 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
theInfrastructurePackage.createPackageContents();
theDatatypesPackage.createPackageContents();
theUserattributesPackage.createPackageContents();
+ theValuesPackage.createPackageContents();
theElementsPackage.createPackageContents();
theStructurePackage.createPackageContents();
theFunctionmodelingPackage.createPackageContents();
- theHardwaremodelingPackage.createPackageContents();
+ theFeaturemodelingPackage.createPackageContents();
theSystemmodelingPackage.createPackageContents();
theVehiclefeaturemodelingPackage.createPackageContents();
- theFeaturemodelingPackage.createPackageContents();
- theBehaviorPackage.createPackageContents();
+ theHardwaremodelingPackage.createPackageContents();
+ theDependabilityPackage.createPackageContents();
+ theSafetyrequirementPackage.createPackageContents();
+ theSafetyconstraintsPackage.createPackageContents();
+ theSafetycasePackage.createPackageContents();
+ theErrormodelPackage.createPackageContents();
theRequirementsPackage.createPackageContents();
+ theUsecasesPackage.createPackageContents();
theVerificationvalidationPackage.createPackageContents();
+ theRequirementsPackage_1.createPackageContents();
+ theBehaviorPackage.createPackageContents();
theTimingPackage.createPackageContents();
theTimingconstraintsPackage.createPackageContents();
theEventsPackage.createPackageContents();
- theInterchangePackage.createPackageContents();
theEnvironmentPackage.createPackageContents();
- theDependabilityPackage.createPackageContents();
- theErrormodelPackage.createPackageContents();
- theSafetyrequirementPackage.createPackageContents();
- theSafetyconstraintsPackage.createPackageContents();
- theSafetycasePackage.createPackageContents();
theAnnexPackage.createPackageContents();
theNeedsPackage.createPackageContents();
+ theBehaviordescriptionPackage.createPackageContents();
+ theAttributequantificationconstraintPackage.createPackageContents();
+ theTemporalconstraintPackage.createPackageContents();
+ theComputationconstraintPackage.createPackageContents();
// Initialize created meta-data
theGenericconstraintsPackage.initializePackageContents();
@@ -225,33 +238,39 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
theInfrastructurePackage.initializePackageContents();
theDatatypesPackage.initializePackageContents();
theUserattributesPackage.initializePackageContents();
+ theValuesPackage.initializePackageContents();
theElementsPackage.initializePackageContents();
theStructurePackage.initializePackageContents();
theFunctionmodelingPackage.initializePackageContents();
- theHardwaremodelingPackage.initializePackageContents();
+ theFeaturemodelingPackage.initializePackageContents();
theSystemmodelingPackage.initializePackageContents();
theVehiclefeaturemodelingPackage.initializePackageContents();
- theFeaturemodelingPackage.initializePackageContents();
- theBehaviorPackage.initializePackageContents();
+ theHardwaremodelingPackage.initializePackageContents();
+ theDependabilityPackage.initializePackageContents();
+ theSafetyrequirementPackage.initializePackageContents();
+ theSafetyconstraintsPackage.initializePackageContents();
+ theSafetycasePackage.initializePackageContents();
+ theErrormodelPackage.initializePackageContents();
theRequirementsPackage.initializePackageContents();
+ theUsecasesPackage.initializePackageContents();
theVerificationvalidationPackage.initializePackageContents();
+ theRequirementsPackage_1.initializePackageContents();
+ theBehaviorPackage.initializePackageContents();
theTimingPackage.initializePackageContents();
theTimingconstraintsPackage.initializePackageContents();
theEventsPackage.initializePackageContents();
- theInterchangePackage.initializePackageContents();
theEnvironmentPackage.initializePackageContents();
- theDependabilityPackage.initializePackageContents();
- theErrormodelPackage.initializePackageContents();
- theSafetyrequirementPackage.initializePackageContents();
- theSafetyconstraintsPackage.initializePackageContents();
- theSafetycasePackage.initializePackageContents();
theAnnexPackage.initializePackageContents();
theNeedsPackage.initializePackageContents();
+ theBehaviordescriptionPackage.initializePackageContents();
+ theAttributequantificationconstraintPackage.initializePackageContents();
+ theTemporalconstraintPackage.initializePackageContents();
+ theComputationconstraintPackage.initializePackageContents();
// Mark meta-data to indicate it can't be changed
theGenericconstraintsPackage.freeze();
-
+
// Update the registry and return the package
EPackage.Registry.INSTANCE.put(GenericconstraintsPackage.eNS_URI, theGenericconstraintsPackage);
return theGenericconstraintsPackage;
@@ -260,7 +279,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private boolean isCreated = false;
@@ -268,19 +286,19 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
private boolean isInitialized = false;
/**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the
- * package
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the
- * package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage#eNS_URI
* @see #init()
@@ -291,26 +309,24 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
}
/**
- * Creates the meta-model objects for the package. This method is
+ * Creates the meta-model objects for the package. This method is
* guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void createPackageContents() {
- if(isCreated)
- return;
+ if (isCreated) return;
isCreated = true;
// Create classes and their features
genericConstraintEClass = createEClass(GENERIC_CONSTRAINT);
- createEAttribute(genericConstraintEClass, GENERIC_CONSTRAINT__DESIGN_CONSTRAINT_TYPE);
+ createEAttribute(genericConstraintEClass, GENERIC_CONSTRAINT__KIND);
createEReference(genericConstraintEClass, GENERIC_CONSTRAINT__BASE_CONSTRAINT);
- createEAttribute(genericConstraintEClass, GENERIC_CONSTRAINT__GENERIC_CONSTRAINT_VALUE);
createEReference(genericConstraintEClass, GENERIC_CONSTRAINT__BASE_CLASS);
createEReference(genericConstraintEClass, GENERIC_CONSTRAINT__TARGET);
createEReference(genericConstraintEClass, GENERIC_CONSTRAINT__MODE);
+ createEReference(genericConstraintEClass, GENERIC_CONSTRAINT__VALUE);
genericConstraintSetEClass = createEClass(GENERIC_CONSTRAINT_SET);
createEReference(genericConstraintSetEClass, GENERIC_CONSTRAINT_SET__GENERIC_CONSTRAINT);
@@ -328,7 +344,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EClass getGenericConstraint() {
@@ -338,17 +353,15 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public EAttribute getGenericConstraint_DesignConstraintType() {
+ public EAttribute getGenericConstraint_Kind() {
return (EAttribute)genericConstraintEClass.getEStructuralFeatures().get(0);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getGenericConstraint_Base_Constraint() {
@@ -358,47 +371,42 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public EAttribute getGenericConstraint_GenericConstraintValue() {
- return (EAttribute)genericConstraintEClass.getEStructuralFeatures().get(2);
+ public EReference getGenericConstraint_Base_Class() {
+ return (EReference)genericConstraintEClass.getEStructuralFeatures().get(2);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public EReference getGenericConstraint_Base_Class() {
- return (EReference)genericConstraintEClass.getEStructuralFeatures().get(3);
+ public EReference getGenericConstraint_Mode() {
+ return (EReference)genericConstraintEClass.getEStructuralFeatures().get(4);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- public EReference getGenericConstraint_Mode() {
+ public EReference getGenericConstraint_Value() {
return (EReference)genericConstraintEClass.getEStructuralFeatures().get(5);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getGenericConstraint_Target() {
- return (EReference)genericConstraintEClass.getEStructuralFeatures().get(4);
+ return (EReference)genericConstraintEClass.getEStructuralFeatures().get(3);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EEnum getGenericConstraintKind() {
@@ -408,7 +416,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EClass getGenericConstraintSet() {
@@ -418,7 +425,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getGenericConstraintSet_GenericConstraint() {
@@ -428,7 +434,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getGenericConstraintSet_Base_Package() {
@@ -438,7 +443,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getGenericConstraintSet_Base_Class() {
@@ -448,7 +452,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericconstraintsFactory getGenericconstraintsFactory() {
@@ -458,7 +461,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EClass getTakeRateConstraint() {
@@ -468,7 +470,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EReference getTakeRateConstraint_Source() {
@@ -478,7 +479,6 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getTakeRateConstraint_TakeRate() {
@@ -486,16 +486,14 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
}
/**
- * Complete the initialization of the package and its meta-model. This
+ * Complete the initialization of the package and its meta-model. This
* method is guarded to have no affect on any invocation but its first.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void initializePackageContents() {
- if(isInitialized)
- return;
+ if (isInitialized) return;
isInitialized = true;
// Initialize package
@@ -506,8 +504,8 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
// Obtain other dependent packages
ElementsPackage theElementsPackage = (ElementsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementsPackage.eNS_URI);
UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
- TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
BehaviorPackage theBehaviorPackage = (BehaviorPackage)EPackage.Registry.INSTANCE.getEPackage(BehaviorPackage.eNS_URI);
+ ValuesPackage theValuesPackage = (ValuesPackage)EPackage.Registry.INSTANCE.getEPackage(ValuesPackage.eNS_URI);
DatatypesPackage theDatatypesPackage = (DatatypesPackage)EPackage.Registry.INSTANCE.getEPackage(DatatypesPackage.eNS_URI);
// Create type parameters
@@ -519,17 +517,17 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
genericConstraintSetEClass.getESuperTypes().add(theElementsPackage.getContext());
takeRateConstraintEClass.getESuperTypes().add(this.getGenericConstraint());
- // Initialize classes and features; add operations and parameters
+ // Initialize classes, features, and operations; add parameters
initEClass(genericConstraintEClass, GenericConstraint.class, "GenericConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getGenericConstraint_DesignConstraintType(), this.getGenericConstraintKind(), "designConstraintType", null, 0, 1, GenericConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEAttribute(getGenericConstraint_Kind(), this.getGenericConstraintKind(), "kind", null, 0, 1, GenericConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getGenericConstraint_Base_Constraint(), theUMLPackage.getConstraint(), null, "base_Constraint", null, 0, 1, GenericConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getGenericConstraint_GenericConstraintValue(), theTypesPackage.getString(), "genericConstraintValue", null, 1, 1, GenericConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getGenericConstraint_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 0, 1, GenericConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getGenericConstraint_Target(), theUMLPackage.getNamedElement(), null, "target", null, 0, -1, GenericConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getGenericConstraint_Mode(), theBehaviorPackage.getMode(), null, "mode", null, 0, -1, GenericConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getGenericConstraint_Value(), theValuesPackage.getEAValue(), null, "value", null, 0, 1, GenericConstraint.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
initEClass(genericConstraintSetEClass, GenericConstraintSet.class, "GenericConstraintSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getGenericConstraintSet_GenericConstraint(), this.getGenericConstraint(), null, "genericConstraint", null, 0, -1, GenericConstraintSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
+ initEReference(getGenericConstraintSet_GenericConstraint(), this.getGenericConstraint(), null, "genericConstraint", null, 0, -1, GenericConstraintSet.class, IS_TRANSIENT, IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);
initEReference(getGenericConstraintSet_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 0, 1, GenericConstraintSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
initEReference(getGenericConstraintSet_Base_Class(), theUMLPackage.getClass_(), null, "base_Class", null, 0, 1, GenericConstraintSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
@@ -539,16 +537,28 @@ public class GenericconstraintsPackageImpl extends EPackageImpl implements Gener
// Initialize enums and add enum literals
initEEnum(genericConstraintKindEEnum, GenericConstraintKind.class, "GenericConstraintKind");
- addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.POWER_CONSUMPTION);
- addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.OTHER);
- addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.PIECE_COST);
- addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.WEIGHT);
- addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.STANDARD);
addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.CABLE_LENGTH);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.CURRENT);
addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.DEVELOPMENT_COST);
- addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.FUNCTION_ALLOCATION_DIFFERENT_NODES);
- addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.FUNCTION_ALLOCATION_SAME_NODE);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.FUNCTION_ALLOCATION_DIFFERENT_HW);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.FUNCTION_ALLOCATION_SAME_HW);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.IMPEDANCE);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.INSULATION);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.MEMORY);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.NON_VOLATILE_MEMORY);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.OTHER);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.PIECE_COST);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.POWER_CONSUMPTION);
addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.POWER_SUPPLY_INDEPENDENT);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.REALIZATION_DIFFERENT);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.REALIZATION_SAME);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.SPACE_REDUNDANCY);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.STANDARD);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.TIME_REDUNDANCY);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.UTILIZATION);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.VOLTAGE);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.VOLATILE_MEMORY);
+ addEEnumLiteral(genericConstraintKindEEnum, GenericConstraintKind.WEIGHT);
}
} //GenericconstraintsPackageImpl
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/TakeRateConstraintImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/TakeRateConstraintImpl.java
index 8a27cc4a83c..76221accc47 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/TakeRateConstraintImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/impl/TakeRateConstraintImpl.java
@@ -34,20 +34,18 @@ import org.eclipse.uml2.uml.NamedElement;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl#getSource <em>Source</em>}</li>
- * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl#getTakeRate <em>Take Rate</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl#getSource <em>Source</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.genericconstraints.impl.TakeRateConstraintImpl#getTakeRate <em>Take Rate</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class TakeRateConstraintImpl extends GenericConstraintImpl implements TakeRateConstraint {
-
/**
* The cached value of the '{@link #getSource() <em>Source</em>}' reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getSource()
* @generated
* @ordered
@@ -58,7 +56,6 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
* The default value of the '{@link #getTakeRate() <em>Take Rate</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getTakeRate()
* @generated
* @ordered
@@ -69,7 +66,6 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
* The cached value of the '{@link #getTakeRate() <em>Take Rate</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #getTakeRate()
* @generated
* @ordered
@@ -79,7 +75,6 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected TakeRateConstraintImpl() {
@@ -89,16 +84,15 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch(featureID) {
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
- return getSource();
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
- return getTakeRate();
+ switch (featureID) {
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
+ return getSource();
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
+ return getTakeRate();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -106,16 +100,15 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
- switch(featureID) {
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
- return source != null && !source.isEmpty();
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
- return TAKE_RATE_EDEFAULT == null ? takeRate != null : !TAKE_RATE_EDEFAULT.equals(takeRate);
+ switch (featureID) {
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
+ return source != null && !source.isEmpty();
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
+ return TAKE_RATE_EDEFAULT == null ? takeRate != null : !TAKE_RATE_EDEFAULT.equals(takeRate);
}
return super.eIsSet(featureID);
}
@@ -123,20 +116,19 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch(featureID) {
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
- getSource().clear();
- getSource().addAll((Collection<? extends NamedElement>)newValue);
- return;
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
- setTakeRate((Float)newValue);
- return;
+ switch (featureID) {
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
+ getSource().clear();
+ getSource().addAll((Collection<? extends NamedElement>)newValue);
+ return;
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
+ setTakeRate((Float)newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -144,7 +136,6 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -155,18 +146,17 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public void eUnset(int featureID) {
- switch(featureID) {
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
- getSource().clear();
- return;
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
- setTakeRate(TAKE_RATE_EDEFAULT);
- return;
+ switch (featureID) {
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE:
+ getSource().clear();
+ return;
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE:
+ setTakeRate(TAKE_RATE_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -174,11 +164,10 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public EList<NamedElement> getSource() {
- if(source == null) {
+ if (source == null) {
source = new EObjectResolvingEList<NamedElement>(NamedElement.class, this, GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__SOURCE);
}
return source;
@@ -187,7 +176,6 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public Float getTakeRate() {
@@ -197,26 +185,23 @@ public class TakeRateConstraintImpl extends GenericConstraintImpl implements Tak
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public void setTakeRate(Float newTakeRate) {
Float oldTakeRate = takeRate;
takeRate = newTakeRate;
- if(eNotificationRequired())
+ if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GenericconstraintsPackage.TAKE_RATE_CONSTRAINT__TAKE_RATE, oldTakeRate, takeRate));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
public String toString() {
- if(eIsProxy())
- return super.toString();
+ if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (takeRate: ");
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java
index dfc5d54d246..55d185d2ff4 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsAdapterFactory.java
@@ -19,7 +19,6 @@ import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.eastadl.genericconstraints.*;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage;
@@ -35,17 +34,14 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecificatio
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage
* @generated
*/
public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
-
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static GenericconstraintsPackage modelPackage;
@@ -54,61 +50,52 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
- protected GenericconstraintsSwitch<Adapter> modelSwitch = new GenericconstraintsSwitch<Adapter>() {
-
- @Override
- public Adapter caseGenericConstraint(GenericConstraint object) {
- return createGenericConstraintAdapter();
- }
-
- @Override
- public Adapter caseGenericConstraintSet(GenericConstraintSet object) {
- return createGenericConstraintSetAdapter();
- }
-
- @Override
- public Adapter caseTakeRateConstraint(TakeRateConstraint object) {
- return createTakeRateConstraintAdapter();
- }
-
- @Override
- public Adapter caseEAElement(EAElement object) {
- return createEAElementAdapter();
- }
-
- @Override
- public Adapter caseEAPackageableElement(EAPackageableElement object) {
- return createEAPackageableElementAdapter();
- }
-
- @Override
- public Adapter caseTraceableSpecification(TraceableSpecification object) {
- return createTraceableSpecificationAdapter();
- }
-
- @Override
- public Adapter caseContext(Context object) {
- return createContextAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ protected GenericconstraintsSwitch<Adapter> modelSwitch =
+ new GenericconstraintsSwitch<Adapter>() {
+ @Override
+ public Adapter caseGenericConstraint(GenericConstraint object) {
+ return createGenericConstraintAdapter();
+ }
+ @Override
+ public Adapter caseGenericConstraintSet(GenericConstraintSet object) {
+ return createGenericConstraintSetAdapter();
+ }
+ @Override
+ public Adapter caseTakeRateConstraint(TakeRateConstraint object) {
+ return createTakeRateConstraintAdapter();
+ }
+ @Override
+ public Adapter caseEAElement(EAElement object) {
+ return createEAElementAdapter();
+ }
+ @Override
+ public Adapter caseEAPackageableElement(EAPackageableElement object) {
+ return createEAPackageableElementAdapter();
+ }
+ @Override
+ public Adapter caseTraceableSpecification(TraceableSpecification object) {
+ return createTraceableSpecificationAdapter();
+ }
+ @Override
+ public Adapter caseContext(Context object) {
+ return createContextAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericconstraintsAdapterFactory() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = GenericconstraintsPackage.eINSTANCE;
}
}
@@ -117,9 +104,7 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
+ * @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@@ -134,7 +119,6 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.eastadl.infrastructure.elements.Context
* @generated
@@ -148,7 +132,6 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @generated
*/
@@ -157,13 +140,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint
- * <em>Generic Constraint</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint <em>Generic Constraint</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint
* @generated
@@ -173,13 +154,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet
- * <em>Generic Constraint Set</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet <em>Generic Constraint Set</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet
* @generated
@@ -189,13 +168,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint
- * <em>Take Rate Constraint</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint <em>Take Rate Constraint</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.eastadl.genericconstraints.TakeRateConstraint
* @generated
@@ -210,7 +187,6 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.eastadl.infrastructure.elements.EAElement
* @generated
@@ -220,13 +196,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement
- * <em>EA Packageable Element</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement <em>EA Packageable Element</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.eastadl.infrastructure.elements.EAPackageableElement
* @generated
@@ -236,13 +210,11 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification
- * <em>Traceable Specification</em>}'.
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification <em>Traceable Specification</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
- *
* @return the new adapter.
* @see org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecification
* @generated
@@ -256,16 +228,15 @@ public class GenericconstraintsAdapterFactory extends AdapterFactoryImpl {
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
- *
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object) {
- if(object == modelPackage) {
+ if (object == modelPackage) {
return true;
}
- if(object instanceof EObject) {
+ if (object instanceof EObject) {
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceFactoryImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceFactoryImpl.java
index eee81334aa5..b0ea060bc5c 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceFactoryImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceFactoryImpl.java
@@ -24,17 +24,14 @@ import org.eclipse.emf.ecore.xmi.XMLResource;
* <!-- begin-user-doc -->
* The <b>Resource Factory</b> associated with the package.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.util.GenericconstraintsResourceImpl
* @generated
*/
public class GenericconstraintsResourceFactoryImpl extends ResourceFactoryImpl {
-
/**
* Creates an instance of the resource factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericconstraintsResourceFactoryImpl() {
@@ -45,7 +42,6 @@ public class GenericconstraintsResourceFactoryImpl extends ResourceFactoryImpl {
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceImpl.java
index 0740b5200cc..52c666c68f3 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsResourceImpl.java
@@ -22,19 +22,15 @@ import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
* <!-- begin-user-doc -->
* The <b>Resource </b> associated with the package.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.util.GenericconstraintsResourceFactoryImpl
* @generated
*/
public class GenericconstraintsResourceImpl extends XMLResourceImpl {
-
/**
* Creates an instance of the resource.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
- * @param uri
- * the URI of the new resource.
+ * @param uri the URI of the new resource.
* @generated
*/
public GenericconstraintsResourceImpl(URI uri) {
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsSwitch.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsSwitch.java
index 477466c1fa4..17365d079c8 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsSwitch.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsSwitch.java
@@ -18,7 +18,6 @@ package org.eclipse.papyrus.eastadl.genericconstraints.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.eastadl.genericconstraints.*;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraint;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericConstraintSet;
import org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage;
@@ -32,23 +31,21 @@ import org.eclipse.papyrus.eastadl.infrastructure.elements.TraceableSpecificatio
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
* starting with the actual class of the object
* and proceeding up the inheritance hierarchy
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
- *
* @see org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage
* @generated
*/
public class GenericconstraintsSwitch<T> extends Switch<T> {
-
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
protected static GenericconstraintsPackage modelPackage;
@@ -57,11 +54,10 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericconstraintsSwitch() {
- if(modelPackage == null) {
+ if (modelPackage == null) {
modelPackage = GenericconstraintsPackage.eINSTANCE;
}
}
@@ -70,7 +66,6 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
@@ -86,9 +81,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Context</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -103,9 +96,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Generic Constraint</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -120,9 +111,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Generic Constraint Set</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -137,9 +126,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Take Rate Constraint</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -154,9 +141,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EA Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -171,9 +156,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EA Packageable Element</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -188,9 +171,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Traceable Specification</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -205,9 +186,7 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
* <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -221,57 +200,41 @@ public class GenericconstraintsSwitch<T> extends Switch<T> {
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
- switch(classifierID) {
- case GenericconstraintsPackage.GENERIC_CONSTRAINT:
- {
- GenericConstraint genericConstraint = (GenericConstraint)theEObject;
- T result = caseGenericConstraint(genericConstraint);
- if(result == null)
- result = caseTraceableSpecification(genericConstraint);
- if(result == null)
- result = caseEAPackageableElement(genericConstraint);
- if(result == null)
- result = caseEAElement(genericConstraint);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET:
- {
- GenericConstraintSet genericConstraintSet = (GenericConstraintSet)theEObject;
- T result = caseGenericConstraintSet(genericConstraintSet);
- if(result == null)
- result = caseContext(genericConstraintSet);
- if(result == null)
- result = caseEAElement(genericConstraintSet);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT:
- {
- TakeRateConstraint takeRateConstraint = (TakeRateConstraint)theEObject;
- T result = caseTakeRateConstraint(takeRateConstraint);
- if(result == null)
- result = caseGenericConstraint(takeRateConstraint);
- if(result == null)
- result = caseTraceableSpecification(takeRateConstraint);
- if(result == null)
- result = caseEAPackageableElement(takeRateConstraint);
- if(result == null)
- result = caseEAElement(takeRateConstraint);
- if(result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
+ switch (classifierID) {
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT: {
+ GenericConstraint genericConstraint = (GenericConstraint)theEObject;
+ T result = caseGenericConstraint(genericConstraint);
+ if (result == null) result = caseTraceableSpecification(genericConstraint);
+ if (result == null) result = caseEAPackageableElement(genericConstraint);
+ if (result == null) result = caseEAElement(genericConstraint);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GenericconstraintsPackage.GENERIC_CONSTRAINT_SET: {
+ GenericConstraintSet genericConstraintSet = (GenericConstraintSet)theEObject;
+ T result = caseGenericConstraintSet(genericConstraintSet);
+ if (result == null) result = caseContext(genericConstraintSet);
+ if (result == null) result = caseEAPackageableElement(genericConstraintSet);
+ if (result == null) result = caseEAElement(genericConstraintSet);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case GenericconstraintsPackage.TAKE_RATE_CONSTRAINT: {
+ TakeRateConstraint takeRateConstraint = (TakeRateConstraint)theEObject;
+ T result = caseTakeRateConstraint(takeRateConstraint);
+ if (result == null) result = caseGenericConstraint(takeRateConstraint);
+ if (result == null) result = caseTraceableSpecification(takeRateConstraint);
+ if (result == null) result = caseEAPackageableElement(takeRateConstraint);
+ if (result == null) result = caseEAElement(takeRateConstraint);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
}
}
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsXMLProcessor.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsXMLProcessor.java
index 1e157d5f405..5e7caec9d41 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsXMLProcessor.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/genericconstraints/util/GenericconstraintsXMLProcessor.java
@@ -27,7 +27,6 @@ import org.eclipse.papyrus.eastadl.genericconstraints.GenericconstraintsPackage;
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public class GenericconstraintsXMLProcessor extends XMLProcessor {
@@ -36,24 +35,22 @@ public class GenericconstraintsXMLProcessor extends XMLProcessor {
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public GenericconstraintsXMLProcessor() {
super((EPackage.Registry.INSTANCE));
GenericconstraintsPackage.eINSTANCE.eClass();
}
-
+
/**
* Register for "*" and "xml" file extensions the GenericconstraintsResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
@Override
protected Map<String, Resource.Factory> getRegistrations() {
- if(registrations == null) {
+ if (registrations == null) {
super.getRegistrations();
registrations.put(XML_EXTENSION, new GenericconstraintsResourceFactoryImpl());
registrations.put(STAR_EXTENSION, new GenericconstraintsResourceFactoryImpl());

Back to the top