Skip to content

Commit

Permalink
Remove transient from constraints in ECD metamodel
Browse files Browse the repository at this point in the history
Remove transient from constraints in ECD metamodel
  • Loading branch information
Alfa Yohannis committed Nov 16, 2022
1 parent 8c688e3 commit 2ae2e92
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public Map<String, String> generatePromises(String modifiedFilePath, PictoProjec
}

accessRecordResource.printIncrementalRecords();
// accessRecordResource.updateStatusToProcessed(toBeProcessedPaths);
accessRecordResource.updateStatusToProcessed(toBeProcessedPaths);
generateAll = false;

System.out.println();
Expand Down
32 changes: 19 additions & 13 deletions workspace/ecorediagram/ecd.ecore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="types" upperBound="-1"
eType="#//Type" transient="true" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="associations" upperBound="-1"
eType="#//Association" containment="true"/>
eType="#//Association" transient="true" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="constraints" upperBound="-1"
eType="#//Constraint" containment="true"/>
</eClassifiers>
Expand All @@ -22,16 +22,18 @@
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Include">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//Type" eOpposite="#//Type/include"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//Type" transient="true"
eOpposite="#//Type/include"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Type" abstract="true">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="interface" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="false"/>
transient="true" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
transient="true" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
transient="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="include" eType="#//Include"
eOpposite="#//Include/type"/>
transient="true" eOpposite="#//Include/type"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Enumeration" eSuperTypes="#//Type"/>
<eClassifiers xsi:type="ecore:EClass" name="Class" eSuperTypes="#//Type">
Expand All @@ -54,19 +56,23 @@
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Association">
<eStructuralFeatures xsi:type="ecore:EReference" name="references" upperBound="-1"
eType="#//Reference" containment="true"/>
eType="#//Reference" transient="true" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Method">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
transient="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
transient="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
eType="#//Parameter" containment="true"/>
eType="#//Parameter" transient="true" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="exceptions" upperBound="-1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Parameter">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
transient="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Reference">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
Expand Down
2 changes: 1 addition & 1 deletion workspace/ecorediagram/ecd.emf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Diagram {
val Include[*] includes;
transient val Type[*] types;
transient val Association[*] associations;
transient val Constraint[*] constraints;
val Constraint[*] constraints;
}

class Constraint {
Expand Down

0 comments on commit 2ae2e92

Please sign in to comment.