Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/alf/syntax/units/ImportedMember.java')
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/alf/syntax/units/ImportedMember.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/alf/syntax/units/ImportedMember.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/alf/syntax/units/ImportedMember.java
new file mode 100644
index 00000000000..7bc24fbcce5
--- /dev/null
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src/org/eclipse/papyrus/alf/syntax/units/ImportedMember.java
@@ -0,0 +1,49 @@
+package org.eclipse.papyrus.alf.syntax.units;
+
+import org.eclipse.papyrus.alf.syntax.common.ElementReference;
+
+public class ImportedMember extends Member {
+
+ // Synthesized Properties
+ public ElementReference referent ;
+
+ // Constraints
+
+ /*
+ * An imported element is a feature if its referent is a feature.
+ */
+ public void checkImportedElementFeatureDerivation() {
+
+ }
+
+ /*
+ * An imported element is not a stub.
+ */
+ public void checkImportedElementNotStub() {
+
+ }
+
+
+ // Helper Operations
+
+ /*
+ * Returns false. (Imported members do not have annotations.)
+ */
+ public boolean annotationAllowed(StereotypeAnnotation annotation) {
+ return false ;
+ }
+
+ /*
+ * If the given member is not an imported member, then return the result of checking whether the given
+ * member is distinguishable from this member. Else, if the element of the referent for this member is an
+ * Alf member, then return the result of checking whether that element is distinguishable from the given
+ * member. Else, if the element of the referent for the given member is an Alf member, then return the
+ * result of checking whether that element is distinguishable from this member. Else, the referents for both
+ * this and the given member are UML elements, so return the result of checking their distinguishability
+ * according to the rules of the UML superstructure.
+ */
+ public boolean isSameKindAs(Member member) {
+ return false ;
+ }
+
+}

Back to the top