blob: ac59f1551d1b471985f2676a7e820caa99031bf7 [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - 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
*
* Based on ideas from Xtext, Xtend, Xcore
*
* Contributors:
* Joerg Riegel - Initial implementation
*
*/
package org.eclipse.osbp.xtext.dialogdsl.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.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.osbp.dsl.semantic.dto.LDto;
import org.eclipse.osbp.ecview.semantic.uimodel.UiView;
import org.eclipse.osbp.xtext.action.ActionToolbar;
import org.eclipse.osbp.xtext.dialogdsl.Dialog;
import org.eclipse.osbp.xtext.dialogdsl.DialogDSLPackage;
import org.eclipse.osbp.xtext.dialogdsl.DialogFieldHook;
import org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDialogGroup;
import org.eclipse.osbp.xtext.functionlibrarydsl.FunctionLibraryDialogHook;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Dialog</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#isDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getDescriptionValue <em>Description Value</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getUiView <em>Ui View</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getToolbar <em>Toolbar</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#isEmbedded <em>Embedded</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#isStateful <em>Stateful</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#isParametrized <em>Parametrized</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#isAutowire <em>Autowire</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#isReadOnly <em>Read Only</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getDto <em>Dto</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getNumColumns <em>Num Columns</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getGroup <em>Group</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getInitialization <em>Initialization</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getPreSave <em>Pre Save</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getPostSave <em>Post Save</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.dialogdsl.impl.DialogImpl#getFieldHooks <em>Field Hooks</em>}</li>
* </ul>
*
* @generated
*/
public class DialogImpl extends DialogBaseImpl implements Dialog {
/**
* The default value of the '{@link #isDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isDescription()
* @generated
* @ordered
*/
protected static final boolean DESCRIPTION_EDEFAULT = false;
/**
* The cached value of the '{@link #isDescription() <em>Description</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isDescription()
* @generated
* @ordered
*/
protected boolean description = DESCRIPTION_EDEFAULT;
/**
* The default value of the '{@link #getDescriptionValue() <em>Description Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescriptionValue()
* @generated
* @ordered
*/
protected static final String DESCRIPTION_VALUE_EDEFAULT = null;
/**
* The cached value of the '{@link #getDescriptionValue() <em>Description Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescriptionValue()
* @generated
* @ordered
*/
protected String descriptionValue = DESCRIPTION_VALUE_EDEFAULT;
/**
* The cached value of the '{@link #getUiView() <em>Ui View</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUiView()
* @generated
* @ordered
*/
protected UiView uiView;
/**
* The cached value of the '{@link #getToolbar() <em>Toolbar</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getToolbar()
* @generated
* @ordered
*/
protected ActionToolbar toolbar;
/**
* The default value of the '{@link #isEmbedded() <em>Embedded</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isEmbedded()
* @generated
* @ordered
*/
protected static final boolean EMBEDDED_EDEFAULT = false;
/**
* The cached value of the '{@link #isEmbedded() <em>Embedded</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isEmbedded()
* @generated
* @ordered
*/
protected boolean embedded = EMBEDDED_EDEFAULT;
/**
* The default value of the '{@link #isStateful() <em>Stateful</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isStateful()
* @generated
* @ordered
*/
protected static final boolean STATEFUL_EDEFAULT = false;
/**
* The cached value of the '{@link #isStateful() <em>Stateful</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isStateful()
* @generated
* @ordered
*/
protected boolean stateful = STATEFUL_EDEFAULT;
/**
* The default value of the '{@link #isParametrized() <em>Parametrized</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isParametrized()
* @generated
* @ordered
*/
protected static final boolean PARAMETRIZED_EDEFAULT = false;
/**
* The cached value of the '{@link #isParametrized() <em>Parametrized</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isParametrized()
* @generated
* @ordered
*/
protected boolean parametrized = PARAMETRIZED_EDEFAULT;
/**
* The default value of the '{@link #isAutowire() <em>Autowire</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isAutowire()
* @generated
* @ordered
*/
protected static final boolean AUTOWIRE_EDEFAULT = false;
/**
* The cached value of the '{@link #isAutowire() <em>Autowire</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isAutowire()
* @generated
* @ordered
*/
protected boolean autowire = AUTOWIRE_EDEFAULT;
/**
* The default value of the '{@link #isReadOnly() <em>Read Only</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isReadOnly()
* @generated
* @ordered
*/
protected static final boolean READ_ONLY_EDEFAULT = false;
/**
* The cached value of the '{@link #isReadOnly() <em>Read Only</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #isReadOnly()
* @generated
* @ordered
*/
protected boolean readOnly = READ_ONLY_EDEFAULT;
/**
* The cached value of the '{@link #getDto() <em>Dto</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDto()
* @generated
* @ordered
*/
protected LDto dto;
/**
* The default value of the '{@link #getNumColumns() <em>Num Columns</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumColumns()
* @generated
* @ordered
*/
protected static final int NUM_COLUMNS_EDEFAULT = 0;
/**
* The cached value of the '{@link #getNumColumns() <em>Num Columns</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getNumColumns()
* @generated
* @ordered
*/
protected int numColumns = NUM_COLUMNS_EDEFAULT;
/**
* The cached value of the '{@link #getGroup() <em>Group</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getGroup()
* @generated
* @ordered
*/
protected FunctionLibraryDialogGroup group;
/**
* The cached value of the '{@link #getInitialization() <em>Initialization</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getInitialization()
* @generated
* @ordered
*/
protected FunctionLibraryDialogHook initialization;
/**
* The cached value of the '{@link #getPreSave() <em>Pre Save</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPreSave()
* @generated
* @ordered
*/
protected FunctionLibraryDialogHook preSave;
/**
* The cached value of the '{@link #getPostSave() <em>Post Save</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPostSave()
* @generated
* @ordered
*/
protected FunctionLibraryDialogHook postSave;
/**
* The cached value of the '{@link #getFieldHooks() <em>Field Hooks</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFieldHooks()
* @generated
* @ordered
*/
protected EList<DialogFieldHook> fieldHooks;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected DialogImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return DialogDSLPackage.Literals.DIALOG;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isDescription() {
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(boolean newDescription) {
boolean oldDescription = description;
description = newDescription;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__DESCRIPTION, oldDescription, description));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDescriptionValue() {
return descriptionValue;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescriptionValue(String newDescriptionValue) {
String oldDescriptionValue = descriptionValue;
descriptionValue = newDescriptionValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__DESCRIPTION_VALUE, oldDescriptionValue, descriptionValue));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public UiView getUiView() {
if (uiView != null && uiView.eIsProxy()) {
InternalEObject oldUiView = (InternalEObject)uiView;
uiView = (UiView)eResolveProxy(oldUiView);
if (uiView != oldUiView) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DialogDSLPackage.DIALOG__UI_VIEW, oldUiView, uiView));
}
}
return uiView;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public UiView basicGetUiView() {
return uiView;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUiView(UiView newUiView) {
UiView oldUiView = uiView;
uiView = newUiView;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__UI_VIEW, oldUiView, uiView));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActionToolbar getToolbar() {
if (toolbar != null && toolbar.eIsProxy()) {
InternalEObject oldToolbar = (InternalEObject)toolbar;
toolbar = (ActionToolbar)eResolveProxy(oldToolbar);
if (toolbar != oldToolbar) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DialogDSLPackage.DIALOG__TOOLBAR, oldToolbar, toolbar));
}
}
return toolbar;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ActionToolbar basicGetToolbar() {
return toolbar;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setToolbar(ActionToolbar newToolbar) {
ActionToolbar oldToolbar = toolbar;
toolbar = newToolbar;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__TOOLBAR, oldToolbar, toolbar));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isEmbedded() {
return embedded;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setEmbedded(boolean newEmbedded) {
boolean oldEmbedded = embedded;
embedded = newEmbedded;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__EMBEDDED, oldEmbedded, embedded));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isStateful() {
return stateful;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStateful(boolean newStateful) {
boolean oldStateful = stateful;
stateful = newStateful;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__STATEFUL, oldStateful, stateful));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isParametrized() {
return parametrized;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setParametrized(boolean newParametrized) {
boolean oldParametrized = parametrized;
parametrized = newParametrized;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__PARAMETRIZED, oldParametrized, parametrized));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isAutowire() {
return autowire;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setAutowire(boolean newAutowire) {
boolean oldAutowire = autowire;
autowire = newAutowire;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__AUTOWIRE, oldAutowire, autowire));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean isReadOnly() {
return readOnly;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setReadOnly(boolean newReadOnly) {
boolean oldReadOnly = readOnly;
readOnly = newReadOnly;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__READ_ONLY, oldReadOnly, readOnly));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public LDto getDto() {
if (dto != null && dto.eIsProxy()) {
InternalEObject oldDto = (InternalEObject)dto;
dto = (LDto)eResolveProxy(oldDto);
if (dto != oldDto) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DialogDSLPackage.DIALOG__DTO, oldDto, dto));
}
}
return dto;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public LDto basicGetDto() {
return dto;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDto(LDto newDto) {
LDto oldDto = dto;
dto = newDto;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__DTO, oldDto, dto));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getNumColumns() {
return numColumns;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setNumColumns(int newNumColumns) {
int oldNumColumns = numColumns;
numColumns = newNumColumns;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__NUM_COLUMNS, oldNumColumns, numColumns));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogGroup getGroup() {
if (group != null && group.eIsProxy()) {
InternalEObject oldGroup = (InternalEObject)group;
group = (FunctionLibraryDialogGroup)eResolveProxy(oldGroup);
if (group != oldGroup) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DialogDSLPackage.DIALOG__GROUP, oldGroup, group));
}
}
return group;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogGroup basicGetGroup() {
return group;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setGroup(FunctionLibraryDialogGroup newGroup) {
FunctionLibraryDialogGroup oldGroup = group;
group = newGroup;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__GROUP, oldGroup, group));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogHook getInitialization() {
if (initialization != null && initialization.eIsProxy()) {
InternalEObject oldInitialization = (InternalEObject)initialization;
initialization = (FunctionLibraryDialogHook)eResolveProxy(oldInitialization);
if (initialization != oldInitialization) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DialogDSLPackage.DIALOG__INITIALIZATION, oldInitialization, initialization));
}
}
return initialization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogHook basicGetInitialization() {
return initialization;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setInitialization(FunctionLibraryDialogHook newInitialization) {
FunctionLibraryDialogHook oldInitialization = initialization;
initialization = newInitialization;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__INITIALIZATION, oldInitialization, initialization));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogHook getPreSave() {
if (preSave != null && preSave.eIsProxy()) {
InternalEObject oldPreSave = (InternalEObject)preSave;
preSave = (FunctionLibraryDialogHook)eResolveProxy(oldPreSave);
if (preSave != oldPreSave) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DialogDSLPackage.DIALOG__PRE_SAVE, oldPreSave, preSave));
}
}
return preSave;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogHook basicGetPreSave() {
return preSave;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPreSave(FunctionLibraryDialogHook newPreSave) {
FunctionLibraryDialogHook oldPreSave = preSave;
preSave = newPreSave;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__PRE_SAVE, oldPreSave, preSave));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogHook getPostSave() {
if (postSave != null && postSave.eIsProxy()) {
InternalEObject oldPostSave = (InternalEObject)postSave;
postSave = (FunctionLibraryDialogHook)eResolveProxy(oldPostSave);
if (postSave != oldPostSave) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, DialogDSLPackage.DIALOG__POST_SAVE, oldPostSave, postSave));
}
}
return postSave;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FunctionLibraryDialogHook basicGetPostSave() {
return postSave;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPostSave(FunctionLibraryDialogHook newPostSave) {
FunctionLibraryDialogHook oldPostSave = postSave;
postSave = newPostSave;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DialogDSLPackage.DIALOG__POST_SAVE, oldPostSave, postSave));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<DialogFieldHook> getFieldHooks() {
if (fieldHooks == null) {
fieldHooks = new EObjectContainmentEList<DialogFieldHook>(DialogFieldHook.class, this, DialogDSLPackage.DIALOG__FIELD_HOOKS);
}
return fieldHooks;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case DialogDSLPackage.DIALOG__FIELD_HOOKS:
return ((InternalEList<?>)getFieldHooks()).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 DialogDSLPackage.DIALOG__DESCRIPTION:
return isDescription();
case DialogDSLPackage.DIALOG__DESCRIPTION_VALUE:
return getDescriptionValue();
case DialogDSLPackage.DIALOG__UI_VIEW:
if (resolve) return getUiView();
return basicGetUiView();
case DialogDSLPackage.DIALOG__TOOLBAR:
if (resolve) return getToolbar();
return basicGetToolbar();
case DialogDSLPackage.DIALOG__EMBEDDED:
return isEmbedded();
case DialogDSLPackage.DIALOG__STATEFUL:
return isStateful();
case DialogDSLPackage.DIALOG__PARAMETRIZED:
return isParametrized();
case DialogDSLPackage.DIALOG__AUTOWIRE:
return isAutowire();
case DialogDSLPackage.DIALOG__READ_ONLY:
return isReadOnly();
case DialogDSLPackage.DIALOG__DTO:
if (resolve) return getDto();
return basicGetDto();
case DialogDSLPackage.DIALOG__NUM_COLUMNS:
return getNumColumns();
case DialogDSLPackage.DIALOG__GROUP:
if (resolve) return getGroup();
return basicGetGroup();
case DialogDSLPackage.DIALOG__INITIALIZATION:
if (resolve) return getInitialization();
return basicGetInitialization();
case DialogDSLPackage.DIALOG__PRE_SAVE:
if (resolve) return getPreSave();
return basicGetPreSave();
case DialogDSLPackage.DIALOG__POST_SAVE:
if (resolve) return getPostSave();
return basicGetPostSave();
case DialogDSLPackage.DIALOG__FIELD_HOOKS:
return getFieldHooks();
}
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 DialogDSLPackage.DIALOG__DESCRIPTION:
setDescription((Boolean)newValue);
return;
case DialogDSLPackage.DIALOG__DESCRIPTION_VALUE:
setDescriptionValue((String)newValue);
return;
case DialogDSLPackage.DIALOG__UI_VIEW:
setUiView((UiView)newValue);
return;
case DialogDSLPackage.DIALOG__TOOLBAR:
setToolbar((ActionToolbar)newValue);
return;
case DialogDSLPackage.DIALOG__EMBEDDED:
setEmbedded((Boolean)newValue);
return;
case DialogDSLPackage.DIALOG__STATEFUL:
setStateful((Boolean)newValue);
return;
case DialogDSLPackage.DIALOG__PARAMETRIZED:
setParametrized((Boolean)newValue);
return;
case DialogDSLPackage.DIALOG__AUTOWIRE:
setAutowire((Boolean)newValue);
return;
case DialogDSLPackage.DIALOG__READ_ONLY:
setReadOnly((Boolean)newValue);
return;
case DialogDSLPackage.DIALOG__DTO:
setDto((LDto)newValue);
return;
case DialogDSLPackage.DIALOG__NUM_COLUMNS:
setNumColumns((Integer)newValue);
return;
case DialogDSLPackage.DIALOG__GROUP:
setGroup((FunctionLibraryDialogGroup)newValue);
return;
case DialogDSLPackage.DIALOG__INITIALIZATION:
setInitialization((FunctionLibraryDialogHook)newValue);
return;
case DialogDSLPackage.DIALOG__PRE_SAVE:
setPreSave((FunctionLibraryDialogHook)newValue);
return;
case DialogDSLPackage.DIALOG__POST_SAVE:
setPostSave((FunctionLibraryDialogHook)newValue);
return;
case DialogDSLPackage.DIALOG__FIELD_HOOKS:
getFieldHooks().clear();
getFieldHooks().addAll((Collection<? extends DialogFieldHook>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case DialogDSLPackage.DIALOG__DESCRIPTION:
setDescription(DESCRIPTION_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__DESCRIPTION_VALUE:
setDescriptionValue(DESCRIPTION_VALUE_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__UI_VIEW:
setUiView((UiView)null);
return;
case DialogDSLPackage.DIALOG__TOOLBAR:
setToolbar((ActionToolbar)null);
return;
case DialogDSLPackage.DIALOG__EMBEDDED:
setEmbedded(EMBEDDED_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__STATEFUL:
setStateful(STATEFUL_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__PARAMETRIZED:
setParametrized(PARAMETRIZED_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__AUTOWIRE:
setAutowire(AUTOWIRE_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__READ_ONLY:
setReadOnly(READ_ONLY_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__DTO:
setDto((LDto)null);
return;
case DialogDSLPackage.DIALOG__NUM_COLUMNS:
setNumColumns(NUM_COLUMNS_EDEFAULT);
return;
case DialogDSLPackage.DIALOG__GROUP:
setGroup((FunctionLibraryDialogGroup)null);
return;
case DialogDSLPackage.DIALOG__INITIALIZATION:
setInitialization((FunctionLibraryDialogHook)null);
return;
case DialogDSLPackage.DIALOG__PRE_SAVE:
setPreSave((FunctionLibraryDialogHook)null);
return;
case DialogDSLPackage.DIALOG__POST_SAVE:
setPostSave((FunctionLibraryDialogHook)null);
return;
case DialogDSLPackage.DIALOG__FIELD_HOOKS:
getFieldHooks().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case DialogDSLPackage.DIALOG__DESCRIPTION:
return description != DESCRIPTION_EDEFAULT;
case DialogDSLPackage.DIALOG__DESCRIPTION_VALUE:
return DESCRIPTION_VALUE_EDEFAULT == null ? descriptionValue != null : !DESCRIPTION_VALUE_EDEFAULT.equals(descriptionValue);
case DialogDSLPackage.DIALOG__UI_VIEW:
return uiView != null;
case DialogDSLPackage.DIALOG__TOOLBAR:
return toolbar != null;
case DialogDSLPackage.DIALOG__EMBEDDED:
return embedded != EMBEDDED_EDEFAULT;
case DialogDSLPackage.DIALOG__STATEFUL:
return stateful != STATEFUL_EDEFAULT;
case DialogDSLPackage.DIALOG__PARAMETRIZED:
return parametrized != PARAMETRIZED_EDEFAULT;
case DialogDSLPackage.DIALOG__AUTOWIRE:
return autowire != AUTOWIRE_EDEFAULT;
case DialogDSLPackage.DIALOG__READ_ONLY:
return readOnly != READ_ONLY_EDEFAULT;
case DialogDSLPackage.DIALOG__DTO:
return dto != null;
case DialogDSLPackage.DIALOG__NUM_COLUMNS:
return numColumns != NUM_COLUMNS_EDEFAULT;
case DialogDSLPackage.DIALOG__GROUP:
return group != null;
case DialogDSLPackage.DIALOG__INITIALIZATION:
return initialization != null;
case DialogDSLPackage.DIALOG__PRE_SAVE:
return preSave != null;
case DialogDSLPackage.DIALOG__POST_SAVE:
return postSave != null;
case DialogDSLPackage.DIALOG__FIELD_HOOKS:
return fieldHooks != null && !fieldHooks.isEmpty();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (description: ");
result.append(description);
result.append(", descriptionValue: ");
result.append(descriptionValue);
result.append(", embedded: ");
result.append(embedded);
result.append(", stateful: ");
result.append(stateful);
result.append(", parametrized: ");
result.append(parametrized);
result.append(", autowire: ");
result.append(autowire);
result.append(", readOnly: ");
result.append(readOnly);
result.append(", numColumns: ");
result.append(numColumns);
result.append(')');
return result.toString();
}
} //DialogImpl