| /** |
| * Copyright (c) 2011, 2016 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (Heidelberg) |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Florian Pirchner - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.dsl.semantic.dto.impl; |
| |
| import java.util.ArrayList; |
| import java.util.Collection; |
| import java.util.Collections; |
| import java.util.List; |
| |
| 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 org.eclipse.osbp.dsl.semantic.common.types.LDatatypeConstraint; |
| import org.eclipse.osbp.dsl.semantic.common.types.LKeyAndValue; |
| import org.eclipse.osbp.dsl.semantic.common.types.LReference; |
| import org.eclipse.osbp.dsl.semantic.common.types.OSBPTypesPackage; |
| |
| import org.eclipse.osbp.dsl.semantic.dto.LDto; |
| import org.eclipse.osbp.dsl.semantic.dto.LDtoAbstractReference; |
| import org.eclipse.osbp.dsl.semantic.dto.LDtoInheritedReference; |
| import org.eclipse.osbp.dsl.semantic.dto.OSBPDtoPackage; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>LDto Abstract Reference</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#isLazy <em>Lazy</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#getProperties <em>Properties</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#getConstraints <em>Constraints</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#isIsGrouped <em>Is Grouped</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#getGroupName <em>Group Name</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#isAsGrid <em>As Grid</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#isAsTable <em>As Table</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#isSideKick <em>Side Kick</em>}</li> |
| * <li>{@link org.eclipse.osbp.dsl.semantic.dto.impl.LDtoAbstractReferenceImpl#getType <em>Type</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public abstract class LDtoAbstractReferenceImpl extends LDtoFeatureImpl implements LDtoAbstractReference { |
| /** |
| * The default value of the '{@link #isLazy() <em>Lazy</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isLazy() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean LAZY_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isLazy() <em>Lazy</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isLazy() |
| * @generated |
| * @ordered |
| */ |
| protected boolean lazy = LAZY_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getProperties() |
| * @generated |
| * @ordered |
| */ |
| protected EList<LKeyAndValue> properties; |
| |
| /** |
| * The cached value of the '{@link #getConstraints() <em>Constraints</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getConstraints() |
| * @generated |
| * @ordered |
| */ |
| protected EList<LDatatypeConstraint> constraints; |
| |
| /** |
| * The default value of the '{@link #isIsGrouped() <em>Is Grouped</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isIsGrouped() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean IS_GROUPED_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isIsGrouped() <em>Is Grouped</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isIsGrouped() |
| * @generated |
| * @ordered |
| */ |
| protected boolean isGrouped = IS_GROUPED_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getGroupName() <em>Group Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroupName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String GROUP_NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getGroupName() <em>Group Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroupName() |
| * @generated |
| * @ordered |
| */ |
| protected String groupName = GROUP_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isAsGrid() <em>As Grid</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isAsGrid() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean AS_GRID_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isAsGrid() <em>As Grid</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isAsGrid() |
| * @generated |
| * @ordered |
| */ |
| protected boolean asGrid = AS_GRID_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isAsTable() <em>As Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isAsTable() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean AS_TABLE_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isAsTable() <em>As Table</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isAsTable() |
| * @generated |
| * @ordered |
| */ |
| protected boolean asTable = AS_TABLE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isSideKick() <em>Side Kick</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isSideKick() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean SIDE_KICK_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isSideKick() <em>Side Kick</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isSideKick() |
| * @generated |
| * @ordered |
| */ |
| protected boolean sideKick = SIDE_KICK_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getType() <em>Type</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getType() |
| * @generated |
| * @ordered |
| */ |
| protected LDto type; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected LDtoAbstractReferenceImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return OSBPDtoPackage.Literals.LDTO_ABSTRACT_REFERENCE; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isLazy() { |
| return lazy; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setLazy(boolean newLazy) { |
| boolean oldLazy = lazy; |
| lazy = newLazy; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__LAZY, oldLazy, lazy)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<LKeyAndValue> getProperties() { |
| if (properties == null) { |
| properties = new EObjectContainmentEList<LKeyAndValue>(LKeyAndValue.class, this, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES); |
| } |
| return properties; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<LDatatypeConstraint> getConstraints() { |
| if (constraints == null) { |
| constraints = new EObjectContainmentEList<LDatatypeConstraint>(LDatatypeConstraint.class, this, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS); |
| } |
| return constraints; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isIsGrouped() { |
| return isGrouped; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setIsGrouped(boolean newIsGrouped) { |
| boolean oldIsGrouped = isGrouped; |
| isGrouped = newIsGrouped; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__IS_GROUPED, oldIsGrouped, isGrouped)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getGroupName() { |
| return groupName; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setGroupName(String newGroupName) { |
| String oldGroupName = groupName; |
| groupName = newGroupName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__GROUP_NAME, oldGroupName, groupName)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isAsGrid() { |
| return asGrid; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAsGrid(boolean newAsGrid) { |
| boolean oldAsGrid = asGrid; |
| asGrid = newAsGrid; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_GRID, oldAsGrid, asGrid)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isAsTable() { |
| return asTable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setAsTable(boolean newAsTable) { |
| boolean oldAsTable = asTable; |
| asTable = newAsTable; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_TABLE, oldAsTable, asTable)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSideKick() { |
| return sideKick; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSideKick(boolean newSideKick) { |
| boolean oldSideKick = sideKick; |
| sideKick = newSideKick; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__SIDE_KICK, oldSideKick, sideKick)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public LDto getType() { |
| if (type != null && type.eIsProxy()) { |
| InternalEObject oldType = (InternalEObject)type; |
| type = (LDto)eResolveProxy(oldType); |
| if (type != oldType) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__TYPE, oldType, type)); |
| } |
| } |
| return type; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public LDto basicGetType() { |
| return type; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setType(LDto newType) { |
| LDto oldType = type; |
| type = newType; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__TYPE, oldType, type)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List<LKeyAndValue> getResolvedProperties() { |
| if ((this instanceof LDtoInheritedReference)) { |
| final LDtoInheritedReference temp = ((LDtoInheritedReference) this); |
| LReference _inheritedFeature = temp.getInheritedFeature(); |
| boolean _tripleEquals = (_inheritedFeature == null); |
| if (_tripleEquals) { |
| return Collections.<LKeyAndValue>emptyList(); |
| } |
| EList<LKeyAndValue> _properties = temp.getInheritedFeature().getProperties(); |
| final ArrayList<LKeyAndValue> result = new ArrayList<LKeyAndValue>(_properties); |
| result.addAll(this.getProperties()); |
| return result; |
| } |
| else { |
| return this.getProperties(); |
| } |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isCascading() { |
| return (this.isCascadeMergePersist() || this.isCascadeRemove()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES: |
| return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS: |
| return ((InternalEList<?>)getConstraints()).basicRemove(otherEnd, msgs); |
| } |
| return super.eInverseRemove(otherEnd, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__LAZY: |
| return isLazy(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES: |
| return getProperties(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS: |
| return getConstraints(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__IS_GROUPED: |
| return isIsGrouped(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__GROUP_NAME: |
| return getGroupName(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_GRID: |
| return isAsGrid(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_TABLE: |
| return isAsTable(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__SIDE_KICK: |
| return isSideKick(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__TYPE: |
| if (resolve) return getType(); |
| return basicGetType(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @SuppressWarnings("unchecked") |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__LAZY: |
| setLazy((Boolean)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES: |
| getProperties().clear(); |
| getProperties().addAll((Collection<? extends LKeyAndValue>)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS: |
| getConstraints().clear(); |
| getConstraints().addAll((Collection<? extends LDatatypeConstraint>)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__IS_GROUPED: |
| setIsGrouped((Boolean)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__GROUP_NAME: |
| setGroupName((String)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_GRID: |
| setAsGrid((Boolean)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_TABLE: |
| setAsTable((Boolean)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__SIDE_KICK: |
| setSideKick((Boolean)newValue); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__TYPE: |
| setType((LDto)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__LAZY: |
| setLazy(LAZY_EDEFAULT); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES: |
| getProperties().clear(); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS: |
| getConstraints().clear(); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__IS_GROUPED: |
| setIsGrouped(IS_GROUPED_EDEFAULT); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__GROUP_NAME: |
| setGroupName(GROUP_NAME_EDEFAULT); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_GRID: |
| setAsGrid(AS_GRID_EDEFAULT); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_TABLE: |
| setAsTable(AS_TABLE_EDEFAULT); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__SIDE_KICK: |
| setSideKick(SIDE_KICK_EDEFAULT); |
| return; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__TYPE: |
| setType((LDto)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__LAZY: |
| return lazy != LAZY_EDEFAULT; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES: |
| return properties != null && !properties.isEmpty(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS: |
| return constraints != null && !constraints.isEmpty(); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__IS_GROUPED: |
| return isGrouped != IS_GROUPED_EDEFAULT; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__GROUP_NAME: |
| return GROUP_NAME_EDEFAULT == null ? groupName != null : !GROUP_NAME_EDEFAULT.equals(groupName); |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_GRID: |
| return asGrid != AS_GRID_EDEFAULT; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_TABLE: |
| return asTable != AS_TABLE_EDEFAULT; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__SIDE_KICK: |
| return sideKick != SIDE_KICK_EDEFAULT; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__TYPE: |
| return type != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { |
| if (baseClass == LReference.class) { |
| switch (derivedFeatureID) { |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__LAZY: return OSBPTypesPackage.LREFERENCE__LAZY; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES: return OSBPTypesPackage.LREFERENCE__PROPERTIES; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS: return OSBPTypesPackage.LREFERENCE__CONSTRAINTS; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__IS_GROUPED: return OSBPTypesPackage.LREFERENCE__IS_GROUPED; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__GROUP_NAME: return OSBPTypesPackage.LREFERENCE__GROUP_NAME; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_GRID: return OSBPTypesPackage.LREFERENCE__AS_GRID; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_TABLE: return OSBPTypesPackage.LREFERENCE__AS_TABLE; |
| case OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__SIDE_KICK: return OSBPTypesPackage.LREFERENCE__SIDE_KICK; |
| default: return -1; |
| } |
| } |
| return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { |
| if (baseClass == LReference.class) { |
| switch (baseFeatureID) { |
| case OSBPTypesPackage.LREFERENCE__LAZY: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__LAZY; |
| case OSBPTypesPackage.LREFERENCE__PROPERTIES: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__PROPERTIES; |
| case OSBPTypesPackage.LREFERENCE__CONSTRAINTS: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__CONSTRAINTS; |
| case OSBPTypesPackage.LREFERENCE__IS_GROUPED: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__IS_GROUPED; |
| case OSBPTypesPackage.LREFERENCE__GROUP_NAME: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__GROUP_NAME; |
| case OSBPTypesPackage.LREFERENCE__AS_GRID: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_GRID; |
| case OSBPTypesPackage.LREFERENCE__AS_TABLE: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__AS_TABLE; |
| case OSBPTypesPackage.LREFERENCE__SIDE_KICK: return OSBPDtoPackage.LDTO_ABSTRACT_REFERENCE__SIDE_KICK; |
| default: return -1; |
| } |
| } |
| return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public String toString() { |
| if (eIsProxy()) return super.toString(); |
| |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (lazy: "); |
| result.append(lazy); |
| result.append(", isGrouped: "); |
| result.append(isGrouped); |
| result.append(", groupName: "); |
| result.append(groupName); |
| result.append(", asGrid: "); |
| result.append(asGrid); |
| result.append(", asTable: "); |
| result.append(asTable); |
| result.append(", sideKick: "); |
| result.append(sideKick); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //LDtoAbstractReferenceImpl |