Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.osbp.xtext.table/emf-gen/org/eclipse/osbp/xtext/table/impl/TablePropertyImpl.java')
-rw-r--r--org.eclipse.osbp.xtext.table/emf-gen/org/eclipse/osbp/xtext/table/impl/TablePropertyImpl.java168
1 files changed, 168 insertions, 0 deletions
diff --git a/org.eclipse.osbp.xtext.table/emf-gen/org/eclipse/osbp/xtext/table/impl/TablePropertyImpl.java b/org.eclipse.osbp.xtext.table/emf-gen/org/eclipse/osbp/xtext/table/impl/TablePropertyImpl.java
new file mode 100644
index 0000000..fbc9f0c
--- /dev/null
+++ b/org.eclipse.osbp.xtext.table/emf-gen/org/eclipse/osbp/xtext/table/impl/TablePropertyImpl.java
@@ -0,0 +1,168 @@
+/**
+ * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http{//www.eclipse.org/legal/epl-v10.html
+ *
+ * Based on ideas from Xtext, Xtend, Xcore
+ *
+ * Contributors{
+ * Christophe Loetz (Loetz GmbH&Co.KG) - Initial implementation
+ *
+ */
+package org.eclipse.osbp.xtext.table.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 org.eclipse.osbp.xtext.datamartdsl.DatamartProperty;
+
+import org.eclipse.osbp.xtext.table.TableDSLPackage;
+import org.eclipse.osbp.xtext.table.TableProperty;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Table Property</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.osbp.xtext.table.impl.TablePropertyImpl#getValueRef <em>Value Ref</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class TablePropertyImpl extends ExpressionImpl implements TableProperty {
+ /**
+ * The cached value of the '{@link #getValueRef() <em>Value Ref</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValueRef()
+ * @generated
+ * @ordered
+ */
+ protected DatamartProperty valueRef;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TablePropertyImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return TableDSLPackage.Literals.TABLE_PROPERTY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DatamartProperty getValueRef() {
+ if (valueRef != null && valueRef.eIsProxy()) {
+ InternalEObject oldValueRef = (InternalEObject)valueRef;
+ valueRef = (DatamartProperty)eResolveProxy(oldValueRef);
+ if (valueRef != oldValueRef) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, TableDSLPackage.TABLE_PROPERTY__VALUE_REF, oldValueRef, valueRef));
+ }
+ }
+ return valueRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DatamartProperty basicGetValueRef() {
+ return valueRef;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValueRef(DatamartProperty newValueRef) {
+ DatamartProperty oldValueRef = valueRef;
+ valueRef = newValueRef;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, TableDSLPackage.TABLE_PROPERTY__VALUE_REF, oldValueRef, valueRef));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case TableDSLPackage.TABLE_PROPERTY__VALUE_REF:
+ if (resolve) return getValueRef();
+ return basicGetValueRef();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case TableDSLPackage.TABLE_PROPERTY__VALUE_REF:
+ setValueRef((DatamartProperty)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case TableDSLPackage.TABLE_PROPERTY__VALUE_REF:
+ setValueRef((DatamartProperty)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case TableDSLPackage.TABLE_PROPERTY__VALUE_REF:
+ return valueRef != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //TablePropertyImpl

Back to the top