From be4f78978faba3d3ceb88df02a7f93a2e09ff1e0 Mon Sep 17 00:00:00 2001 From: Kenji Hosokawa Date: Tue, 3 Aug 2021 18:42:39 +0900 Subject: Initial commit Bug-AGL: SPEC-4033 Signed-off-by: Kenji Hosokawa --- rba.model.view/.classpath | 7 + rba.model.view/.project | 35 + rba.model.view/META-INF/MANIFEST.MF | 16 + rba.model.view/build.properties | 10 + rba.model.view/model/rbaview.aird | 1977 ++++++++++ rba.model.view/model/rbaview.ecore | 441 +++ rba.model.view/model/rbaview.genmodel | 133 + rba.model.view/plugin.properties | 4 + rba.model.view/plugin.xml | 17 + rba.model.view/src/rba/view/AlignedLayout.java | 81 + rba.model.view/src/rba/view/AllInstanceOfArea.java | 47 + .../src/rba/view/AllInstanceOfViewContent.java | 47 + rba.model.view/src/rba/view/Area.java | 85 + rba.model.view/src/rba/view/AreaOperator.java | 22 + rba.model.view/src/rba/view/AreaSet.java | 35 + rba.model.view/src/rba/view/BasePoint.java | 405 ++ rba.model.view/src/rba/view/CompositeArea.java | 80 + rba.model.view/src/rba/view/Display.java | 79 + rba.model.view/src/rba/view/DisplayingContent.java | 46 + .../src/rba/view/FixedPositionLayout.java | 52 + rba.model.view/src/rba/view/HideLowerPriority.java | 47 + rba.model.view/src/rba/view/HorizontalLayout.java | 20 + rba.model.view/src/rba/view/IsChangedDisplay.java | 37 + rba.model.view/src/rba/view/IsDisplayed.java | 46 + rba.model.view/src/rba/view/IsDisplayedOn.java | 46 + rba.model.view/src/rba/view/IsHidden.java | 46 + .../src/rba/view/IsTranslatedViewTo.java | 46 + rba.model.view/src/rba/view/IsVisible.java | 32 + rba.model.view/src/rba/view/LayoutManager.java | 35 + rba.model.view/src/rba/view/Offset.java | 159 + rba.model.view/src/rba/view/PositionContainer.java | 207 + rba.model.view/src/rba/view/RBAViewFactory.java | 249 ++ rba.model.view/src/rba/view/RBAViewPackage.java | 4026 ++++++++++++++++++++ rba.model.view/src/rba/view/Size.java | 133 + rba.model.view/src/rba/view/SizeIdentifier.java | 18 + rba.model.view/src/rba/view/SizeReference.java | 48 + rba.model.view/src/rba/view/VerticalLayout.java | 20 + rba.model.view/src/rba/view/ViewContent.java | 58 + .../src/rba/view/ViewContentOperator.java | 35 + rba.model.view/src/rba/view/ViewContentSet.java | 35 + rba.model.view/src/rba/view/ViewContentState.java | 35 + .../src/rba/view/impl/AlignedLayoutImpl.java | 221 ++ .../src/rba/view/impl/AllInstanceOfAreaImpl.java | 72 + .../view/impl/AllInstanceOfViewContentImpl.java | 73 + rba.model.view/src/rba/view/impl/AreaImpl.java | 232 ++ .../src/rba/view/impl/AreaOperatorImpl.java | 34 + rba.model.view/src/rba/view/impl/AreaSetImpl.java | 57 + .../src/rba/view/impl/CompositeAreaImpl.java | 214 ++ rba.model.view/src/rba/view/impl/DisplayImpl.java | 240 ++ .../src/rba/view/impl/DisplayingContentImpl.java | 70 + .../src/rba/view/impl/FixedPositionLayoutImpl.java | 169 + .../src/rba/view/impl/HideLowerPriorityImpl.java | 192 + .../src/rba/view/impl/HorizontalLayoutImpl.java | 33 + .../src/rba/view/impl/IsChangedDisplayImpl.java | 186 + .../src/rba/view/impl/IsDisplayedImpl.java | 70 + .../src/rba/view/impl/IsDisplayedOnImpl.java | 191 + rba.model.view/src/rba/view/impl/IsHiddenImpl.java | 70 + .../src/rba/view/impl/IsTranslatedViewToImpl.java | 205 + .../src/rba/view/impl/IsVisibleImpl.java | 58 + .../src/rba/view/impl/LayoutManagerImpl.java | 63 + rba.model.view/src/rba/view/impl/OffsetImpl.java | 355 ++ .../src/rba/view/impl/PositionContainerImpl.java | 443 +++ .../src/rba/view/impl/RBAViewFactoryImpl.java | 390 ++ .../src/rba/view/impl/RBAViewPackageImpl.java | 1430 +++++++ .../src/rba/view/impl/SizeIdentifierImpl.java | 35 + rba.model.view/src/rba/view/impl/SizeImpl.java | 274 ++ .../src/rba/view/impl/SizeReferenceImpl.java | 146 + .../src/rba/view/impl/VerticalLayoutImpl.java | 33 + .../src/rba/view/impl/ViewContentImpl.java | 160 + .../src/rba/view/impl/ViewContentOperatorImpl.java | 62 + .../src/rba/view/impl/ViewContentSetImpl.java | 62 + .../src/rba/view/impl/ViewContentStateImpl.java | 62 + .../src/rba/view/util/RBAViewAdapterFactory.java | 930 +++++ .../src/rba/view/util/RBAViewSwitch.java | 1107 ++++++ 74 files changed, 16936 insertions(+) create mode 100644 rba.model.view/.classpath create mode 100644 rba.model.view/.project create mode 100644 rba.model.view/META-INF/MANIFEST.MF create mode 100644 rba.model.view/build.properties create mode 100644 rba.model.view/model/rbaview.aird create mode 100644 rba.model.view/model/rbaview.ecore create mode 100644 rba.model.view/model/rbaview.genmodel create mode 100644 rba.model.view/plugin.properties create mode 100644 rba.model.view/plugin.xml create mode 100644 rba.model.view/src/rba/view/AlignedLayout.java create mode 100644 rba.model.view/src/rba/view/AllInstanceOfArea.java create mode 100644 rba.model.view/src/rba/view/AllInstanceOfViewContent.java create mode 100644 rba.model.view/src/rba/view/Area.java create mode 100644 rba.model.view/src/rba/view/AreaOperator.java create mode 100644 rba.model.view/src/rba/view/AreaSet.java create mode 100644 rba.model.view/src/rba/view/BasePoint.java create mode 100644 rba.model.view/src/rba/view/CompositeArea.java create mode 100644 rba.model.view/src/rba/view/Display.java create mode 100644 rba.model.view/src/rba/view/DisplayingContent.java create mode 100644 rba.model.view/src/rba/view/FixedPositionLayout.java create mode 100644 rba.model.view/src/rba/view/HideLowerPriority.java create mode 100644 rba.model.view/src/rba/view/HorizontalLayout.java create mode 100644 rba.model.view/src/rba/view/IsChangedDisplay.java create mode 100644 rba.model.view/src/rba/view/IsDisplayed.java create mode 100644 rba.model.view/src/rba/view/IsDisplayedOn.java create mode 100644 rba.model.view/src/rba/view/IsHidden.java create mode 100644 rba.model.view/src/rba/view/IsTranslatedViewTo.java create mode 100644 rba.model.view/src/rba/view/IsVisible.java create mode 100644 rba.model.view/src/rba/view/LayoutManager.java create mode 100644 rba.model.view/src/rba/view/Offset.java create mode 100644 rba.model.view/src/rba/view/PositionContainer.java create mode 100644 rba.model.view/src/rba/view/RBAViewFactory.java create mode 100644 rba.model.view/src/rba/view/RBAViewPackage.java create mode 100644 rba.model.view/src/rba/view/Size.java create mode 100644 rba.model.view/src/rba/view/SizeIdentifier.java create mode 100644 rba.model.view/src/rba/view/SizeReference.java create mode 100644 rba.model.view/src/rba/view/VerticalLayout.java create mode 100644 rba.model.view/src/rba/view/ViewContent.java create mode 100644 rba.model.view/src/rba/view/ViewContentOperator.java create mode 100644 rba.model.view/src/rba/view/ViewContentSet.java create mode 100644 rba.model.view/src/rba/view/ViewContentState.java create mode 100644 rba.model.view/src/rba/view/impl/AlignedLayoutImpl.java create mode 100644 rba.model.view/src/rba/view/impl/AllInstanceOfAreaImpl.java create mode 100644 rba.model.view/src/rba/view/impl/AllInstanceOfViewContentImpl.java create mode 100644 rba.model.view/src/rba/view/impl/AreaImpl.java create mode 100644 rba.model.view/src/rba/view/impl/AreaOperatorImpl.java create mode 100644 rba.model.view/src/rba/view/impl/AreaSetImpl.java create mode 100644 rba.model.view/src/rba/view/impl/CompositeAreaImpl.java create mode 100644 rba.model.view/src/rba/view/impl/DisplayImpl.java create mode 100644 rba.model.view/src/rba/view/impl/DisplayingContentImpl.java create mode 100644 rba.model.view/src/rba/view/impl/FixedPositionLayoutImpl.java create mode 100644 rba.model.view/src/rba/view/impl/HideLowerPriorityImpl.java create mode 100644 rba.model.view/src/rba/view/impl/HorizontalLayoutImpl.java create mode 100644 rba.model.view/src/rba/view/impl/IsChangedDisplayImpl.java create mode 100644 rba.model.view/src/rba/view/impl/IsDisplayedImpl.java create mode 100644 rba.model.view/src/rba/view/impl/IsDisplayedOnImpl.java create mode 100644 rba.model.view/src/rba/view/impl/IsHiddenImpl.java create mode 100644 rba.model.view/src/rba/view/impl/IsTranslatedViewToImpl.java create mode 100644 rba.model.view/src/rba/view/impl/IsVisibleImpl.java create mode 100644 rba.model.view/src/rba/view/impl/LayoutManagerImpl.java create mode 100644 rba.model.view/src/rba/view/impl/OffsetImpl.java create mode 100644 rba.model.view/src/rba/view/impl/PositionContainerImpl.java create mode 100644 rba.model.view/src/rba/view/impl/RBAViewFactoryImpl.java create mode 100644 rba.model.view/src/rba/view/impl/RBAViewPackageImpl.java create mode 100644 rba.model.view/src/rba/view/impl/SizeIdentifierImpl.java create mode 100644 rba.model.view/src/rba/view/impl/SizeImpl.java create mode 100644 rba.model.view/src/rba/view/impl/SizeReferenceImpl.java create mode 100644 rba.model.view/src/rba/view/impl/VerticalLayoutImpl.java create mode 100644 rba.model.view/src/rba/view/impl/ViewContentImpl.java create mode 100644 rba.model.view/src/rba/view/impl/ViewContentOperatorImpl.java create mode 100644 rba.model.view/src/rba/view/impl/ViewContentSetImpl.java create mode 100644 rba.model.view/src/rba/view/impl/ViewContentStateImpl.java create mode 100644 rba.model.view/src/rba/view/util/RBAViewAdapterFactory.java create mode 100644 rba.model.view/src/rba/view/util/RBAViewSwitch.java (limited to 'rba.model.view') diff --git a/rba.model.view/.classpath b/rba.model.view/.classpath new file mode 100644 index 0000000..22f3064 --- /dev/null +++ b/rba.model.view/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/rba.model.view/.project b/rba.model.view/.project new file mode 100644 index 0000000..5a3c85f --- /dev/null +++ b/rba.model.view/.project @@ -0,0 +1,35 @@ + + + rba.model.view + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.sirius.nature.modelingproject + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/rba.model.view/META-INF/MANIFEST.MF b/rba.model.view/META-INF/MANIFEST.MF new file mode 100644 index 0000000..98c20a2 --- /dev/null +++ b/rba.model.view/META-INF/MANIFEST.MF @@ -0,0 +1,16 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: rba.model.view;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Export-Package: rba.view, + rba.view.impl, + rba.view.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + rba.model.core;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/rba.model.view/build.properties b/rba.model.view/build.properties new file mode 100644 index 0000000..4465407 --- /dev/null +++ b/rba.model.view/build.properties @@ -0,0 +1,10 @@ +# + +bin.includes = .,\ + model/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/ +output.. = bin/ diff --git a/rba.model.view/model/rbaview.aird b/rba.model.view/model/rbaview.aird new file mode 100644 index 0000000..5dec045 --- /dev/null +++ b/rba.model.view/model/rbaview.aird @@ -0,0 +1,1977 @@ + + + + rbaview.ecore + rbaview.genmodel + platform:/resource/rba.core/model/rbacore.ecore + http://www.eclipse.org/emf/2002/Ecore + platform:/resource/rba.core/model/rbacore.genmodel + platform:/resource/rba.model.core/model/rbacore.genmodel + platform:/resource/rba.model.core/model/rbacore.ecore + + + + + + + + + + + + + + + + + bold + + + + + + bold + + + + + + + + + + + + + + + + bold + + + + + + + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + bold + + + + + + + + italic + + + + + + + + + + italic + + + + + + + + + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bold + + + + + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + italic + + + + + + + + + + italic + + + + + + + + + + + + + + + + bold + + + + + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + bold + + + + + + + + bold + + + + + + + + + italic + + + + + + + + italic + + + + + + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + bold + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + bold + + + + + + + + + italic + + + + + + + + + + + + + + + + italic + + + + + + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + bold + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + italic + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + labelSize + + + labelSize + + + + + + + + + + labelSize + + + labelSize + + + + + + + + + + labelSize + bold + + + labelSize + + + + + + + + + + labelSize + + + labelSize + + + + + + + + + + + + + + + + + + + + labelSize + + + labelSize + + + + + + + + + + bold + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + italic + + + + + + + + + + + + labelSize + + + labelSize + + + + + + + + + + labelSize + bold + + + labelSize + + + + + + + + + + labelSize + + + labelSize + + + + + + + + + + + + diff --git a/rba.model.view/model/rbaview.ecore b/rba.model.view/model/rbaview.ecore new file mode 100644 index 0000000..ca5eb53 --- /dev/null +++ b/rba.model.view/model/rbaview.ecore @@ -0,0 +1,441 @@ + + + +
+
+ + + +
+ + + +
+
+ + + + +
+ + + + + +
+ + + +
+
+ + + + + +
+ + + +
+
+ + + + + +
+ + + +
+ + + + + +
+ + + +
+ + + + +
+ + + + +
+ + + + + +
+ + + + +
+ + + + +
+ + + +
+ + + + +
+ + + + + +
+ + + +
+ + + + +
+ + + + +
+ + + + + +
+ + + + + +
+ + + +
+ + + + +
+ + + + + +
+ + + +
+
+ + + + +
+
+ + + + +
+ + + + + +
+ + + +
+
+ + + + +
+ + + + +
+ + + + + +
+ + + +
+
+ + + + + + +
+ + + +
+ + + + +
+ + + + + + + + +
+ + + +
+ + + + +
+ + + + +
+ + + + + +
+ + + + +
+ + + +
+
+ + + + +
+
+ + + + + +
+ + + +
+
+ + + + +
+
+ + + + + +
+ + + +
+
+ + + + +
+
+ + + + + +
+ + + +
+
+ + + + + +
+ + + +
+
+ + + + + +
+ + + +
+
+ + + + +
+
+ + + + + +
+ + + +
+
+ + + + +
+
+ + + + + +
+ + + + + + + + + + + + + + +
+ + + + +
+ + + + +
+ + + + + + +
+ + + + +
+ + + + + + +
+ + + + +
+ + + + +
+ + + + + + +
+ + + + +
+ + + + +
+ + + + diff --git a/rba.model.view/model/rbaview.genmodel b/rba.model.view/model/rbaview.genmodel new file mode 100644 index 0000000..7101678 --- /dev/null +++ b/rba.model.view/model/rbaview.genmodel @@ -0,0 +1,133 @@ + + + rbaview.ecore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rba.model.view/plugin.properties b/rba.model.view/plugin.properties new file mode 100644 index 0000000..7b37e19 --- /dev/null +++ b/rba.model.view/plugin.properties @@ -0,0 +1,4 @@ +# + +pluginName = RBA Tool RBAView Model +providerName =DENSO CORPORATION diff --git a/rba.model.view/plugin.xml b/rba.model.view/plugin.xml new file mode 100644 index 0000000..bc579b9 --- /dev/null +++ b/rba.model.view/plugin.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/rba.model.view/src/rba/view/AlignedLayout.java b/rba.model.view/src/rba/view/AlignedLayout.java new file mode 100644 index 0000000..2c5d5ce --- /dev/null +++ b/rba.model.view/src/rba/view/AlignedLayout.java @@ -0,0 +1,81 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Aligned Layout'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.AlignedLayout#getSubarea Subarea}
  • + *
  • {@link rba.view.AlignedLayout#getBasePoint Base Point}
  • + *
+ * + * @see rba.view.RBAViewPackage#getAlignedLayout() + * @model abstract="true" + * @generated + */ +public interface AlignedLayout extends LayoutManager { + /** + * Returns the value of the 'Subarea' reference list. + * The list contents are of type {@link rba.view.Area}. + * + * + * + * + * + * @return the value of the 'Subarea' reference list. + * @see rba.view.RBAViewPackage#getAlignedLayout_Subarea() + * @model + * @generated + */ + EList getSubarea(); + + /** + * Returns the value of the 'Base Point' attribute. + * The literals are from the enumeration {@link rba.view.BasePoint}. + * + * + * + * + * + * @return the value of the 'Base Point' attribute. + * @see rba.view.BasePoint + * @see #setBasePoint(BasePoint) + * @see rba.view.RBAViewPackage#getAlignedLayout_BasePoint() + * @model + * @generated + */ + BasePoint getBasePoint(); + + /** + * Sets the value of the '{@link rba.view.AlignedLayout#getBasePoint Base Point}' attribute. + * + * + * @param value the new value of the 'Base Point' attribute. + * @see rba.view.BasePoint + * @see #getBasePoint() + * @generated + */ + void setBasePoint(BasePoint value); + + /** + * + * + * @model ordered="false" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='java.util.Set<Area> areas = new java.util.HashSet<Area>();\r\nfor (Area area : getSubarea()) {\r\n areas.addAll(area.collectLeafAllocatable().stream().map(allocatable -> (Area) allocatable).collect(java.util.stream.Collectors.toList()));\r\n}\r\nreturn new org.eclipse.emf.common.util.BasicEList<Area>(areas);'" + * @generated + */ + EList collectLeafArea(); + +} // AlignedLayout diff --git a/rba.model.view/src/rba/view/AllInstanceOfArea.java b/rba.model.view/src/rba/view/AllInstanceOfArea.java new file mode 100644 index 0000000..8074118 --- /dev/null +++ b/rba.model.view/src/rba/view/AllInstanceOfArea.java @@ -0,0 +1,47 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; +import rba.core.SetExpression; + +/** + * + * A representation of the model object 'All Instance Of Area'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getAllInstanceOfArea() + * @model + * @generated + */ +public interface AllInstanceOfArea extends SetExpression { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \"AREA\";'" + * @generated + */ + String getExpressionText(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.SET_OF_AREA;'" + * @generated + */ + ExpressionType getUnderlyingType(); + +} // AllInstanceOfArea diff --git a/rba.model.view/src/rba/view/AllInstanceOfViewContent.java b/rba.model.view/src/rba/view/AllInstanceOfViewContent.java new file mode 100644 index 0000000..8eb093e --- /dev/null +++ b/rba.model.view/src/rba/view/AllInstanceOfViewContent.java @@ -0,0 +1,47 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; +import rba.core.SetExpression; + +/** + * + * A representation of the model object 'All Instance Of View Content'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getAllInstanceOfViewContent() + * @model + * @generated + */ +public interface AllInstanceOfViewContent extends SetExpression { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \"ALL_VIEWCONTENTS\";'" + * @generated + */ + String getExpressionText(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.SET_OF_CONTENT;'" + * @generated + */ + ExpressionType getUnderlyingType(); + +} // AllInstanceOfViewContent diff --git a/rba.model.view/src/rba/view/Area.java b/rba.model.view/src/rba/view/Area.java new file mode 100644 index 0000000..18f4532 --- /dev/null +++ b/rba.model.view/src/rba/view/Area.java @@ -0,0 +1,85 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.common.util.EList; + +import rba.core.Allocatable; +import rba.core.Expression; +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'Area'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.Area#getZorder Zorder}
  • + *
  • {@link rba.view.Area#getSize Size}
  • + *
+ * + * @see rba.view.RBAViewPackage#getArea() + * @model + * @generated + */ +public interface Area extends Allocatable { + /** + * Returns the value of the 'Zorder' containment reference. + * + * + * + * + * + * @return the value of the 'Zorder' containment reference. + * @see #setZorder(Expression) + * @see rba.view.RBAViewPackage#getArea_Zorder() + * @model containment="true" + * @generated + */ + Expression getZorder(); + + /** + * Sets the value of the '{@link rba.view.Area#getZorder Zorder}' containment reference. + * + * + * @param value the new value of the 'Zorder' containment reference. + * @see #getZorder() + * @generated + */ + void setZorder(Expression value); + + /** + * Returns the value of the 'Size' containment reference list. + * The list contents are of type {@link rba.view.SizeIdentifier}. + * + * + * + * + * + * @return the value of the 'Size' containment reference list. + * @see rba.view.RBAViewPackage#getArea_Size() + * @model containment="true" + * @generated + */ + EList getSize(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.AREA;'" + * @generated + */ + ExpressionType getExpressionType(); + +} // Area diff --git a/rba.model.view/src/rba/view/AreaOperator.java b/rba.model.view/src/rba/view/AreaOperator.java new file mode 100644 index 0000000..b627ba2 --- /dev/null +++ b/rba.model.view/src/rba/view/AreaOperator.java @@ -0,0 +1,22 @@ +/** + */ +package rba.view; + +import rba.core.AllocatableOperator; + +/** + * + * A representation of the model object 'Area Operator'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getAreaOperator() + * @model abstract="true" + * @generated + */ +public interface AreaOperator extends AllocatableOperator { +} // AreaOperator diff --git a/rba.model.view/src/rba/view/AreaSet.java b/rba.model.view/src/rba/view/AreaSet.java new file mode 100644 index 0000000..cff465e --- /dev/null +++ b/rba.model.view/src/rba/view/AreaSet.java @@ -0,0 +1,35 @@ +/** + */ +package rba.view; + +import rba.core.AllocatableSet; +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'Area Set'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getAreaSet() + * @model + * @generated + */ +public interface AreaSet extends AllocatableSet { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.SET_OF_AREA;'" + * @generated + */ + ExpressionType getExpressionType(); + +} // AreaSet diff --git a/rba.model.view/src/rba/view/BasePoint.java b/rba.model.view/src/rba/view/BasePoint.java new file mode 100644 index 0000000..e57c829 --- /dev/null +++ b/rba.model.view/src/rba/view/BasePoint.java @@ -0,0 +1,405 @@ +/** + */ +package rba.view; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'Base Point', + * and utility methods for working with them. + * + * + * + * + * @see rba.view.RBAViewPackage#getBasePoint() + * @model + * @generated + */ +public enum BasePoint implements Enumerator { + /** + * The 'LEFT TOP' literal object. + * + * + * @see #LEFT_TOP_VALUE + * @generated + * @ordered + */ + LEFT_TOP(0, "LEFT_TOP", "LEFT_TOP"), + + /** + * The 'LEFT MIDDLE' literal object. + * + * + * @see #LEFT_MIDDLE_VALUE + * @generated + * @ordered + */ + LEFT_MIDDLE(1, "LEFT_MIDDLE", "LEFT_MIDDLE"), + + /** + * The 'LEFT BOTTOM' literal object. + * + * + * @see #LEFT_BOTTOM_VALUE + * @generated + * @ordered + */ + LEFT_BOTTOM(2, "LEFT_BOTTOM", "LEFT_BOTTOM"), + + /** + * The 'RIGHT TOP' literal object. + * + * + * @see #RIGHT_TOP_VALUE + * @generated + * @ordered + */ + RIGHT_TOP(3, "RIGHT_TOP", "RIGHT_TOP"), + + /** + * The 'RIGHT MIDDLE' literal object. + * + * + * @see #RIGHT_MIDDLE_VALUE + * @generated + * @ordered + */ + RIGHT_MIDDLE(4, "RIGHT_MIDDLE", "RIGHT_MIDDLE"), + + /** + * The 'RIGHT BOTTOM' literal object. + * + * + * @see #RIGHT_BOTTOM_VALUE + * @generated + * @ordered + */ + RIGHT_BOTTOM(5, "RIGHT_BOTTOM", "RIGHT_BOTTOM"), + + /** + * The 'CENTER TOP' literal object. + * + * + * @see #CENTER_TOP_VALUE + * @generated + * @ordered + */ + CENTER_TOP(6, "CENTER_TOP", "CENTER_TOP"), + + /** + * The 'CENTER MIDDLE' literal object. + * + * + * @see #CENTER_MIDDLE_VALUE + * @generated + * @ordered + */ + CENTER_MIDDLE(7, "CENTER_MIDDLE", "CENTER_MIDDLE"), + + /** + * The 'CENTER BOTTOM' literal object. + * + * + * @see #CENTER_BOTTOM_VALUE + * @generated + * @ordered + */ + CENTER_BOTTOM(8, "CENTER_BOTTOM", "CENTER_BOTTOM"); + + /** + * The 'LEFT TOP' literal value. + * + *

+ * If the meaning of 'LEFT TOP' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #LEFT_TOP + * @model + * @generated + * @ordered + */ + public static final int LEFT_TOP_VALUE = 0; + + /** + * The 'LEFT MIDDLE' literal value. + * + *

+ * If the meaning of 'LEFT MIDDLE' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #LEFT_MIDDLE + * @model + * @generated + * @ordered + */ + public static final int LEFT_MIDDLE_VALUE = 1; + + /** + * The 'LEFT BOTTOM' literal value. + * + *

+ * If the meaning of 'LEFT BOTTOM' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #LEFT_BOTTOM + * @model + * @generated + * @ordered + */ + public static final int LEFT_BOTTOM_VALUE = 2; + + /** + * The 'RIGHT TOP' literal value. + * + *

+ * If the meaning of 'RIGHT TOP' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #RIGHT_TOP + * @model + * @generated + * @ordered + */ + public static final int RIGHT_TOP_VALUE = 3; + + /** + * The 'RIGHT MIDDLE' literal value. + * + *

+ * If the meaning of 'RIGHT MIDDLE' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #RIGHT_MIDDLE + * @model + * @generated + * @ordered + */ + public static final int RIGHT_MIDDLE_VALUE = 4; + + /** + * The 'RIGHT BOTTOM' literal value. + * + *

+ * If the meaning of 'RIGHT BOTTOM' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #RIGHT_BOTTOM + * @model + * @generated + * @ordered + */ + public static final int RIGHT_BOTTOM_VALUE = 5; + + /** + * The 'CENTER TOP' literal value. + * + *

+ * If the meaning of 'CENTER TOP' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #CENTER_TOP + * @model + * @generated + * @ordered + */ + public static final int CENTER_TOP_VALUE = 6; + + /** + * The 'CENTER MIDDLE' literal value. + * + *

+ * If the meaning of 'CENTER MIDDLE' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #CENTER_MIDDLE + * @model + * @generated + * @ordered + */ + public static final int CENTER_MIDDLE_VALUE = 7; + + /** + * The 'CENTER BOTTOM' literal value. + * + *

+ * If the meaning of 'CENTER BOTTOM' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #CENTER_BOTTOM + * @model + * @generated + * @ordered + */ + public static final int CENTER_BOTTOM_VALUE = 8; + + /** + * An array of all the 'Base Point' enumerators. + * + * + * @generated + */ + private static final BasePoint[] VALUES_ARRAY = new BasePoint[] { LEFT_TOP, LEFT_MIDDLE, LEFT_BOTTOM, RIGHT_TOP, + RIGHT_MIDDLE, RIGHT_BOTTOM, CENTER_TOP, CENTER_MIDDLE, CENTER_BOTTOM, }; + + /** + * A public read-only list of all the 'Base Point' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'Base Point' literal with the specified literal value. + * + * + * @param literal the literal. + * @return the matching enumerator or null. + * @generated + */ + public static BasePoint get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + BasePoint result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Base Point' literal with the specified name. + * + * + * @param name the name. + * @return the matching enumerator or null. + * @generated + */ + public static BasePoint getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + BasePoint result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the 'Base Point' literal with the specified integer value. + * + * + * @param value the integer value. + * @return the matching enumerator or null. + * @generated + */ + public static BasePoint get(int value) { + switch (value) { + case LEFT_TOP_VALUE: + return LEFT_TOP; + case LEFT_MIDDLE_VALUE: + return LEFT_MIDDLE; + case LEFT_BOTTOM_VALUE: + return LEFT_BOTTOM; + case RIGHT_TOP_VALUE: + return RIGHT_TOP; + case RIGHT_MIDDLE_VALUE: + return RIGHT_MIDDLE; + case RIGHT_BOTTOM_VALUE: + return RIGHT_BOTTOM; + case CENTER_TOP_VALUE: + return CENTER_TOP; + case CENTER_MIDDLE_VALUE: + return CENTER_MIDDLE; + case CENTER_BOTTOM_VALUE: + return CENTER_BOTTOM; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private BasePoint(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() { + return value; + } + + /** + * + * + * @generated + */ + public String getName() { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() { + return literal; + } + +} //BasePoint diff --git a/rba.model.view/src/rba/view/CompositeArea.java b/rba.model.view/src/rba/view/CompositeArea.java new file mode 100644 index 0000000..5c1a10a --- /dev/null +++ b/rba.model.view/src/rba/view/CompositeArea.java @@ -0,0 +1,80 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.common.util.EList; + +import rba.core.ExpressionType; +import rba.core.PackagableElement; + +/** + * + * A representation of the model object 'Composite Area'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.CompositeArea#getLayout Layout}
  • + *
+ * + * @see rba.view.RBAViewPackage#getCompositeArea() + * @model + * @generated + */ +public interface CompositeArea extends PackagableElement { + /** + * Returns the value of the 'Layout' containment reference. + * + * + * + * + * + * @return the value of the 'Layout' containment reference. + * @see #setLayout(LayoutManager) + * @see rba.view.RBAViewPackage#getCompositeArea_Layout() + * @model containment="true" + * @generated + */ + LayoutManager getLayout(); + + /** + * Sets the value of the '{@link rba.view.CompositeArea#getLayout Layout}' containment reference. + * + * + * @param value the new value of the 'Layout' containment reference. + * @see #getLayout() + * @generated + */ + void setLayout(LayoutManager value); + + /** + * + * + * + * @Override + * + * @model ordered="false" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='java.util.Set<Area> areas = new java.util.HashSet<Area>();\r\nif (layout != null) {\r\n areas.addAll(layout.collectLeafArea());\r\n}\r\n\r\nreturn new org.eclipse.emf.common.util.BasicEList<Area>(areas);'" + * @generated + */ + EList collectLeafArea(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.AREA;'" + * @generated + */ + ExpressionType getExpressionType(); + +} // CompositeArea diff --git a/rba.model.view/src/rba/view/Display.java b/rba.model.view/src/rba/view/Display.java new file mode 100644 index 0000000..cb4ffbe --- /dev/null +++ b/rba.model.view/src/rba/view/Display.java @@ -0,0 +1,79 @@ +/** + */ +package rba.view; + +import rba.core.PackagableElement; + +/** + * + * A representation of the model object 'Display'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.Display#getRoot Root}
  • + *
  • {@link rba.view.Display#getSize Size}
  • + *
+ * + * @see rba.view.RBAViewPackage#getDisplay() + * @model + * @generated + */ +public interface Display extends PackagableElement { + /** + * Returns the value of the 'Root' containment reference. + * + * + * + * + * + * @return the value of the 'Root' containment reference. + * @see #setRoot(CompositeArea) + * @see rba.view.RBAViewPackage#getDisplay_Root() + * @model containment="true" + * @generated + */ + CompositeArea getRoot(); + + /** + * Sets the value of the '{@link rba.view.Display#getRoot Root}' containment reference. + * + * + * @param value the new value of the 'Root' containment reference. + * @see #getRoot() + * @generated + */ + void setRoot(CompositeArea value); + + /** + * Returns the value of the 'Size' containment reference. + * + * + * + * + * + * @return the value of the 'Size' containment reference. + * @see #setSize(SizeIdentifier) + * @see rba.view.RBAViewPackage#getDisplay_Size() + * @model containment="true" required="true" + * @generated + */ + SizeIdentifier getSize(); + + /** + * Sets the value of the '{@link rba.view.Display#getSize Size}' containment reference. + * + * + * @param value the new value of the 'Size' containment reference. + * @see #getSize() + * @generated + */ + void setSize(SizeIdentifier value); + +} // Display diff --git a/rba.model.view/src/rba/view/DisplayingContent.java b/rba.model.view/src/rba/view/DisplayingContent.java new file mode 100644 index 0000000..92268c3 --- /dev/null +++ b/rba.model.view/src/rba/view/DisplayingContent.java @@ -0,0 +1,46 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'Displaying Content'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getDisplayingContent() + * @model + * @generated + */ +public interface DisplayingContent extends AreaOperator { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \".displayingContent()\";'" + * @generated + */ + String getSymbol(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.CONTENT;'" + * @generated + */ + ExpressionType getUnderlyingType(); + +} // DisplayingContent diff --git a/rba.model.view/src/rba/view/FixedPositionLayout.java b/rba.model.view/src/rba/view/FixedPositionLayout.java new file mode 100644 index 0000000..a36b7c9 --- /dev/null +++ b/rba.model.view/src/rba/view/FixedPositionLayout.java @@ -0,0 +1,52 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.common.util.EList; + +/** + * + * A representation of the model object 'Fixed Position Layout'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.FixedPositionLayout#getSubAreaPosition Sub Area Position}
  • + *
+ * + * @see rba.view.RBAViewPackage#getFixedPositionLayout() + * @model + * @generated + */ +public interface FixedPositionLayout extends LayoutManager { + /** + * Returns the value of the 'Sub Area Position' containment reference list. + * The list contents are of type {@link rba.view.PositionContainer}. + * + * + * + * + * + * @return the value of the 'Sub Area Position' containment reference list. + * @see rba.view.RBAViewPackage#getFixedPositionLayout_SubAreaPosition() + * @model containment="true" + * @generated + */ + EList getSubAreaPosition(); + + /** + * + * + * @model ordered="false" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='java.util.Set<Area> areas = new java.util.HashSet<Area>();\r\nfor (PositionContainer pc : getSubAreaPosition()) {\r\n areas.addAll(pc.getArea().collectLeafAllocatable().stream().map(allocatable -> (Area) allocatable).collect(java.util.stream.Collectors.toList()));\r\n}\r\nreturn new org.eclipse.emf.common.util.BasicEList<Area>(areas);'" + * @generated + */ + EList collectLeafArea(); + +} // FixedPositionLayout diff --git a/rba.model.view/src/rba/view/HideLowerPriority.java b/rba.model.view/src/rba/view/HideLowerPriority.java new file mode 100644 index 0000000..af57f7f --- /dev/null +++ b/rba.model.view/src/rba/view/HideLowerPriority.java @@ -0,0 +1,47 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; +import rba.core.Operator; +import rba.core.SugarExpressionBase; + +/** + * + * A representation of the model object 'Hide Lower Priority'. + * + * + * + * @see rba.view.RBAViewPackage#getHideLowerPriority() + * @model + * @generated + */ +public interface HideLowerPriority extends Operator, SugarExpressionBase { + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \"HideLowerPriority\";'" + * @generated + */ + String getSymbol(); + + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.BOOLEAN;'" + * @generated + */ + ExpressionType getUnderlyingType(); + + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='StringBuilder expressionText = new StringBuilder();\r\nEList<rba.core.Expression> expressions = getOperand();\r\nexpressionText.append(getSymbol());\r\nexpressionText.append(\"(\");\r\nexpressionText.append(expressions.size() > 0 ? expressions.get(0).getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(\",\");\r\nexpressionText.append(expressions.size() > 1 ? expressions.get(1).getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(\")\");\r\nreturn expressionText.toString();'" + * @generated + */ + String getExpressionText(); + +} // HideLowerPriority diff --git a/rba.model.view/src/rba/view/HorizontalLayout.java b/rba.model.view/src/rba/view/HorizontalLayout.java new file mode 100644 index 0000000..b434aea --- /dev/null +++ b/rba.model.view/src/rba/view/HorizontalLayout.java @@ -0,0 +1,20 @@ +/** + */ +package rba.view; + +/** + * + * A representation of the model object 'Horizontal Layout'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getHorizontalLayout() + * @model + * @generated + */ +public interface HorizontalLayout extends AlignedLayout { +} // HorizontalLayout diff --git a/rba.model.view/src/rba/view/IsChangedDisplay.java b/rba.model.view/src/rba/view/IsChangedDisplay.java new file mode 100644 index 0000000..9063c8c --- /dev/null +++ b/rba.model.view/src/rba/view/IsChangedDisplay.java @@ -0,0 +1,37 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; +import rba.core.SugarExpressionBase; + +/** + * + * A representation of the model object 'Is Changed Display'. + * + * + * + * @see rba.view.RBAViewPackage#getIsChangedDisplay() + * @model + * @generated + */ +public interface IsChangedDisplay extends AreaOperator, SugarExpressionBase { + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \".isChangedDisplay()\";'" + * @generated + */ + String getSymbol(); + + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.BOOLEAN;'" + * @generated + */ + ExpressionType getUnderlyingType(); + +} // IsChangedDisplay diff --git a/rba.model.view/src/rba/view/IsDisplayed.java b/rba.model.view/src/rba/view/IsDisplayed.java new file mode 100644 index 0000000..6eb1220 --- /dev/null +++ b/rba.model.view/src/rba/view/IsDisplayed.java @@ -0,0 +1,46 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'Is Displayed'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getIsDisplayed() + * @model + * @generated + */ +public interface IsDisplayed extends AreaOperator { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \".isDisplayed()\";'" + * @generated + */ + String getSymbol(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.BOOLEAN;'" + * @generated + */ + ExpressionType getUnderlyingType(); + +} // IsDisplayed diff --git a/rba.model.view/src/rba/view/IsDisplayedOn.java b/rba.model.view/src/rba/view/IsDisplayedOn.java new file mode 100644 index 0000000..afd36d5 --- /dev/null +++ b/rba.model.view/src/rba/view/IsDisplayedOn.java @@ -0,0 +1,46 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; +import rba.core.SugarExpressionBase; + +/** + * + * A representation of the model object 'Is Displayed On'. + * + * + * + * @see rba.view.RBAViewPackage#getIsDisplayedOn() + * @model + * @generated + */ +public interface IsDisplayedOn extends ViewContentOperator, SugarExpressionBase { + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \".isDisplayedOn\";'" + * @generated + */ + String getSymbol(); + + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.BOOLEAN;'" + * @generated + */ + ExpressionType getUnderlyingType(); + + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='StringBuilder expressionText = new StringBuilder();\r\nEList<rba.core.Expression> expressions = getOperand();\r\nexpressionText.append(expressions.size() > 0 ? expressions.get(0).getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(getSymbol());\r\nexpressionText.append(\"(\");\r\nexpressionText.append(expressions.size() > 1 ? expressions.get(1).getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(\")\");\r\nreturn expressionText.toString();'" + * @generated + */ + String getExpressionText(); + +} // IsDisplayedOn diff --git a/rba.model.view/src/rba/view/IsHidden.java b/rba.model.view/src/rba/view/IsHidden.java new file mode 100644 index 0000000..c6c2573 --- /dev/null +++ b/rba.model.view/src/rba/view/IsHidden.java @@ -0,0 +1,46 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'Is Hidden'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getIsHidden() + * @model + * @generated + */ +public interface IsHidden extends AreaOperator { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \".isHidden()\";'" + * @generated + */ + String getSymbol(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.BOOLEAN;'" + * @generated + */ + ExpressionType getUnderlyingType(); + +} // IsHidden diff --git a/rba.model.view/src/rba/view/IsTranslatedViewTo.java b/rba.model.view/src/rba/view/IsTranslatedViewTo.java new file mode 100644 index 0000000..175605d --- /dev/null +++ b/rba.model.view/src/rba/view/IsTranslatedViewTo.java @@ -0,0 +1,46 @@ +/** + */ +package rba.view; + +import rba.core.ExpressionType; +import rba.core.SugarExpressionBase; + +/** + * + * A representation of the model object 'Is Translated View To'. + * + * + * + * @see rba.view.RBAViewPackage#getIsTranslatedViewTo() + * @model + * @generated + */ +public interface IsTranslatedViewTo extends AreaOperator, SugarExpressionBase { + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \".isTranslatedViewTo\";'" + * @generated + */ + String getSymbol(); + + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.BOOLEAN;'" + * @generated + */ + ExpressionType getUnderlyingType(); + + /** + * + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='StringBuilder expressionText = new StringBuilder();\r\nEList<rba.core.Expression> expressions = getOperand();\r\nexpressionText.append(expressions.size() > 0 ? expressions.get(0).getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(getSymbol());\r\nexpressionText.append(\"(\");\r\nexpressionText.append(expressions.size() > 1 ? expressions.get(1).getExpressionText() : \"[Invalid_Expression]\");\r\nexpressionText.append(\")\");\r\nreturn expressionText.toString();'" + * @generated + */ + String getExpressionText(); + +} // IsTranslatedViewTo diff --git a/rba.model.view/src/rba/view/IsVisible.java b/rba.model.view/src/rba/view/IsVisible.java new file mode 100644 index 0000000..65a3724 --- /dev/null +++ b/rba.model.view/src/rba/view/IsVisible.java @@ -0,0 +1,32 @@ +/** + */ +package rba.view; + +/** + * + * A representation of the model object 'Is Visible'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getIsVisible() + * @model + * @generated + */ +public interface IsVisible extends ViewContentOperator { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return \".isVisible()\";'" + * @generated + */ + String getSymbol(); + +} // IsVisible diff --git a/rba.model.view/src/rba/view/LayoutManager.java b/rba.model.view/src/rba/view/LayoutManager.java new file mode 100644 index 0000000..0e41fb3 --- /dev/null +++ b/rba.model.view/src/rba/view/LayoutManager.java @@ -0,0 +1,35 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Layout Manager'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getLayoutManager() + * @model abstract="true" + * @generated + */ +public interface LayoutManager extends EObject { + /** + * + * + * + * + * + * @model ordered="false" + * @generated + */ + EList collectLeafArea(); + +} // LayoutManager diff --git a/rba.model.view/src/rba/view/Offset.java b/rba.model.view/src/rba/view/Offset.java new file mode 100644 index 0000000..d46b1c7 --- /dev/null +++ b/rba.model.view/src/rba/view/Offset.java @@ -0,0 +1,159 @@ +/** + */ +package rba.view; + +import rba.core.PackagableElement; + +/** + * + * A representation of the model object 'Offset'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.Offset#getX X}
  • + *
  • {@link rba.view.Offset#getY Y}
  • + *
  • {@link rba.view.Offset#getSize Size}
  • + *
+ * + * @see rba.view.RBAViewPackage#getOffset() + * @model + * @generated + */ +public interface Offset extends PackagableElement { + /** + * Returns the value of the 'X' attribute. + * + * + * + * + * + * @return the value of the 'X' attribute. + * @see #isSetX() + * @see #unsetX() + * @see #setX(int) + * @see rba.view.RBAViewPackage#getOffset_X() + * @model unsettable="true" required="true" + * @generated + */ + int getX(); + + /** + * Sets the value of the '{@link rba.view.Offset#getX X}' attribute. + * + * + * @param value the new value of the 'X' attribute. + * @see #isSetX() + * @see #unsetX() + * @see #getX() + * @generated + */ + void setX(int value); + + /** + * Unsets the value of the '{@link rba.view.Offset#getX X}' attribute. + * + * + * @see #isSetX() + * @see #getX() + * @see #setX(int) + * @generated + */ + void unsetX(); + + /** + * Returns whether the value of the '{@link rba.view.Offset#getX X}' attribute is set. + * + * + * @return whether the value of the 'X' attribute is set. + * @see #unsetX() + * @see #getX() + * @see #setX(int) + * @generated + */ + boolean isSetX(); + + /** + * Returns the value of the 'Y' attribute. + * + * + * + * + * + * @return the value of the 'Y' attribute. + * @see #isSetY() + * @see #unsetY() + * @see #setY(int) + * @see rba.view.RBAViewPackage#getOffset_Y() + * @model unsettable="true" required="true" + * @generated + */ + int getY(); + + /** + * Sets the value of the '{@link rba.view.Offset#getY Y}' attribute. + * + * + * @param value the new value of the 'Y' attribute. + * @see #isSetY() + * @see #unsetY() + * @see #getY() + * @generated + */ + void setY(int value); + + /** + * Unsets the value of the '{@link rba.view.Offset#getY Y}' attribute. + * + * + * @see #isSetY() + * @see #getY() + * @see #setY(int) + * @generated + */ + void unsetY(); + + /** + * Returns whether the value of the '{@link rba.view.Offset#getY Y}' attribute is set. + * + * + * @return whether the value of the 'Y' attribute is set. + * @see #unsetY() + * @see #getY() + * @see #setY(int) + * @generated + */ + boolean isSetY(); + + /** + * Returns the value of the 'Size' containment reference. + * + * + * + * + * + * @return the value of the 'Size' containment reference. + * @see #setSize(SizeReference) + * @see rba.view.RBAViewPackage#getOffset_Size() + * @model containment="true" required="true" + * @generated + */ + SizeReference getSize(); + + /** + * Sets the value of the '{@link rba.view.Offset#getSize Size}' containment reference. + * + * + * @param value the new value of the 'Size' containment reference. + * @see #getSize() + * @generated + */ + void setSize(SizeReference value); + +} // Offset diff --git a/rba.model.view/src/rba/view/PositionContainer.java b/rba.model.view/src/rba/view/PositionContainer.java new file mode 100644 index 0000000..c6e7368 --- /dev/null +++ b/rba.model.view/src/rba/view/PositionContainer.java @@ -0,0 +1,207 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Position Container'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.PositionContainer#getX X}
  • + *
  • {@link rba.view.PositionContainer#getY Y}
  • + *
  • {@link rba.view.PositionContainer#getBasePoint Base Point}
  • + *
  • {@link rba.view.PositionContainer#getArea Area}
  • + *
  • {@link rba.view.PositionContainer#getOffset Offset}
  • + *
+ * + * @see rba.view.RBAViewPackage#getPositionContainer() + * @model + * @generated + */ +public interface PositionContainer extends EObject { + /** + * Returns the value of the 'X' attribute. + * + * + * + * + * + * @return the value of the 'X' attribute. + * @see #isSetX() + * @see #unsetX() + * @see #setX(int) + * @see rba.view.RBAViewPackage#getPositionContainer_X() + * @model unsettable="true" required="true" + * @generated + */ + int getX(); + + /** + * Sets the value of the '{@link rba.view.PositionContainer#getX X}' attribute. + * + * + * @param value the new value of the 'X' attribute. + * @see #isSetX() + * @see #unsetX() + * @see #getX() + * @generated + */ + void setX(int value); + + /** + * Unsets the value of the '{@link rba.view.PositionContainer#getX X}' attribute. + * + * + * @see #isSetX() + * @see #getX() + * @see #setX(int) + * @generated + */ + void unsetX(); + + /** + * Returns whether the value of the '{@link rba.view.PositionContainer#getX X}' attribute is set. + * + * + * @return whether the value of the 'X' attribute is set. + * @see #unsetX() + * @see #getX() + * @see #setX(int) + * @generated + */ + boolean isSetX(); + + /** + * Returns the value of the 'Y' attribute. + * + * + * + * + * + * @return the value of the 'Y' attribute. + * @see #isSetY() + * @see #unsetY() + * @see #setY(int) + * @see rba.view.RBAViewPackage#getPositionContainer_Y() + * @model unsettable="true" required="true" + * @generated + */ + int getY(); + + /** + * Sets the value of the '{@link rba.view.PositionContainer#getY Y}' attribute. + * + * + * @param value the new value of the 'Y' attribute. + * @see #isSetY() + * @see #unsetY() + * @see #getY() + * @generated + */ + void setY(int value); + + /** + * Unsets the value of the '{@link rba.view.PositionContainer#getY Y}' attribute. + * + * + * @see #isSetY() + * @see #getY() + * @see #setY(int) + * @generated + */ + void unsetY(); + + /** + * Returns whether the value of the '{@link rba.view.PositionContainer#getY Y}' attribute is set. + * + * + * @return whether the value of the 'Y' attribute is set. + * @see #unsetY() + * @see #getY() + * @see #setY(int) + * @generated + */ + boolean isSetY(); + + /** + * Returns the value of the 'Base Point' attribute. + * The literals are from the enumeration {@link rba.view.BasePoint}. + * + * + * + * + * + * @return the value of the 'Base Point' attribute. + * @see rba.view.BasePoint + * @see #setBasePoint(BasePoint) + * @see rba.view.RBAViewPackage#getPositionContainer_BasePoint() + * @model + * @generated + */ + BasePoint getBasePoint(); + + /** + * Sets the value of the '{@link rba.view.PositionContainer#getBasePoint Base Point}' attribute. + * + * + * @param value the new value of the 'Base Point' attribute. + * @see rba.view.BasePoint + * @see #getBasePoint() + * @generated + */ + void setBasePoint(BasePoint value); + + /** + * Returns the value of the 'Area' reference. + * + *

+ * If the meaning of the 'Area' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Area' reference. + * @see #setArea(Area) + * @see rba.view.RBAViewPackage#getPositionContainer_Area() + * @model required="true" + * @generated + */ + Area getArea(); + + /** + * Sets the value of the '{@link rba.view.PositionContainer#getArea Area}' reference. + * + * + * @param value the new value of the 'Area' reference. + * @see #getArea() + * @generated + */ + void setArea(Area value); + + /** + * Returns the value of the 'Offset' containment reference list. + * The list contents are of type {@link rba.view.Offset}. + * + * + * + * + * + * @return the value of the 'Offset' containment reference list. + * @see rba.view.RBAViewPackage#getPositionContainer_Offset() + * @model containment="true" + * @generated + */ + EList getOffset(); + +} // PositionContainer diff --git a/rba.model.view/src/rba/view/RBAViewFactory.java b/rba.model.view/src/rba/view/RBAViewFactory.java new file mode 100644 index 0000000..e5e893e --- /dev/null +++ b/rba.model.view/src/rba/view/RBAViewFactory.java @@ -0,0 +1,249 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.ecore.EFactory; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see rba.view.RBAViewPackage + * @generated + */ +public interface RBAViewFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + RBAViewFactory eINSTANCE = rba.view.impl.RBAViewFactoryImpl.init(); + + /** + * Returns a new object of class 'View Content'. + * + * + * @return a new object of class 'View Content'. + * @generated + */ + ViewContent createViewContent(); + + /** + * Returns a new object of class 'View Content Set'. + * + * + * @return a new object of class 'View Content Set'. + * @generated + */ + ViewContentSet createViewContentSet(); + + /** + * Returns a new object of class 'View Content State'. + * + * + * @return a new object of class 'View Content State'. + * @generated + */ + ViewContentState createViewContentState(); + + /** + * Returns a new object of class 'Vertical Layout'. + * + * + * @return a new object of class 'Vertical Layout'. + * @generated + */ + VerticalLayout createVerticalLayout(); + + /** + * Returns a new object of class 'Horizontal Layout'. + * + * + * @return a new object of class 'Horizontal Layout'. + * @generated + */ + HorizontalLayout createHorizontalLayout(); + + /** + * Returns a new object of class 'Fixed Position Layout'. + * + * + * @return a new object of class 'Fixed Position Layout'. + * @generated + */ + FixedPositionLayout createFixedPositionLayout(); + + /** + * Returns a new object of class 'Position Container'. + * + * + * @return a new object of class 'Position Container'. + * @generated + */ + PositionContainer createPositionContainer(); + + /** + * Returns a new object of class 'Display'. + * + * + * @return a new object of class 'Display'. + * @generated + */ + Display createDisplay(); + + /** + * Returns a new object of class 'Composite Area'. + * + * + * @return a new object of class 'Composite Area'. + * @generated + */ + CompositeArea createCompositeArea(); + + /** + * Returns a new object of class 'Area'. + * + * + * @return a new object of class 'Area'. + * @generated + */ + Area createArea(); + + /** + * Returns a new object of class 'Area Set'. + * + * + * @return a new object of class 'Area Set'. + * @generated + */ + AreaSet createAreaSet(); + + /** + * Returns a new object of class 'Size'. + * + * + * @return a new object of class 'Size'. + * @generated + */ + Size createSize(); + + /** + * Returns a new object of class 'Size Reference'. + * + * + * @return a new object of class 'Size Reference'. + * @generated + */ + SizeReference createSizeReference(); + + /** + * Returns a new object of class 'Offset'. + * + * + * @return a new object of class 'Offset'. + * @generated + */ + Offset createOffset(); + + /** + * Returns a new object of class 'Is Displayed'. + * + * + * @return a new object of class 'Is Displayed'. + * @generated + */ + IsDisplayed createIsDisplayed(); + + /** + * Returns a new object of class 'Displaying Content'. + * + * + * @return a new object of class 'Displaying Content'. + * @generated + */ + DisplayingContent createDisplayingContent(); + + /** + * Returns a new object of class 'Is Hidden'. + * + * + * @return a new object of class 'Is Hidden'. + * @generated + */ + IsHidden createIsHidden(); + + /** + * Returns a new object of class 'Is Visible'. + * + * + * @return a new object of class 'Is Visible'. + * @generated + */ + IsVisible createIsVisible(); + + /** + * Returns a new object of class 'All Instance Of Area'. + * + * + * @return a new object of class 'All Instance Of Area'. + * @generated + */ + AllInstanceOfArea createAllInstanceOfArea(); + + /** + * Returns a new object of class 'All Instance Of View Content'. + * + * + * @return a new object of class 'All Instance Of View Content'. + * @generated + */ + AllInstanceOfViewContent createAllInstanceOfViewContent(); + + /** + * Returns a new object of class 'Is Displayed On'. + * + * + * @return a new object of class 'Is Displayed On'. + * @generated + */ + IsDisplayedOn createIsDisplayedOn(); + + /** + * Returns a new object of class 'Is Changed Display'. + * + * + * @return a new object of class 'Is Changed Display'. + * @generated + */ + IsChangedDisplay createIsChangedDisplay(); + + /** + * Returns a new object of class 'Is Translated View To'. + * + * + * @return a new object of class 'Is Translated View To'. + * @generated + */ + IsTranslatedViewTo createIsTranslatedViewTo(); + + /** + * Returns a new object of class 'Hide Lower Priority'. + * + * + * @return a new object of class 'Hide Lower Priority'. + * @generated + */ + HideLowerPriority createHideLowerPriority(); + + /** + * Returns the package supported by this factory. + * + * + * @return the package supported by this factory. + * @generated + */ + RBAViewPackage getRBAViewPackage(); + +} //RBAViewFactory diff --git a/rba.model.view/src/rba/view/RBAViewPackage.java b/rba.model.view/src/rba/view/RBAViewPackage.java new file mode 100644 index 0000000..5589731 --- /dev/null +++ b/rba.model.view/src/rba/view/RBAViewPackage.java @@ -0,0 +1,4026 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import rba.core.RBACorePackage; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see rba.view.RBAViewFactory + * @model kind="package" + * annotation="http://www.eclipse.org/OCL/Import RbaCore='../../rba.model.core/model/rbacore.ecore#/' ecore='http://www.eclipse.org/emf/2002/Ecore'" + * @generated + */ +public interface RBAViewPackage extends EPackage { + /** + * The package name. + * + * + * @generated + */ + String eNAME = "view"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "http://www.denso.com/ict/rba/view"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "RbaView"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + RBAViewPackage eINSTANCE = rba.view.impl.RBAViewPackageImpl.init(); + + /** + * The meta object id for the '{@link rba.view.impl.ViewContentImpl View Content}' class. + * + * + * @see rba.view.impl.ViewContentImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContent() + * @generated + */ + int VIEW_CONTENT = 0; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__DESCRIPTION = RBACorePackage.CONTENT__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__NAME = RBACorePackage.CONTENT__NAME; + + /** + * The feature id for the 'Tags' containment reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__TAGS = RBACorePackage.CONTENT__TAGS; + + /** + * The feature id for the 'Content Group' reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__CONTENT_GROUP = RBACorePackage.CONTENT__CONTENT_GROUP; + + /** + * The feature id for the 'Allocatable' reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__ALLOCATABLE = RBACorePackage.CONTENT__ALLOCATABLE; + + /** + * The feature id for the 'Loser Type' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__LOSER_TYPE = RBACorePackage.CONTENT__LOSER_TYPE; + + /** + * The feature id for the 'States' containment reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__STATES = RBACorePackage.CONTENT__STATES; + + /** + * The feature id for the 'Size' containment reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT__SIZE = RBACorePackage.CONTENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'View Content' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_FEATURE_COUNT = RBACorePackage.CONTENT_FEATURE_COUNT + 1; + + /** + * The operation id for the 'Get Allocatable List' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT___GET_ALLOCATABLE_LIST = RBACorePackage.CONTENT___GET_ALLOCATABLE_LIST; + + /** + * The operation id for the 'Collect Leaf Contents' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT___COLLECT_LEAF_CONTENTS = RBACorePackage.CONTENT___COLLECT_LEAF_CONTENTS; + + /** + * The operation id for the 'Get Expression Type' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT___GET_EXPRESSION_TYPE = RBACorePackage.CONTENT_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'View Content' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATION_COUNT = RBACorePackage.CONTENT_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.ViewContentSetImpl View Content Set}' class. + * + * + * @see rba.view.impl.ViewContentSetImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContentSet() + * @generated + */ + int VIEW_CONTENT_SET = 1; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET__DESCRIPTION = RBACorePackage.CONTENT_SET__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET__NAME = RBACorePackage.CONTENT_SET__NAME; + + /** + * The feature id for the 'Tags' containment reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET__TAGS = RBACorePackage.CONTENT_SET__TAGS; + + /** + * The feature id for the 'Content Group' reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET__CONTENT_GROUP = RBACorePackage.CONTENT_SET__CONTENT_GROUP; + + /** + * The feature id for the 'Allocatable' reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET__ALLOCATABLE = RBACorePackage.CONTENT_SET__ALLOCATABLE; + + /** + * The feature id for the 'Target' reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET__TARGET = RBACorePackage.CONTENT_SET__TARGET; + + /** + * The number of structural features of the 'View Content Set' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET_FEATURE_COUNT = RBACorePackage.CONTENT_SET_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Allocatable List' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET___GET_ALLOCATABLE_LIST = RBACorePackage.CONTENT_SET___GET_ALLOCATABLE_LIST; + + /** + * The operation id for the 'Collect Leaf Contents' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET___COLLECT_LEAF_CONTENTS = RBACorePackage.CONTENT_SET___COLLECT_LEAF_CONTENTS; + + /** + * The operation id for the 'Get Expression Type' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET___GET_EXPRESSION_TYPE = RBACorePackage.CONTENT_SET_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'View Content Set' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_SET_OPERATION_COUNT = RBACorePackage.CONTENT_SET_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.ViewContentStateImpl View Content State}' class. + * + * + * @see rba.view.impl.ViewContentStateImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContentState() + * @generated + */ + int VIEW_CONTENT_STATE = 2; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE__DESCRIPTION = RBACorePackage.CONTENT_STATE__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE__NAME = RBACorePackage.CONTENT_STATE__NAME; + + /** + * The feature id for the 'Tags' containment reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE__TAGS = RBACorePackage.CONTENT_STATE__TAGS; + + /** + * The feature id for the 'Value' containment reference. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE__VALUE = RBACorePackage.CONTENT_STATE__VALUE; + + /** + * The feature id for the 'Owner' container reference. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE__OWNER = RBACorePackage.CONTENT_STATE__OWNER; + + /** + * The number of structural features of the 'View Content State' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE_FEATURE_COUNT = RBACorePackage.CONTENT_STATE_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Type' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE___GET_EXPRESSION_TYPE = RBACorePackage.CONTENT_STATE_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'View Content State' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_STATE_OPERATION_COUNT = RBACorePackage.CONTENT_STATE_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.LayoutManagerImpl Layout Manager}' class. + * + * + * @see rba.view.impl.LayoutManagerImpl + * @see rba.view.impl.RBAViewPackageImpl#getLayoutManager() + * @generated + */ + int LAYOUT_MANAGER = 3; + + /** + * The number of structural features of the 'Layout Manager' class. + * + * + * @generated + * @ordered + */ + int LAYOUT_MANAGER_FEATURE_COUNT = 0; + + /** + * The operation id for the 'Collect Leaf Area' operation. + * + * + * @generated + * @ordered + */ + int LAYOUT_MANAGER___COLLECT_LEAF_AREA = 0; + + /** + * The number of operations of the 'Layout Manager' class. + * + * + * @generated + * @ordered + */ + int LAYOUT_MANAGER_OPERATION_COUNT = 1; + + /** + * The meta object id for the '{@link rba.view.impl.AlignedLayoutImpl Aligned Layout}' class. + * + * + * @see rba.view.impl.AlignedLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getAlignedLayout() + * @generated + */ + int ALIGNED_LAYOUT = 4; + + /** + * The feature id for the 'Subarea' reference list. + * + * + * @generated + * @ordered + */ + int ALIGNED_LAYOUT__SUBAREA = LAYOUT_MANAGER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Base Point' attribute. + * + * + * @generated + * @ordered + */ + int ALIGNED_LAYOUT__BASE_POINT = LAYOUT_MANAGER_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Aligned Layout' class. + * + * + * @generated + * @ordered + */ + int ALIGNED_LAYOUT_FEATURE_COUNT = LAYOUT_MANAGER_FEATURE_COUNT + 2; + + /** + * The operation id for the 'Collect Leaf Area' operation. + * + * + * @generated + * @ordered + */ + int ALIGNED_LAYOUT___COLLECT_LEAF_AREA = LAYOUT_MANAGER_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'Aligned Layout' class. + * + * + * @generated + * @ordered + */ + int ALIGNED_LAYOUT_OPERATION_COUNT = LAYOUT_MANAGER_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.VerticalLayoutImpl Vertical Layout}' class. + * + * + * @see rba.view.impl.VerticalLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getVerticalLayout() + * @generated + */ + int VERTICAL_LAYOUT = 5; + + /** + * The feature id for the 'Subarea' reference list. + * + * + * @generated + * @ordered + */ + int VERTICAL_LAYOUT__SUBAREA = ALIGNED_LAYOUT__SUBAREA; + + /** + * The feature id for the 'Base Point' attribute. + * + * + * @generated + * @ordered + */ + int VERTICAL_LAYOUT__BASE_POINT = ALIGNED_LAYOUT__BASE_POINT; + + /** + * The number of structural features of the 'Vertical Layout' class. + * + * + * @generated + * @ordered + */ + int VERTICAL_LAYOUT_FEATURE_COUNT = ALIGNED_LAYOUT_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Collect Leaf Area' operation. + * + * + * @generated + * @ordered + */ + int VERTICAL_LAYOUT___COLLECT_LEAF_AREA = ALIGNED_LAYOUT___COLLECT_LEAF_AREA; + + /** + * The number of operations of the 'Vertical Layout' class. + * + * + * @generated + * @ordered + */ + int VERTICAL_LAYOUT_OPERATION_COUNT = ALIGNED_LAYOUT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link rba.view.impl.HorizontalLayoutImpl Horizontal Layout}' class. + * + * + * @see rba.view.impl.HorizontalLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getHorizontalLayout() + * @generated + */ + int HORIZONTAL_LAYOUT = 6; + + /** + * The feature id for the 'Subarea' reference list. + * + * + * @generated + * @ordered + */ + int HORIZONTAL_LAYOUT__SUBAREA = ALIGNED_LAYOUT__SUBAREA; + + /** + * The feature id for the 'Base Point' attribute. + * + * + * @generated + * @ordered + */ + int HORIZONTAL_LAYOUT__BASE_POINT = ALIGNED_LAYOUT__BASE_POINT; + + /** + * The number of structural features of the 'Horizontal Layout' class. + * + * + * @generated + * @ordered + */ + int HORIZONTAL_LAYOUT_FEATURE_COUNT = ALIGNED_LAYOUT_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Collect Leaf Area' operation. + * + * + * @generated + * @ordered + */ + int HORIZONTAL_LAYOUT___COLLECT_LEAF_AREA = ALIGNED_LAYOUT___COLLECT_LEAF_AREA; + + /** + * The number of operations of the 'Horizontal Layout' class. + * + * + * @generated + * @ordered + */ + int HORIZONTAL_LAYOUT_OPERATION_COUNT = ALIGNED_LAYOUT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link rba.view.impl.FixedPositionLayoutImpl Fixed Position Layout}' class. + * + * + * @see rba.view.impl.FixedPositionLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getFixedPositionLayout() + * @generated + */ + int FIXED_POSITION_LAYOUT = 7; + + /** + * The feature id for the 'Sub Area Position' containment reference list. + * + * + * @generated + * @ordered + */ + int FIXED_POSITION_LAYOUT__SUB_AREA_POSITION = LAYOUT_MANAGER_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Fixed Position Layout' class. + * + * + * @generated + * @ordered + */ + int FIXED_POSITION_LAYOUT_FEATURE_COUNT = LAYOUT_MANAGER_FEATURE_COUNT + 1; + + /** + * The operation id for the 'Collect Leaf Area' operation. + * + * + * @generated + * @ordered + */ + int FIXED_POSITION_LAYOUT___COLLECT_LEAF_AREA = LAYOUT_MANAGER_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'Fixed Position Layout' class. + * + * + * @generated + * @ordered + */ + int FIXED_POSITION_LAYOUT_OPERATION_COUNT = LAYOUT_MANAGER_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.PositionContainerImpl Position Container}' class. + * + * + * @see rba.view.impl.PositionContainerImpl + * @see rba.view.impl.RBAViewPackageImpl#getPositionContainer() + * @generated + */ + int POSITION_CONTAINER = 8; + + /** + * The feature id for the 'X' attribute. + * + * + * @generated + * @ordered + */ + int POSITION_CONTAINER__X = 0; + + /** + * The feature id for the 'Y' attribute. + * + * + * @generated + * @ordered + */ + int POSITION_CONTAINER__Y = 1; + + /** + * The feature id for the 'Base Point' attribute. + * + * + * @generated + * @ordered + */ + int POSITION_CONTAINER__BASE_POINT = 2; + + /** + * The feature id for the 'Area' reference. + * + * + * @generated + * @ordered + */ + int POSITION_CONTAINER__AREA = 3; + + /** + * The feature id for the 'Offset' containment reference list. + * + * + * @generated + * @ordered + */ + int POSITION_CONTAINER__OFFSET = 4; + + /** + * The number of structural features of the 'Position Container' class. + * + * + * @generated + * @ordered + */ + int POSITION_CONTAINER_FEATURE_COUNT = 5; + + /** + * The number of operations of the 'Position Container' class. + * + * + * @generated + * @ordered + */ + int POSITION_CONTAINER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link rba.view.impl.DisplayImpl Display}' class. + * + * + * @see rba.view.impl.DisplayImpl + * @see rba.view.impl.RBAViewPackageImpl#getDisplay() + * @generated + */ + int DISPLAY = 9; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int DISPLAY__DESCRIPTION = RBACorePackage.PACKAGABLE_ELEMENT__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int DISPLAY__NAME = RBACorePackage.PACKAGABLE_ELEMENT__NAME; + + /** + * The feature id for the 'Root' containment reference. + * + * + * @generated + * @ordered + */ + int DISPLAY__ROOT = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Size' containment reference. + * + * + * @generated + * @ordered + */ + int DISPLAY__SIZE = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Display' class. + * + * + * @generated + * @ordered + */ + int DISPLAY_FEATURE_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Display' class. + * + * + * @generated + * @ordered + */ + int DISPLAY_OPERATION_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link rba.view.impl.CompositeAreaImpl Composite Area}' class. + * + * + * @see rba.view.impl.CompositeAreaImpl + * @see rba.view.impl.RBAViewPackageImpl#getCompositeArea() + * @generated + */ + int COMPOSITE_AREA = 10; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int COMPOSITE_AREA__DESCRIPTION = RBACorePackage.PACKAGABLE_ELEMENT__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int COMPOSITE_AREA__NAME = RBACorePackage.PACKAGABLE_ELEMENT__NAME; + + /** + * The feature id for the 'Layout' containment reference. + * + * + * @generated + * @ordered + */ + int COMPOSITE_AREA__LAYOUT = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Composite Area' class. + * + * + * @generated + * @ordered + */ + int COMPOSITE_AREA_FEATURE_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The operation id for the 'Collect Leaf Area' operation. + * + * + * @generated + * @ordered + */ + int COMPOSITE_AREA___COLLECT_LEAF_AREA = RBACorePackage.PACKAGABLE_ELEMENT_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Get Expression Type' operation. + * + * + * @generated + * @ordered + */ + int COMPOSITE_AREA___GET_EXPRESSION_TYPE = RBACorePackage.PACKAGABLE_ELEMENT_OPERATION_COUNT + 1; + + /** + * The number of operations of the 'Composite Area' class. + * + * + * @generated + * @ordered + */ + int COMPOSITE_AREA_OPERATION_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_OPERATION_COUNT + 2; + + /** + * The meta object id for the '{@link rba.view.impl.AreaImpl Area}' class. + * + * + * @see rba.view.impl.AreaImpl + * @see rba.view.impl.RBAViewPackageImpl#getArea() + * @generated + */ + int AREA = 11; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int AREA__DESCRIPTION = RBACorePackage.ALLOCATABLE__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int AREA__NAME = RBACorePackage.ALLOCATABLE__NAME; + + /** + * The feature id for the 'Tags' containment reference list. + * + * + * @generated + * @ordered + */ + int AREA__TAGS = RBACorePackage.ALLOCATABLE__TAGS; + + /** + * The feature id for the 'Contents' reference list. + * + * + * @generated + * @ordered + */ + int AREA__CONTENTS = RBACorePackage.ALLOCATABLE__CONTENTS; + + /** + * The feature id for the 'Allocatable Group' reference list. + * + * + * @generated + * @ordered + */ + int AREA__ALLOCATABLE_GROUP = RBACorePackage.ALLOCATABLE__ALLOCATABLE_GROUP; + + /** + * The feature id for the 'Arbitration Policy' attribute. + * + * + * @generated + * @ordered + */ + int AREA__ARBITRATION_POLICY = RBACorePackage.ALLOCATABLE__ARBITRATION_POLICY; + + /** + * The feature id for the 'Visibility' containment reference. + * + * + * @generated + * @ordered + */ + int AREA__VISIBILITY = RBACorePackage.ALLOCATABLE__VISIBILITY; + + /** + * The feature id for the 'Zorder' containment reference. + * + * + * @generated + * @ordered + */ + int AREA__ZORDER = RBACorePackage.ALLOCATABLE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Size' containment reference list. + * + * + * @generated + * @ordered + */ + int AREA__SIZE = RBACorePackage.ALLOCATABLE_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Area' class. + * + * + * @generated + * @ordered + */ + int AREA_FEATURE_COUNT = RBACorePackage.ALLOCATABLE_FEATURE_COUNT + 2; + + /** + * The operation id for the 'Get Contents List' operation. + * + * + * @generated + * @ordered + */ + int AREA___GET_CONTENTS_LIST = RBACorePackage.ALLOCATABLE___GET_CONTENTS_LIST; + + /** + * The operation id for the 'Collect Leaf Allocatable' operation. + * + * + * @generated + * @ordered + */ + int AREA___COLLECT_LEAF_ALLOCATABLE = RBACorePackage.ALLOCATABLE___COLLECT_LEAF_ALLOCATABLE; + + /** + * The operation id for the 'Get Expression Type' operation. + * + * + * @generated + * @ordered + */ + int AREA___GET_EXPRESSION_TYPE = RBACorePackage.ALLOCATABLE_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'Area' class. + * + * + * @generated + * @ordered + */ + int AREA_OPERATION_COUNT = RBACorePackage.ALLOCATABLE_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.AreaSetImpl Area Set}' class. + * + * + * @see rba.view.impl.AreaSetImpl + * @see rba.view.impl.RBAViewPackageImpl#getAreaSet() + * @generated + */ + int AREA_SET = 12; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int AREA_SET__DESCRIPTION = RBACorePackage.ALLOCATABLE_SET__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int AREA_SET__NAME = RBACorePackage.ALLOCATABLE_SET__NAME; + + /** + * The feature id for the 'Tags' containment reference list. + * + * + * @generated + * @ordered + */ + int AREA_SET__TAGS = RBACorePackage.ALLOCATABLE_SET__TAGS; + + /** + * The feature id for the 'Contents' reference list. + * + * + * @generated + * @ordered + */ + int AREA_SET__CONTENTS = RBACorePackage.ALLOCATABLE_SET__CONTENTS; + + /** + * The feature id for the 'Allocatable Group' reference list. + * + * + * @generated + * @ordered + */ + int AREA_SET__ALLOCATABLE_GROUP = RBACorePackage.ALLOCATABLE_SET__ALLOCATABLE_GROUP; + + /** + * The feature id for the 'Target' reference list. + * + * + * @generated + * @ordered + */ + int AREA_SET__TARGET = RBACorePackage.ALLOCATABLE_SET__TARGET; + + /** + * The number of structural features of the 'Area Set' class. + * + * + * @generated + * @ordered + */ + int AREA_SET_FEATURE_COUNT = RBACorePackage.ALLOCATABLE_SET_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Contents List' operation. + * + * + * @generated + * @ordered + */ + int AREA_SET___GET_CONTENTS_LIST = RBACorePackage.ALLOCATABLE_SET___GET_CONTENTS_LIST; + + /** + * The operation id for the 'Collect Leaf Allocatable' operation. + * + * + * @generated + * @ordered + */ + int AREA_SET___COLLECT_LEAF_ALLOCATABLE = RBACorePackage.ALLOCATABLE_SET___COLLECT_LEAF_ALLOCATABLE; + + /** + * The operation id for the 'Get Expression Type' operation. + * + * + * @generated + * @ordered + */ + int AREA_SET___GET_EXPRESSION_TYPE = RBACorePackage.ALLOCATABLE_SET_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'Area Set' class. + * + * + * @generated + * @ordered + */ + int AREA_SET_OPERATION_COUNT = RBACorePackage.ALLOCATABLE_SET_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.SizeIdentifierImpl Size Identifier}' class. + * + * + * @see rba.view.impl.SizeIdentifierImpl + * @see rba.view.impl.RBAViewPackageImpl#getSizeIdentifier() + * @generated + */ + int SIZE_IDENTIFIER = 13; + + /** + * The number of structural features of the 'Size Identifier' class. + * + * + * @generated + * @ordered + */ + int SIZE_IDENTIFIER_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Size Identifier' class. + * + * + * @generated + * @ordered + */ + int SIZE_IDENTIFIER_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link rba.view.impl.SizeImpl Size}' class. + * + * + * @see rba.view.impl.SizeImpl + * @see rba.view.impl.RBAViewPackageImpl#getSize() + * @generated + */ + int SIZE = 14; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int SIZE__DESCRIPTION = RBACorePackage.PACKAGABLE_ELEMENT__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int SIZE__NAME = RBACorePackage.PACKAGABLE_ELEMENT__NAME; + + /** + * The feature id for the 'Width' attribute. + * + * + * @generated + * @ordered + */ + int SIZE__WIDTH = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Height' attribute. + * + * + * @generated + * @ordered + */ + int SIZE__HEIGHT = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Size' class. + * + * + * @generated + * @ordered + */ + int SIZE_FEATURE_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Size' class. + * + * + * @generated + * @ordered + */ + int SIZE_OPERATION_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link rba.view.impl.SizeReferenceImpl Size Reference}' class. + * + * + * @see rba.view.impl.SizeReferenceImpl + * @see rba.view.impl.RBAViewPackageImpl#getSizeReference() + * @generated + */ + int SIZE_REFERENCE = 15; + + /** + * The feature id for the 'Size' reference. + * + * + * @generated + * @ordered + */ + int SIZE_REFERENCE__SIZE = SIZE_IDENTIFIER_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Size Reference' class. + * + * + * @generated + * @ordered + */ + int SIZE_REFERENCE_FEATURE_COUNT = SIZE_IDENTIFIER_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Size Reference' class. + * + * + * @generated + * @ordered + */ + int SIZE_REFERENCE_OPERATION_COUNT = SIZE_IDENTIFIER_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link rba.view.impl.OffsetImpl Offset}' class. + * + * + * @see rba.view.impl.OffsetImpl + * @see rba.view.impl.RBAViewPackageImpl#getOffset() + * @generated + */ + int OFFSET = 16; + + /** + * The feature id for the 'Description' attribute. + * + * + * @generated + * @ordered + */ + int OFFSET__DESCRIPTION = RBACorePackage.PACKAGABLE_ELEMENT__DESCRIPTION; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + int OFFSET__NAME = RBACorePackage.PACKAGABLE_ELEMENT__NAME; + + /** + * The feature id for the 'X' attribute. + * + * + * @generated + * @ordered + */ + int OFFSET__X = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Y' attribute. + * + * + * @generated + * @ordered + */ + int OFFSET__Y = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Size' containment reference. + * + * + * @generated + * @ordered + */ + int OFFSET__SIZE = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'Offset' class. + * + * + * @generated + * @ordered + */ + int OFFSET_FEATURE_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_FEATURE_COUNT + 3; + + /** + * The number of operations of the 'Offset' class. + * + * + * @generated + * @ordered + */ + int OFFSET_OPERATION_COUNT = RBACorePackage.PACKAGABLE_ELEMENT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link rba.view.impl.AreaOperatorImpl Area Operator}' class. + * + * + * @see rba.view.impl.AreaOperatorImpl + * @see rba.view.impl.RBAViewPackageImpl#getAreaOperator() + * @generated + */ + int AREA_OPERATOR = 17; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR__TYPE = RBACorePackage.ALLOCATABLE_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR__EXPRESSION = RBACorePackage.ALLOCATABLE_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR__LET_STATEMENTS = RBACorePackage.ALLOCATABLE_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR__OPERAND = RBACorePackage.ALLOCATABLE_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Area Operator' class. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR_FEATURE_COUNT = RBACorePackage.ALLOCATABLE_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR___GET_UNDERLYING_TYPE = RBACorePackage.ALLOCATABLE_OPERATOR___GET_UNDERLYING_TYPE; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR___GET_SYMBOL = RBACorePackage.ALLOCATABLE_OPERATOR___GET_SYMBOL; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR___GET_EXPRESSION_TEXT = RBACorePackage.ALLOCATABLE_OPERATOR___GET_EXPRESSION_TEXT; + + /** + * The number of operations of the 'Area Operator' class. + * + * + * @generated + * @ordered + */ + int AREA_OPERATOR_OPERATION_COUNT = RBACorePackage.ALLOCATABLE_OPERATOR_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link rba.view.impl.IsDisplayedImpl Is Displayed}' class. + * + * + * @see rba.view.impl.IsDisplayedImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsDisplayed() + * @generated + */ + int IS_DISPLAYED = 18; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED__TYPE = AREA_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED__EXPRESSION = AREA_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED__LET_STATEMENTS = AREA_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED__OPERAND = AREA_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Is Displayed' class. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_FEATURE_COUNT = AREA_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED___GET_EXPRESSION_TEXT = AREA_OPERATOR___GET_EXPRESSION_TEXT; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED___GET_SYMBOL = AREA_OPERATOR_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED___GET_UNDERLYING_TYPE = AREA_OPERATOR_OPERATION_COUNT + 1; + + /** + * The number of operations of the 'Is Displayed' class. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_OPERATION_COUNT = AREA_OPERATOR_OPERATION_COUNT + 2; + + /** + * The meta object id for the '{@link rba.view.impl.DisplayingContentImpl Displaying Content}' class. + * + * + * @see rba.view.impl.DisplayingContentImpl + * @see rba.view.impl.RBAViewPackageImpl#getDisplayingContent() + * @generated + */ + int DISPLAYING_CONTENT = 19; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT__TYPE = AREA_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT__EXPRESSION = AREA_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT__LET_STATEMENTS = AREA_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT__OPERAND = AREA_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Displaying Content' class. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT_FEATURE_COUNT = AREA_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT___GET_EXPRESSION_TEXT = AREA_OPERATOR___GET_EXPRESSION_TEXT; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT___GET_SYMBOL = AREA_OPERATOR_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT___GET_UNDERLYING_TYPE = AREA_OPERATOR_OPERATION_COUNT + 1; + + /** + * The number of operations of the 'Displaying Content' class. + * + * + * @generated + * @ordered + */ + int DISPLAYING_CONTENT_OPERATION_COUNT = AREA_OPERATOR_OPERATION_COUNT + 2; + + /** + * The meta object id for the '{@link rba.view.impl.IsHiddenImpl Is Hidden}' class. + * + * + * @see rba.view.impl.IsHiddenImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsHidden() + * @generated + */ + int IS_HIDDEN = 20; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN__TYPE = AREA_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN__EXPRESSION = AREA_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN__LET_STATEMENTS = AREA_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN__OPERAND = AREA_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Is Hidden' class. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN_FEATURE_COUNT = AREA_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN___GET_EXPRESSION_TEXT = AREA_OPERATOR___GET_EXPRESSION_TEXT; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN___GET_SYMBOL = AREA_OPERATOR_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN___GET_UNDERLYING_TYPE = AREA_OPERATOR_OPERATION_COUNT + 1; + + /** + * The number of operations of the 'Is Hidden' class. + * + * + * @generated + * @ordered + */ + int IS_HIDDEN_OPERATION_COUNT = AREA_OPERATOR_OPERATION_COUNT + 2; + + /** + * The meta object id for the '{@link rba.view.impl.ViewContentOperatorImpl View Content Operator}' class. + * + * + * @see rba.view.impl.ViewContentOperatorImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContentOperator() + * @generated + */ + int VIEW_CONTENT_OPERATOR = 21; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR__TYPE = RBACorePackage.CONTENT_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR__EXPRESSION = RBACorePackage.CONTENT_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR__LET_STATEMENTS = RBACorePackage.CONTENT_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR__OPERAND = RBACorePackage.CONTENT_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'View Content Operator' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR_FEATURE_COUNT = RBACorePackage.CONTENT_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR___GET_SYMBOL = RBACorePackage.CONTENT_OPERATOR___GET_SYMBOL; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR___GET_EXPRESSION_TEXT = RBACorePackage.CONTENT_OPERATOR___GET_EXPRESSION_TEXT; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR___GET_UNDERLYING_TYPE = RBACorePackage.CONTENT_OPERATOR_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'View Content Operator' class. + * + * + * @generated + * @ordered + */ + int VIEW_CONTENT_OPERATOR_OPERATION_COUNT = RBACorePackage.CONTENT_OPERATOR_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.IsVisibleImpl Is Visible}' class. + * + * + * @see rba.view.impl.IsVisibleImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsVisible() + * @generated + */ + int IS_VISIBLE = 22; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE__TYPE = VIEW_CONTENT_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE__EXPRESSION = VIEW_CONTENT_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE__LET_STATEMENTS = VIEW_CONTENT_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE__OPERAND = VIEW_CONTENT_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Is Visible' class. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE_FEATURE_COUNT = VIEW_CONTENT_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE___GET_EXPRESSION_TEXT = VIEW_CONTENT_OPERATOR___GET_EXPRESSION_TEXT; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE___GET_UNDERLYING_TYPE = VIEW_CONTENT_OPERATOR___GET_UNDERLYING_TYPE; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE___GET_SYMBOL = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 0; + + /** + * The number of operations of the 'Is Visible' class. + * + * + * @generated + * @ordered + */ + int IS_VISIBLE_OPERATION_COUNT = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 1; + + /** + * The meta object id for the '{@link rba.view.impl.AllInstanceOfAreaImpl All Instance Of Area}' class. + * + * + * @see rba.view.impl.AllInstanceOfAreaImpl + * @see rba.view.impl.RBAViewPackageImpl#getAllInstanceOfArea() + * @generated + */ + int ALL_INSTANCE_OF_AREA = 23; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_AREA__TYPE = RBACorePackage.SET_EXPRESSION__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_AREA__EXPRESSION = RBACorePackage.SET_EXPRESSION__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_AREA__LET_STATEMENTS = RBACorePackage.SET_EXPRESSION__LET_STATEMENTS; + + /** + * The number of structural features of the 'All Instance Of Area' class. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_AREA_FEATURE_COUNT = RBACorePackage.SET_EXPRESSION_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_AREA___GET_EXPRESSION_TEXT = RBACorePackage.SET_EXPRESSION_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_AREA___GET_UNDERLYING_TYPE = RBACorePackage.SET_EXPRESSION_OPERATION_COUNT + 1; + + /** + * The number of operations of the 'All Instance Of Area' class. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_AREA_OPERATION_COUNT = RBACorePackage.SET_EXPRESSION_OPERATION_COUNT + 2; + + /** + * The meta object id for the '{@link rba.view.impl.AllInstanceOfViewContentImpl All Instance Of View Content}' class. + * + * + * @see rba.view.impl.AllInstanceOfViewContentImpl + * @see rba.view.impl.RBAViewPackageImpl#getAllInstanceOfViewContent() + * @generated + */ + int ALL_INSTANCE_OF_VIEW_CONTENT = 24; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_VIEW_CONTENT__TYPE = RBACorePackage.SET_EXPRESSION__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_VIEW_CONTENT__EXPRESSION = RBACorePackage.SET_EXPRESSION__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_VIEW_CONTENT__LET_STATEMENTS = RBACorePackage.SET_EXPRESSION__LET_STATEMENTS; + + /** + * The number of structural features of the 'All Instance Of View Content' class. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_VIEW_CONTENT_FEATURE_COUNT = RBACorePackage.SET_EXPRESSION_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_VIEW_CONTENT___GET_EXPRESSION_TEXT = RBACorePackage.SET_EXPRESSION_OPERATION_COUNT + 0; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_VIEW_CONTENT___GET_UNDERLYING_TYPE = RBACorePackage.SET_EXPRESSION_OPERATION_COUNT + 1; + + /** + * The number of operations of the 'All Instance Of View Content' class. + * + * + * @generated + * @ordered + */ + int ALL_INSTANCE_OF_VIEW_CONTENT_OPERATION_COUNT = RBACorePackage.SET_EXPRESSION_OPERATION_COUNT + 2; + + /** + * The meta object id for the '{@link rba.view.impl.IsDisplayedOnImpl Is Displayed On}' class. + * + * + * @see rba.view.impl.IsDisplayedOnImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsDisplayedOn() + * @generated + */ + int IS_DISPLAYED_ON = 25; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON__TYPE = VIEW_CONTENT_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON__EXPRESSION = VIEW_CONTENT_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON__LET_STATEMENTS = VIEW_CONTENT_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON__OPERAND = VIEW_CONTENT_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Is Displayed On' class. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON_FEATURE_COUNT = VIEW_CONTENT_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expanded' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON___GET_EXPANDED = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 1; + + /** + * The operation id for the 'Can Expand' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON___CAN_EXPAND = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 2; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON___GET_SYMBOL = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 3; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON___GET_UNDERLYING_TYPE = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 4; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON___GET_EXPRESSION_TEXT = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 5; + + /** + * The number of operations of the 'Is Displayed On' class. + * + * + * @generated + * @ordered + */ + int IS_DISPLAYED_ON_OPERATION_COUNT = VIEW_CONTENT_OPERATOR_OPERATION_COUNT + 6; + + /** + * The meta object id for the '{@link rba.view.impl.IsChangedDisplayImpl Is Changed Display}' class. + * + * + * @see rba.view.impl.IsChangedDisplayImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsChangedDisplay() + * @generated + */ + int IS_CHANGED_DISPLAY = 26; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY__TYPE = AREA_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY__EXPRESSION = AREA_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY__LET_STATEMENTS = AREA_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY__OPERAND = AREA_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Is Changed Display' class. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY_FEATURE_COUNT = AREA_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY___GET_EXPRESSION_TEXT = AREA_OPERATOR___GET_EXPRESSION_TEXT; + + /** + * The operation id for the 'Get Expanded' operation. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY___GET_EXPANDED = AREA_OPERATOR_OPERATION_COUNT + 1; + + /** + * The operation id for the 'Can Expand' operation. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY___CAN_EXPAND = AREA_OPERATOR_OPERATION_COUNT + 2; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY___GET_SYMBOL = AREA_OPERATOR_OPERATION_COUNT + 3; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY___GET_UNDERLYING_TYPE = AREA_OPERATOR_OPERATION_COUNT + 4; + + /** + * The number of operations of the 'Is Changed Display' class. + * + * + * @generated + * @ordered + */ + int IS_CHANGED_DISPLAY_OPERATION_COUNT = AREA_OPERATOR_OPERATION_COUNT + 5; + + /** + * The meta object id for the '{@link rba.view.impl.IsTranslatedViewToImpl Is Translated View To}' class. + * + * + * @see rba.view.impl.IsTranslatedViewToImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsTranslatedViewTo() + * @generated + */ + int IS_TRANSLATED_VIEW_TO = 27; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO__TYPE = AREA_OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO__EXPRESSION = AREA_OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO__LET_STATEMENTS = AREA_OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO__OPERAND = AREA_OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Is Translated View To' class. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO_FEATURE_COUNT = AREA_OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expanded' operation. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO___GET_EXPANDED = AREA_OPERATOR_OPERATION_COUNT + 1; + + /** + * The operation id for the 'Can Expand' operation. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO___CAN_EXPAND = AREA_OPERATOR_OPERATION_COUNT + 2; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO___GET_SYMBOL = AREA_OPERATOR_OPERATION_COUNT + 3; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO___GET_UNDERLYING_TYPE = AREA_OPERATOR_OPERATION_COUNT + 4; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO___GET_EXPRESSION_TEXT = AREA_OPERATOR_OPERATION_COUNT + 5; + + /** + * The number of operations of the 'Is Translated View To' class. + * + * + * @generated + * @ordered + */ + int IS_TRANSLATED_VIEW_TO_OPERATION_COUNT = AREA_OPERATOR_OPERATION_COUNT + 6; + + /** + * The meta object id for the '{@link rba.view.impl.HideLowerPriorityImpl Hide Lower Priority}' class. + * + * + * @see rba.view.impl.HideLowerPriorityImpl + * @see rba.view.impl.RBAViewPackageImpl#getHideLowerPriority() + * @generated + */ + int HIDE_LOWER_PRIORITY = 28; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY__TYPE = RBACorePackage.OPERATOR__TYPE; + + /** + * The feature id for the 'Expression' attribute. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY__EXPRESSION = RBACorePackage.OPERATOR__EXPRESSION; + + /** + * The feature id for the 'Let Statements' containment reference list. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY__LET_STATEMENTS = RBACorePackage.OPERATOR__LET_STATEMENTS; + + /** + * The feature id for the 'Operand' containment reference list. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY__OPERAND = RBACorePackage.OPERATOR__OPERAND; + + /** + * The number of structural features of the 'Hide Lower Priority' class. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY_FEATURE_COUNT = RBACorePackage.OPERATOR_FEATURE_COUNT + 0; + + /** + * The operation id for the 'Get Expanded' operation. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY___GET_EXPANDED = RBACorePackage.OPERATOR_OPERATION_COUNT + 1; + + /** + * The operation id for the 'Can Expand' operation. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY___CAN_EXPAND = RBACorePackage.OPERATOR_OPERATION_COUNT + 2; + + /** + * The operation id for the 'Get Symbol' operation. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY___GET_SYMBOL = RBACorePackage.OPERATOR_OPERATION_COUNT + 3; + + /** + * The operation id for the 'Get Underlying Type' operation. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY___GET_UNDERLYING_TYPE = RBACorePackage.OPERATOR_OPERATION_COUNT + 4; + + /** + * The operation id for the 'Get Expression Text' operation. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY___GET_EXPRESSION_TEXT = RBACorePackage.OPERATOR_OPERATION_COUNT + 5; + + /** + * The number of operations of the 'Hide Lower Priority' class. + * + * + * @generated + * @ordered + */ + int HIDE_LOWER_PRIORITY_OPERATION_COUNT = RBACorePackage.OPERATOR_OPERATION_COUNT + 6; + + /** + * The meta object id for the '{@link rba.view.BasePoint Base Point}' enum. + * + * + * @see rba.view.BasePoint + * @see rba.view.impl.RBAViewPackageImpl#getBasePoint() + * @generated + */ + int BASE_POINT = 29; + + /** + * Returns the meta object for class '{@link rba.view.ViewContent View Content}'. + * + * + * @return the meta object for class 'View Content'. + * @see rba.view.ViewContent + * @generated + */ + EClass getViewContent(); + + /** + * Returns the meta object for the containment reference list '{@link rba.view.ViewContent#getSize Size}'. + * + * + * @return the meta object for the containment reference list 'Size'. + * @see rba.view.ViewContent#getSize() + * @see #getViewContent() + * @generated + */ + EReference getViewContent_Size(); + + /** + * Returns the meta object for the '{@link rba.view.ViewContent#getExpressionType() Get Expression Type}' operation. + * + * + * @return the meta object for the 'Get Expression Type' operation. + * @see rba.view.ViewContent#getExpressionType() + * @generated + */ + EOperation getViewContent__GetExpressionType(); + + /** + * Returns the meta object for class '{@link rba.view.ViewContentSet View Content Set}'. + * + * + * @return the meta object for class 'View Content Set'. + * @see rba.view.ViewContentSet + * @generated + */ + EClass getViewContentSet(); + + /** + * Returns the meta object for the '{@link rba.view.ViewContentSet#getExpressionType() Get Expression Type}' operation. + * + * + * @return the meta object for the 'Get Expression Type' operation. + * @see rba.view.ViewContentSet#getExpressionType() + * @generated + */ + EOperation getViewContentSet__GetExpressionType(); + + /** + * Returns the meta object for class '{@link rba.view.ViewContentState View Content State}'. + * + * + * @return the meta object for class 'View Content State'. + * @see rba.view.ViewContentState + * @generated + */ + EClass getViewContentState(); + + /** + * Returns the meta object for the '{@link rba.view.ViewContentState#getExpressionType() Get Expression Type}' operation. + * + * + * @return the meta object for the 'Get Expression Type' operation. + * @see rba.view.ViewContentState#getExpressionType() + * @generated + */ + EOperation getViewContentState__GetExpressionType(); + + /** + * Returns the meta object for class '{@link rba.view.LayoutManager Layout Manager}'. + * + * + * @return the meta object for class 'Layout Manager'. + * @see rba.view.LayoutManager + * @generated + */ + EClass getLayoutManager(); + + /** + * Returns the meta object for the '{@link rba.view.LayoutManager#collectLeafArea() Collect Leaf Area}' operation. + * + * + * @return the meta object for the 'Collect Leaf Area' operation. + * @see rba.view.LayoutManager#collectLeafArea() + * @generated + */ + EOperation getLayoutManager__CollectLeafArea(); + + /** + * Returns the meta object for class '{@link rba.view.AlignedLayout Aligned Layout}'. + * + * + * @return the meta object for class 'Aligned Layout'. + * @see rba.view.AlignedLayout + * @generated + */ + EClass getAlignedLayout(); + + /** + * Returns the meta object for the reference list '{@link rba.view.AlignedLayout#getSubarea Subarea}'. + * + * + * @return the meta object for the reference list 'Subarea'. + * @see rba.view.AlignedLayout#getSubarea() + * @see #getAlignedLayout() + * @generated + */ + EReference getAlignedLayout_Subarea(); + + /** + * Returns the meta object for the attribute '{@link rba.view.AlignedLayout#getBasePoint Base Point}'. + * + * + * @return the meta object for the attribute 'Base Point'. + * @see rba.view.AlignedLayout#getBasePoint() + * @see #getAlignedLayout() + * @generated + */ + EAttribute getAlignedLayout_BasePoint(); + + /** + * Returns the meta object for the '{@link rba.view.AlignedLayout#collectLeafArea() Collect Leaf Area}' operation. + * + * + * @return the meta object for the 'Collect Leaf Area' operation. + * @see rba.view.AlignedLayout#collectLeafArea() + * @generated + */ + EOperation getAlignedLayout__CollectLeafArea(); + + /** + * Returns the meta object for class '{@link rba.view.VerticalLayout Vertical Layout}'. + * + * + * @return the meta object for class 'Vertical Layout'. + * @see rba.view.VerticalLayout + * @generated + */ + EClass getVerticalLayout(); + + /** + * Returns the meta object for class '{@link rba.view.HorizontalLayout Horizontal Layout}'. + * + * + * @return the meta object for class 'Horizontal Layout'. + * @see rba.view.HorizontalLayout + * @generated + */ + EClass getHorizontalLayout(); + + /** + * Returns the meta object for class '{@link rba.view.FixedPositionLayout Fixed Position Layout}'. + * + * + * @return the meta object for class 'Fixed Position Layout'. + * @see rba.view.FixedPositionLayout + * @generated + */ + EClass getFixedPositionLayout(); + + /** + * Returns the meta object for the containment reference list '{@link rba.view.FixedPositionLayout#getSubAreaPosition Sub Area Position}'. + * + * + * @return the meta object for the containment reference list 'Sub Area Position'. + * @see rba.view.FixedPositionLayout#getSubAreaPosition() + * @see #getFixedPositionLayout() + * @generated + */ + EReference getFixedPositionLayout_SubAreaPosition(); + + /** + * Returns the meta object for the '{@link rba.view.FixedPositionLayout#collectLeafArea() Collect Leaf Area}' operation. + * + * + * @return the meta object for the 'Collect Leaf Area' operation. + * @see rba.view.FixedPositionLayout#collectLeafArea() + * @generated + */ + EOperation getFixedPositionLayout__CollectLeafArea(); + + /** + * Returns the meta object for class '{@link rba.view.PositionContainer Position Container}'. + * + * + * @return the meta object for class 'Position Container'. + * @see rba.view.PositionContainer + * @generated + */ + EClass getPositionContainer(); + + /** + * Returns the meta object for the attribute '{@link rba.view.PositionContainer#getX X}'. + * + * + * @return the meta object for the attribute 'X'. + * @see rba.view.PositionContainer#getX() + * @see #getPositionContainer() + * @generated + */ + EAttribute getPositionContainer_X(); + + /** + * Returns the meta object for the attribute '{@link rba.view.PositionContainer#getY Y}'. + * + * + * @return the meta object for the attribute 'Y'. + * @see rba.view.PositionContainer#getY() + * @see #getPositionContainer() + * @generated + */ + EAttribute getPositionContainer_Y(); + + /** + * Returns the meta object for the attribute '{@link rba.view.PositionContainer#getBasePoint Base Point}'. + * + * + * @return the meta object for the attribute 'Base Point'. + * @see rba.view.PositionContainer#getBasePoint() + * @see #getPositionContainer() + * @generated + */ + EAttribute getPositionContainer_BasePoint(); + + /** + * Returns the meta object for the reference '{@link rba.view.PositionContainer#getArea Area}'. + * + * + * @return the meta object for the reference 'Area'. + * @see rba.view.PositionContainer#getArea() + * @see #getPositionContainer() + * @generated + */ + EReference getPositionContainer_Area(); + + /** + * Returns the meta object for the containment reference list '{@link rba.view.PositionContainer#getOffset Offset}'. + * + * + * @return the meta object for the containment reference list 'Offset'. + * @see rba.view.PositionContainer#getOffset() + * @see #getPositionContainer() + * @generated + */ + EReference getPositionContainer_Offset(); + + /** + * Returns the meta object for class '{@link rba.view.Display Display}'. + * + * + * @return the meta object for class 'Display'. + * @see rba.view.Display + * @generated + */ + EClass getDisplay(); + + /** + * Returns the meta object for the containment reference '{@link rba.view.Display#getRoot Root}'. + * + * + * @return the meta object for the containment reference 'Root'. + * @see rba.view.Display#getRoot() + * @see #getDisplay() + * @generated + */ + EReference getDisplay_Root(); + + /** + * Returns the meta object for the containment reference '{@link rba.view.Display#getSize Size}'. + * + * + * @return the meta object for the containment reference 'Size'. + * @see rba.view.Display#getSize() + * @see #getDisplay() + * @generated + */ + EReference getDisplay_Size(); + + /** + * Returns the meta object for class '{@link rba.view.CompositeArea Composite Area}'. + * + * + * @return the meta object for class 'Composite Area'. + * @see rba.view.CompositeArea + * @generated + */ + EClass getCompositeArea(); + + /** + * Returns the meta object for the containment reference '{@link rba.view.CompositeArea#getLayout Layout}'. + * + * + * @return the meta object for the containment reference 'Layout'. + * @see rba.view.CompositeArea#getLayout() + * @see #getCompositeArea() + * @generated + */ + EReference getCompositeArea_Layout(); + + /** + * Returns the meta object for the '{@link rba.view.CompositeArea#collectLeafArea() Collect Leaf Area}' operation. + * + * + * @return the meta object for the 'Collect Leaf Area' operation. + * @see rba.view.CompositeArea#collectLeafArea() + * @generated + */ + EOperation getCompositeArea__CollectLeafArea(); + + /** + * Returns the meta object for the '{@link rba.view.CompositeArea#getExpressionType() Get Expression Type}' operation. + * + * + * @return the meta object for the 'Get Expression Type' operation. + * @see rba.view.CompositeArea#getExpressionType() + * @generated + */ + EOperation getCompositeArea__GetExpressionType(); + + /** + * Returns the meta object for class '{@link rba.view.Area Area}'. + * + * + * @return the meta object for class 'Area'. + * @see rba.view.Area + * @generated + */ + EClass getArea(); + + /** + * Returns the meta object for the containment reference '{@link rba.view.Area#getZorder Zorder}'. + * + * + * @return the meta object for the containment reference 'Zorder'. + * @see rba.view.Area#getZorder() + * @see #getArea() + * @generated + */ + EReference getArea_Zorder(); + + /** + * Returns the meta object for the containment reference list '{@link rba.view.Area#getSize Size}'. + * + * + * @return the meta object for the containment reference list 'Size'. + * @see rba.view.Area#getSize() + * @see #getArea() + * @generated + */ + EReference getArea_Size(); + + /** + * Returns the meta object for the '{@link rba.view.Area#getExpressionType() Get Expression Type}' operation. + * + * + * @return the meta object for the 'Get Expression Type' operation. + * @see rba.view.Area#getExpressionType() + * @generated + */ + EOperation getArea__GetExpressionType(); + + /** + * Returns the meta object for class '{@link rba.view.AreaSet Area Set}'. + * + * + * @return the meta object for class 'Area Set'. + * @see rba.view.AreaSet + * @generated + */ + EClass getAreaSet(); + + /** + * Returns the meta object for the '{@link rba.view.AreaSet#getExpressionType() Get Expression Type}' operation. + * + * + * @return the meta object for the 'Get Expression Type' operation. + * @see rba.view.AreaSet#getExpressionType() + * @generated + */ + EOperation getAreaSet__GetExpressionType(); + + /** + * Returns the meta object for class '{@link rba.view.SizeIdentifier Size Identifier}'. + * + * + * @return the meta object for class 'Size Identifier'. + * @see rba.view.SizeIdentifier + * @generated + */ + EClass getSizeIdentifier(); + + /** + * Returns the meta object for class '{@link rba.view.Size Size}'. + * + * + * @return the meta object for class 'Size'. + * @see rba.view.Size + * @generated + */ + EClass getSize(); + + /** + * Returns the meta object for the attribute '{@link rba.view.Size#getWidth Width}'. + * + * + * @return the meta object for the attribute 'Width'. + * @see rba.view.Size#getWidth() + * @see #getSize() + * @generated + */ + EAttribute getSize_Width(); + + /** + * Returns the meta object for the attribute '{@link rba.view.Size#getHeight Height}'. + * + * + * @return the meta object for the attribute 'Height'. + * @see rba.view.Size#getHeight() + * @see #getSize() + * @generated + */ + EAttribute getSize_Height(); + + /** + * Returns the meta object for class '{@link rba.view.SizeReference Size Reference}'. + * + * + * @return the meta object for class 'Size Reference'. + * @see rba.view.SizeReference + * @generated + */ + EClass getSizeReference(); + + /** + * Returns the meta object for the reference '{@link rba.view.SizeReference#getSize Size}'. + * + * + * @return the meta object for the reference 'Size'. + * @see rba.view.SizeReference#getSize() + * @see #getSizeReference() + * @generated + */ + EReference getSizeReference_Size(); + + /** + * Returns the meta object for class '{@link rba.view.Offset Offset}'. + * + * + * @return the meta object for class 'Offset'. + * @see rba.view.Offset + * @generated + */ + EClass getOffset(); + + /** + * Returns the meta object for the attribute '{@link rba.view.Offset#getX X}'. + * + * + * @return the meta object for the attribute 'X'. + * @see rba.view.Offset#getX() + * @see #getOffset() + * @generated + */ + EAttribute getOffset_X(); + + /** + * Returns the meta object for the attribute '{@link rba.view.Offset#getY Y}'. + * + * + * @return the meta object for the attribute 'Y'. + * @see rba.view.Offset#getY() + * @see #getOffset() + * @generated + */ + EAttribute getOffset_Y(); + + /** + * Returns the meta object for the containment reference '{@link rba.view.Offset#getSize Size}'. + * + * + * @return the meta object for the containment reference 'Size'. + * @see rba.view.Offset#getSize() + * @see #getOffset() + * @generated + */ + EReference getOffset_Size(); + + /** + * Returns the meta object for class '{@link rba.view.AreaOperator Area Operator}'. + * + * + * @return the meta object for class 'Area Operator'. + * @see rba.view.AreaOperator + * @generated + */ + EClass getAreaOperator(); + + /** + * Returns the meta object for class '{@link rba.view.IsDisplayed Is Displayed}'. + * + * + * @return the meta object for class 'Is Displayed'. + * @see rba.view.IsDisplayed + * @generated + */ + EClass getIsDisplayed(); + + /** + * Returns the meta object for the '{@link rba.view.IsDisplayed#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.IsDisplayed#getSymbol() + * @generated + */ + EOperation getIsDisplayed__GetSymbol(); + + /** + * Returns the meta object for the '{@link rba.view.IsDisplayed#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.IsDisplayed#getUnderlyingType() + * @generated + */ + EOperation getIsDisplayed__GetUnderlyingType(); + + /** + * Returns the meta object for class '{@link rba.view.DisplayingContent Displaying Content}'. + * + * + * @return the meta object for class 'Displaying Content'. + * @see rba.view.DisplayingContent + * @generated + */ + EClass getDisplayingContent(); + + /** + * Returns the meta object for the '{@link rba.view.DisplayingContent#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.DisplayingContent#getSymbol() + * @generated + */ + EOperation getDisplayingContent__GetSymbol(); + + /** + * Returns the meta object for the '{@link rba.view.DisplayingContent#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.DisplayingContent#getUnderlyingType() + * @generated + */ + EOperation getDisplayingContent__GetUnderlyingType(); + + /** + * Returns the meta object for class '{@link rba.view.IsHidden Is Hidden}'. + * + * + * @return the meta object for class 'Is Hidden'. + * @see rba.view.IsHidden + * @generated + */ + EClass getIsHidden(); + + /** + * Returns the meta object for the '{@link rba.view.IsHidden#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.IsHidden#getSymbol() + * @generated + */ + EOperation getIsHidden__GetSymbol(); + + /** + * Returns the meta object for the '{@link rba.view.IsHidden#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.IsHidden#getUnderlyingType() + * @generated + */ + EOperation getIsHidden__GetUnderlyingType(); + + /** + * Returns the meta object for class '{@link rba.view.ViewContentOperator View Content Operator}'. + * + * + * @return the meta object for class 'View Content Operator'. + * @see rba.view.ViewContentOperator + * @generated + */ + EClass getViewContentOperator(); + + /** + * Returns the meta object for the '{@link rba.view.ViewContentOperator#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.ViewContentOperator#getUnderlyingType() + * @generated + */ + EOperation getViewContentOperator__GetUnderlyingType(); + + /** + * Returns the meta object for class '{@link rba.view.IsVisible Is Visible}'. + * + * + * @return the meta object for class 'Is Visible'. + * @see rba.view.IsVisible + * @generated + */ + EClass getIsVisible(); + + /** + * Returns the meta object for the '{@link rba.view.IsVisible#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.IsVisible#getSymbol() + * @generated + */ + EOperation getIsVisible__GetSymbol(); + + /** + * Returns the meta object for class '{@link rba.view.AllInstanceOfArea All Instance Of Area}'. + * + * + * @return the meta object for class 'All Instance Of Area'. + * @see rba.view.AllInstanceOfArea + * @generated + */ + EClass getAllInstanceOfArea(); + + /** + * Returns the meta object for the '{@link rba.view.AllInstanceOfArea#getExpressionText() Get Expression Text}' operation. + * + * + * @return the meta object for the 'Get Expression Text' operation. + * @see rba.view.AllInstanceOfArea#getExpressionText() + * @generated + */ + EOperation getAllInstanceOfArea__GetExpressionText(); + + /** + * Returns the meta object for the '{@link rba.view.AllInstanceOfArea#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.AllInstanceOfArea#getUnderlyingType() + * @generated + */ + EOperation getAllInstanceOfArea__GetUnderlyingType(); + + /** + * Returns the meta object for class '{@link rba.view.AllInstanceOfViewContent All Instance Of View Content}'. + * + * + * @return the meta object for class 'All Instance Of View Content'. + * @see rba.view.AllInstanceOfViewContent + * @generated + */ + EClass getAllInstanceOfViewContent(); + + /** + * Returns the meta object for the '{@link rba.view.AllInstanceOfViewContent#getExpressionText() Get Expression Text}' operation. + * + * + * @return the meta object for the 'Get Expression Text' operation. + * @see rba.view.AllInstanceOfViewContent#getExpressionText() + * @generated + */ + EOperation getAllInstanceOfViewContent__GetExpressionText(); + + /** + * Returns the meta object for the '{@link rba.view.AllInstanceOfViewContent#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.AllInstanceOfViewContent#getUnderlyingType() + * @generated + */ + EOperation getAllInstanceOfViewContent__GetUnderlyingType(); + + /** + * Returns the meta object for class '{@link rba.view.IsDisplayedOn Is Displayed On}'. + * + * + * @return the meta object for class 'Is Displayed On'. + * @see rba.view.IsDisplayedOn + * @generated + */ + EClass getIsDisplayedOn(); + + /** + * Returns the meta object for the '{@link rba.view.IsDisplayedOn#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.IsDisplayedOn#getSymbol() + * @generated + */ + EOperation getIsDisplayedOn__GetSymbol(); + + /** + * Returns the meta object for the '{@link rba.view.IsDisplayedOn#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.IsDisplayedOn#getUnderlyingType() + * @generated + */ + EOperation getIsDisplayedOn__GetUnderlyingType(); + + /** + * Returns the meta object for the '{@link rba.view.IsDisplayedOn#getExpressionText() Get Expression Text}' operation. + * + * + * @return the meta object for the 'Get Expression Text' operation. + * @see rba.view.IsDisplayedOn#getExpressionText() + * @generated + */ + EOperation getIsDisplayedOn__GetExpressionText(); + + /** + * Returns the meta object for class '{@link rba.view.IsChangedDisplay Is Changed Display}'. + * + * + * @return the meta object for class 'Is Changed Display'. + * @see rba.view.IsChangedDisplay + * @generated + */ + EClass getIsChangedDisplay(); + + /** + * Returns the meta object for the '{@link rba.view.IsChangedDisplay#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.IsChangedDisplay#getSymbol() + * @generated + */ + EOperation getIsChangedDisplay__GetSymbol(); + + /** + * Returns the meta object for the '{@link rba.view.IsChangedDisplay#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.IsChangedDisplay#getUnderlyingType() + * @generated + */ + EOperation getIsChangedDisplay__GetUnderlyingType(); + + /** + * Returns the meta object for class '{@link rba.view.IsTranslatedViewTo Is Translated View To}'. + * + * + * @return the meta object for class 'Is Translated View To'. + * @see rba.view.IsTranslatedViewTo + * @generated + */ + EClass getIsTranslatedViewTo(); + + /** + * Returns the meta object for the '{@link rba.view.IsTranslatedViewTo#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.IsTranslatedViewTo#getSymbol() + * @generated + */ + EOperation getIsTranslatedViewTo__GetSymbol(); + + /** + * Returns the meta object for the '{@link rba.view.IsTranslatedViewTo#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.IsTranslatedViewTo#getUnderlyingType() + * @generated + */ + EOperation getIsTranslatedViewTo__GetUnderlyingType(); + + /** + * Returns the meta object for the '{@link rba.view.IsTranslatedViewTo#getExpressionText() Get Expression Text}' operation. + * + * + * @return the meta object for the 'Get Expression Text' operation. + * @see rba.view.IsTranslatedViewTo#getExpressionText() + * @generated + */ + EOperation getIsTranslatedViewTo__GetExpressionText(); + + /** + * Returns the meta object for class '{@link rba.view.HideLowerPriority Hide Lower Priority}'. + * + * + * @return the meta object for class 'Hide Lower Priority'. + * @see rba.view.HideLowerPriority + * @generated + */ + EClass getHideLowerPriority(); + + /** + * Returns the meta object for the '{@link rba.view.HideLowerPriority#getSymbol() Get Symbol}' operation. + * + * + * @return the meta object for the 'Get Symbol' operation. + * @see rba.view.HideLowerPriority#getSymbol() + * @generated + */ + EOperation getHideLowerPriority__GetSymbol(); + + /** + * Returns the meta object for the '{@link rba.view.HideLowerPriority#getUnderlyingType() Get Underlying Type}' operation. + * + * + * @return the meta object for the 'Get Underlying Type' operation. + * @see rba.view.HideLowerPriority#getUnderlyingType() + * @generated + */ + EOperation getHideLowerPriority__GetUnderlyingType(); + + /** + * Returns the meta object for the '{@link rba.view.HideLowerPriority#getExpressionText() Get Expression Text}' operation. + * + * + * @return the meta object for the 'Get Expression Text' operation. + * @see rba.view.HideLowerPriority#getExpressionText() + * @generated + */ + EOperation getHideLowerPriority__GetExpressionText(); + + /** + * Returns the meta object for enum '{@link rba.view.BasePoint Base Point}'. + * + * + * @return the meta object for enum 'Base Point'. + * @see rba.view.BasePoint + * @generated + */ + EEnum getBasePoint(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + RBAViewFactory getRBAViewFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each operation of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link rba.view.impl.ViewContentImpl View Content}' class. + * + * + * @see rba.view.impl.ViewContentImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContent() + * @generated + */ + EClass VIEW_CONTENT = eINSTANCE.getViewContent(); + + /** + * The meta object literal for the 'Size' containment reference list feature. + * + * + * @generated + */ + EReference VIEW_CONTENT__SIZE = eINSTANCE.getViewContent_Size(); + + /** + * The meta object literal for the 'Get Expression Type' operation. + * + * + * @generated + */ + EOperation VIEW_CONTENT___GET_EXPRESSION_TYPE = eINSTANCE.getViewContent__GetExpressionType(); + + /** + * The meta object literal for the '{@link rba.view.impl.ViewContentSetImpl View Content Set}' class. + * + * + * @see rba.view.impl.ViewContentSetImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContentSet() + * @generated + */ + EClass VIEW_CONTENT_SET = eINSTANCE.getViewContentSet(); + + /** + * The meta object literal for the 'Get Expression Type' operation. + * + * + * @generated + */ + EOperation VIEW_CONTENT_SET___GET_EXPRESSION_TYPE = eINSTANCE.getViewContentSet__GetExpressionType(); + + /** + * The meta object literal for the '{@link rba.view.impl.ViewContentStateImpl View Content State}' class. + * + * + * @see rba.view.impl.ViewContentStateImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContentState() + * @generated + */ + EClass VIEW_CONTENT_STATE = eINSTANCE.getViewContentState(); + + /** + * The meta object literal for the 'Get Expression Type' operation. + * + * + * @generated + */ + EOperation VIEW_CONTENT_STATE___GET_EXPRESSION_TYPE = eINSTANCE.getViewContentState__GetExpressionType(); + + /** + * The meta object literal for the '{@link rba.view.impl.LayoutManagerImpl Layout Manager}' class. + * + * + * @see rba.view.impl.LayoutManagerImpl + * @see rba.view.impl.RBAViewPackageImpl#getLayoutManager() + * @generated + */ + EClass LAYOUT_MANAGER = eINSTANCE.getLayoutManager(); + + /** + * The meta object literal for the 'Collect Leaf Area' operation. + * + * + * @generated + */ + EOperation LAYOUT_MANAGER___COLLECT_LEAF_AREA = eINSTANCE.getLayoutManager__CollectLeafArea(); + + /** + * The meta object literal for the '{@link rba.view.impl.AlignedLayoutImpl Aligned Layout}' class. + * + * + * @see rba.view.impl.AlignedLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getAlignedLayout() + * @generated + */ + EClass ALIGNED_LAYOUT = eINSTANCE.getAlignedLayout(); + + /** + * The meta object literal for the 'Subarea' reference list feature. + * + * + * @generated + */ + EReference ALIGNED_LAYOUT__SUBAREA = eINSTANCE.getAlignedLayout_Subarea(); + + /** + * The meta object literal for the 'Base Point' attribute feature. + * + * + * @generated + */ + EAttribute ALIGNED_LAYOUT__BASE_POINT = eINSTANCE.getAlignedLayout_BasePoint(); + + /** + * The meta object literal for the 'Collect Leaf Area' operation. + * + * + * @generated + */ + EOperation ALIGNED_LAYOUT___COLLECT_LEAF_AREA = eINSTANCE.getAlignedLayout__CollectLeafArea(); + + /** + * The meta object literal for the '{@link rba.view.impl.VerticalLayoutImpl Vertical Layout}' class. + * + * + * @see rba.view.impl.VerticalLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getVerticalLayout() + * @generated + */ + EClass VERTICAL_LAYOUT = eINSTANCE.getVerticalLayout(); + + /** + * The meta object literal for the '{@link rba.view.impl.HorizontalLayoutImpl Horizontal Layout}' class. + * + * + * @see rba.view.impl.HorizontalLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getHorizontalLayout() + * @generated + */ + EClass HORIZONTAL_LAYOUT = eINSTANCE.getHorizontalLayout(); + + /** + * The meta object literal for the '{@link rba.view.impl.FixedPositionLayoutImpl Fixed Position Layout}' class. + * + * + * @see rba.view.impl.FixedPositionLayoutImpl + * @see rba.view.impl.RBAViewPackageImpl#getFixedPositionLayout() + * @generated + */ + EClass FIXED_POSITION_LAYOUT = eINSTANCE.getFixedPositionLayout(); + + /** + * The meta object literal for the 'Sub Area Position' containment reference list feature. + * + * + * @generated + */ + EReference FIXED_POSITION_LAYOUT__SUB_AREA_POSITION = eINSTANCE.getFixedPositionLayout_SubAreaPosition(); + + /** + * The meta object literal for the 'Collect Leaf Area' operation. + * + * + * @generated + */ + EOperation FIXED_POSITION_LAYOUT___COLLECT_LEAF_AREA = eINSTANCE.getFixedPositionLayout__CollectLeafArea(); + + /** + * The meta object literal for the '{@link rba.view.impl.PositionContainerImpl Position Container}' class. + * + * + * @see rba.view.impl.PositionContainerImpl + * @see rba.view.impl.RBAViewPackageImpl#getPositionContainer() + * @generated + */ + EClass POSITION_CONTAINER = eINSTANCE.getPositionContainer(); + + /** + * The meta object literal for the 'X' attribute feature. + * + * + * @generated + */ + EAttribute POSITION_CONTAINER__X = eINSTANCE.getPositionContainer_X(); + + /** + * The meta object literal for the 'Y' attribute feature. + * + * + * @generated + */ + EAttribute POSITION_CONTAINER__Y = eINSTANCE.getPositionContainer_Y(); + + /** + * The meta object literal for the 'Base Point' attribute feature. + * + * + * @generated + */ + EAttribute POSITION_CONTAINER__BASE_POINT = eINSTANCE.getPositionContainer_BasePoint(); + + /** + * The meta object literal for the 'Area' reference feature. + * + * + * @generated + */ + EReference POSITION_CONTAINER__AREA = eINSTANCE.getPositionContainer_Area(); + + /** + * The meta object literal for the 'Offset' containment reference list feature. + * + * + * @generated + */ + EReference POSITION_CONTAINER__OFFSET = eINSTANCE.getPositionContainer_Offset(); + + /** + * The meta object literal for the '{@link rba.view.impl.DisplayImpl Display}' class. + * + * + * @see rba.view.impl.DisplayImpl + * @see rba.view.impl.RBAViewPackageImpl#getDisplay() + * @generated + */ + EClass DISPLAY = eINSTANCE.getDisplay(); + + /** + * The meta object literal for the 'Root' containment reference feature. + * + * + * @generated + */ + EReference DISPLAY__ROOT = eINSTANCE.getDisplay_Root(); + + /** + * The meta object literal for the 'Size' containment reference feature. + * + * + * @generated + */ + EReference DISPLAY__SIZE = eINSTANCE.getDisplay_Size(); + + /** + * The meta object literal for the '{@link rba.view.impl.CompositeAreaImpl Composite Area}' class. + * + * + * @see rba.view.impl.CompositeAreaImpl + * @see rba.view.impl.RBAViewPackageImpl#getCompositeArea() + * @generated + */ + EClass COMPOSITE_AREA = eINSTANCE.getCompositeArea(); + + /** + * The meta object literal for the 'Layout' containment reference feature. + * + * + * @generated + */ + EReference COMPOSITE_AREA__LAYOUT = eINSTANCE.getCompositeArea_Layout(); + + /** + * The meta object literal for the 'Collect Leaf Area' operation. + * + * + * @generated + */ + EOperation COMPOSITE_AREA___COLLECT_LEAF_AREA = eINSTANCE.getCompositeArea__CollectLeafArea(); + + /** + * The meta object literal for the 'Get Expression Type' operation. + * + * + * @generated + */ + EOperation COMPOSITE_AREA___GET_EXPRESSION_TYPE = eINSTANCE.getCompositeArea__GetExpressionType(); + + /** + * The meta object literal for the '{@link rba.view.impl.AreaImpl Area}' class. + * + * + * @see rba.view.impl.AreaImpl + * @see rba.view.impl.RBAViewPackageImpl#getArea() + * @generated + */ + EClass AREA = eINSTANCE.getArea(); + + /** + * The meta object literal for the 'Zorder' containment reference feature. + * + * + * @generated + */ + EReference AREA__ZORDER = eINSTANCE.getArea_Zorder(); + + /** + * The meta object literal for the 'Size' containment reference list feature. + * + * + * @generated + */ + EReference AREA__SIZE = eINSTANCE.getArea_Size(); + + /** + * The meta object literal for the 'Get Expression Type' operation. + * + * + * @generated + */ + EOperation AREA___GET_EXPRESSION_TYPE = eINSTANCE.getArea__GetExpressionType(); + + /** + * The meta object literal for the '{@link rba.view.impl.AreaSetImpl Area Set}' class. + * + * + * @see rba.view.impl.AreaSetImpl + * @see rba.view.impl.RBAViewPackageImpl#getAreaSet() + * @generated + */ + EClass AREA_SET = eINSTANCE.getAreaSet(); + + /** + * The meta object literal for the 'Get Expression Type' operation. + * + * + * @generated + */ + EOperation AREA_SET___GET_EXPRESSION_TYPE = eINSTANCE.getAreaSet__GetExpressionType(); + + /** + * The meta object literal for the '{@link rba.view.impl.SizeIdentifierImpl Size Identifier}' class. + * + * + * @see rba.view.impl.SizeIdentifierImpl + * @see rba.view.impl.RBAViewPackageImpl#getSizeIdentifier() + * @generated + */ + EClass SIZE_IDENTIFIER = eINSTANCE.getSizeIdentifier(); + + /** + * The meta object literal for the '{@link rba.view.impl.SizeImpl Size}' class. + * + * + * @see rba.view.impl.SizeImpl + * @see rba.view.impl.RBAViewPackageImpl#getSize() + * @generated + */ + EClass SIZE = eINSTANCE.getSize(); + + /** + * The meta object literal for the 'Width' attribute feature. + * + * + * @generated + */ + EAttribute SIZE__WIDTH = eINSTANCE.getSize_Width(); + + /** + * The meta object literal for the 'Height' attribute feature. + * + * + * @generated + */ + EAttribute SIZE__HEIGHT = eINSTANCE.getSize_Height(); + + /** + * The meta object literal for the '{@link rba.view.impl.SizeReferenceImpl Size Reference}' class. + * + * + * @see rba.view.impl.SizeReferenceImpl + * @see rba.view.impl.RBAViewPackageImpl#getSizeReference() + * @generated + */ + EClass SIZE_REFERENCE = eINSTANCE.getSizeReference(); + + /** + * The meta object literal for the 'Size' reference feature. + * + * + * @generated + */ + EReference SIZE_REFERENCE__SIZE = eINSTANCE.getSizeReference_Size(); + + /** + * The meta object literal for the '{@link rba.view.impl.OffsetImpl Offset}' class. + * + * + * @see rba.view.impl.OffsetImpl + * @see rba.view.impl.RBAViewPackageImpl#getOffset() + * @generated + */ + EClass OFFSET = eINSTANCE.getOffset(); + + /** + * The meta object literal for the 'X' attribute feature. + * + * + * @generated + */ + EAttribute OFFSET__X = eINSTANCE.getOffset_X(); + + /** + * The meta object literal for the 'Y' attribute feature. + * + * + * @generated + */ + EAttribute OFFSET__Y = eINSTANCE.getOffset_Y(); + + /** + * The meta object literal for the 'Size' containment reference feature. + * + * + * @generated + */ + EReference OFFSET__SIZE = eINSTANCE.getOffset_Size(); + + /** + * The meta object literal for the '{@link rba.view.impl.AreaOperatorImpl Area Operator}' class. + * + * + * @see rba.view.impl.AreaOperatorImpl + * @see rba.view.impl.RBAViewPackageImpl#getAreaOperator() + * @generated + */ + EClass AREA_OPERATOR = eINSTANCE.getAreaOperator(); + + /** + * The meta object literal for the '{@link rba.view.impl.IsDisplayedImpl Is Displayed}' class. + * + * + * @see rba.view.impl.IsDisplayedImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsDisplayed() + * @generated + */ + EClass IS_DISPLAYED = eINSTANCE.getIsDisplayed(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation IS_DISPLAYED___GET_SYMBOL = eINSTANCE.getIsDisplayed__GetSymbol(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation IS_DISPLAYED___GET_UNDERLYING_TYPE = eINSTANCE.getIsDisplayed__GetUnderlyingType(); + + /** + * The meta object literal for the '{@link rba.view.impl.DisplayingContentImpl Displaying Content}' class. + * + * + * @see rba.view.impl.DisplayingContentImpl + * @see rba.view.impl.RBAViewPackageImpl#getDisplayingContent() + * @generated + */ + EClass DISPLAYING_CONTENT = eINSTANCE.getDisplayingContent(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation DISPLAYING_CONTENT___GET_SYMBOL = eINSTANCE.getDisplayingContent__GetSymbol(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation DISPLAYING_CONTENT___GET_UNDERLYING_TYPE = eINSTANCE.getDisplayingContent__GetUnderlyingType(); + + /** + * The meta object literal for the '{@link rba.view.impl.IsHiddenImpl Is Hidden}' class. + * + * + * @see rba.view.impl.IsHiddenImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsHidden() + * @generated + */ + EClass IS_HIDDEN = eINSTANCE.getIsHidden(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation IS_HIDDEN___GET_SYMBOL = eINSTANCE.getIsHidden__GetSymbol(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation IS_HIDDEN___GET_UNDERLYING_TYPE = eINSTANCE.getIsHidden__GetUnderlyingType(); + + /** + * The meta object literal for the '{@link rba.view.impl.ViewContentOperatorImpl View Content Operator}' class. + * + * + * @see rba.view.impl.ViewContentOperatorImpl + * @see rba.view.impl.RBAViewPackageImpl#getViewContentOperator() + * @generated + */ + EClass VIEW_CONTENT_OPERATOR = eINSTANCE.getViewContentOperator(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation VIEW_CONTENT_OPERATOR___GET_UNDERLYING_TYPE = eINSTANCE.getViewContentOperator__GetUnderlyingType(); + + /** + * The meta object literal for the '{@link rba.view.impl.IsVisibleImpl Is Visible}' class. + * + * + * @see rba.view.impl.IsVisibleImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsVisible() + * @generated + */ + EClass IS_VISIBLE = eINSTANCE.getIsVisible(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation IS_VISIBLE___GET_SYMBOL = eINSTANCE.getIsVisible__GetSymbol(); + + /** + * The meta object literal for the '{@link rba.view.impl.AllInstanceOfAreaImpl All Instance Of Area}' class. + * + * + * @see rba.view.impl.AllInstanceOfAreaImpl + * @see rba.view.impl.RBAViewPackageImpl#getAllInstanceOfArea() + * @generated + */ + EClass ALL_INSTANCE_OF_AREA = eINSTANCE.getAllInstanceOfArea(); + + /** + * The meta object literal for the 'Get Expression Text' operation. + * + * + * @generated + */ + EOperation ALL_INSTANCE_OF_AREA___GET_EXPRESSION_TEXT = eINSTANCE.getAllInstanceOfArea__GetExpressionText(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation ALL_INSTANCE_OF_AREA___GET_UNDERLYING_TYPE = eINSTANCE.getAllInstanceOfArea__GetUnderlyingType(); + + /** + * The meta object literal for the '{@link rba.view.impl.AllInstanceOfViewContentImpl All Instance Of View Content}' class. + * + * + * @see rba.view.impl.AllInstanceOfViewContentImpl + * @see rba.view.impl.RBAViewPackageImpl#getAllInstanceOfViewContent() + * @generated + */ + EClass ALL_INSTANCE_OF_VIEW_CONTENT = eINSTANCE.getAllInstanceOfViewContent(); + + /** + * The meta object literal for the 'Get Expression Text' operation. + * + * + * @generated + */ + EOperation ALL_INSTANCE_OF_VIEW_CONTENT___GET_EXPRESSION_TEXT = eINSTANCE + .getAllInstanceOfViewContent__GetExpressionText(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation ALL_INSTANCE_OF_VIEW_CONTENT___GET_UNDERLYING_TYPE = eINSTANCE + .getAllInstanceOfViewContent__GetUnderlyingType(); + + /** + * The meta object literal for the '{@link rba.view.impl.IsDisplayedOnImpl Is Displayed On}' class. + * + * + * @see rba.view.impl.IsDisplayedOnImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsDisplayedOn() + * @generated + */ + EClass IS_DISPLAYED_ON = eINSTANCE.getIsDisplayedOn(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation IS_DISPLAYED_ON___GET_SYMBOL = eINSTANCE.getIsDisplayedOn__GetSymbol(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation IS_DISPLAYED_ON___GET_UNDERLYING_TYPE = eINSTANCE.getIsDisplayedOn__GetUnderlyingType(); + + /** + * The meta object literal for the 'Get Expression Text' operation. + * + * + * @generated + */ + EOperation IS_DISPLAYED_ON___GET_EXPRESSION_TEXT = eINSTANCE.getIsDisplayedOn__GetExpressionText(); + + /** + * The meta object literal for the '{@link rba.view.impl.IsChangedDisplayImpl Is Changed Display}' class. + * + * + * @see rba.view.impl.IsChangedDisplayImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsChangedDisplay() + * @generated + */ + EClass IS_CHANGED_DISPLAY = eINSTANCE.getIsChangedDisplay(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation IS_CHANGED_DISPLAY___GET_SYMBOL = eINSTANCE.getIsChangedDisplay__GetSymbol(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation IS_CHANGED_DISPLAY___GET_UNDERLYING_TYPE = eINSTANCE.getIsChangedDisplay__GetUnderlyingType(); + + /** + * The meta object literal for the '{@link rba.view.impl.IsTranslatedViewToImpl Is Translated View To}' class. + * + * + * @see rba.view.impl.IsTranslatedViewToImpl + * @see rba.view.impl.RBAViewPackageImpl#getIsTranslatedViewTo() + * @generated + */ + EClass IS_TRANSLATED_VIEW_TO = eINSTANCE.getIsTranslatedViewTo(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation IS_TRANSLATED_VIEW_TO___GET_SYMBOL = eINSTANCE.getIsTranslatedViewTo__GetSymbol(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation IS_TRANSLATED_VIEW_TO___GET_UNDERLYING_TYPE = eINSTANCE.getIsTranslatedViewTo__GetUnderlyingType(); + + /** + * The meta object literal for the 'Get Expression Text' operation. + * + * + * @generated + */ + EOperation IS_TRANSLATED_VIEW_TO___GET_EXPRESSION_TEXT = eINSTANCE.getIsTranslatedViewTo__GetExpressionText(); + + /** + * The meta object literal for the '{@link rba.view.impl.HideLowerPriorityImpl Hide Lower Priority}' class. + * + * + * @see rba.view.impl.HideLowerPriorityImpl + * @see rba.view.impl.RBAViewPackageImpl#getHideLowerPriority() + * @generated + */ + EClass HIDE_LOWER_PRIORITY = eINSTANCE.getHideLowerPriority(); + + /** + * The meta object literal for the 'Get Symbol' operation. + * + * + * @generated + */ + EOperation HIDE_LOWER_PRIORITY___GET_SYMBOL = eINSTANCE.getHideLowerPriority__GetSymbol(); + + /** + * The meta object literal for the 'Get Underlying Type' operation. + * + * + * @generated + */ + EOperation HIDE_LOWER_PRIORITY___GET_UNDERLYING_TYPE = eINSTANCE.getHideLowerPriority__GetUnderlyingType(); + + /** + * The meta object literal for the 'Get Expression Text' operation. + * + * + * @generated + */ + EOperation HIDE_LOWER_PRIORITY___GET_EXPRESSION_TEXT = eINSTANCE.getHideLowerPriority__GetExpressionText(); + + /** + * The meta object literal for the '{@link rba.view.BasePoint Base Point}' enum. + * + * + * @see rba.view.BasePoint + * @see rba.view.impl.RBAViewPackageImpl#getBasePoint() + * @generated + */ + EEnum BASE_POINT = eINSTANCE.getBasePoint(); + + } + +} //RBAViewPackage diff --git a/rba.model.view/src/rba/view/Size.java b/rba.model.view/src/rba/view/Size.java new file mode 100644 index 0000000..e7bb341 --- /dev/null +++ b/rba.model.view/src/rba/view/Size.java @@ -0,0 +1,133 @@ +/** + */ +package rba.view; + +import rba.core.PackagableElement; + +/** + * + * A representation of the model object 'Size'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.Size#getWidth Width}
  • + *
  • {@link rba.view.Size#getHeight Height}
  • + *
+ * + * @see rba.view.RBAViewPackage#getSize() + * @model + * @generated + */ +public interface Size extends PackagableElement, SizeIdentifier { + /** + * Returns the value of the 'Width' attribute. + * + * + * + * + * + * @return the value of the 'Width' attribute. + * @see #isSetWidth() + * @see #unsetWidth() + * @see #setWidth(int) + * @see rba.view.RBAViewPackage#getSize_Width() + * @model unsettable="true" required="true" + * @generated + */ + int getWidth(); + + /** + * Sets the value of the '{@link rba.view.Size#getWidth Width}' attribute. + * + * + * @param value the new value of the 'Width' attribute. + * @see #isSetWidth() + * @see #unsetWidth() + * @see #getWidth() + * @generated + */ + void setWidth(int value); + + /** + * Unsets the value of the '{@link rba.view.Size#getWidth Width}' attribute. + * + * + * @see #isSetWidth() + * @see #getWidth() + * @see #setWidth(int) + * @generated + */ + void unsetWidth(); + + /** + * Returns whether the value of the '{@link rba.view.Size#getWidth Width}' attribute is set. + * + * + * @return whether the value of the 'Width' attribute is set. + * @see #unsetWidth() + * @see #getWidth() + * @see #setWidth(int) + * @generated + */ + boolean isSetWidth(); + + /** + * Returns the value of the 'Height' attribute. + * + * + * + * + * + * @return the value of the 'Height' attribute. + * @see #isSetHeight() + * @see #unsetHeight() + * @see #setHeight(int) + * @see rba.view.RBAViewPackage#getSize_Height() + * @model unsettable="true" required="true" + * @generated + */ + int getHeight(); + + /** + * Sets the value of the '{@link rba.view.Size#getHeight Height}' attribute. + * + * + * @param value the new value of the 'Height' attribute. + * @see #isSetHeight() + * @see #unsetHeight() + * @see #getHeight() + * @generated + */ + void setHeight(int value); + + /** + * Unsets the value of the '{@link rba.view.Size#getHeight Height}' attribute. + * + * + * @see #isSetHeight() + * @see #getHeight() + * @see #setHeight(int) + * @generated + */ + void unsetHeight(); + + /** + * Returns whether the value of the '{@link rba.view.Size#getHeight Height}' attribute is set. + * + * + * @return whether the value of the 'Height' attribute is set. + * @see #unsetHeight() + * @see #getHeight() + * @see #setHeight(int) + * @generated + */ + boolean isSetHeight(); + +} // Size diff --git a/rba.model.view/src/rba/view/SizeIdentifier.java b/rba.model.view/src/rba/view/SizeIdentifier.java new file mode 100644 index 0000000..3c98089 --- /dev/null +++ b/rba.model.view/src/rba/view/SizeIdentifier.java @@ -0,0 +1,18 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Size Identifier'. + * + * + * + * @see rba.view.RBAViewPackage#getSizeIdentifier() + * @model abstract="true" + * @generated + */ +public interface SizeIdentifier extends EObject { +} // SizeIdentifier diff --git a/rba.model.view/src/rba/view/SizeReference.java b/rba.model.view/src/rba/view/SizeReference.java new file mode 100644 index 0000000..9f10a16 --- /dev/null +++ b/rba.model.view/src/rba/view/SizeReference.java @@ -0,0 +1,48 @@ +/** + */ +package rba.view; + +/** + * + * A representation of the model object 'Size Reference'. + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.SizeReference#getSize Size}
  • + *
+ * + * @see rba.view.RBAViewPackage#getSizeReference() + * @model + * @generated + */ +public interface SizeReference extends SizeIdentifier { + /** + * Returns the value of the 'Size' reference. + * + *

+ * If the meaning of the 'Size' reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Size' reference. + * @see #setSize(Size) + * @see rba.view.RBAViewPackage#getSizeReference_Size() + * @model + * @generated + */ + Size getSize(); + + /** + * Sets the value of the '{@link rba.view.SizeReference#getSize Size}' reference. + * + * + * @param value the new value of the 'Size' reference. + * @see #getSize() + * @generated + */ + void setSize(Size value); + +} // SizeReference diff --git a/rba.model.view/src/rba/view/VerticalLayout.java b/rba.model.view/src/rba/view/VerticalLayout.java new file mode 100644 index 0000000..7a6fbc1 --- /dev/null +++ b/rba.model.view/src/rba/view/VerticalLayout.java @@ -0,0 +1,20 @@ +/** + */ +package rba.view; + +/** + * + * A representation of the model object 'Vertical Layout'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getVerticalLayout() + * @model + * @generated + */ +public interface VerticalLayout extends AlignedLayout { +} // VerticalLayout diff --git a/rba.model.view/src/rba/view/ViewContent.java b/rba.model.view/src/rba/view/ViewContent.java new file mode 100644 index 0000000..ded5378 --- /dev/null +++ b/rba.model.view/src/rba/view/ViewContent.java @@ -0,0 +1,58 @@ +/** + */ +package rba.view; + +import org.eclipse.emf.common.util.EList; + +import rba.core.Content; +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'View Content'. + * + * + * + * + * + * + *

+ * The following features are supported: + *

+ *
    + *
  • {@link rba.view.ViewContent#getSize Size}
  • + *
+ * + * @see rba.view.RBAViewPackage#getViewContent() + * @model + * @generated + */ +public interface ViewContent extends Content { + /** + * Returns the value of the 'Size' containment reference list. + * The list contents are of type {@link rba.view.SizeIdentifier}. + * + * + * + * + * + * @return the value of the 'Size' containment reference list. + * @see rba.view.RBAViewPackage#getViewContent_Size() + * @model containment="true" + * @generated + */ + EList getSize(); + + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.CONTENT;'" + * @generated + */ + ExpressionType getExpressionType(); + +} // ViewContent diff --git a/rba.model.view/src/rba/view/ViewContentOperator.java b/rba.model.view/src/rba/view/ViewContentOperator.java new file mode 100644 index 0000000..c6df3ab --- /dev/null +++ b/rba.model.view/src/rba/view/ViewContentOperator.java @@ -0,0 +1,35 @@ +/** + */ +package rba.view; + +import rba.core.ContentOperator; +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'View Content Operator'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getViewContentOperator() + * @model abstract="true" + * @generated + */ +public interface ViewContentOperator extends ContentOperator { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.BOOLEAN;'" + * @generated + */ + ExpressionType getUnderlyingType(); + +} // ViewContentOperator diff --git a/rba.model.view/src/rba/view/ViewContentSet.java b/rba.model.view/src/rba/view/ViewContentSet.java new file mode 100644 index 0000000..b0e6ddc --- /dev/null +++ b/rba.model.view/src/rba/view/ViewContentSet.java @@ -0,0 +1,35 @@ +/** + */ +package rba.view; + +import rba.core.ContentSet; +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'View Content Set'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getViewContentSet() + * @model + * @generated + */ +public interface ViewContentSet extends ContentSet { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.SET_OF_CONTENT;'" + * @generated + */ + ExpressionType getExpressionType(); + +} // ViewContentSet diff --git a/rba.model.view/src/rba/view/ViewContentState.java b/rba.model.view/src/rba/view/ViewContentState.java new file mode 100644 index 0000000..c0ffb15 --- /dev/null +++ b/rba.model.view/src/rba/view/ViewContentState.java @@ -0,0 +1,35 @@ +/** + */ +package rba.view; + +import rba.core.ContentState; +import rba.core.ExpressionType; + +/** + * + * A representation of the model object 'View Content State'. + * + * + * + * + * + * + * + * @see rba.view.RBAViewPackage#getViewContentState() + * @model + * @generated + */ +public interface ViewContentState extends ContentState { + /** + * + * + * + * @Override + * + * @model kind="operation" + * annotation="http://www.eclipse.org/emf/2002/GenModel body='return ExpressionType.CONTENT_STATE;'" + * @generated + */ + ExpressionType getExpressionType(); + +} // ViewContentState diff --git a/rba.model.view/src/rba/view/impl/AlignedLayoutImpl.java b/rba.model.view/src/rba/view/impl/AlignedLayoutImpl.java new file mode 100644 index 0000000..85ab299 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/AlignedLayoutImpl.java @@ -0,0 +1,221 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import rba.view.AlignedLayout; +import rba.view.Area; +import rba.view.BasePoint; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Aligned Layout'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.AlignedLayoutImpl#getSubarea Subarea}
  • + *
  • {@link rba.view.impl.AlignedLayoutImpl#getBasePoint Base Point}
  • + *
+ * + * @generated + */ +public abstract class AlignedLayoutImpl extends LayoutManagerImpl implements AlignedLayout { + /** + * The cached value of the '{@link #getSubarea() Subarea}' reference list. + * + * @see #getSubarea() + * @generated + * @ordered + */ + protected EList subarea; + + /** + * The default value of the '{@link #getBasePoint() Base Point}' attribute. + * + * @see #getBasePoint() + * @generated + * @ordered + */ + protected static final BasePoint BASE_POINT_EDEFAULT = BasePoint.LEFT_TOP; + + /** + * The cached value of the '{@link #getBasePoint() Base Point}' attribute. + * + * @see #getBasePoint() + * @generated + * @ordered + */ + protected BasePoint basePoint = BASE_POINT_EDEFAULT; + + /** + * + * @generated + */ + protected AlignedLayoutImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.ALIGNED_LAYOUT; + } + + /** + * + * @generated + */ + public EList getSubarea() { + if (subarea == null) { + subarea = new EObjectResolvingEList(Area.class, this, RBAViewPackage.ALIGNED_LAYOUT__SUBAREA); + } + return subarea; + } + + /** + * + * @generated + */ + public BasePoint getBasePoint() { + return basePoint; + } + + /** + * + * @generated + */ + public void setBasePoint(BasePoint newBasePoint) { + BasePoint oldBasePoint = basePoint; + basePoint = newBasePoint == null ? BASE_POINT_EDEFAULT : newBasePoint; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.ALIGNED_LAYOUT__BASE_POINT, + oldBasePoint, basePoint)); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + public EList collectLeafArea() { + java.util.Set areas = new java.util.HashSet(); + for (Area area : getSubarea()) { + areas.addAll(area.collectLeafAllocatable().stream().map(allocatable -> (Area) allocatable) + .collect(java.util.stream.Collectors.toList())); + } + return new org.eclipse.emf.common.util.BasicEList(areas); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.ALIGNED_LAYOUT__SUBAREA: + return getSubarea(); + case RBAViewPackage.ALIGNED_LAYOUT__BASE_POINT: + return getBasePoint(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.ALIGNED_LAYOUT__SUBAREA: + getSubarea().clear(); + getSubarea().addAll((Collection) newValue); + return; + case RBAViewPackage.ALIGNED_LAYOUT__BASE_POINT: + setBasePoint((BasePoint) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.ALIGNED_LAYOUT__SUBAREA: + getSubarea().clear(); + return; + case RBAViewPackage.ALIGNED_LAYOUT__BASE_POINT: + setBasePoint(BASE_POINT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.ALIGNED_LAYOUT__SUBAREA: + return subarea != null && !subarea.isEmpty(); + case RBAViewPackage.ALIGNED_LAYOUT__BASE_POINT: + return basePoint != BASE_POINT_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.ALIGNED_LAYOUT___COLLECT_LEAF_AREA: + return collectLeafArea(); + } + return super.eInvoke(operationID, arguments); + } + + /** + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (basePoint: "); + result.append(basePoint); + result.append(')'); + return result.toString(); + } + +} // AlignedLayoutImpl diff --git a/rba.model.view/src/rba/view/impl/AllInstanceOfAreaImpl.java b/rba.model.view/src/rba/view/impl/AllInstanceOfAreaImpl.java new file mode 100644 index 0000000..e2f9da0 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/AllInstanceOfAreaImpl.java @@ -0,0 +1,72 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.core.impl.SetExpressionImpl; + +import rba.view.AllInstanceOfArea; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'All Instance Of Area'. + * + * @generated + */ +public class AllInstanceOfAreaImpl extends SetExpressionImpl implements AllInstanceOfArea { + /** + * + * @generated + */ + protected AllInstanceOfAreaImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.ALL_INSTANCE_OF_AREA; + } + + /** + * + * @generated + */ + public String getExpressionText() { + return "AREA"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.SET_OF_AREA; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.ALL_INSTANCE_OF_AREA___GET_EXPRESSION_TEXT: + return getExpressionText(); + case RBAViewPackage.ALL_INSTANCE_OF_AREA___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + } + return super.eInvoke(operationID, arguments); + } + +} // AllInstanceOfAreaImpl diff --git a/rba.model.view/src/rba/view/impl/AllInstanceOfViewContentImpl.java b/rba.model.view/src/rba/view/impl/AllInstanceOfViewContentImpl.java new file mode 100644 index 0000000..15b4e5b --- /dev/null +++ b/rba.model.view/src/rba/view/impl/AllInstanceOfViewContentImpl.java @@ -0,0 +1,73 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.core.impl.SetExpressionImpl; + +import rba.view.AllInstanceOfViewContent; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'All Instance Of View Content'. + * + * @generated + */ +public class AllInstanceOfViewContentImpl extends SetExpressionImpl implements AllInstanceOfViewContent { + /** + * + * @generated + */ + protected AllInstanceOfViewContentImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.ALL_INSTANCE_OF_VIEW_CONTENT; + } + + /** + * + * @generated + */ + public String getExpressionText() { + return "ALL_VIEWCONTENTS"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.SET_OF_CONTENT; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.ALL_INSTANCE_OF_VIEW_CONTENT___GET_EXPRESSION_TEXT: + return getExpressionText(); + case RBAViewPackage.ALL_INSTANCE_OF_VIEW_CONTENT___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + } + return super.eInvoke(operationID, arguments); + } + +} // AllInstanceOfViewContentImpl diff --git a/rba.model.view/src/rba/view/impl/AreaImpl.java b/rba.model.view/src/rba/view/impl/AreaImpl.java new file mode 100644 index 0000000..d12a43a --- /dev/null +++ b/rba.model.view/src/rba/view/impl/AreaImpl.java @@ -0,0 +1,232 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +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.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import rba.core.Expression; +import rba.core.ExpressionType; +import rba.core.impl.AllocatableImpl; +import rba.view.Area; +import rba.view.RBAViewPackage; +import rba.view.SizeIdentifier; + +/** + * An implementation of the model object 'Area'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.AreaImpl#getZorder Zorder}
  • + *
  • {@link rba.view.impl.AreaImpl#getSize Size}
  • + *
+ * + * @generated + */ +public class AreaImpl extends AllocatableImpl implements Area { + /** + * The cached value of the '{@link #getZorder() Zorder}' containment reference. + * + * @see #getZorder() + * @generated + * @ordered + */ + protected Expression zorder; + + /** + * The cached value of the '{@link #getSize() Size}' containment reference list. + * + * @see #getSize() + * @generated + * @ordered + */ + protected EList size; + + /** + * + * @generated + */ + protected AreaImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.AREA; + } + + /** + * + * @generated + */ + public Expression getZorder() { + return zorder; + } + + /** + * + * @generated + */ + public NotificationChain basicSetZorder(Expression newZorder, NotificationChain msgs) { + Expression oldZorder = zorder; + zorder = newZorder; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RBAViewPackage.AREA__ZORDER, + oldZorder, newZorder); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setZorder(Expression newZorder) { + if (newZorder != zorder) { + NotificationChain msgs = null; + if (zorder != null) + msgs = ((InternalEObject) zorder).eInverseRemove(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.AREA__ZORDER, null, msgs); + if (newZorder != null) + msgs = ((InternalEObject) newZorder).eInverseAdd(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.AREA__ZORDER, null, msgs); + msgs = basicSetZorder(newZorder, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.AREA__ZORDER, newZorder, newZorder)); + } + + /** + * + * @generated + */ + public EList getSize() { + if (size == null) { + size = new EObjectContainmentEList(SizeIdentifier.class, this, RBAViewPackage.AREA__SIZE); + } + return size; + } + + /** + * + * @generated + */ + public ExpressionType getExpressionType() { + return ExpressionType.AREA; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RBAViewPackage.AREA__ZORDER: + return basicSetZorder(null, msgs); + case RBAViewPackage.AREA__SIZE: + return ((InternalEList) getSize()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.AREA__ZORDER: + return getZorder(); + case RBAViewPackage.AREA__SIZE: + return getSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.AREA__ZORDER: + setZorder((Expression) newValue); + return; + case RBAViewPackage.AREA__SIZE: + getSize().clear(); + getSize().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.AREA__ZORDER: + setZorder((Expression) null); + return; + case RBAViewPackage.AREA__SIZE: + getSize().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.AREA__ZORDER: + return zorder != null; + case RBAViewPackage.AREA__SIZE: + return size != null && !size.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.AREA___GET_EXPRESSION_TYPE: + return getExpressionType(); + } + return super.eInvoke(operationID, arguments); + } + +} // AreaImpl diff --git a/rba.model.view/src/rba/view/impl/AreaOperatorImpl.java b/rba.model.view/src/rba/view/impl/AreaOperatorImpl.java new file mode 100644 index 0000000..054aca6 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/AreaOperatorImpl.java @@ -0,0 +1,34 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.impl.AllocatableOperatorImpl; +import rba.view.AreaOperator; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Area Operator'. + * + * @generated + */ +public abstract class AreaOperatorImpl extends AllocatableOperatorImpl implements AreaOperator { + /** + * + * @generated + */ + protected AreaOperatorImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.AREA_OPERATOR; + } + +} // AreaOperatorImpl diff --git a/rba.model.view/src/rba/view/impl/AreaSetImpl.java b/rba.model.view/src/rba/view/impl/AreaSetImpl.java new file mode 100644 index 0000000..5c9f99e --- /dev/null +++ b/rba.model.view/src/rba/view/impl/AreaSetImpl.java @@ -0,0 +1,57 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import rba.core.ExpressionType; +import rba.core.impl.AllocatableSetImpl; +import rba.view.AreaSet; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Area Set'. + * + * @generated + */ +public class AreaSetImpl extends AllocatableSetImpl implements AreaSet { + /** + * + * @generated + */ + protected AreaSetImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.AREA_SET; + } + + /** + * + * @generated + */ + public ExpressionType getExpressionType() { + return ExpressionType.SET_OF_AREA; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.AREA_SET___GET_EXPRESSION_TYPE: + return getExpressionType(); + } + return super.eInvoke(operationID, arguments); + } + +} // AreaSetImpl diff --git a/rba.model.view/src/rba/view/impl/CompositeAreaImpl.java b/rba.model.view/src/rba/view/impl/CompositeAreaImpl.java new file mode 100644 index 0000000..a407823 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/CompositeAreaImpl.java @@ -0,0 +1,214 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +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 rba.core.ExpressionType; + +import rba.core.impl.PackagableElementImpl; +import rba.view.Area; +import rba.view.CompositeArea; +import rba.view.LayoutManager; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Composite Area'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.CompositeAreaImpl#getLayout Layout}
  • + *
+ * + * @generated + */ +public class CompositeAreaImpl extends PackagableElementImpl implements CompositeArea { + /** + * The cached value of the '{@link #getLayout() Layout}' containment reference. + * + * @see #getLayout() + * @generated + * @ordered + */ + protected LayoutManager layout; + + /** + * + * @generated + */ + protected CompositeAreaImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.COMPOSITE_AREA; + } + + /** + * + * @generated + */ + public LayoutManager getLayout() { + return layout; + } + + /** + * + * @generated + */ + public NotificationChain basicSetLayout(LayoutManager newLayout, NotificationChain msgs) { + LayoutManager oldLayout = layout; + layout = newLayout; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, + RBAViewPackage.COMPOSITE_AREA__LAYOUT, oldLayout, newLayout); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setLayout(LayoutManager newLayout) { + if (newLayout != layout) { + NotificationChain msgs = null; + if (layout != null) + msgs = ((InternalEObject) layout).eInverseRemove(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.COMPOSITE_AREA__LAYOUT, null, msgs); + if (newLayout != null) + msgs = ((InternalEObject) newLayout).eInverseAdd(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.COMPOSITE_AREA__LAYOUT, null, msgs); + msgs = basicSetLayout(newLayout, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.COMPOSITE_AREA__LAYOUT, newLayout, + newLayout)); + } + + /** + * + * @generated + */ + public EList collectLeafArea() { + java.util.Set areas = new java.util.HashSet(); + if (layout != null) { + areas.addAll(layout.collectLeafArea()); + } + + return new org.eclipse.emf.common.util.BasicEList(areas); + } + + /** + * + * @generated + */ + public ExpressionType getExpressionType() { + return ExpressionType.AREA; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RBAViewPackage.COMPOSITE_AREA__LAYOUT: + return basicSetLayout(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.COMPOSITE_AREA__LAYOUT: + return getLayout(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.COMPOSITE_AREA__LAYOUT: + setLayout((LayoutManager) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.COMPOSITE_AREA__LAYOUT: + setLayout((LayoutManager) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.COMPOSITE_AREA__LAYOUT: + return layout != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.COMPOSITE_AREA___COLLECT_LEAF_AREA: + return collectLeafArea(); + case RBAViewPackage.COMPOSITE_AREA___GET_EXPRESSION_TYPE: + return getExpressionType(); + } + return super.eInvoke(operationID, arguments); + } + +} // CompositeAreaImpl diff --git a/rba.model.view/src/rba/view/impl/DisplayImpl.java b/rba.model.view/src/rba/view/impl/DisplayImpl.java new file mode 100644 index 0000000..353c46f --- /dev/null +++ b/rba.model.view/src/rba/view/impl/DisplayImpl.java @@ -0,0 +1,240 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import rba.core.impl.PackagableElementImpl; +import rba.view.CompositeArea; +import rba.view.Display; +import rba.view.RBAViewPackage; +import rba.view.SizeIdentifier; + +/** + * An implementation of the model object 'Display'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.DisplayImpl#getRoot Root}
  • + *
  • {@link rba.view.impl.DisplayImpl#getSize Size}
  • + *
+ * + * @generated + */ +public class DisplayImpl extends PackagableElementImpl implements Display { + /** + * The cached value of the '{@link #getRoot() Root}' containment reference. + * + * @see #getRoot() + * @generated + * @ordered + */ + protected CompositeArea root; + + /** + * The cached value of the '{@link #getSize() Size}' containment reference. + * + * @see #getSize() + * @generated + * @ordered + */ + protected SizeIdentifier size; + + /** + * + * @generated + */ + protected DisplayImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.DISPLAY; + } + + /** + * + * @generated + */ + public CompositeArea getRoot() { + return root; + } + + /** + * + * @generated + */ + public NotificationChain basicSetRoot(CompositeArea newRoot, NotificationChain msgs) { + CompositeArea oldRoot = root; + root = newRoot; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RBAViewPackage.DISPLAY__ROOT, + oldRoot, newRoot); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setRoot(CompositeArea newRoot) { + if (newRoot != root) { + NotificationChain msgs = null; + if (root != null) + msgs = ((InternalEObject) root).eInverseRemove(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.DISPLAY__ROOT, null, msgs); + if (newRoot != null) + msgs = ((InternalEObject) newRoot).eInverseAdd(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.DISPLAY__ROOT, null, msgs); + msgs = basicSetRoot(newRoot, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.DISPLAY__ROOT, newRoot, newRoot)); + } + + /** + * + * @generated + */ + public SizeIdentifier getSize() { + return size; + } + + /** + * + * @generated + */ + public NotificationChain basicSetSize(SizeIdentifier newSize, NotificationChain msgs) { + SizeIdentifier oldSize = size; + size = newSize; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RBAViewPackage.DISPLAY__SIZE, + oldSize, newSize); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setSize(SizeIdentifier newSize) { + if (newSize != size) { + NotificationChain msgs = null; + if (size != null) + msgs = ((InternalEObject) size).eInverseRemove(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.DISPLAY__SIZE, null, msgs); + if (newSize != null) + msgs = ((InternalEObject) newSize).eInverseAdd(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.DISPLAY__SIZE, null, msgs); + msgs = basicSetSize(newSize, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.DISPLAY__SIZE, newSize, newSize)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RBAViewPackage.DISPLAY__ROOT: + return basicSetRoot(null, msgs); + case RBAViewPackage.DISPLAY__SIZE: + return basicSetSize(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.DISPLAY__ROOT: + return getRoot(); + case RBAViewPackage.DISPLAY__SIZE: + return getSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.DISPLAY__ROOT: + setRoot((CompositeArea) newValue); + return; + case RBAViewPackage.DISPLAY__SIZE: + setSize((SizeIdentifier) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.DISPLAY__ROOT: + setRoot((CompositeArea) null); + return; + case RBAViewPackage.DISPLAY__SIZE: + setSize((SizeIdentifier) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.DISPLAY__ROOT: + return root != null; + case RBAViewPackage.DISPLAY__SIZE: + return size != null; + } + return super.eIsSet(featureID); + } + +} // DisplayImpl diff --git a/rba.model.view/src/rba/view/impl/DisplayingContentImpl.java b/rba.model.view/src/rba/view/impl/DisplayingContentImpl.java new file mode 100644 index 0000000..d8178dd --- /dev/null +++ b/rba.model.view/src/rba/view/impl/DisplayingContentImpl.java @@ -0,0 +1,70 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.view.DisplayingContent; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Displaying Content'. + * + * @generated + */ +public class DisplayingContentImpl extends AreaOperatorImpl implements DisplayingContent { + /** + * + * @generated + */ + protected DisplayingContentImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.DISPLAYING_CONTENT; + } + + /** + * + * @generated + */ + public String getSymbol() { + return ".displayingContent()"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.CONTENT; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.DISPLAYING_CONTENT___GET_SYMBOL: + return getSymbol(); + case RBAViewPackage.DISPLAYING_CONTENT___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + } + return super.eInvoke(operationID, arguments); + } + +} // DisplayingContentImpl diff --git a/rba.model.view/src/rba/view/impl/FixedPositionLayoutImpl.java b/rba.model.view/src/rba/view/impl/FixedPositionLayoutImpl.java new file mode 100644 index 0000000..62eb041 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/FixedPositionLayoutImpl.java @@ -0,0 +1,169 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import rba.view.Area; +import rba.view.FixedPositionLayout; +import rba.view.PositionContainer; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Fixed Position Layout'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.FixedPositionLayoutImpl#getSubAreaPosition Sub Area Position}
  • + *
+ * + * @generated + */ +public class FixedPositionLayoutImpl extends LayoutManagerImpl implements FixedPositionLayout { + /** + * The cached value of the '{@link #getSubAreaPosition() Sub Area Position}' containment reference list. + * @see #getSubAreaPosition() + * @generated + * @ordered + */ + protected EList subAreaPosition; + + /** + * + * @generated + */ + protected FixedPositionLayoutImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.FIXED_POSITION_LAYOUT; + } + + /** + * + * @generated + */ + public EList getSubAreaPosition() { + if (subAreaPosition == null) { + subAreaPosition = new EObjectContainmentEList(PositionContainer.class, this, + RBAViewPackage.FIXED_POSITION_LAYOUT__SUB_AREA_POSITION); + } + return subAreaPosition; + } + + /** + * + * @generated + */ + public EList collectLeafArea() { + java.util.Set areas = new java.util.HashSet(); + for (PositionContainer pc : getSubAreaPosition()) { + areas.addAll(pc.getArea().collectLeafAllocatable().stream().map(allocatable -> (Area) allocatable) + .collect(java.util.stream.Collectors.toList())); + } + return new org.eclipse.emf.common.util.BasicEList(areas); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RBAViewPackage.FIXED_POSITION_LAYOUT__SUB_AREA_POSITION: + return ((InternalEList) getSubAreaPosition()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.FIXED_POSITION_LAYOUT__SUB_AREA_POSITION: + return getSubAreaPosition(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.FIXED_POSITION_LAYOUT__SUB_AREA_POSITION: + getSubAreaPosition().clear(); + getSubAreaPosition().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.FIXED_POSITION_LAYOUT__SUB_AREA_POSITION: + getSubAreaPosition().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.FIXED_POSITION_LAYOUT__SUB_AREA_POSITION: + return subAreaPosition != null && !subAreaPosition.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.FIXED_POSITION_LAYOUT___COLLECT_LEAF_AREA: + return collectLeafArea(); + } + return super.eInvoke(operationID, arguments); + } + +} // FixedPositionLayoutImpl diff --git a/rba.model.view/src/rba/view/impl/HideLowerPriorityImpl.java b/rba.model.view/src/rba/view/impl/HideLowerPriorityImpl.java new file mode 100644 index 0000000..94aa46c --- /dev/null +++ b/rba.model.view/src/rba/view/impl/HideLowerPriorityImpl.java @@ -0,0 +1,192 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import rba.core.AndOperator; +import rba.core.ContentValue; +import rba.core.Expression; +import rba.core.ExpressionType; +import rba.core.ImpliesOperator; +import rba.core.IsGreaterThanOperator; +import rba.core.IsLowerThanOperator; +import rba.core.Operator; +import rba.core.RBACoreFactory; +import rba.core.RBACorePackage; +import rba.core.SugarExpression; +import rba.core.SugarExpressionBase; +import rba.core.impl.OperatorImpl; +import rba.view.HideLowerPriority; +import rba.view.IsHidden; +import rba.view.RBAViewFactory; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Hide Lower Priority'. + * + * @generated + */ +public class HideLowerPriorityImpl extends OperatorImpl implements HideLowerPriority { + /** + * + * @generated + */ + protected HideLowerPriorityImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.HIDE_LOWER_PRIORITY; + } + + /** + * + * @generated + */ + public String getSymbol() { + return "HideLowerPriority"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.BOOLEAN; + } + + /** + * + * @generated + */ + public String getExpressionText() { + StringBuilder expressionText = new StringBuilder(); + EList expressions = getOperand(); + expressionText.append(getSymbol()); + expressionText.append("("); + expressionText.append(expressions.size() > 0 ? expressions.get(0).getExpressionText() : "[Invalid_Expression]"); + expressionText.append(","); + expressionText.append(expressions.size() > 1 ? expressions.get(1).getExpressionText() : "[Invalid_Expression]"); + expressionText.append(")"); + return expressionText.toString(); + } + + /** + * + * @generated + */ + public boolean canExpand() { + return true; + } + + /** + * + * @generated NOT + */ + public Expression getExpanded() { + AndOperator AND = RBACoreFactory.eINSTANCE.createAndOperator(); + ImpliesOperator implies = RBACoreFactory.eINSTANCE.createImpliesOperator(); + IsLowerThanOperator lowerThan = RBACoreFactory.eINSTANCE.createIsLowerThanOperator(); + ContentValue contentValue1 = RBACoreFactory.eINSTANCE.createContentValue(); + ContentValue contentValue2 = RBACoreFactory.eINSTANCE.createContentValue(); + IsHidden hidden = RBAViewFactory.eINSTANCE.createIsHidden(); + IsGreaterThanOperator greaterThan = RBACoreFactory.eINSTANCE.createIsGreaterThanOperator(); + + contentValue1.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + contentValue2.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(1))); + lowerThan.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(contentValue1)); + lowerThan.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(contentValue2)); + implies.getOperand().add(lowerThan); + hidden.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + implies.getOperand().add(hidden); + AND.getOperand().add(implies); + + implies = RBACoreFactory.eINSTANCE.createImpliesOperator(); + greaterThan.getOperand().add(contentValue1); + greaterThan.getOperand().add(contentValue2); + implies.getOperand().add(greaterThan); + + hidden = RBAViewFactory.eINSTANCE.createIsHidden(); + hidden.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(1))); + implies.getOperand().add(hidden); + AND.getOperand().add(implies); + + return AND; + } + + /** + * + * @generated + */ + @Override + public int eDerivedOperationID(int baseOperationID, Class baseClass) { + if (baseClass == Expression.class) { + switch (baseOperationID) { + case RBACorePackage.EXPRESSION___GET_UNDERLYING_TYPE: + return RBAViewPackage.HIDE_LOWER_PRIORITY___GET_UNDERLYING_TYPE; + case RBACorePackage.EXPRESSION___GET_EXPRESSION_TEXT: + return RBAViewPackage.HIDE_LOWER_PRIORITY___GET_EXPRESSION_TEXT; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == Operator.class) { + switch (baseOperationID) { + case RBACorePackage.OPERATOR___GET_SYMBOL: + return RBAViewPackage.HIDE_LOWER_PRIORITY___GET_SYMBOL; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == SugarExpression.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION___CAN_EXPAND: + return RBAViewPackage.HIDE_LOWER_PRIORITY___CAN_EXPAND; + case RBACorePackage.SUGAR_EXPRESSION___GET_EXPANDED: + return RBAViewPackage.HIDE_LOWER_PRIORITY___GET_EXPANDED; + default: + return -1; + } + } + if (baseClass == SugarExpressionBase.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION_BASE___CAN_EXPAND: + return RBAViewPackage.HIDE_LOWER_PRIORITY___CAN_EXPAND; + default: + return -1; + } + } + return super.eDerivedOperationID(baseOperationID, baseClass); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.HIDE_LOWER_PRIORITY___GET_SYMBOL: + return getSymbol(); + case RBAViewPackage.HIDE_LOWER_PRIORITY___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + case RBAViewPackage.HIDE_LOWER_PRIORITY___GET_EXPRESSION_TEXT: + return getExpressionText(); + case RBAViewPackage.HIDE_LOWER_PRIORITY___CAN_EXPAND: + return canExpand(); + case RBAViewPackage.HIDE_LOWER_PRIORITY___GET_EXPANDED: + return getExpanded(); + } + return super.eInvoke(operationID, arguments); + } + +} // HideLowerPriorityImpl diff --git a/rba.model.view/src/rba/view/impl/HorizontalLayoutImpl.java b/rba.model.view/src/rba/view/impl/HorizontalLayoutImpl.java new file mode 100644 index 0000000..4c01c55 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/HorizontalLayoutImpl.java @@ -0,0 +1,33 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.ecore.EClass; + +import rba.view.HorizontalLayout; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Horizontal Layout'. + * + * @generated + */ +public class HorizontalLayoutImpl extends AlignedLayoutImpl implements HorizontalLayout { + /** + * + * @generated + */ + protected HorizontalLayoutImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.HORIZONTAL_LAYOUT; + } + +} // HorizontalLayoutImpl diff --git a/rba.model.view/src/rba/view/impl/IsChangedDisplayImpl.java b/rba.model.view/src/rba/view/impl/IsChangedDisplayImpl.java new file mode 100644 index 0000000..783999a --- /dev/null +++ b/rba.model.view/src/rba/view/impl/IsChangedDisplayImpl.java @@ -0,0 +1,186 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import rba.core.AndOperator; +import rba.core.Expression; +import rba.core.ExpressionType; +import rba.core.NotOperator; +import rba.core.ObjectCompare; +import rba.core.ObjectReference; +import rba.core.Operator; +import rba.core.OrOperator; +import rba.core.PreviousModifier; +import rba.core.RBACoreFactory; +import rba.core.RBACorePackage; +import rba.core.SugarExpression; +import rba.core.SugarExpressionBase; +import rba.view.DisplayingContent; +import rba.view.IsChangedDisplay; +import rba.view.IsDisplayed; +import rba.view.RBAViewFactory; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Is Changed Display'. + * + * @generated + */ +public class IsChangedDisplayImpl extends AreaOperatorImpl implements IsChangedDisplay { + /** + * + * @generated + */ + protected IsChangedDisplayImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.IS_CHANGED_DISPLAY; + } + + /** + * + * @generated + */ + public String getSymbol() { + return ".isChangedDisplay()"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.BOOLEAN; + } + + /** + * + * @generated + */ + public boolean canExpand() { + return true; + } + + /** + * + * @generated NOT + */ + public Expression getExpanded() { + OrOperator or = RBACoreFactory.eINSTANCE.createOrOperator(); + NotOperator not = RBACoreFactory.eINSTANCE.createNotOperator(); + ObjectCompare equal = RBACoreFactory.eINSTANCE.createObjectCompare(); + DisplayingContent dispContent = RBAViewFactory.eINSTANCE.createDisplayingContent(); + PreviousModifier pre = RBACoreFactory.eINSTANCE.createPreviousModifier(); + OrOperator leftOr = RBACoreFactory.eINSTANCE.createOrOperator(); + NotOperator leftnot = RBACoreFactory.eINSTANCE.createNotOperator(); + AndOperator and = RBACoreFactory.eINSTANCE.createAndOperator(); + IsDisplayed isDisplayed = RBAViewFactory.eINSTANCE.createIsDisplayed(); + + pre.setObjReference((ObjectReference) org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + dispContent.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(pre)); + equal.getOperand().add(dispContent); + dispContent = RBAViewFactory.eINSTANCE.createDisplayingContent(); + dispContent.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + equal.getOperand().add(dispContent); + not.getOperand().add(equal); + + isDisplayed.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(pre)); + and.getOperand().add(isDisplayed); + isDisplayed = RBAViewFactory.eINSTANCE.createIsDisplayed(); + isDisplayed.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + leftnot.getOperand().add(isDisplayed); + and.getOperand().add(leftnot); + leftOr.getOperand().add(and); + + leftnot = RBACoreFactory.eINSTANCE.createNotOperator(); + isDisplayed = RBAViewFactory.eINSTANCE.createIsDisplayed(); + isDisplayed.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(pre)); + leftnot.getOperand().add(isDisplayed); + isDisplayed = RBAViewFactory.eINSTANCE.createIsDisplayed(); + isDisplayed.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + and = RBACoreFactory.eINSTANCE.createAndOperator(); + and.getOperand().add(leftnot); + and.getOperand().add(isDisplayed); + leftOr.getOperand().add(and); + + or.getOperand().add(not); + or.getOperand().add(leftOr); + + return or; + } + + /** + * + * @generated + */ + @Override + public int eDerivedOperationID(int baseOperationID, Class baseClass) { + if (baseClass == Expression.class) { + switch (baseOperationID) { + case RBACorePackage.EXPRESSION___GET_UNDERLYING_TYPE: + return RBAViewPackage.IS_CHANGED_DISPLAY___GET_UNDERLYING_TYPE; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == Operator.class) { + switch (baseOperationID) { + case RBACorePackage.OPERATOR___GET_SYMBOL: + return RBAViewPackage.IS_CHANGED_DISPLAY___GET_SYMBOL; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == SugarExpression.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION___CAN_EXPAND: + return RBAViewPackage.IS_CHANGED_DISPLAY___CAN_EXPAND; + case RBACorePackage.SUGAR_EXPRESSION___GET_EXPANDED: + return RBAViewPackage.IS_CHANGED_DISPLAY___GET_EXPANDED; + default: + return -1; + } + } + if (baseClass == SugarExpressionBase.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION_BASE___CAN_EXPAND: + return RBAViewPackage.IS_CHANGED_DISPLAY___CAN_EXPAND; + default: + return -1; + } + } + return super.eDerivedOperationID(baseOperationID, baseClass); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.IS_CHANGED_DISPLAY___GET_SYMBOL: + return getSymbol(); + case RBAViewPackage.IS_CHANGED_DISPLAY___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + case RBAViewPackage.IS_CHANGED_DISPLAY___CAN_EXPAND: + return canExpand(); + case RBAViewPackage.IS_CHANGED_DISPLAY___GET_EXPANDED: + return getExpanded(); + } + return super.eInvoke(operationID, arguments); + } + +} // IsChangedDisplayImpl diff --git a/rba.model.view/src/rba/view/impl/IsDisplayedImpl.java b/rba.model.view/src/rba/view/impl/IsDisplayedImpl.java new file mode 100644 index 0000000..075cf1c --- /dev/null +++ b/rba.model.view/src/rba/view/impl/IsDisplayedImpl.java @@ -0,0 +1,70 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.view.IsDisplayed; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Is Displayed'. + * + * @generated + */ +public class IsDisplayedImpl extends AreaOperatorImpl implements IsDisplayed { + /** + * + * @generated + */ + protected IsDisplayedImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.IS_DISPLAYED; + } + + /** + * + * @generated + */ + public String getSymbol() { + return ".isDisplayed()"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.BOOLEAN; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.IS_DISPLAYED___GET_SYMBOL: + return getSymbol(); + case RBAViewPackage.IS_DISPLAYED___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + } + return super.eInvoke(operationID, arguments); + } + +} // IsDisplayedImpl diff --git a/rba.model.view/src/rba/view/impl/IsDisplayedOnImpl.java b/rba.model.view/src/rba/view/impl/IsDisplayedOnImpl.java new file mode 100644 index 0000000..e8e8ec0 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/IsDisplayedOnImpl.java @@ -0,0 +1,191 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import rba.core.AndOperator; +import rba.core.ContentOperator; +import rba.core.Expression; +import rba.core.ExpressionType; +import rba.core.ObjectCompare; +import rba.core.Operator; +import rba.core.RBACoreFactory; +import rba.core.RBACorePackage; +import rba.core.SugarExpression; +import rba.core.SugarExpressionBase; +import rba.view.DisplayingContent; +import rba.view.IsDisplayed; +import rba.view.IsDisplayedOn; +import rba.view.RBAViewFactory; +import rba.view.RBAViewPackage; +import rba.view.ViewContentOperator; + +/** + * An implementation of the model object 'Is Displayed On'. + * + * @generated + */ +public class IsDisplayedOnImpl extends ViewContentOperatorImpl implements IsDisplayedOn { + /** + * + * @generated + */ + protected IsDisplayedOnImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.IS_DISPLAYED_ON; + } + + /** + * + * @generated + */ + public String getSymbol() { + return ".isDisplayedOn"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.BOOLEAN; + } + + /** + * + * @generated + */ + public String getExpressionText() { + StringBuilder expressionText = new StringBuilder(); + EList expressions = getOperand(); + expressionText.append(expressions.size() > 0 ? expressions.get(0).getExpressionText() : "[Invalid_Expression]"); + expressionText.append(getSymbol()); + expressionText.append("("); + expressionText.append(expressions.size() > 1 ? expressions.get(1).getExpressionText() : "[Invalid_Expression]"); + expressionText.append(")"); + return expressionText.toString(); + } + + /** + * + * @generated + */ + public boolean canExpand() { + return true; + } + + /** + * + * @generated NOT + */ + public Expression getExpanded() { + AndOperator AND = RBACoreFactory.eINSTANCE.createAndOperator(); + IsDisplayed isDisplayed = RBAViewFactory.eINSTANCE.createIsDisplayed(); + ObjectCompare equal = RBACoreFactory.eINSTANCE.createObjectCompare(); + DisplayingContent dispContent = RBAViewFactory.eINSTANCE.createDisplayingContent(); + + isDisplayed.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(1))); + dispContent.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(1))); + equal.getOperand().add(dispContent); + equal.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + + AND.getOperand().add(isDisplayed); + AND.getOperand().add(equal); + return AND; + } + + /** + * + * @generated + */ + @Override + public int eDerivedOperationID(int baseOperationID, Class baseClass) { + if (baseClass == Expression.class) { + switch (baseOperationID) { + case RBACorePackage.EXPRESSION___GET_UNDERLYING_TYPE: + return RBAViewPackage.IS_DISPLAYED_ON___GET_UNDERLYING_TYPE; + case RBACorePackage.EXPRESSION___GET_EXPRESSION_TEXT: + return RBAViewPackage.IS_DISPLAYED_ON___GET_EXPRESSION_TEXT; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == Operator.class) { + switch (baseOperationID) { + case RBACorePackage.OPERATOR___GET_SYMBOL: + return RBAViewPackage.IS_DISPLAYED_ON___GET_SYMBOL; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == ContentOperator.class) { + switch (baseOperationID) { + case RBACorePackage.CONTENT_OPERATOR___GET_EXPRESSION_TEXT: + return RBAViewPackage.IS_DISPLAYED_ON___GET_EXPRESSION_TEXT; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == ViewContentOperator.class) { + switch (baseOperationID) { + case RBAViewPackage.VIEW_CONTENT_OPERATOR___GET_UNDERLYING_TYPE: + return RBAViewPackage.IS_DISPLAYED_ON___GET_UNDERLYING_TYPE; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == SugarExpression.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION___CAN_EXPAND: + return RBAViewPackage.IS_DISPLAYED_ON___CAN_EXPAND; + case RBACorePackage.SUGAR_EXPRESSION___GET_EXPANDED: + return RBAViewPackage.IS_DISPLAYED_ON___GET_EXPANDED; + default: + return -1; + } + } + if (baseClass == SugarExpressionBase.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION_BASE___CAN_EXPAND: + return RBAViewPackage.IS_DISPLAYED_ON___CAN_EXPAND; + default: + return -1; + } + } + return super.eDerivedOperationID(baseOperationID, baseClass); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.IS_DISPLAYED_ON___GET_SYMBOL: + return getSymbol(); + case RBAViewPackage.IS_DISPLAYED_ON___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + case RBAViewPackage.IS_DISPLAYED_ON___GET_EXPRESSION_TEXT: + return getExpressionText(); + case RBAViewPackage.IS_DISPLAYED_ON___CAN_EXPAND: + return canExpand(); + case RBAViewPackage.IS_DISPLAYED_ON___GET_EXPANDED: + return getExpanded(); + } + return super.eInvoke(operationID, arguments); + } + +} // IsDisplayedOnImpl diff --git a/rba.model.view/src/rba/view/impl/IsHiddenImpl.java b/rba.model.view/src/rba/view/impl/IsHiddenImpl.java new file mode 100644 index 0000000..293c6bf --- /dev/null +++ b/rba.model.view/src/rba/view/impl/IsHiddenImpl.java @@ -0,0 +1,70 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.view.IsHidden; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Is Hidden'. + * + * @generated + */ +public class IsHiddenImpl extends AreaOperatorImpl implements IsHidden { + /** + * + * @generated + */ + protected IsHiddenImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.IS_HIDDEN; + } + + /** + * + * @generated + */ + public String getSymbol() { + return ".isHidden()"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.BOOLEAN; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.IS_HIDDEN___GET_SYMBOL: + return getSymbol(); + case RBAViewPackage.IS_HIDDEN___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + } + return super.eInvoke(operationID, arguments); + } + +} // IsHiddenImpl diff --git a/rba.model.view/src/rba/view/impl/IsTranslatedViewToImpl.java b/rba.model.view/src/rba/view/impl/IsTranslatedViewToImpl.java new file mode 100644 index 0000000..66b5db0 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/IsTranslatedViewToImpl.java @@ -0,0 +1,205 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import rba.core.AllocatableOperator; +import rba.core.AndOperator; +import rba.core.Expression; +import rba.core.ExpressionType; +import rba.core.NotOperator; +import rba.core.ObjectCompare; +import rba.core.ObjectReference; +import rba.core.Operator; +import rba.core.OrOperator; +import rba.core.PreviousModifier; +import rba.core.RBACoreFactory; +import rba.core.RBACorePackage; +import rba.core.SugarExpression; +import rba.core.SugarExpressionBase; +import rba.view.DisplayingContent; +import rba.view.IsDisplayed; +import rba.view.IsTranslatedViewTo; +import rba.view.RBAViewFactory; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Is Translated View To'. + * + * @generated + */ +public class IsTranslatedViewToImpl extends AreaOperatorImpl implements IsTranslatedViewTo { + /** + * + * @generated + */ + protected IsTranslatedViewToImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.IS_TRANSLATED_VIEW_TO; + } + + /** + * + * @generated + */ + public String getSymbol() { + return ".isTranslatedViewTo"; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.BOOLEAN; + } + + /** + * + * @generated + */ + public String getExpressionText() { + StringBuilder expressionText = new StringBuilder(); + EList expressions = getOperand(); + expressionText.append(expressions.size() > 0 ? expressions.get(0).getExpressionText() : "[Invalid_Expression]"); + expressionText.append(getSymbol()); + expressionText.append("("); + expressionText.append(expressions.size() > 1 ? expressions.get(1).getExpressionText() : "[Invalid_Expression]"); + expressionText.append(")"); + return expressionText.toString(); + } + + /** + * + * @generated + */ + public boolean canExpand() { + return true; + } + + /** + * + * @generated NOT + */ + public Expression getExpanded() { + AndOperator AND = RBACoreFactory.eINSTANCE.createAndOperator(); + IsDisplayed isDisplayed = RBAViewFactory.eINSTANCE.createIsDisplayed(); + ObjectCompare equal = RBACoreFactory.eINSTANCE.createObjectCompare(); + DisplayingContent dispContent = RBAViewFactory.eINSTANCE.createDisplayingContent(); + PreviousModifier pre = RBACoreFactory.eINSTANCE.createPreviousModifier(); + OrOperator or = RBACoreFactory.eINSTANCE.createOrOperator(); + NotOperator not = RBACoreFactory.eINSTANCE.createNotOperator(); + + isDisplayed.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + AND.getOperand().add(isDisplayed); + + dispContent.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + equal.getOperand().add(dispContent); + equal.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(1))); + AND.getOperand().add(equal); + + pre.setObjReference((ObjectReference) org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(0))); + dispContent = RBAViewFactory.eINSTANCE.createDisplayingContent(); + dispContent.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(pre)); + equal = RBACoreFactory.eINSTANCE.createObjectCompare(); + equal.getOperand().add(dispContent); + equal.getOperand().add(org.eclipse.emf.ecore.util.EcoreUtil.copy(getOperand().get(1))); + not.getOperand().add(equal); + or.getOperand().add(not); + + isDisplayed = RBAViewFactory.eINSTANCE.createIsDisplayed(); + isDisplayed.getOperand().add(pre); + not = RBACoreFactory.eINSTANCE.createNotOperator(); + not.getOperand().add(isDisplayed); + or.getOperand().add(not); + AND.getOperand().add(or); + return AND; + } + + /** + * + * @generated + */ + @Override + public int eDerivedOperationID(int baseOperationID, Class baseClass) { + if (baseClass == Expression.class) { + switch (baseOperationID) { + case RBACorePackage.EXPRESSION___GET_UNDERLYING_TYPE: + return RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_UNDERLYING_TYPE; + case RBACorePackage.EXPRESSION___GET_EXPRESSION_TEXT: + return RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_EXPRESSION_TEXT; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == Operator.class) { + switch (baseOperationID) { + case RBACorePackage.OPERATOR___GET_SYMBOL: + return RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_SYMBOL; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == AllocatableOperator.class) { + switch (baseOperationID) { + case RBACorePackage.ALLOCATABLE_OPERATOR___GET_EXPRESSION_TEXT: + return RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_EXPRESSION_TEXT; + default: + return super.eDerivedOperationID(baseOperationID, baseClass); + } + } + if (baseClass == SugarExpression.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION___CAN_EXPAND: + return RBAViewPackage.IS_TRANSLATED_VIEW_TO___CAN_EXPAND; + case RBACorePackage.SUGAR_EXPRESSION___GET_EXPANDED: + return RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_EXPANDED; + default: + return -1; + } + } + if (baseClass == SugarExpressionBase.class) { + switch (baseOperationID) { + case RBACorePackage.SUGAR_EXPRESSION_BASE___CAN_EXPAND: + return RBAViewPackage.IS_TRANSLATED_VIEW_TO___CAN_EXPAND; + default: + return -1; + } + } + return super.eDerivedOperationID(baseOperationID, baseClass); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_SYMBOL: + return getSymbol(); + case RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + case RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_EXPRESSION_TEXT: + return getExpressionText(); + case RBAViewPackage.IS_TRANSLATED_VIEW_TO___CAN_EXPAND: + return canExpand(); + case RBAViewPackage.IS_TRANSLATED_VIEW_TO___GET_EXPANDED: + return getExpanded(); + } + return super.eInvoke(operationID, arguments); + } + +} // IsTranslatedViewToImpl diff --git a/rba.model.view/src/rba/view/impl/IsVisibleImpl.java b/rba.model.view/src/rba/view/impl/IsVisibleImpl.java new file mode 100644 index 0000000..9eee90e --- /dev/null +++ b/rba.model.view/src/rba/view/impl/IsVisibleImpl.java @@ -0,0 +1,58 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.view.IsVisible; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Is Visible'. + * + * @generated + */ +public class IsVisibleImpl extends ViewContentOperatorImpl implements IsVisible { + /** + * + * @generated + */ + protected IsVisibleImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.IS_VISIBLE; + } + + /** + * + * @generated + */ + public String getSymbol() { + return ".isVisible()"; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.IS_VISIBLE___GET_SYMBOL: + return getSymbol(); + } + return super.eInvoke(operationID, arguments); + } + +} // IsVisibleImpl diff --git a/rba.model.view/src/rba/view/impl/LayoutManagerImpl.java b/rba.model.view/src/rba/view/impl/LayoutManagerImpl.java new file mode 100644 index 0000000..6859406 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/LayoutManagerImpl.java @@ -0,0 +1,63 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import rba.view.Area; +import rba.view.LayoutManager; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Layout Manager'. + * + * @generated + */ +public abstract class LayoutManagerImpl extends MinimalEObjectImpl.Container implements LayoutManager { + /** + * + * @generated + */ + protected LayoutManagerImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.LAYOUT_MANAGER; + } + + /** + * + * @generated + */ + public EList collectLeafArea() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.LAYOUT_MANAGER___COLLECT_LEAF_AREA: + return collectLeafArea(); + } + return super.eInvoke(operationID, arguments); + } + +} // LayoutManagerImpl diff --git a/rba.model.view/src/rba/view/impl/OffsetImpl.java b/rba.model.view/src/rba/view/impl/OffsetImpl.java new file mode 100644 index 0000000..5a5575d --- /dev/null +++ b/rba.model.view/src/rba/view/impl/OffsetImpl.java @@ -0,0 +1,355 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import rba.core.impl.PackagableElementImpl; + +import rba.view.Offset; +import rba.view.RBAViewPackage; +import rba.view.SizeReference; + +/** + * An implementation of the model object 'Offset'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.OffsetImpl#getX X}
  • + *
  • {@link rba.view.impl.OffsetImpl#getY Y}
  • + *
  • {@link rba.view.impl.OffsetImpl#getSize Size}
  • + *
+ * + * @generated + */ +public class OffsetImpl extends PackagableElementImpl implements Offset { + /** + * The default value of the '{@link #getX() X}' attribute. + * + * @see #getX() + * @generated + * @ordered + */ + protected static final int X_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getX() X}' attribute. + * + * @see #getX() + * @generated + * @ordered + */ + protected int x = X_EDEFAULT; + + /** + * This is true if the X attribute has been set. + * + * @generated + * @ordered + */ + protected boolean xESet; + + /** + * The default value of the '{@link #getY() Y}' attribute. + * + * @see #getY() + * @generated + * @ordered + */ + protected static final int Y_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getY() Y}' attribute. + * + * @see #getY() + * @generated + * @ordered + */ + protected int y = Y_EDEFAULT; + + /** + * This is true if the Y attribute has been set. + * + * @generated + * @ordered + */ + protected boolean yESet; + + /** + * The cached value of the '{@link #getSize() Size}' containment reference. + * + * @see #getSize() + * @generated + * @ordered + */ + protected SizeReference size; + + /** + * + * @generated + */ + protected OffsetImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.OFFSET; + } + + /** + * + * @generated + */ + public int getX() { + return x; + } + + /** + * + * @generated + */ + public void setX(int newX) { + int oldX = x; + x = newX; + boolean oldXESet = xESet; + xESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.OFFSET__X, oldX, x, !oldXESet)); + } + + /** + * + * @generated + */ + public void unsetX() { + int oldX = x; + boolean oldXESet = xESet; + x = X_EDEFAULT; + xESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, RBAViewPackage.OFFSET__X, oldX, X_EDEFAULT, + oldXESet)); + } + + /** + * + * @generated + */ + public boolean isSetX() { + return xESet; + } + + /** + * + * @generated + */ + public int getY() { + return y; + } + + /** + * + * @generated + */ + public void setY(int newY) { + int oldY = y; + y = newY; + boolean oldYESet = yESet; + yESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.OFFSET__Y, oldY, y, !oldYESet)); + } + + /** + * + * @generated + */ + public void unsetY() { + int oldY = y; + boolean oldYESet = yESet; + y = Y_EDEFAULT; + yESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, RBAViewPackage.OFFSET__Y, oldY, Y_EDEFAULT, + oldYESet)); + } + + /** + * + * @generated + */ + public boolean isSetY() { + return yESet; + } + + /** + * + * @generated + */ + public SizeReference getSize() { + return size; + } + + /** + * + * @generated + */ + public NotificationChain basicSetSize(SizeReference newSize, NotificationChain msgs) { + SizeReference oldSize = size; + size = newSize; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RBAViewPackage.OFFSET__SIZE, + oldSize, newSize); + if (msgs == null) + msgs = notification; + else + msgs.add(notification); + } + return msgs; + } + + /** + * + * @generated + */ + public void setSize(SizeReference newSize) { + if (newSize != size) { + NotificationChain msgs = null; + if (size != null) + msgs = ((InternalEObject) size).eInverseRemove(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.OFFSET__SIZE, null, msgs); + if (newSize != null) + msgs = ((InternalEObject) newSize).eInverseAdd(this, + EOPPOSITE_FEATURE_BASE - RBAViewPackage.OFFSET__SIZE, null, msgs); + msgs = basicSetSize(newSize, msgs); + if (msgs != null) + msgs.dispatch(); + } else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.OFFSET__SIZE, newSize, newSize)); + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RBAViewPackage.OFFSET__SIZE: + return basicSetSize(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.OFFSET__X: + return getX(); + case RBAViewPackage.OFFSET__Y: + return getY(); + case RBAViewPackage.OFFSET__SIZE: + return getSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.OFFSET__X: + setX((Integer) newValue); + return; + case RBAViewPackage.OFFSET__Y: + setY((Integer) newValue); + return; + case RBAViewPackage.OFFSET__SIZE: + setSize((SizeReference) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.OFFSET__X: + unsetX(); + return; + case RBAViewPackage.OFFSET__Y: + unsetY(); + return; + case RBAViewPackage.OFFSET__SIZE: + setSize((SizeReference) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.OFFSET__X: + return isSetX(); + case RBAViewPackage.OFFSET__Y: + return isSetY(); + case RBAViewPackage.OFFSET__SIZE: + return size != null; + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + if (xESet) + result.append(x); + else + result.append(""); + result.append(", y: "); + if (yESet) + result.append(y); + else + result.append(""); + result.append(')'); + return result.toString(); + } + +} // OffsetImpl diff --git a/rba.model.view/src/rba/view/impl/PositionContainerImpl.java b/rba.model.view/src/rba/view/impl/PositionContainerImpl.java new file mode 100644 index 0000000..0b313c9 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/PositionContainerImpl.java @@ -0,0 +1,443 @@ +/** + */ +package rba.view.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +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.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import rba.view.Area; +import rba.view.BasePoint; +import rba.view.Offset; +import rba.view.PositionContainer; +import rba.view.RBAViewPackage; + +/** + * An implementation of the model object 'Position Container'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.PositionContainerImpl#getX X}
  • + *
  • {@link rba.view.impl.PositionContainerImpl#getY Y}
  • + *
  • {@link rba.view.impl.PositionContainerImpl#getBasePoint Base Point}
  • + *
  • {@link rba.view.impl.PositionContainerImpl#getArea Area}
  • + *
  • {@link rba.view.impl.PositionContainerImpl#getOffset Offset}
  • + *
+ * + * @generated + */ +public class PositionContainerImpl extends MinimalEObjectImpl.Container implements PositionContainer { + /** + * The default value of the '{@link #getX() X}' attribute. + * + * @see #getX() + * @generated + * @ordered + */ + protected static final int X_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getX() X}' attribute. + * + * @see #getX() + * @generated + * @ordered + */ + protected int x = X_EDEFAULT; + + /** + * This is true if the X attribute has been set. + * + * @generated + * @ordered + */ + protected boolean xESet; + + /** + * The default value of the '{@link #getY() Y}' attribute. + * + * @see #getY() + * @generated + * @ordered + */ + protected static final int Y_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getY() Y}' attribute. + * + * @see #getY() + * @generated + * @ordered + */ + protected int y = Y_EDEFAULT; + + /** + * This is true if the Y attribute has been set. + * + * @generated + * @ordered + */ + protected boolean yESet; + + /** + * The default value of the '{@link #getBasePoint() Base Point}' attribute. + * + * @see #getBasePoint() + * @generated + * @ordered + */ + protected static final BasePoint BASE_POINT_EDEFAULT = BasePoint.LEFT_TOP; + + /** + * The cached value of the '{@link #getBasePoint() Base Point}' attribute. + * + * @see #getBasePoint() + * @generated + * @ordered + */ + protected BasePoint basePoint = BASE_POINT_EDEFAULT; + + /** + * The cached value of the '{@link #getArea() Area}' reference. + * + * @see #getArea() + * @generated + * @ordered + */ + protected Area area; + + /** + * The cached value of the '{@link #getOffset() Offset}' containment reference list. + * + * @see #getOffset() + * @generated + * @ordered + */ + protected EList offset; + + /** + * + * @generated + */ + protected PositionContainerImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.POSITION_CONTAINER; + } + + /** + * + * @generated + */ + public int getX() { + return x; + } + + /** + * + * @generated + */ + public void setX(int newX) { + int oldX = x; + x = newX; + boolean oldXESet = xESet; + xESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.POSITION_CONTAINER__X, oldX, x, + !oldXESet)); + } + + /** + * + * @generated + */ + public void unsetX() { + int oldX = x; + boolean oldXESet = xESet; + x = X_EDEFAULT; + xESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, RBAViewPackage.POSITION_CONTAINER__X, oldX, + X_EDEFAULT, oldXESet)); + } + + /** + * + * @generated + */ + public boolean isSetX() { + return xESet; + } + + /** + * + * @generated + */ + public int getY() { + return y; + } + + /** + * + * @generated + */ + public void setY(int newY) { + int oldY = y; + y = newY; + boolean oldYESet = yESet; + yESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.POSITION_CONTAINER__Y, oldY, y, + !oldYESet)); + } + + /** + * + * @generated + */ + public void unsetY() { + int oldY = y; + boolean oldYESet = yESet; + y = Y_EDEFAULT; + yESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, RBAViewPackage.POSITION_CONTAINER__Y, oldY, + Y_EDEFAULT, oldYESet)); + } + + /** + * + * @generated + */ + public boolean isSetY() { + return yESet; + } + + /** + * + * @generated + */ + public BasePoint getBasePoint() { + return basePoint; + } + + /** + * + * @generated + */ + public void setBasePoint(BasePoint newBasePoint) { + BasePoint oldBasePoint = basePoint; + basePoint = newBasePoint == null ? BASE_POINT_EDEFAULT : newBasePoint; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.POSITION_CONTAINER__BASE_POINT, + oldBasePoint, basePoint)); + } + + /** + * + * @generated + */ + public Area getArea() { + if (area != null && area.eIsProxy()) { + InternalEObject oldArea = (InternalEObject) area; + area = (Area) eResolveProxy(oldArea); + if (area != oldArea) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RBAViewPackage.POSITION_CONTAINER__AREA, + oldArea, area)); + } + } + return area; + } + + /** + * + * @generated + */ + public Area basicGetArea() { + return area; + } + + /** + * + * @generated + */ + public void setArea(Area newArea) { + Area oldArea = area; + area = newArea; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.POSITION_CONTAINER__AREA, oldArea, + area)); + } + + /** + * + * @generated + */ + public EList getOffset() { + if (offset == null) { + offset = new EObjectContainmentEList(Offset.class, this, RBAViewPackage.POSITION_CONTAINER__OFFSET); + } + return offset; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RBAViewPackage.POSITION_CONTAINER__OFFSET: + return ((InternalEList) getOffset()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.POSITION_CONTAINER__X: + return getX(); + case RBAViewPackage.POSITION_CONTAINER__Y: + return getY(); + case RBAViewPackage.POSITION_CONTAINER__BASE_POINT: + return getBasePoint(); + case RBAViewPackage.POSITION_CONTAINER__AREA: + if (resolve) + return getArea(); + return basicGetArea(); + case RBAViewPackage.POSITION_CONTAINER__OFFSET: + return getOffset(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.POSITION_CONTAINER__X: + setX((Integer) newValue); + return; + case RBAViewPackage.POSITION_CONTAINER__Y: + setY((Integer) newValue); + return; + case RBAViewPackage.POSITION_CONTAINER__BASE_POINT: + setBasePoint((BasePoint) newValue); + return; + case RBAViewPackage.POSITION_CONTAINER__AREA: + setArea((Area) newValue); + return; + case RBAViewPackage.POSITION_CONTAINER__OFFSET: + getOffset().clear(); + getOffset().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.POSITION_CONTAINER__X: + unsetX(); + return; + case RBAViewPackage.POSITION_CONTAINER__Y: + unsetY(); + return; + case RBAViewPackage.POSITION_CONTAINER__BASE_POINT: + setBasePoint(BASE_POINT_EDEFAULT); + return; + case RBAViewPackage.POSITION_CONTAINER__AREA: + setArea((Area) null); + return; + case RBAViewPackage.POSITION_CONTAINER__OFFSET: + getOffset().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.POSITION_CONTAINER__X: + return isSetX(); + case RBAViewPackage.POSITION_CONTAINER__Y: + return isSetY(); + case RBAViewPackage.POSITION_CONTAINER__BASE_POINT: + return basePoint != BASE_POINT_EDEFAULT; + case RBAViewPackage.POSITION_CONTAINER__AREA: + return area != null; + case RBAViewPackage.POSITION_CONTAINER__OFFSET: + return offset != null && !offset.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (x: "); + if (xESet) + result.append(x); + else + result.append(""); + result.append(", y: "); + if (yESet) + result.append(y); + else + result.append(""); + result.append(", basePoint: "); + result.append(basePoint); + result.append(')'); + return result.toString(); + } + +} // PositionContainerImpl diff --git a/rba.model.view/src/rba/view/impl/RBAViewFactoryImpl.java b/rba.model.view/src/rba/view/impl/RBAViewFactoryImpl.java new file mode 100644 index 0000000..ee41c60 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/RBAViewFactoryImpl.java @@ -0,0 +1,390 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +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 rba.view.*; + +/** + * An implementation of the model Factory. + * @generated + */ +public class RBAViewFactoryImpl extends EFactoryImpl implements RBAViewFactory { + /** + * Creates the default factory implementation. + * + * @generated + */ + public static RBAViewFactory init() { + try { + RBAViewFactory theRBAViewFactory = (RBAViewFactory) EPackage.Registry.INSTANCE + .getEFactory(RBAViewPackage.eNS_URI); + if (theRBAViewFactory != null) { + return theRBAViewFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new RBAViewFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public RBAViewFactoryImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case RBAViewPackage.VIEW_CONTENT: + return createViewContent(); + case RBAViewPackage.VIEW_CONTENT_SET: + return createViewContentSet(); + case RBAViewPackage.VIEW_CONTENT_STATE: + return createViewContentState(); + case RBAViewPackage.VERTICAL_LAYOUT: + return createVerticalLayout(); + case RBAViewPackage.HORIZONTAL_LAYOUT: + return createHorizontalLayout(); + case RBAViewPackage.FIXED_POSITION_LAYOUT: + return createFixedPositionLayout(); + case RBAViewPackage.POSITION_CONTAINER: + return createPositionContainer(); + case RBAViewPackage.DISPLAY: + return createDisplay(); + case RBAViewPackage.COMPOSITE_AREA: + return createCompositeArea(); + case RBAViewPackage.AREA: + return createArea(); + case RBAViewPackage.AREA_SET: + return createAreaSet(); + case RBAViewPackage.SIZE: + return createSize(); + case RBAViewPackage.SIZE_REFERENCE: + return createSizeReference(); + case RBAViewPackage.OFFSET: + return createOffset(); + case RBAViewPackage.IS_DISPLAYED: + return createIsDisplayed(); + case RBAViewPackage.DISPLAYING_CONTENT: + return createDisplayingContent(); + case RBAViewPackage.IS_HIDDEN: + return createIsHidden(); + case RBAViewPackage.IS_VISIBLE: + return createIsVisible(); + case RBAViewPackage.ALL_INSTANCE_OF_AREA: + return createAllInstanceOfArea(); + case RBAViewPackage.ALL_INSTANCE_OF_VIEW_CONTENT: + return createAllInstanceOfViewContent(); + case RBAViewPackage.IS_DISPLAYED_ON: + return createIsDisplayedOn(); + case RBAViewPackage.IS_CHANGED_DISPLAY: + return createIsChangedDisplay(); + case RBAViewPackage.IS_TRANSLATED_VIEW_TO: + return createIsTranslatedViewTo(); + case RBAViewPackage.HIDE_LOWER_PRIORITY: + return createHideLowerPriority(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case RBAViewPackage.BASE_POINT: + return createBasePointFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case RBAViewPackage.BASE_POINT: + return convertBasePointToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * @generated + */ + public ViewContent createViewContent() { + ViewContentImpl viewContent = new ViewContentImpl(); + return viewContent; + } + + /** + * + * @generated + */ + public ViewContentSet createViewContentSet() { + ViewContentSetImpl viewContentSet = new ViewContentSetImpl(); + return viewContentSet; + } + + /** + * + * @generated + */ + public ViewContentState createViewContentState() { + ViewContentStateImpl viewContentState = new ViewContentStateImpl(); + return viewContentState; + } + + /** + * + * @generated + */ + public VerticalLayout createVerticalLayout() { + VerticalLayoutImpl verticalLayout = new VerticalLayoutImpl(); + return verticalLayout; + } + + /** + * + * @generated + */ + public HorizontalLayout createHorizontalLayout() { + HorizontalLayoutImpl horizontalLayout = new HorizontalLayoutImpl(); + return horizontalLayout; + } + + /** + * + * @generated + */ + public FixedPositionLayout createFixedPositionLayout() { + FixedPositionLayoutImpl fixedPositionLayout = new FixedPositionLayoutImpl(); + return fixedPositionLayout; + } + + /** + * + * @generated + */ + public PositionContainer createPositionContainer() { + PositionContainerImpl positionContainer = new PositionContainerImpl(); + return positionContainer; + } + + /** + * + * @generated + */ + public Display createDisplay() { + DisplayImpl display = new DisplayImpl(); + return display; + } + + /** + * + * @generated + */ + public CompositeArea createCompositeArea() { + CompositeAreaImpl compositeArea = new CompositeAreaImpl(); + return compositeArea; + } + + /** + * + * @generated + */ + public Area createArea() { + AreaImpl area = new AreaImpl(); + return area; + } + + /** + * + * @generated + */ + public AreaSet createAreaSet() { + AreaSetImpl areaSet = new AreaSetImpl(); + return areaSet; + } + + /** + * + * @generated + */ + public Size createSize() { + SizeImpl size = new SizeImpl(); + return size; + } + + /** + * + * @generated + */ + public SizeReference createSizeReference() { + SizeReferenceImpl sizeReference = new SizeReferenceImpl(); + return sizeReference; + } + + /** + * + * @generated + */ + public Offset createOffset() { + OffsetImpl offset = new OffsetImpl(); + return offset; + } + + /** + * + * @generated + */ + public IsDisplayed createIsDisplayed() { + IsDisplayedImpl isDisplayed = new IsDisplayedImpl(); + return isDisplayed; + } + + /** + * + * @generated + */ + public DisplayingContent createDisplayingContent() { + DisplayingContentImpl displayingContent = new DisplayingContentImpl(); + return displayingContent; + } + + /** + * + * @generated + */ + public IsHidden createIsHidden() { + IsHiddenImpl isHidden = new IsHiddenImpl(); + return isHidden; + } + + /** + * + * @generated + */ + public IsVisible createIsVisible() { + IsVisibleImpl isVisible = new IsVisibleImpl(); + return isVisible; + } + + /** + * + * @generated + */ + public AllInstanceOfArea createAllInstanceOfArea() { + AllInstanceOfAreaImpl allInstanceOfArea = new AllInstanceOfAreaImpl(); + return allInstanceOfArea; + } + + /** + * + * @generated + */ + public AllInstanceOfViewContent createAllInstanceOfViewContent() { + AllInstanceOfViewContentImpl allInstanceOfViewContent = new AllInstanceOfViewContentImpl(); + return allInstanceOfViewContent; + } + + /** + * + * @generated + */ + public IsDisplayedOn createIsDisplayedOn() { + IsDisplayedOnImpl isDisplayedOn = new IsDisplayedOnImpl(); + return isDisplayedOn; + } + + /** + * + * @generated + */ + public IsChangedDisplay createIsChangedDisplay() { + IsChangedDisplayImpl isChangedDisplay = new IsChangedDisplayImpl(); + return isChangedDisplay; + } + + /** + * + * @generated + */ + public IsTranslatedViewTo createIsTranslatedViewTo() { + IsTranslatedViewToImpl isTranslatedViewTo = new IsTranslatedViewToImpl(); + return isTranslatedViewTo; + } + + /** + * + * @generated + */ + public HideLowerPriority createHideLowerPriority() { + HideLowerPriorityImpl hideLowerPriority = new HideLowerPriorityImpl(); + return hideLowerPriority; + } + + /** + * + * @generated + */ + public BasePoint createBasePointFromString(EDataType eDataType, String initialValue) { + BasePoint result = BasePoint.get(initialValue); + if (result == null) + throw new IllegalArgumentException( + "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * @generated + */ + public String convertBasePointToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * @generated + */ + public RBAViewPackage getRBAViewPackage() { + return (RBAViewPackage) getEPackage(); + } + + /** + * + * @deprecated + * @generated + */ + @Deprecated + public static RBAViewPackage getPackage() { + return RBAViewPackage.eINSTANCE; + } + +} // RBAViewFactoryImpl diff --git a/rba.model.view/src/rba/view/impl/RBAViewPackageImpl.java b/rba.model.view/src/rba/view/impl/RBAViewPackageImpl.java new file mode 100644 index 0000000..3552e11 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/RBAViewPackageImpl.java @@ -0,0 +1,1430 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import rba.core.RBACorePackage; +import rba.view.AlignedLayout; +import rba.view.AllInstanceOfArea; +import rba.view.AllInstanceOfViewContent; +import rba.view.Area; +import rba.view.AreaOperator; +import rba.view.AreaSet; +import rba.view.BasePoint; +import rba.view.CompositeArea; +import rba.view.Display; +import rba.view.DisplayingContent; +import rba.view.FixedPositionLayout; +import rba.view.HideLowerPriority; +import rba.view.HorizontalLayout; +import rba.view.IsChangedDisplay; +import rba.view.IsDisplayed; +import rba.view.IsDisplayedOn; +import rba.view.IsHidden; +import rba.view.IsTranslatedViewTo; +import rba.view.IsVisible; +import rba.view.LayoutManager; +import rba.view.Offset; +import rba.view.PositionContainer; +import rba.view.RBAViewFactory; +import rba.view.RBAViewPackage; +import rba.view.Size; +import rba.view.SizeIdentifier; +import rba.view.SizeReference; +import rba.view.VerticalLayout; +import rba.view.ViewContent; +import rba.view.ViewContentOperator; +import rba.view.ViewContentSet; +import rba.view.ViewContentState; + +/** + * An implementation of the model Package. + * @generated + */ +public class RBAViewPackageImpl extends EPackageImpl implements RBAViewPackage { + /** + * + * @generated + */ + private EClass viewContentEClass = null; + + /** + * + * @generated + */ + private EClass viewContentSetEClass = null; + + /** + * + * @generated + */ + private EClass viewContentStateEClass = null; + + /** + * + * @generated + */ + private EClass layoutManagerEClass = null; + + /** + * + * @generated + */ + private EClass alignedLayoutEClass = null; + + /** + * + * @generated + */ + private EClass verticalLayoutEClass = null; + + /** + * + * @generated + */ + private EClass horizontalLayoutEClass = null; + + /** + * + * @generated + */ + private EClass fixedPositionLayoutEClass = null; + + /** + * + * @generated + */ + private EClass positionContainerEClass = null; + + /** + * + * @generated + */ + private EClass displayEClass = null; + + /** + * + * @generated + */ + private EClass compositeAreaEClass = null; + + /** + * + * @generated + */ + private EClass areaEClass = null; + + /** + * + * @generated + */ + private EClass areaSetEClass = null; + + /** + * + * @generated + */ + private EClass sizeIdentifierEClass = null; + + /** + * + * @generated + */ + private EClass sizeEClass = null; + + /** + * + * @generated + */ + private EClass sizeReferenceEClass = null; + + /** + * + * @generated + */ + private EClass offsetEClass = null; + + /** + * + * @generated + */ + private EClass areaOperatorEClass = null; + + /** + * + * @generated + */ + private EClass isDisplayedEClass = null; + + /** + * + * @generated + */ + private EClass displayingContentEClass = null; + + /** + * + * @generated + */ + private EClass isHiddenEClass = null; + + /** + * + * @generated + */ + private EClass viewContentOperatorEClass = null; + + /** + * + * @generated + */ + private EClass isVisibleEClass = null; + + /** + * + * @generated + */ + private EClass allInstanceOfAreaEClass = null; + + /** + * + * @generated + */ + private EClass allInstanceOfViewContentEClass = null; + + /** + * + * @generated + */ + private EClass isDisplayedOnEClass = null; + + /** + * + * @generated + */ + private EClass isChangedDisplayEClass = null; + + /** + * + * @generated + */ + private EClass isTranslatedViewToEClass = null; + + /** + * + * @generated + */ + private EClass hideLowerPriorityEClass = null; + + /** + * + * @generated + */ + private EEnum basePointEEnum = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see rba.view.RBAViewPackage#eNS_URI + * @see #init() + * @generated + */ + private RBAViewPackageImpl() { + super(eNS_URI, RBAViewFactory.eINSTANCE); + } + + /** + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link RBAViewPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static RBAViewPackage init() { + if (isInited) + return (RBAViewPackage) EPackage.Registry.INSTANCE.getEPackage(RBAViewPackage.eNS_URI); + + // Obtain or create and register package + RBAViewPackageImpl theRBAViewPackage = (RBAViewPackageImpl) (EPackage.Registry.INSTANCE + .get(eNS_URI) instanceof RBAViewPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) + : new RBAViewPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + RBACorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theRBAViewPackage.createPackageContents(); + + // Initialize created meta-data + theRBAViewPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theRBAViewPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(RBAViewPackage.eNS_URI, theRBAViewPackage); + return theRBAViewPackage; + } + + /** + * + * @generated + */ + public EClass getViewContent() { + return viewContentEClass; + } + + /** + * + * @generated + */ + public EReference getViewContent_Size() { + return (EReference) viewContentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EOperation getViewContent__GetExpressionType() { + return viewContentEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getViewContentSet() { + return viewContentSetEClass; + } + + /** + * + * @generated + */ + public EOperation getViewContentSet__GetExpressionType() { + return viewContentSetEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getViewContentState() { + return viewContentStateEClass; + } + + /** + * + * @generated + */ + public EOperation getViewContentState__GetExpressionType() { + return viewContentStateEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getLayoutManager() { + return layoutManagerEClass; + } + + /** + * + * @generated + */ + public EOperation getLayoutManager__CollectLeafArea() { + return layoutManagerEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getAlignedLayout() { + return alignedLayoutEClass; + } + + /** + * + * @generated + */ + public EReference getAlignedLayout_Subarea() { + return (EReference) alignedLayoutEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getAlignedLayout_BasePoint() { + return (EAttribute) alignedLayoutEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EOperation getAlignedLayout__CollectLeafArea() { + return alignedLayoutEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getVerticalLayout() { + return verticalLayoutEClass; + } + + /** + * + * @generated + */ + public EClass getHorizontalLayout() { + return horizontalLayoutEClass; + } + + /** + * + * @generated + */ + public EClass getFixedPositionLayout() { + return fixedPositionLayoutEClass; + } + + /** + * + * @generated + */ + public EReference getFixedPositionLayout_SubAreaPosition() { + return (EReference) fixedPositionLayoutEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EOperation getFixedPositionLayout__CollectLeafArea() { + return fixedPositionLayoutEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getPositionContainer() { + return positionContainerEClass; + } + + /** + * + * @generated + */ + public EAttribute getPositionContainer_X() { + return (EAttribute) positionContainerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getPositionContainer_Y() { + return (EAttribute) positionContainerEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getPositionContainer_BasePoint() { + return (EAttribute) positionContainerEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EReference getPositionContainer_Area() { + return (EReference) positionContainerEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EReference getPositionContainer_Offset() { + return (EReference) positionContainerEClass.getEStructuralFeatures().get(4); + } + + /** + * + * @generated + */ + public EClass getDisplay() { + return displayEClass; + } + + /** + * + * @generated + */ + public EReference getDisplay_Root() { + return (EReference) displayEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getDisplay_Size() { + return (EReference) displayEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getCompositeArea() { + return compositeAreaEClass; + } + + /** + * + * @generated + */ + public EReference getCompositeArea_Layout() { + return (EReference) compositeAreaEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EOperation getCompositeArea__CollectLeafArea() { + return compositeAreaEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getCompositeArea__GetExpressionType() { + return compositeAreaEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EClass getArea() { + return areaEClass; + } + + /** + * + * @generated + */ + public EReference getArea_Zorder() { + return (EReference) areaEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getArea_Size() { + return (EReference) areaEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EOperation getArea__GetExpressionType() { + return areaEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getAreaSet() { + return areaSetEClass; + } + + /** + * + * @generated + */ + public EOperation getAreaSet__GetExpressionType() { + return areaSetEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getSizeIdentifier() { + return sizeIdentifierEClass; + } + + /** + * + * @generated + */ + public EClass getSize() { + return sizeEClass; + } + + /** + * + * @generated + */ + public EAttribute getSize_Width() { + return (EAttribute) sizeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getSize_Height() { + return (EAttribute) sizeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getSizeReference() { + return sizeReferenceEClass; + } + + /** + * + * @generated + */ + public EReference getSizeReference_Size() { + return (EReference) sizeReferenceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getOffset() { + return offsetEClass; + } + + /** + * + * @generated + */ + public EAttribute getOffset_X() { + return (EAttribute) offsetEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getOffset_Y() { + return (EAttribute) offsetEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EReference getOffset_Size() { + return (EReference) offsetEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getAreaOperator() { + return areaOperatorEClass; + } + + /** + * + * @generated + */ + public EClass getIsDisplayed() { + return isDisplayedEClass; + } + + /** + * + * @generated + */ + public EOperation getIsDisplayed__GetSymbol() { + return isDisplayedEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getIsDisplayed__GetUnderlyingType() { + return isDisplayedEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EClass getDisplayingContent() { + return displayingContentEClass; + } + + /** + * + * @generated + */ + public EOperation getDisplayingContent__GetSymbol() { + return displayingContentEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getDisplayingContent__GetUnderlyingType() { + return displayingContentEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EClass getIsHidden() { + return isHiddenEClass; + } + + /** + * + * @generated + */ + public EOperation getIsHidden__GetSymbol() { + return isHiddenEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getIsHidden__GetUnderlyingType() { + return isHiddenEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EClass getViewContentOperator() { + return viewContentOperatorEClass; + } + + /** + * + * @generated + */ + public EOperation getViewContentOperator__GetUnderlyingType() { + return viewContentOperatorEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getIsVisible() { + return isVisibleEClass; + } + + /** + * + * @generated + */ + public EOperation getIsVisible__GetSymbol() { + return isVisibleEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EClass getAllInstanceOfArea() { + return allInstanceOfAreaEClass; + } + + /** + * + * @generated + */ + public EOperation getAllInstanceOfArea__GetExpressionText() { + return allInstanceOfAreaEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getAllInstanceOfArea__GetUnderlyingType() { + return allInstanceOfAreaEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EClass getAllInstanceOfViewContent() { + return allInstanceOfViewContentEClass; + } + + /** + * + * @generated + */ + public EOperation getAllInstanceOfViewContent__GetExpressionText() { + return allInstanceOfViewContentEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getAllInstanceOfViewContent__GetUnderlyingType() { + return allInstanceOfViewContentEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EClass getIsDisplayedOn() { + return isDisplayedOnEClass; + } + + /** + * + * @generated + */ + public EOperation getIsDisplayedOn__GetSymbol() { + return isDisplayedOnEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getIsDisplayedOn__GetUnderlyingType() { + return isDisplayedOnEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EOperation getIsDisplayedOn__GetExpressionText() { + return isDisplayedOnEClass.getEOperations().get(2); + } + + /** + * + * @generated + */ + public EClass getIsChangedDisplay() { + return isChangedDisplayEClass; + } + + /** + * + * @generated + */ + public EOperation getIsChangedDisplay__GetSymbol() { + return isChangedDisplayEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getIsChangedDisplay__GetUnderlyingType() { + return isChangedDisplayEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EClass getIsTranslatedViewTo() { + return isTranslatedViewToEClass; + } + + /** + * + * @generated + */ + public EOperation getIsTranslatedViewTo__GetSymbol() { + return isTranslatedViewToEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getIsTranslatedViewTo__GetUnderlyingType() { + return isTranslatedViewToEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EOperation getIsTranslatedViewTo__GetExpressionText() { + return isTranslatedViewToEClass.getEOperations().get(2); + } + + /** + * + * @generated + */ + public EClass getHideLowerPriority() { + return hideLowerPriorityEClass; + } + + /** + * + * @generated + */ + public EOperation getHideLowerPriority__GetSymbol() { + return hideLowerPriorityEClass.getEOperations().get(0); + } + + /** + * + * @generated + */ + public EOperation getHideLowerPriority__GetUnderlyingType() { + return hideLowerPriorityEClass.getEOperations().get(1); + } + + /** + * + * @generated + */ + public EOperation getHideLowerPriority__GetExpressionText() { + return hideLowerPriorityEClass.getEOperations().get(2); + } + + /** + * + * @generated + */ + public EEnum getBasePoint() { + return basePointEEnum; + } + + /** + * + * @generated + */ + public RBAViewFactory getRBAViewFactory() { + return (RBAViewFactory) getEFactoryInstance(); + } + + /** + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * @generated + */ + public void createPackageContents() { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + viewContentEClass = createEClass(VIEW_CONTENT); + createEReference(viewContentEClass, VIEW_CONTENT__SIZE); + createEOperation(viewContentEClass, VIEW_CONTENT___GET_EXPRESSION_TYPE); + + viewContentSetEClass = createEClass(VIEW_CONTENT_SET); + createEOperation(viewContentSetEClass, VIEW_CONTENT_SET___GET_EXPRESSION_TYPE); + + viewContentStateEClass = createEClass(VIEW_CONTENT_STATE); + createEOperation(viewContentStateEClass, VIEW_CONTENT_STATE___GET_EXPRESSION_TYPE); + + layoutManagerEClass = createEClass(LAYOUT_MANAGER); + createEOperation(layoutManagerEClass, LAYOUT_MANAGER___COLLECT_LEAF_AREA); + + alignedLayoutEClass = createEClass(ALIGNED_LAYOUT); + createEReference(alignedLayoutEClass, ALIGNED_LAYOUT__SUBAREA); + createEAttribute(alignedLayoutEClass, ALIGNED_LAYOUT__BASE_POINT); + createEOperation(alignedLayoutEClass, ALIGNED_LAYOUT___COLLECT_LEAF_AREA); + + verticalLayoutEClass = createEClass(VERTICAL_LAYOUT); + + horizontalLayoutEClass = createEClass(HORIZONTAL_LAYOUT); + + fixedPositionLayoutEClass = createEClass(FIXED_POSITION_LAYOUT); + createEReference(fixedPositionLayoutEClass, FIXED_POSITION_LAYOUT__SUB_AREA_POSITION); + createEOperation(fixedPositionLayoutEClass, FIXED_POSITION_LAYOUT___COLLECT_LEAF_AREA); + + positionContainerEClass = createEClass(POSITION_CONTAINER); + createEAttribute(positionContainerEClass, POSITION_CONTAINER__X); + createEAttribute(positionContainerEClass, POSITION_CONTAINER__Y); + createEAttribute(positionContainerEClass, POSITION_CONTAINER__BASE_POINT); + createEReference(positionContainerEClass, POSITION_CONTAINER__AREA); + createEReference(positionContainerEClass, POSITION_CONTAINER__OFFSET); + + displayEClass = createEClass(DISPLAY); + createEReference(displayEClass, DISPLAY__ROOT); + createEReference(displayEClass, DISPLAY__SIZE); + + compositeAreaEClass = createEClass(COMPOSITE_AREA); + createEReference(compositeAreaEClass, COMPOSITE_AREA__LAYOUT); + createEOperation(compositeAreaEClass, COMPOSITE_AREA___COLLECT_LEAF_AREA); + createEOperation(compositeAreaEClass, COMPOSITE_AREA___GET_EXPRESSION_TYPE); + + areaEClass = createEClass(AREA); + createEReference(areaEClass, AREA__ZORDER); + createEReference(areaEClass, AREA__SIZE); + createEOperation(areaEClass, AREA___GET_EXPRESSION_TYPE); + + areaSetEClass = createEClass(AREA_SET); + createEOperation(areaSetEClass, AREA_SET___GET_EXPRESSION_TYPE); + + sizeIdentifierEClass = createEClass(SIZE_IDENTIFIER); + + sizeEClass = createEClass(SIZE); + createEAttribute(sizeEClass, SIZE__WIDTH); + createEAttribute(sizeEClass, SIZE__HEIGHT); + + sizeReferenceEClass = createEClass(SIZE_REFERENCE); + createEReference(sizeReferenceEClass, SIZE_REFERENCE__SIZE); + + offsetEClass = createEClass(OFFSET); + createEAttribute(offsetEClass, OFFSET__X); + createEAttribute(offsetEClass, OFFSET__Y); + createEReference(offsetEClass, OFFSET__SIZE); + + areaOperatorEClass = createEClass(AREA_OPERATOR); + + isDisplayedEClass = createEClass(IS_DISPLAYED); + createEOperation(isDisplayedEClass, IS_DISPLAYED___GET_SYMBOL); + createEOperation(isDisplayedEClass, IS_DISPLAYED___GET_UNDERLYING_TYPE); + + displayingContentEClass = createEClass(DISPLAYING_CONTENT); + createEOperation(displayingContentEClass, DISPLAYING_CONTENT___GET_SYMBOL); + createEOperation(displayingContentEClass, DISPLAYING_CONTENT___GET_UNDERLYING_TYPE); + + isHiddenEClass = createEClass(IS_HIDDEN); + createEOperation(isHiddenEClass, IS_HIDDEN___GET_SYMBOL); + createEOperation(isHiddenEClass, IS_HIDDEN___GET_UNDERLYING_TYPE); + + viewContentOperatorEClass = createEClass(VIEW_CONTENT_OPERATOR); + createEOperation(viewContentOperatorEClass, VIEW_CONTENT_OPERATOR___GET_UNDERLYING_TYPE); + + isVisibleEClass = createEClass(IS_VISIBLE); + createEOperation(isVisibleEClass, IS_VISIBLE___GET_SYMBOL); + + allInstanceOfAreaEClass = createEClass(ALL_INSTANCE_OF_AREA); + createEOperation(allInstanceOfAreaEClass, ALL_INSTANCE_OF_AREA___GET_EXPRESSION_TEXT); + createEOperation(allInstanceOfAreaEClass, ALL_INSTANCE_OF_AREA___GET_UNDERLYING_TYPE); + + allInstanceOfViewContentEClass = createEClass(ALL_INSTANCE_OF_VIEW_CONTENT); + createEOperation(allInstanceOfViewContentEClass, ALL_INSTANCE_OF_VIEW_CONTENT___GET_EXPRESSION_TEXT); + createEOperation(allInstanceOfViewContentEClass, ALL_INSTANCE_OF_VIEW_CONTENT___GET_UNDERLYING_TYPE); + + isDisplayedOnEClass = createEClass(IS_DISPLAYED_ON); + createEOperation(isDisplayedOnEClass, IS_DISPLAYED_ON___GET_SYMBOL); + createEOperation(isDisplayedOnEClass, IS_DISPLAYED_ON___GET_UNDERLYING_TYPE); + createEOperation(isDisplayedOnEClass, IS_DISPLAYED_ON___GET_EXPRESSION_TEXT); + + isChangedDisplayEClass = createEClass(IS_CHANGED_DISPLAY); + createEOperation(isChangedDisplayEClass, IS_CHANGED_DISPLAY___GET_SYMBOL); + createEOperation(isChangedDisplayEClass, IS_CHANGED_DISPLAY___GET_UNDERLYING_TYPE); + + isTranslatedViewToEClass = createEClass(IS_TRANSLATED_VIEW_TO); + createEOperation(isTranslatedViewToEClass, IS_TRANSLATED_VIEW_TO___GET_SYMBOL); + createEOperation(isTranslatedViewToEClass, IS_TRANSLATED_VIEW_TO___GET_UNDERLYING_TYPE); + createEOperation(isTranslatedViewToEClass, IS_TRANSLATED_VIEW_TO___GET_EXPRESSION_TEXT); + + hideLowerPriorityEClass = createEClass(HIDE_LOWER_PRIORITY); + createEOperation(hideLowerPriorityEClass, HIDE_LOWER_PRIORITY___GET_SYMBOL); + createEOperation(hideLowerPriorityEClass, HIDE_LOWER_PRIORITY___GET_UNDERLYING_TYPE); + createEOperation(hideLowerPriorityEClass, HIDE_LOWER_PRIORITY___GET_EXPRESSION_TEXT); + + // Create enums + basePointEEnum = createEEnum(BASE_POINT); + } + + /** + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + RBACorePackage theRBACorePackage = (RBACorePackage) EPackage.Registry.INSTANCE + .getEPackage(RBACorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + viewContentEClass.getESuperTypes().add(theRBACorePackage.getContent()); + viewContentSetEClass.getESuperTypes().add(theRBACorePackage.getContentSet()); + viewContentStateEClass.getESuperTypes().add(theRBACorePackage.getContentState()); + alignedLayoutEClass.getESuperTypes().add(this.getLayoutManager()); + verticalLayoutEClass.getESuperTypes().add(this.getAlignedLayout()); + horizontalLayoutEClass.getESuperTypes().add(this.getAlignedLayout()); + fixedPositionLayoutEClass.getESuperTypes().add(this.getLayoutManager()); + displayEClass.getESuperTypes().add(theRBACorePackage.getPackagableElement()); + compositeAreaEClass.getESuperTypes().add(theRBACorePackage.getPackagableElement()); + areaEClass.getESuperTypes().add(theRBACorePackage.getAllocatable()); + areaSetEClass.getESuperTypes().add(theRBACorePackage.getAllocatableSet()); + sizeEClass.getESuperTypes().add(theRBACorePackage.getPackagableElement()); + sizeEClass.getESuperTypes().add(this.getSizeIdentifier()); + sizeReferenceEClass.getESuperTypes().add(this.getSizeIdentifier()); + offsetEClass.getESuperTypes().add(theRBACorePackage.getPackagableElement()); + areaOperatorEClass.getESuperTypes().add(theRBACorePackage.getAllocatableOperator()); + isDisplayedEClass.getESuperTypes().add(this.getAreaOperator()); + displayingContentEClass.getESuperTypes().add(this.getAreaOperator()); + isHiddenEClass.getESuperTypes().add(this.getAreaOperator()); + viewContentOperatorEClass.getESuperTypes().add(theRBACorePackage.getContentOperator()); + isVisibleEClass.getESuperTypes().add(this.getViewContentOperator()); + allInstanceOfAreaEClass.getESuperTypes().add(theRBACorePackage.getSetExpression()); + allInstanceOfViewContentEClass.getESuperTypes().add(theRBACorePackage.getSetExpression()); + isDisplayedOnEClass.getESuperTypes().add(this.getViewContentOperator()); + isDisplayedOnEClass.getESuperTypes().add(theRBACorePackage.getSugarExpressionBase()); + isChangedDisplayEClass.getESuperTypes().add(this.getAreaOperator()); + isChangedDisplayEClass.getESuperTypes().add(theRBACorePackage.getSugarExpressionBase()); + isTranslatedViewToEClass.getESuperTypes().add(this.getAreaOperator()); + isTranslatedViewToEClass.getESuperTypes().add(theRBACorePackage.getSugarExpressionBase()); + hideLowerPriorityEClass.getESuperTypes().add(theRBACorePackage.getOperator()); + hideLowerPriorityEClass.getESuperTypes().add(theRBACorePackage.getSugarExpressionBase()); + + // Initialize classes, features, and operations; add parameters + initEClass(viewContentEClass, ViewContent.class, "ViewContent", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getViewContent_Size(), this.getSizeIdentifier(), null, "size", null, 0, -1, ViewContent.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEOperation(getViewContent__GetExpressionType(), theRBACorePackage.getExpressionType(), "getExpressionType", + 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(viewContentSetEClass, ViewContentSet.class, "ViewContentSet", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getViewContentSet__GetExpressionType(), theRBACorePackage.getExpressionType(), + "getExpressionType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(viewContentStateEClass, ViewContentState.class, "ViewContentState", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getViewContentState__GetExpressionType(), theRBACorePackage.getExpressionType(), + "getExpressionType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(layoutManagerEClass, LayoutManager.class, "LayoutManager", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getLayoutManager__CollectLeafArea(), this.getArea(), "collectLeafArea", 0, -1, IS_UNIQUE, + !IS_ORDERED); + + initEClass(alignedLayoutEClass, AlignedLayout.class, "AlignedLayout", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getAlignedLayout_Subarea(), this.getArea(), null, "subarea", null, 0, -1, AlignedLayout.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAlignedLayout_BasePoint(), this.getBasePoint(), "basePoint", null, 0, 1, AlignedLayout.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEOperation(getAlignedLayout__CollectLeafArea(), this.getArea(), "collectLeafArea", 0, -1, IS_UNIQUE, + !IS_ORDERED); + + initEClass(verticalLayoutEClass, VerticalLayout.class, "VerticalLayout", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(horizontalLayoutEClass, HorizontalLayout.class, "HorizontalLayout", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(fixedPositionLayoutEClass, FixedPositionLayout.class, "FixedPositionLayout", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getFixedPositionLayout_SubAreaPosition(), this.getPositionContainer(), null, "subAreaPosition", + null, 0, -1, FixedPositionLayout.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEOperation(getFixedPositionLayout__CollectLeafArea(), this.getArea(), "collectLeafArea", 0, -1, IS_UNIQUE, + !IS_ORDERED); + + initEClass(positionContainerEClass, PositionContainer.class, "PositionContainer", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPositionContainer_X(), ecorePackage.getEInt(), "x", null, 1, 1, PositionContainer.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPositionContainer_Y(), ecorePackage.getEInt(), "y", null, 1, 1, PositionContainer.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPositionContainer_BasePoint(), this.getBasePoint(), "basePoint", null, 0, 1, + PositionContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getPositionContainer_Area(), this.getArea(), null, "area", null, 1, 1, PositionContainer.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPositionContainer_Offset(), this.getOffset(), null, "offset", null, 0, -1, + PositionContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(displayEClass, Display.class, "Display", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDisplay_Root(), this.getCompositeArea(), null, "root", null, 0, 1, Display.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDisplay_Size(), this.getSizeIdentifier(), null, "size", null, 1, 1, Display.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(compositeAreaEClass, CompositeArea.class, "CompositeArea", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getCompositeArea_Layout(), this.getLayoutManager(), null, "layout", null, 0, 1, + CompositeArea.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEOperation(getCompositeArea__CollectLeafArea(), this.getArea(), "collectLeafArea", 0, -1, IS_UNIQUE, + !IS_ORDERED); + + initEOperation(getCompositeArea__GetExpressionType(), theRBACorePackage.getExpressionType(), + "getExpressionType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(areaEClass, Area.class, "Area", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getArea_Zorder(), theRBACorePackage.getExpression(), null, "zorder", null, 0, 1, Area.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getArea_Size(), this.getSizeIdentifier(), null, "size", null, 0, -1, Area.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEOperation(getArea__GetExpressionType(), theRBACorePackage.getExpressionType(), "getExpressionType", 0, 1, + IS_UNIQUE, IS_ORDERED); + + initEClass(areaSetEClass, AreaSet.class, "AreaSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getAreaSet__GetExpressionType(), theRBACorePackage.getExpressionType(), "getExpressionType", 0, + 1, IS_UNIQUE, IS_ORDERED); + + initEClass(sizeIdentifierEClass, SizeIdentifier.class, "SizeIdentifier", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(sizeEClass, Size.class, "Size", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSize_Width(), ecorePackage.getEInt(), "width", null, 1, 1, Size.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSize_Height(), ecorePackage.getEInt(), "height", null, 1, 1, Size.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(sizeReferenceEClass, SizeReference.class, "SizeReference", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getSizeReference_Size(), this.getSize(), null, "size", null, 0, 1, SizeReference.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(offsetEClass, Offset.class, "Offset", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOffset_X(), ecorePackage.getEInt(), "x", null, 1, 1, Offset.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOffset_Y(), ecorePackage.getEInt(), "y", null, 1, 1, Offset.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOffset_Size(), this.getSizeReference(), null, "size", null, 1, 1, Offset.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(areaOperatorEClass, AreaOperator.class, "AreaOperator", IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(isDisplayedEClass, IsDisplayed.class, "IsDisplayed", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getIsDisplayed__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, + IS_ORDERED); + + initEOperation(getIsDisplayed__GetUnderlyingType(), theRBACorePackage.getExpressionType(), "getUnderlyingType", + 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(displayingContentEClass, DisplayingContent.class, "DisplayingContent", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getDisplayingContent__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, + IS_ORDERED); + + initEOperation(getDisplayingContent__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(isHiddenEClass, IsHidden.class, "IsHidden", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getIsHidden__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEOperation(getIsHidden__GetUnderlyingType(), theRBACorePackage.getExpressionType(), "getUnderlyingType", 0, + 1, IS_UNIQUE, IS_ORDERED); + + initEClass(viewContentOperatorEClass, ViewContentOperator.class, "ViewContentOperator", IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getViewContentOperator__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(isVisibleEClass, IsVisible.class, "IsVisible", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getIsVisible__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(allInstanceOfAreaEClass, AllInstanceOfArea.class, "AllInstanceOfArea", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getAllInstanceOfArea__GetExpressionText(), ecorePackage.getEString(), "getExpressionText", 0, 1, + IS_UNIQUE, IS_ORDERED); + + initEOperation(getAllInstanceOfArea__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(allInstanceOfViewContentEClass, AllInstanceOfViewContent.class, "AllInstanceOfViewContent", + !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getAllInstanceOfViewContent__GetExpressionText(), ecorePackage.getEString(), "getExpressionText", + 0, 1, IS_UNIQUE, IS_ORDERED); + + initEOperation(getAllInstanceOfViewContent__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(isDisplayedOnEClass, IsDisplayedOn.class, "IsDisplayedOn", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getIsDisplayedOn__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, + IS_ORDERED); + + initEOperation(getIsDisplayedOn__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEOperation(getIsDisplayedOn__GetExpressionText(), ecorePackage.getEString(), "getExpressionText", 0, 1, + IS_UNIQUE, IS_ORDERED); + + initEClass(isChangedDisplayEClass, IsChangedDisplay.class, "IsChangedDisplay", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getIsChangedDisplay__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, + IS_ORDERED); + + initEOperation(getIsChangedDisplay__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(isTranslatedViewToEClass, IsTranslatedViewTo.class, "IsTranslatedViewTo", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getIsTranslatedViewTo__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, + IS_ORDERED); + + initEOperation(getIsTranslatedViewTo__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEOperation(getIsTranslatedViewTo__GetExpressionText(), ecorePackage.getEString(), "getExpressionText", 0, 1, + IS_UNIQUE, IS_ORDERED); + + initEClass(hideLowerPriorityEClass, HideLowerPriority.class, "HideLowerPriority", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEOperation(getHideLowerPriority__GetSymbol(), ecorePackage.getEString(), "getSymbol", 0, 1, IS_UNIQUE, + IS_ORDERED); + + initEOperation(getHideLowerPriority__GetUnderlyingType(), theRBACorePackage.getExpressionType(), + "getUnderlyingType", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEOperation(getHideLowerPriority__GetExpressionText(), ecorePackage.getEString(), "getExpressionText", 0, 1, + IS_UNIQUE, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(basePointEEnum, BasePoint.class, "BasePoint"); + addEEnumLiteral(basePointEEnum, BasePoint.LEFT_TOP); + addEEnumLiteral(basePointEEnum, BasePoint.LEFT_MIDDLE); + addEEnumLiteral(basePointEEnum, BasePoint.LEFT_BOTTOM); + addEEnumLiteral(basePointEEnum, BasePoint.RIGHT_TOP); + addEEnumLiteral(basePointEEnum, BasePoint.RIGHT_MIDDLE); + addEEnumLiteral(basePointEEnum, BasePoint.RIGHT_BOTTOM); + addEEnumLiteral(basePointEEnum, BasePoint.CENTER_TOP); + addEEnumLiteral(basePointEEnum, BasePoint.CENTER_MIDDLE); + addEEnumLiteral(basePointEEnum, BasePoint.CENTER_BOTTOM); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/OCL/Import + createImportAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/OCL/Import. + * + * @generated + */ + protected void createImportAnnotations() { + String source = "http://www.eclipse.org/OCL/Import"; + addAnnotation(this, source, new String[] { "RbaCore", "../../rba.model.core/model/rbacore.ecore#/", "ecore", + "http://www.eclipse.org/emf/2002/Ecore" }); + } + +} // RBAViewPackageImpl diff --git a/rba.model.view/src/rba/view/impl/SizeIdentifierImpl.java b/rba.model.view/src/rba/view/impl/SizeIdentifierImpl.java new file mode 100644 index 0000000..8ca07ca --- /dev/null +++ b/rba.model.view/src/rba/view/impl/SizeIdentifierImpl.java @@ -0,0 +1,35 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import rba.view.RBAViewPackage; +import rba.view.SizeIdentifier; + +/** + * An implementation of the model object 'Size Identifier'. + * + * @generated + */ +public abstract class SizeIdentifierImpl extends MinimalEObjectImpl.Container implements SizeIdentifier { + /** + * + * @generated + */ + protected SizeIdentifierImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.SIZE_IDENTIFIER; + } + +} // SizeIdentifierImpl diff --git a/rba.model.view/src/rba/view/impl/SizeImpl.java b/rba.model.view/src/rba/view/impl/SizeImpl.java new file mode 100644 index 0000000..f320ca4 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/SizeImpl.java @@ -0,0 +1,274 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import rba.core.impl.PackagableElementImpl; + +import rba.view.RBAViewPackage; +import rba.view.Size; + +/** + * An implementation of the model object 'Size'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.SizeImpl#getWidth Width}
  • + *
  • {@link rba.view.impl.SizeImpl#getHeight Height}
  • + *
+ * + * @generated + */ +public class SizeImpl extends PackagableElementImpl implements Size { + /** + * The default value of the '{@link #getWidth() Width}' attribute. + * + * @see #getWidth() + * @generated + * @ordered + */ + protected static final int WIDTH_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getWidth() Width}' attribute. + * + * @see #getWidth() + * @generated + * @ordered + */ + protected int width = WIDTH_EDEFAULT; + + /** + * This is true if the Width attribute has been set. + * + * @generated + * @ordered + */ + protected boolean widthESet; + + /** + * The default value of the '{@link #getHeight() Height}' attribute. + * + * @see #getHeight() + * @generated + * @ordered + */ + protected static final int HEIGHT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getHeight() Height}' attribute. + * + * @see #getHeight() + * @generated + * @ordered + */ + protected int height = HEIGHT_EDEFAULT; + + /** + * This is true if the Height attribute has been set. + * + * @generated + * @ordered + */ + protected boolean heightESet; + + /** + * + * @generated + */ + protected SizeImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.SIZE; + } + + /** + * + * @generated + */ + public int getWidth() { + return width; + } + + /** + * + * @generated + */ + public void setWidth(int newWidth) { + int oldWidth = width; + width = newWidth; + boolean oldWidthESet = widthESet; + widthESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.SIZE__WIDTH, oldWidth, width, + !oldWidthESet)); + } + + /** + * + * @generated + */ + public void unsetWidth() { + int oldWidth = width; + boolean oldWidthESet = widthESet; + width = WIDTH_EDEFAULT; + widthESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, RBAViewPackage.SIZE__WIDTH, oldWidth, + WIDTH_EDEFAULT, oldWidthESet)); + } + + /** + * + * @generated + */ + public boolean isSetWidth() { + return widthESet; + } + + /** + * + * @generated + */ + public int getHeight() { + return height; + } + + /** + * + * @generated + */ + public void setHeight(int newHeight) { + int oldHeight = height; + height = newHeight; + boolean oldHeightESet = heightESet; + heightESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.SIZE__HEIGHT, oldHeight, height, + !oldHeightESet)); + } + + /** + * + * @generated + */ + public void unsetHeight() { + int oldHeight = height; + boolean oldHeightESet = heightESet; + height = HEIGHT_EDEFAULT; + heightESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, RBAViewPackage.SIZE__HEIGHT, oldHeight, + HEIGHT_EDEFAULT, oldHeightESet)); + } + + /** + * + * @generated + */ + public boolean isSetHeight() { + return heightESet; + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.SIZE__WIDTH: + return getWidth(); + case RBAViewPackage.SIZE__HEIGHT: + return getHeight(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.SIZE__WIDTH: + setWidth((Integer) newValue); + return; + case RBAViewPackage.SIZE__HEIGHT: + setHeight((Integer) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.SIZE__WIDTH: + unsetWidth(); + return; + case RBAViewPackage.SIZE__HEIGHT: + unsetHeight(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.SIZE__WIDTH: + return isSetWidth(); + case RBAViewPackage.SIZE__HEIGHT: + return isSetHeight(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (width: "); + if (widthESet) + result.append(width); + else + result.append(""); + result.append(", height: "); + if (heightESet) + result.append(height); + else + result.append(""); + result.append(')'); + return result.toString(); + } + +} // SizeImpl diff --git a/rba.model.view/src/rba/view/impl/SizeReferenceImpl.java b/rba.model.view/src/rba/view/impl/SizeReferenceImpl.java new file mode 100644 index 0000000..3903a1d --- /dev/null +++ b/rba.model.view/src/rba/view/impl/SizeReferenceImpl.java @@ -0,0 +1,146 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import rba.view.RBAViewPackage; +import rba.view.Size; +import rba.view.SizeReference; + +/** + * An implementation of the model object 'Size Reference'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.SizeReferenceImpl#getSize Size}
  • + *
+ * + * @generated + */ +public class SizeReferenceImpl extends SizeIdentifierImpl implements SizeReference { + /** + * The cached value of the '{@link #getSize() Size}' reference. + * + * @see #getSize() + * @generated + * @ordered + */ + protected Size size; + + /** + * + * @generated + */ + protected SizeReferenceImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.SIZE_REFERENCE; + } + + /** + * + * @generated + */ + public Size getSize() { + if (size != null && size.eIsProxy()) { + InternalEObject oldSize = (InternalEObject) size; + size = (Size) eResolveProxy(oldSize); + if (size != oldSize) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, RBAViewPackage.SIZE_REFERENCE__SIZE, + oldSize, size)); + } + } + return size; + } + + /** + * + * @generated + */ + public Size basicGetSize() { + return size; + } + + /** + * + * @generated + */ + public void setSize(Size newSize) { + Size oldSize = size; + size = newSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, RBAViewPackage.SIZE_REFERENCE__SIZE, oldSize, size)); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.SIZE_REFERENCE__SIZE: + if (resolve) + return getSize(); + return basicGetSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.SIZE_REFERENCE__SIZE: + setSize((Size) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.SIZE_REFERENCE__SIZE: + setSize((Size) null); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.SIZE_REFERENCE__SIZE: + return size != null; + } + return super.eIsSet(featureID); + } + +} // SizeReferenceImpl diff --git a/rba.model.view/src/rba/view/impl/VerticalLayoutImpl.java b/rba.model.view/src/rba/view/impl/VerticalLayoutImpl.java new file mode 100644 index 0000000..bac8918 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/VerticalLayoutImpl.java @@ -0,0 +1,33 @@ +/** + */ +package rba.view.impl; + +import org.eclipse.emf.ecore.EClass; + +import rba.view.RBAViewPackage; +import rba.view.VerticalLayout; + +/** + * An implementation of the model object 'Vertical Layout'. + * + * @generated + */ +public class VerticalLayoutImpl extends AlignedLayoutImpl implements VerticalLayout { + /** + * + * @generated + */ + protected VerticalLayoutImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.VERTICAL_LAYOUT; + } + +} // VerticalLayoutImpl diff --git a/rba.model.view/src/rba/view/impl/ViewContentImpl.java b/rba.model.view/src/rba/view/impl/ViewContentImpl.java new file mode 100644 index 0000000..e2a1688 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/ViewContentImpl.java @@ -0,0 +1,160 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; +import java.util.Collection; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import rba.core.ExpressionType; +import rba.core.impl.ContentImpl; +import rba.view.RBAViewPackage; +import rba.view.SizeIdentifier; +import rba.view.ViewContent; + +/** + * An implementation of the model object 'View Content'. + *

+ * The following features are implemented: + *

+ *
    + *
  • {@link rba.view.impl.ViewContentImpl#getSize Size}
  • + *
+ * + * @generated + */ +public class ViewContentImpl extends ContentImpl implements ViewContent { + /** + * The cached value of the '{@link #getSize() Size}' containment reference list. + * + * @see #getSize() + * @generated + * @ordered + */ + protected EList size; + + /** + * + * @generated + */ + protected ViewContentImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.VIEW_CONTENT; + } + + /** + * + * @generated + */ + public EList getSize() { + if (size == null) { + size = new EObjectContainmentEList(SizeIdentifier.class, this, + RBAViewPackage.VIEW_CONTENT__SIZE); + } + return size; + } + + /** + * + * @generated + */ + public ExpressionType getExpressionType() { + return ExpressionType.CONTENT; + } + + /** + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case RBAViewPackage.VIEW_CONTENT__SIZE: + return ((InternalEList) getSize()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case RBAViewPackage.VIEW_CONTENT__SIZE: + return getSize(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case RBAViewPackage.VIEW_CONTENT__SIZE: + getSize().clear(); + getSize().addAll((Collection) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case RBAViewPackage.VIEW_CONTENT__SIZE: + getSize().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case RBAViewPackage.VIEW_CONTENT__SIZE: + return size != null && !size.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.VIEW_CONTENT___GET_EXPRESSION_TYPE: + return getExpressionType(); + } + return super.eInvoke(operationID, arguments); + } + +} // ViewContentImpl diff --git a/rba.model.view/src/rba/view/impl/ViewContentOperatorImpl.java b/rba.model.view/src/rba/view/impl/ViewContentOperatorImpl.java new file mode 100644 index 0000000..d3a6b8c --- /dev/null +++ b/rba.model.view/src/rba/view/impl/ViewContentOperatorImpl.java @@ -0,0 +1,62 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.core.impl.ContentOperatorImpl; + +import rba.view.RBAViewPackage; +import rba.view.ViewContentOperator; + +/** + * An implementation of the model object 'View Content Operator'. + * + * @generated + */ +public abstract class ViewContentOperatorImpl extends ContentOperatorImpl implements ViewContentOperator { + /** + * + * @generated + */ + protected ViewContentOperatorImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.VIEW_CONTENT_OPERATOR; + } + + /** + * + * @generated + */ + public ExpressionType getUnderlyingType() { + return ExpressionType.BOOLEAN; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.VIEW_CONTENT_OPERATOR___GET_UNDERLYING_TYPE: + return getUnderlyingType(); + } + return super.eInvoke(operationID, arguments); + } + +} // ViewContentOperatorImpl diff --git a/rba.model.view/src/rba/view/impl/ViewContentSetImpl.java b/rba.model.view/src/rba/view/impl/ViewContentSetImpl.java new file mode 100644 index 0000000..2454031 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/ViewContentSetImpl.java @@ -0,0 +1,62 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.core.impl.ContentSetImpl; + +import rba.view.RBAViewPackage; +import rba.view.ViewContentSet; + +/** + * An implementation of the model object 'View Content Set'. + * + * @generated + */ +public class ViewContentSetImpl extends ContentSetImpl implements ViewContentSet { + /** + * + * @generated + */ + protected ViewContentSetImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.VIEW_CONTENT_SET; + } + + /** + * + * @generated + */ + public ExpressionType getExpressionType() { + return ExpressionType.SET_OF_CONTENT; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.VIEW_CONTENT_SET___GET_EXPRESSION_TYPE: + return getExpressionType(); + } + return super.eInvoke(operationID, arguments); + } + +} // ViewContentSetImpl diff --git a/rba.model.view/src/rba/view/impl/ViewContentStateImpl.java b/rba.model.view/src/rba/view/impl/ViewContentStateImpl.java new file mode 100644 index 0000000..7dbdbd4 --- /dev/null +++ b/rba.model.view/src/rba/view/impl/ViewContentStateImpl.java @@ -0,0 +1,62 @@ +/** + */ +package rba.view.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import rba.core.ExpressionType; + +import rba.core.impl.ContentStateImpl; + +import rba.view.RBAViewPackage; +import rba.view.ViewContentState; + +/** + * An implementation of the model object 'View Content State'. + * + * @generated + */ +public class ViewContentStateImpl extends ContentStateImpl implements ViewContentState { + /** + * + * @generated + */ + protected ViewContentStateImpl() { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return RBAViewPackage.Literals.VIEW_CONTENT_STATE; + } + + /** + * + * @generated + */ + public ExpressionType getExpressionType() { + return ExpressionType.CONTENT_STATE; + } + + /** + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case RBAViewPackage.VIEW_CONTENT_STATE___GET_EXPRESSION_TYPE: + return getExpressionType(); + } + return super.eInvoke(operationID, arguments); + } + +} // ViewContentStateImpl diff --git a/rba.model.view/src/rba/view/util/RBAViewAdapterFactory.java b/rba.model.view/src/rba/view/util/RBAViewAdapterFactory.java new file mode 100644 index 0000000..4833064 --- /dev/null +++ b/rba.model.view/src/rba/view/util/RBAViewAdapterFactory.java @@ -0,0 +1,930 @@ +/** + */ +package rba.view.util; + +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 rba.core.AbstractAllocatable; +import rba.core.AbstractContent; +import rba.core.Allocatable; +import rba.core.AllocatableOperator; +import rba.core.AllocatableSet; +import rba.core.Content; +import rba.core.ContentOperator; +import rba.core.ContentSet; +import rba.core.ContentState; +import rba.core.Expression; +import rba.core.ModelElement; +import rba.core.NamedElement; +import rba.core.Operator; +import rba.core.PackagableElement; +import rba.core.RuleObject; +import rba.core.SetExpression; + +import rba.core.SugarExpression; +import rba.core.SugarExpressionBase; +import rba.view.*; + +/** + * The Adapter Factory for the model. It provides an adapter createXXX method for + * each class of the model. + * @see rba.view.RBAViewPackage + * @generated + */ +public class RBAViewAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * @generated + */ + protected static RBAViewPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * @generated + */ + public RBAViewAdapterFactory() { + if (modelPackage == null) { + modelPackage = RBAViewPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * This implementation + * returns true if the object is either the model's package or is an instance object of the model. + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject) object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the createXXX methods. + * + * @generated + */ + protected RBAViewSwitch modelSwitch = new RBAViewSwitch() { + @Override + public Adapter caseViewContent(ViewContent object) { + return createViewContentAdapter(); + } + + @Override + public Adapter caseViewContentSet(ViewContentSet object) { + return createViewContentSetAdapter(); + } + + @Override + public Adapter caseViewContentState(ViewContentState object) { + return createViewContentStateAdapter(); + } + + @Override + public Adapter caseLayoutManager(LayoutManager object) { + return createLayoutManagerAdapter(); + } + + @Override + public Adapter caseAlignedLayout(AlignedLayout object) { + return createAlignedLayoutAdapter(); + } + + @Override + public Adapter caseVerticalLayout(VerticalLayout object) { + return createVerticalLayoutAdapter(); + } + + @Override + public Adapter caseHorizontalLayout(HorizontalLayout object) { + return createHorizontalLayoutAdapter(); + } + + @Override + public Adapter caseFixedPositionLayout(FixedPositionLayout object) { + return createFixedPositionLayoutAdapter(); + } + + @Override + public Adapter casePositionContainer(PositionContainer object) { + return createPositionContainerAdapter(); + } + + @Override + public Adapter caseDisplay(Display object) { + return createDisplayAdapter(); + } + + @Override + public Adapter caseCompositeArea(CompositeArea object) { + return createCompositeAreaAdapter(); + } + + @Override + public Adapter caseArea(Area object) { + return createAreaAdapter(); + } + + @Override + public Adapter caseAreaSet(AreaSet object) { + return createAreaSetAdapter(); + } + + @Override + public Adapter caseSizeIdentifier(SizeIdentifier object) { + return createSizeIdentifierAdapter(); + } + + @Override + public Adapter caseSize(Size object) { + return createSizeAdapter(); + } + + @Override + public Adapter caseSizeReference(SizeReference object) { + return createSizeReferenceAdapter(); + } + + @Override + public Adapter caseOffset(Offset object) { + return createOffsetAdapter(); + } + + @Override + public Adapter caseAreaOperator(AreaOperator object) { + return createAreaOperatorAdapter(); + } + + @Override + public Adapter caseIsDisplayed(IsDisplayed object) { + return createIsDisplayedAdapter(); + } + + @Override + public Adapter caseDisplayingContent(DisplayingContent object) { + return createDisplayingContentAdapter(); + } + + @Override + public Adapter caseIsHidden(IsHidden object) { + return createIsHiddenAdapter(); + } + + @Override + public Adapter caseViewContentOperator(ViewContentOperator object) { + return createViewContentOperatorAdapter(); + } + + @Override + public Adapter caseIsVisible(IsVisible object) { + return createIsVisibleAdapter(); + } + + @Override + public Adapter caseAllInstanceOfArea(AllInstanceOfArea object) { + return createAllInstanceOfAreaAdapter(); + } + + @Override + public Adapter caseAllInstanceOfViewContent(AllInstanceOfViewContent object) { + return createAllInstanceOfViewContentAdapter(); + } + + @Override + public Adapter caseIsDisplayedOn(IsDisplayedOn object) { + return createIsDisplayedOnAdapter(); + } + + @Override + public Adapter caseIsChangedDisplay(IsChangedDisplay object) { + return createIsChangedDisplayAdapter(); + } + + @Override + public Adapter caseIsTranslatedViewTo(IsTranslatedViewTo object) { + return createIsTranslatedViewToAdapter(); + } + + @Override + public Adapter caseHideLowerPriority(HideLowerPriority object) { + return createHideLowerPriorityAdapter(); + } + + @Override + public Adapter caseModelElement(ModelElement object) { + return createModelElementAdapter(); + } + + @Override + public Adapter caseNamedElement(NamedElement object) { + return createNamedElementAdapter(); + } + + @Override + public Adapter casePackagableElement(PackagableElement object) { + return createPackagableElementAdapter(); + } + + @Override + public Adapter caseRuleObject(RuleObject object) { + return createRuleObjectAdapter(); + } + + @Override + public Adapter caseAbstractContent(AbstractContent object) { + return createAbstractContentAdapter(); + } + + @Override + public Adapter caseContent(Content object) { + return createContentAdapter(); + } + + @Override + public Adapter caseContentSet(ContentSet object) { + return createContentSetAdapter(); + } + + @Override + public Adapter caseContentState(ContentState object) { + return createContentStateAdapter(); + } + + @Override + public Adapter caseAbstractAllocatable(AbstractAllocatable object) { + return createAbstractAllocatableAdapter(); + } + + @Override + public Adapter caseAllocatable(Allocatable object) { + return createAllocatableAdapter(); + } + + @Override + public Adapter caseAllocatableSet(AllocatableSet object) { + return createAllocatableSetAdapter(); + } + + @Override + public Adapter caseExpression(Expression object) { + return createExpressionAdapter(); + } + + @Override + public Adapter caseOperator(Operator object) { + return createOperatorAdapter(); + } + + @Override + public Adapter caseAllocatableOperator(AllocatableOperator object) { + return createAllocatableOperatorAdapter(); + } + + @Override + public Adapter caseContentOperator(ContentOperator object) { + return createContentOperatorAdapter(); + } + + @Override + public Adapter caseSetExpression(SetExpression object) { + return createSetExpressionAdapter(); + } + + @Override + public Adapter caseSugarExpression(SugarExpression object) { + return createSugarExpressionAdapter(); + } + + @Override + public Adapter caseSugarExpressionBase(SugarExpressionBase object) { + return createSugarExpressionBaseAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.ViewContent View Content}'. + * 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. + * @return the new adapter. + * @see rba.view.ViewContent + * @generated + */ + public Adapter createViewContentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.ViewContentSet View Content Set}'. 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. + * @return the new adapter. + * @see rba.view.ViewContentSet + * @generated + */ + public Adapter createViewContentSetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.ViewContentState View Content State}'. 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. + * @return the new adapter. + * @see rba.view.ViewContentState + * @generated + */ + public Adapter createViewContentStateAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.LayoutManager Layout Manager}'. 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. + * @return the new adapter. + * @see rba.view.LayoutManager + * @generated + */ + public Adapter createLayoutManagerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.AlignedLayout Aligned Layout}'. 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. + * @return the new adapter. + * @see rba.view.AlignedLayout + * @generated + */ + public Adapter createAlignedLayoutAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.VerticalLayout Vertical Layout}'. 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. + * @return the new adapter. + * @see rba.view.VerticalLayout + * @generated + */ + public Adapter createVerticalLayoutAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.HorizontalLayout Horizontal Layout}'. 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. + * @return the new adapter. + * @see rba.view.HorizontalLayout + * @generated + */ + public Adapter createHorizontalLayoutAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.FixedPositionLayout Fixed Position Layout}'. 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. + * @return the new adapter. + * @see rba.view.FixedPositionLayout + * @generated + */ + public Adapter createFixedPositionLayoutAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.PositionContainer Position Container}'. 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. + * @return the new adapter. + * @see rba.view.PositionContainer + * @generated + */ + public Adapter createPositionContainerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.Display Display}'. + * 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. + * @return the new adapter. + * @see rba.view.Display + * @generated + */ + public Adapter createDisplayAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.CompositeArea Composite Area}'. 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. + * @return the new adapter. + * @see rba.view.CompositeArea + * @generated + */ + public Adapter createCompositeAreaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.Area Area}'. + * 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. + * @return the new adapter. + * @see rba.view.Area + * @generated + */ + public Adapter createAreaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.AreaSet Area Set}'. + * 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. + * @return the new adapter. + * @see rba.view.AreaSet + * @generated + */ + public Adapter createAreaSetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.SizeIdentifier Size Identifier}'. 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. + * @return the new adapter. + * @see rba.view.SizeIdentifier + * @generated + */ + public Adapter createSizeIdentifierAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.Size Size}'. + * 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. + * @return the new adapter. + * @see rba.view.Size + * @generated + */ + public Adapter createSizeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.SizeReference Size Reference}'. 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. + * @return the new adapter. + * @see rba.view.SizeReference + * @generated + */ + public Adapter createSizeReferenceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.Offset Offset}'. + * 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. + * @return the new adapter. + * @see rba.view.Offset + * @generated + */ + public Adapter createOffsetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.AreaOperator Area Operator}'. + * 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. + * @return the new adapter. + * @see rba.view.AreaOperator + * @generated + */ + public Adapter createAreaOperatorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.IsDisplayed Is Displayed}'. + * 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. + * @return the new adapter. + * @see rba.view.IsDisplayed + * @generated + */ + public Adapter createIsDisplayedAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.DisplayingContent Displaying Content}'. 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. + * @return the new adapter. + * @see rba.view.DisplayingContent + * @generated + */ + public Adapter createDisplayingContentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.IsHidden Is Hidden}'. + * 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. + * @return the new adapter. + * @see rba.view.IsHidden + * @generated + */ + public Adapter createIsHiddenAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.ViewContentOperator View Content Operator}'. 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. + * @return the new adapter. + * @see rba.view.ViewContentOperator + * @generated + */ + public Adapter createViewContentOperatorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.IsVisible Is Visible}'. + * + * 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. + * @return the new adapter. + * @see rba.view.IsVisible + * @generated + */ + public Adapter createIsVisibleAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.AllInstanceOfArea All Instance Of Area}'. 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. + * @return the new adapter. + * @see rba.view.AllInstanceOfArea + * @generated + */ + public Adapter createAllInstanceOfAreaAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.AllInstanceOfViewContent All Instance Of View Content}'. + * 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. + * @return the new adapter. + * @see rba.view.AllInstanceOfViewContent + * @generated + */ + public Adapter createAllInstanceOfViewContentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.IsDisplayedOn Is Displayed On}'. 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. + * @return the new adapter. + * @see rba.view.IsDisplayedOn + * @generated + */ + public Adapter createIsDisplayedOnAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.IsChangedDisplay Is Changed Display}'. 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. + * @return the new adapter. + * @see rba.view.IsChangedDisplay + * @generated + */ + public Adapter createIsChangedDisplayAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.IsTranslatedViewTo Is Translated View To}'. 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. + * @return the new adapter. + * @see rba.view.IsTranslatedViewTo + * @generated + */ + public Adapter createIsTranslatedViewToAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.view.HideLowerPriority Hide Lower Priority}'. 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. + * @return the new adapter. + * @see rba.view.HideLowerPriority + * @generated + */ + public Adapter createHideLowerPriorityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.ModelElement Model Element}'. + * 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. + * @return the new adapter. + * @see rba.core.ModelElement + * @generated + */ + public Adapter createModelElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.NamedElement Named Element}'. + * 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. + * @return the new adapter. + * @see rba.core.NamedElement + * @generated + */ + public Adapter createNamedElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.PackagableElement Packagable Element}'. 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. + * @return the new adapter. + * @see rba.core.PackagableElement + * @generated + */ + public Adapter createPackagableElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.RuleObject Rule Object}'. + * + * 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. + * @return the new adapter. + * @see rba.core.RuleObject + * @generated + */ + public Adapter createRuleObjectAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.AbstractContent Abstract Content}'. 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. + * @return the new adapter. + * @see rba.core.AbstractContent + * @generated + */ + public Adapter createAbstractContentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.Content Content}'. + * 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. + * @return the new adapter. + * @see rba.core.Content + * @generated + */ + public Adapter createContentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.ContentSet Content Set}'. + * + * 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. + * @return the new adapter. + * @see rba.core.ContentSet + * @generated + */ + public Adapter createContentSetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.ContentState Content State}'. + * 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. + * @return the new adapter. + * @see rba.core.ContentState + * @generated + */ + public Adapter createContentStateAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.AbstractAllocatable Abstract Allocatable}'. 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. + * @return the new adapter. + * @see rba.core.AbstractAllocatable + * @generated + */ + public Adapter createAbstractAllocatableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.Allocatable Allocatable}'. + * + * 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. + * @return the new adapter. + * @see rba.core.Allocatable + * @generated + */ + public Adapter createAllocatableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.AllocatableSet Allocatable Set}'. 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. + * @return the new adapter. + * @see rba.core.AllocatableSet + * @generated + */ + public Adapter createAllocatableSetAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.Expression Expression}'. + * + * 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. + * @return the new adapter. + * @see rba.core.Expression + * @generated + */ + public Adapter createExpressionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.Operator Operator}'. + * 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. + * @return the new adapter. + * @see rba.core.Operator + * @generated + */ + public Adapter createOperatorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.AllocatableOperator Allocatable Operator}'. 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. + * @return the new adapter. + * @see rba.core.AllocatableOperator + * @generated + */ + public Adapter createAllocatableOperatorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.ContentOperator Content Operator}'. 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. + * @return the new adapter. + * @see rba.core.ContentOperator + * @generated + */ + public Adapter createContentOperatorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.SetExpression Set Expression}'. 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. + * @return the new adapter. + * @see rba.core.SetExpression + * @generated + */ + public Adapter createSetExpressionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.SugarExpression Sugar Expression}'. 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. + * @return the new adapter. + * @see rba.core.SugarExpression + * @generated + */ + public Adapter createSugarExpressionAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link rba.core.SugarExpressionBase Sugar Expression Base}'. 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. + * @return the new adapter. + * @see rba.core.SugarExpressionBase + * @generated + */ + public Adapter createSugarExpressionBaseAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * This default implementation returns null. + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} // RBAViewAdapterFactory diff --git a/rba.model.view/src/rba/view/util/RBAViewSwitch.java b/rba.model.view/src/rba/view/util/RBAViewSwitch.java new file mode 100644 index 0000000..ec7052d --- /dev/null +++ b/rba.model.view/src/rba/view/util/RBAViewSwitch.java @@ -0,0 +1,1107 @@ +/** + */ +package rba.view.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +import rba.core.AbstractAllocatable; +import rba.core.AbstractContent; +import rba.core.Allocatable; +import rba.core.AllocatableOperator; +import rba.core.AllocatableSet; +import rba.core.Content; +import rba.core.ContentOperator; +import rba.core.ContentSet; +import rba.core.ContentState; +import rba.core.Expression; +import rba.core.ModelElement; +import rba.core.NamedElement; +import rba.core.Operator; +import rba.core.PackagableElement; +import rba.core.RuleObject; +import rba.core.SetExpression; + +import rba.core.SugarExpression; +import rba.core.SugarExpressionBase; +import rba.view.*; + +/** + * The Switch for the model's inheritance hierarchy. It supports the call + * {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX 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. + * @see rba.view.RBAViewPackage + * @generated + */ +public class RBAViewSwitch extends Switch { + /** + * The cached model package + * + * @generated + */ + protected static RBAViewPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * @generated + */ + public RBAViewSwitch() { + if (modelPackage == null) { + modelPackage = RBAViewPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case RBAViewPackage.VIEW_CONTENT: { + ViewContent viewContent = (ViewContent) theEObject; + T result = caseViewContent(viewContent); + if (result == null) + result = caseContent(viewContent); + if (result == null) + result = caseAbstractContent(viewContent); + if (result == null) + result = caseRuleObject(viewContent); + if (result == null) + result = casePackagableElement(viewContent); + if (result == null) + result = caseNamedElement(viewContent); + if (result == null) + result = caseModelElement(viewContent); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.VIEW_CONTENT_SET: { + ViewContentSet viewContentSet = (ViewContentSet) theEObject; + T result = caseViewContentSet(viewContentSet); + if (result == null) + result = caseContentSet(viewContentSet); + if (result == null) + result = caseAbstractContent(viewContentSet); + if (result == null) + result = caseRuleObject(viewContentSet); + if (result == null) + result = casePackagableElement(viewContentSet); + if (result == null) + result = caseNamedElement(viewContentSet); + if (result == null) + result = caseModelElement(viewContentSet); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.VIEW_CONTENT_STATE: { + ViewContentState viewContentState = (ViewContentState) theEObject; + T result = caseViewContentState(viewContentState); + if (result == null) + result = caseContentState(viewContentState); + if (result == null) + result = caseRuleObject(viewContentState); + if (result == null) + result = casePackagableElement(viewContentState); + if (result == null) + result = caseNamedElement(viewContentState); + if (result == null) + result = caseModelElement(viewContentState); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.LAYOUT_MANAGER: { + LayoutManager layoutManager = (LayoutManager) theEObject; + T result = caseLayoutManager(layoutManager); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.ALIGNED_LAYOUT: { + AlignedLayout alignedLayout = (AlignedLayout) theEObject; + T result = caseAlignedLayout(alignedLayout); + if (result == null) + result = caseLayoutManager(alignedLayout); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.VERTICAL_LAYOUT: { + VerticalLayout verticalLayout = (VerticalLayout) theEObject; + T result = caseVerticalLayout(verticalLayout); + if (result == null) + result = caseAlignedLayout(verticalLayout); + if (result == null) + result = caseLayoutManager(verticalLayout); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.HORIZONTAL_LAYOUT: { + HorizontalLayout horizontalLayout = (HorizontalLayout) theEObject; + T result = caseHorizontalLayout(horizontalLayout); + if (result == null) + result = caseAlignedLayout(horizontalLayout); + if (result == null) + result = caseLayoutManager(horizontalLayout); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.FIXED_POSITION_LAYOUT: { + FixedPositionLayout fixedPositionLayout = (FixedPositionLayout) theEObject; + T result = caseFixedPositionLayout(fixedPositionLayout); + if (result == null) + result = caseLayoutManager(fixedPositionLayout); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.POSITION_CONTAINER: { + PositionContainer positionContainer = (PositionContainer) theEObject; + T result = casePositionContainer(positionContainer); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.DISPLAY: { + Display display = (Display) theEObject; + T result = caseDisplay(display); + if (result == null) + result = casePackagableElement(display); + if (result == null) + result = caseNamedElement(display); + if (result == null) + result = caseModelElement(display); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.COMPOSITE_AREA: { + CompositeArea compositeArea = (CompositeArea) theEObject; + T result = caseCompositeArea(compositeArea); + if (result == null) + result = casePackagableElement(compositeArea); + if (result == null) + result = caseNamedElement(compositeArea); + if (result == null) + result = caseModelElement(compositeArea); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.AREA: { + Area area = (Area) theEObject; + T result = caseArea(area); + if (result == null) + result = caseAllocatable(area); + if (result == null) + result = caseAbstractAllocatable(area); + if (result == null) + result = caseRuleObject(area); + if (result == null) + result = casePackagableElement(area); + if (result == null) + result = caseNamedElement(area); + if (result == null) + result = caseModelElement(area); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.AREA_SET: { + AreaSet areaSet = (AreaSet) theEObject; + T result = caseAreaSet(areaSet); + if (result == null) + result = caseAllocatableSet(areaSet); + if (result == null) + result = caseAbstractAllocatable(areaSet); + if (result == null) + result = caseRuleObject(areaSet); + if (result == null) + result = casePackagableElement(areaSet); + if (result == null) + result = caseNamedElement(areaSet); + if (result == null) + result = caseModelElement(areaSet); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.SIZE_IDENTIFIER: { + SizeIdentifier sizeIdentifier = (SizeIdentifier) theEObject; + T result = caseSizeIdentifier(sizeIdentifier); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.SIZE: { + Size size = (Size) theEObject; + T result = caseSize(size); + if (result == null) + result = casePackagableElement(size); + if (result == null) + result = caseSizeIdentifier(size); + if (result == null) + result = caseNamedElement(size); + if (result == null) + result = caseModelElement(size); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.SIZE_REFERENCE: { + SizeReference sizeReference = (SizeReference) theEObject; + T result = caseSizeReference(sizeReference); + if (result == null) + result = caseSizeIdentifier(sizeReference); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.OFFSET: { + Offset offset = (Offset) theEObject; + T result = caseOffset(offset); + if (result == null) + result = casePackagableElement(offset); + if (result == null) + result = caseNamedElement(offset); + if (result == null) + result = caseModelElement(offset); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.AREA_OPERATOR: { + AreaOperator areaOperator = (AreaOperator) theEObject; + T result = caseAreaOperator(areaOperator); + if (result == null) + result = caseAllocatableOperator(areaOperator); + if (result == null) + result = caseOperator(areaOperator); + if (result == null) + result = caseExpression(areaOperator); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.IS_DISPLAYED: { + IsDisplayed isDisplayed = (IsDisplayed) theEObject; + T result = caseIsDisplayed(isDisplayed); + if (result == null) + result = caseAreaOperator(isDisplayed); + if (result == null) + result = caseAllocatableOperator(isDisplayed); + if (result == null) + result = caseOperator(isDisplayed); + if (result == null) + result = caseExpression(isDisplayed); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.DISPLAYING_CONTENT: { + DisplayingContent displayingContent = (DisplayingContent) theEObject; + T result = caseDisplayingContent(displayingContent); + if (result == null) + result = caseAreaOperator(displayingContent); + if (result == null) + result = caseAllocatableOperator(displayingContent); + if (result == null) + result = caseOperator(displayingContent); + if (result == null) + result = caseExpression(displayingContent); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.IS_HIDDEN: { + IsHidden isHidden = (IsHidden) theEObject; + T result = caseIsHidden(isHidden); + if (result == null) + result = caseAreaOperator(isHidden); + if (result == null) + result = caseAllocatableOperator(isHidden); + if (result == null) + result = caseOperator(isHidden); + if (result == null) + result = caseExpression(isHidden); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.VIEW_CONTENT_OPERATOR: { + ViewContentOperator viewContentOperator = (ViewContentOperator) theEObject; + T result = caseViewContentOperator(viewContentOperator); + if (result == null) + result = caseContentOperator(viewContentOperator); + if (result == null) + result = caseOperator(viewContentOperator); + if (result == null) + result = caseExpression(viewContentOperator); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.IS_VISIBLE: { + IsVisible isVisible = (IsVisible) theEObject; + T result = caseIsVisible(isVisible); + if (result == null) + result = caseViewContentOperator(isVisible); + if (result == null) + result = caseContentOperator(isVisible); + if (result == null) + result = caseOperator(isVisible); + if (result == null) + result = caseExpression(isVisible); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.ALL_INSTANCE_OF_AREA: { + AllInstanceOfArea allInstanceOfArea = (AllInstanceOfArea) theEObject; + T result = caseAllInstanceOfArea(allInstanceOfArea); + if (result == null) + result = caseSetExpression(allInstanceOfArea); + if (result == null) + result = caseExpression(allInstanceOfArea); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.ALL_INSTANCE_OF_VIEW_CONTENT: { + AllInstanceOfViewContent allInstanceOfViewContent = (AllInstanceOfViewContent) theEObject; + T result = caseAllInstanceOfViewContent(allInstanceOfViewContent); + if (result == null) + result = caseSetExpression(allInstanceOfViewContent); + if (result == null) + result = caseExpression(allInstanceOfViewContent); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.IS_DISPLAYED_ON: { + IsDisplayedOn isDisplayedOn = (IsDisplayedOn) theEObject; + T result = caseIsDisplayedOn(isDisplayedOn); + if (result == null) + result = caseViewContentOperator(isDisplayedOn); + if (result == null) + result = caseSugarExpressionBase(isDisplayedOn); + if (result == null) + result = caseContentOperator(isDisplayedOn); + if (result == null) + result = caseSugarExpression(isDisplayedOn); + if (result == null) + result = caseOperator(isDisplayedOn); + if (result == null) + result = caseExpression(isDisplayedOn); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.IS_CHANGED_DISPLAY: { + IsChangedDisplay isChangedDisplay = (IsChangedDisplay) theEObject; + T result = caseIsChangedDisplay(isChangedDisplay); + if (result == null) + result = caseAreaOperator(isChangedDisplay); + if (result == null) + result = caseSugarExpressionBase(isChangedDisplay); + if (result == null) + result = caseAllocatableOperator(isChangedDisplay); + if (result == null) + result = caseSugarExpression(isChangedDisplay); + if (result == null) + result = caseOperator(isChangedDisplay); + if (result == null) + result = caseExpression(isChangedDisplay); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.IS_TRANSLATED_VIEW_TO: { + IsTranslatedViewTo isTranslatedViewTo = (IsTranslatedViewTo) theEObject; + T result = caseIsTranslatedViewTo(isTranslatedViewTo); + if (result == null) + result = caseAreaOperator(isTranslatedViewTo); + if (result == null) + result = caseSugarExpressionBase(isTranslatedViewTo); + if (result == null) + result = caseAllocatableOperator(isTranslatedViewTo); + if (result == null) + result = caseSugarExpression(isTranslatedViewTo); + if (result == null) + result = caseOperator(isTranslatedViewTo); + if (result == null) + result = caseExpression(isTranslatedViewTo); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case RBAViewPackage.HIDE_LOWER_PRIORITY: { + HideLowerPriority hideLowerPriority = (HideLowerPriority) theEObject; + T result = caseHideLowerPriority(hideLowerPriority); + if (result == null) + result = caseOperator(hideLowerPriority); + if (result == null) + result = caseSugarExpressionBase(hideLowerPriority); + if (result == null) + result = caseExpression(hideLowerPriority); + if (result == null) + result = caseSugarExpression(hideLowerPriority); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of 'View Content'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'View Content'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseViewContent(ViewContent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'View Content Set'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'View Content Set'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseViewContentSet(ViewContentSet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'View Content State'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'View Content State'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseViewContentState(ViewContentState object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Layout Manager'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Layout Manager'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLayoutManager(LayoutManager object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Aligned Layout'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Aligned Layout'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAlignedLayout(AlignedLayout object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Vertical Layout'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Vertical Layout'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVerticalLayout(VerticalLayout object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Horizontal Layout'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Horizontal Layout'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHorizontalLayout(HorizontalLayout object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Fixed Position Layout'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Fixed Position Layout'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFixedPositionLayout(FixedPositionLayout object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Position Container'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Position Container'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePositionContainer(PositionContainer object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Display'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Display'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDisplay(Display object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Composite Area'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Composite Area'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCompositeArea(CompositeArea object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Area'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Area'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseArea(Area object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Area Set'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Area Set'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAreaSet(AreaSet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Size Identifier'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Size Identifier'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSizeIdentifier(SizeIdentifier object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Size'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Size'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSize(Size object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Size Reference'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Size Reference'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSizeReference(SizeReference object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Offset'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Offset'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOffset(Offset object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Area Operator'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Area Operator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAreaOperator(AreaOperator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Is Displayed'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Is Displayed'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIsDisplayed(IsDisplayed object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Displaying Content'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Displaying Content'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDisplayingContent(DisplayingContent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Is Hidden'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Is Hidden'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIsHidden(IsHidden object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'View Content Operator'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'View Content Operator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseViewContentOperator(ViewContentOperator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Is Visible'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Is Visible'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIsVisible(IsVisible object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'All Instance Of Area'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'All Instance Of Area'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllInstanceOfArea(AllInstanceOfArea object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'All Instance Of View Content'. This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'All Instance Of View Content'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllInstanceOfViewContent(AllInstanceOfViewContent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Is Displayed On'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Is Displayed On'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIsDisplayedOn(IsDisplayedOn object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Is Changed Display'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Is Changed Display'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIsChangedDisplay(IsChangedDisplay object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Is Translated View To'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Is Translated View To'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIsTranslatedViewTo(IsTranslatedViewTo object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Hide Lower Priority'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Hide Lower Priority'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseHideLowerPriority(HideLowerPriority object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Model Element'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Model Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModelElement(ModelElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Named Element'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedElement(NamedElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Packagable Element'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Packagable Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePackagableElement(PackagableElement object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Rule Object'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Rule Object'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRuleObject(RuleObject object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Content'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Content'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractContent(AbstractContent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Content'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Content'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContent(Content object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Content Set'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Content Set'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContentSet(ContentSet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Content State'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Content State'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContentState(ContentState object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Abstract Allocatable'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Abstract Allocatable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAbstractAllocatable(AbstractAllocatable object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocatable'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Allocatable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocatable(Allocatable object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocatable Set'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Allocatable Set'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocatableSet(AllocatableSet object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Expression'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Expression'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExpression(Expression object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Operator'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Operator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOperator(Operator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Allocatable Operator'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Allocatable Operator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAllocatableOperator(AllocatableOperator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Content Operator'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Content Operator'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContentOperator(ContentOperator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Set Expression'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Set Expression'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSetExpression(SetExpression object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sugar Expression'. + * This + * implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Sugar Expression'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSugarExpression(SugarExpression object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Sugar Expression Base'. + * + * This implementation returns null; returning a non-null result will terminate the switch. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Sugar Expression Base'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSugarExpressionBase(SugarExpressionBase object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'EObject'. + * This + * implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} // RBAViewSwitch -- cgit 1.2.3-korg