Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Seidewitz2016-01-09 20:00:53 +0000
committerjeremie.tatibouet2016-03-21 15:19:51 +0000
commitef7dd990e6d2dc43035236577366f2e85bf544e6 (patch)
treeeeaacae12de9ac174e959454ed5f3330a56d0f93 /plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen
parentfcf2082a5e379eb54f14a5e3b4e374a405312ab5 (diff)
downloadorg.eclipse.papyrus-ef7dd990e6d2dc43035236577366f2e85bf544e6.tar.gz
org.eclipse.papyrus-ef7dd990e6d2dc43035236577366f2e85bf544e6.tar.xz
org.eclipse.papyrus-ef7dd990e6d2dc43035236577366f2e85bf544e6.zip
Corrected constraints in alf.ecore.
- Corrected featureInvocationExpressionReferentExists constraint. - Corrected the determination of whether an internal namespace is within the external context of the model namespace. Change-Id: I785463ef58f51fd7323749bd92081ee76248f0bc Signed-off-by: Ed Seidewitz <ed-s@modeldriven.com>
Diffstat (limited to 'plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen')
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/ExternalElementReference.java2
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/FeatureInvocationExpression.java2
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/InternalElementReference.java4
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/FeatureInvocationExpressionImpl.java2
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/alf.ecore8
5 files changed, 9 insertions, 9 deletions
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/ExternalElementReference.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/ExternalElementReference.java
index 92d607004ce..958ba1f36f8 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/ExternalElementReference.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/ExternalElementReference.java
@@ -779,7 +779,7 @@ public interface ExternalElementReference extends ElementReference {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true"
- * annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n other <> null and \n other.asUml() = self.element and \n other.name() = self.name()'"
+ * annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n other <> null and \n \t(other.asUml() = self.element and other.name() = self.name() or\n \t other.isModelNamespace() and other.asAlf().oclAsType(ModelNamespace).context().asUml() = self.element)'"
* @generated
*/
boolean equals(ElementReference other);
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/FeatureInvocationExpression.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/FeatureInvocationExpression.java
index c6564695d1f..fa4245c3648 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/FeatureInvocationExpression.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/FeatureInvocationExpression.java
@@ -104,7 +104,7 @@ public interface FeatureInvocationExpression extends InvocationExpression {
* then it must be possible to determine a single valid referent for it
* according to the overloading resolution rules.
* <!-- end-model-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n self.isImplicit or\n -- TODO: Remove this check once overloading resolution is implemented.\n self.tuple.size() <= self.parameterCount() and\n self.tuple.input()->forAll(input | self.parameterIsAssignableFrom(input)) and\n self.tuple.output()->forAll(output | self.parameterIsAssignableTo(output))'"
+ * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n self.isImplicit or self.referent <> null and\n -- TODO: Remove this check once overloading resolution is implemented.\n self.tuple.size() <= self.parameterCount() and\n self.tuple.input()->forAll(input | self.parameterIsAssignableFrom(input)) and\n self.tuple.output()->forAll(output | self.parameterIsAssignableTo(output))'"
* @generated
*/
boolean featureInvocationExpressionReferentExists(DiagnosticChain diagnostics, Map<Object, Object> context);
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/InternalElementReference.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/InternalElementReference.java
index 96d3ecbe118..8c603537505 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/InternalElementReference.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/InternalElementReference.java
@@ -519,7 +519,7 @@ public interface InternalElementReference extends ElementReference {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n if self.element.oclIsKindOf(MemberDefinition) then\n self.element.oclAsType(MemberDefinition).outerScope()\n else\n null\n endif'"
+ * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n if self.isModelNamespace() then\n \tself.element.oclAsType(ModelNamespace).context().namespace()\n else if self.element.oclIsKindOf(MemberDefinition) then\n self.element.oclAsType(MemberDefinition).outerScope()\n else\n null\n endif endif'"
* @generated
*/
ElementReference namespace();
@@ -680,7 +680,7 @@ public interface InternalElementReference extends ElementReference {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model required="true"
- * annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='other <> null and other.asAlf() = self.element'"
+ * annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\t\tother <> null and (other.asAlf() = self.element or \n\t\t\tself.isModelNamespace() and other.asUml() = self.element.oclAsType(ModelNamespace).context().asUml())'"
* @generated
*/
boolean equals(ElementReference other);
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/FeatureInvocationExpressionImpl.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/FeatureInvocationExpressionImpl.java
index 3caa358dfb7..b90863360f9 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/FeatureInvocationExpressionImpl.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/FeatureInvocationExpressionImpl.java
@@ -177,7 +177,7 @@ public class FeatureInvocationExpressionImpl extends InvocationExpressionImpl im
* @ordered
*/
protected static final String FEATURE_INVOCATION_EXPRESSION_REFERENT_EXISTS_DIAGNOSTIC_CHAIN_MAP__EEXPRESSION = "\n" +
- " self.isImplicit or\n" +
+ " self.isImplicit or self.referent <> null and\n" +
" -- TODO: Remove this check once overloading resolution is implemented.\n" +
" self.tuple.size() <= self.parameterCount() and\n" +
" self.tuple.input()->forAll(input | self.parameterIsAssignableFrom(input)) and\n" +
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/alf.ecore b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/alf.ecore
index 33c45b5c933..5265fc38bf4 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/alf.ecore
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/syntax-gen/org/eclipse/papyrus/uml/alf/impl/alf.ecore
@@ -758,7 +758,7 @@
</eOperations>
<eOperations name="namespace" eType="#//ElementReference">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
- <details key="body" value="&#xA; if self.element.oclIsKindOf(MemberDefinition) then&#xA; self.element.oclAsType(MemberDefinition).outerScope()&#xA; else&#xA; null&#xA; endif"/>
+ <details key="body" value="&#xA; if self.isModelNamespace() then&#xA; &#x9;self.element.oclAsType(ModelNamespace).context().namespace()&#xA; else if self.element.oclIsKindOf(MemberDefinition) then&#xA; self.element.oclAsType(MemberDefinition).outerScope()&#xA; else&#xA; null&#xA; endif endif"/>
</eAnnotations>
</eOperations>
<eOperations name="template" eType="#//ElementReference">
@@ -854,7 +854,7 @@
</eOperations>
<eOperations name="equals" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
- <details key="body" value="other &lt;> null and other.asAlf() = self.element"/>
+ <details key="body" value="&#xA;&#x9;&#x9;other &lt;> null and (other.asAlf() = self.element or &#xA;&#x9;&#x9;&#x9;self.isModelNamespace() and other.asUml() = self.element.oclAsType(ModelNamespace).context().asUml())"/>
</eAnnotations>
<eParameters name="other" eType="#//ElementReference"/>
</eOperations>
@@ -1303,7 +1303,7 @@
</eOperations>
<eOperations name="equals" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
- <details key="body" value="&#xA; other &lt;> null and &#xA; other.asUml() = self.element and &#xA; other.name() = self.name()"/>
+ <details key="body" value="&#xA; other &lt;> null and &#xA; &#x9;(other.asUml() = self.element and other.name() = self.name() or&#xA; &#x9; other.isModelNamespace() and other.asAlf().oclAsType(ModelNamespace).context().asUml() = self.element)"/>
</eAnnotations>
<eParameters name="other" eType="#//ElementReference"/>
</eOperations>
@@ -5720,7 +5720,7 @@
</eOperations>
<eOperations name="featureInvocationExpressionReferentExists" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
- <details key="body" value="&#xA; self.isImplicit or&#xA; -- TODO: Remove this check once overloading resolution is implemented.&#xA; self.tuple.size() &lt;= self.parameterCount() and&#xA; self.tuple.input()->forAll(input | self.parameterIsAssignableFrom(input)) and&#xA; self.tuple.output()->forAll(output | self.parameterIsAssignableTo(output))"/>
+ <details key="body" value="&#xA; self.isImplicit or self.referent &lt;> null and&#xA; -- TODO: Remove this check once overloading resolution is implemented.&#xA; self.tuple.size() &lt;= self.parameterCount() and&#xA; self.tuple.input()->forAll(input | self.parameterIsAssignableFrom(input)) and&#xA; self.tuple.output()->forAll(output | self.parameterIsAssignableTo(output))"/>
</eAnnotations>
<eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
<eParameters name="context">

Back to the top