| /** |
| * 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.reportdsl.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 org.eclipse.osbp.xtext.action.ActionToolbar; |
| |
| import org.eclipse.osbp.xtext.datamartdsl.DatamartDefinition; |
| |
| import org.eclipse.osbp.xtext.reportdsl.DatamartContainer; |
| import org.eclipse.osbp.xtext.reportdsl.Media; |
| import org.eclipse.osbp.xtext.reportdsl.PageTemplate; |
| import org.eclipse.osbp.xtext.reportdsl.RenderingEnum; |
| import org.eclipse.osbp.xtext.reportdsl.Report; |
| import org.eclipse.osbp.xtext.reportdsl.ReportDSLPackage; |
| import org.eclipse.osbp.xtext.reportdsl.ReportDesign; |
| import org.eclipse.osbp.xtext.reportdsl.UnitEnum; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Report</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getDatamartRef <em>Datamart Ref</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#isSelectById <em>Select By Id</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#isDescription <em>Description</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getDescriptionValue <em>Description Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getRendering <em>Rendering</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getExternalCssURI <em>External Css URI</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getExternalCssURIBundle <em>External Css URI Bundle</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getDefaultUnit <em>Default Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getPageTemplate <em>Page Template</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getMedia <em>Media</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getToolbar <em>Toolbar</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportImpl#getDesign <em>Design</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class ReportImpl extends ReportBaseImpl implements Report { |
| /** |
| * The cached value of the '{@link #getDatamartRef() <em>Datamart Ref</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDatamartRef() |
| * @generated |
| * @ordered |
| */ |
| protected DatamartDefinition datamartRef; |
| |
| /** |
| * The default value of the '{@link #isSelectById() <em>Select By Id</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isSelectById() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean SELECT_BY_ID_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isSelectById() <em>Select By Id</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isSelectById() |
| * @generated |
| * @ordered |
| */ |
| protected boolean selectById = SELECT_BY_ID_EDEFAULT; |
| |
| /** |
| * 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 default value of the '{@link #getRendering() <em>Rendering</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRendering() |
| * @generated |
| * @ordered |
| */ |
| protected static final RenderingEnum RENDERING_EDEFAULT = RenderingEnum.HTML; |
| |
| /** |
| * The cached value of the '{@link #getRendering() <em>Rendering</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRendering() |
| * @generated |
| * @ordered |
| */ |
| protected RenderingEnum rendering = RENDERING_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getExternalCssURI() <em>External Css URI</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getExternalCssURI() |
| * @generated |
| * @ordered |
| */ |
| protected static final String EXTERNAL_CSS_URI_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getExternalCssURI() <em>External Css URI</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getExternalCssURI() |
| * @generated |
| * @ordered |
| */ |
| protected String externalCssURI = EXTERNAL_CSS_URI_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getExternalCssURIBundle() <em>External Css URI Bundle</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getExternalCssURIBundle() |
| * @generated |
| * @ordered |
| */ |
| protected static final String EXTERNAL_CSS_URI_BUNDLE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getExternalCssURIBundle() <em>External Css URI Bundle</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getExternalCssURIBundle() |
| * @generated |
| * @ordered |
| */ |
| protected String externalCssURIBundle = EXTERNAL_CSS_URI_BUNDLE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDefaultUnit() <em>Default Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum DEFAULT_UNIT_EDEFAULT = UnitEnum.MM; |
| |
| /** |
| * The cached value of the '{@link #getDefaultUnit() <em>Default Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDefaultUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum defaultUnit = DEFAULT_UNIT_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getPageTemplate() <em>Page Template</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPageTemplate() |
| * @generated |
| * @ordered |
| */ |
| protected PageTemplate pageTemplate; |
| |
| /** |
| * The cached value of the '{@link #getMedia() <em>Media</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMedia() |
| * @generated |
| * @ordered |
| */ |
| protected Media media; |
| |
| /** |
| * 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 cached value of the '{@link #getDesign() <em>Design</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDesign() |
| * @generated |
| * @ordered |
| */ |
| protected ReportDesign design; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected ReportImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return ReportDSLPackage.Literals.REPORT; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DatamartDefinition getDatamartRef() { |
| if (datamartRef != null && datamartRef.eIsProxy()) { |
| InternalEObject oldDatamartRef = (InternalEObject)datamartRef; |
| datamartRef = (DatamartDefinition)eResolveProxy(oldDatamartRef); |
| if (datamartRef != oldDatamartRef) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.REPORT__DATAMART_REF, oldDatamartRef, datamartRef)); |
| } |
| } |
| return datamartRef; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public DatamartDefinition basicGetDatamartRef() { |
| return datamartRef; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDatamartRef(DatamartDefinition newDatamartRef) { |
| DatamartDefinition oldDatamartRef = datamartRef; |
| datamartRef = newDatamartRef; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__DATAMART_REF, oldDatamartRef, datamartRef)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isSelectById() { |
| return selectById; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setSelectById(boolean newSelectById) { |
| boolean oldSelectById = selectById; |
| selectById = newSelectById; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__SELECT_BY_ID, oldSelectById, selectById)); |
| } |
| |
| /** |
| * <!-- 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, ReportDSLPackage.REPORT__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, ReportDSLPackage.REPORT__DESCRIPTION_VALUE, oldDescriptionValue, descriptionValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public RenderingEnum getRendering() { |
| return rendering; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRendering(RenderingEnum newRendering) { |
| RenderingEnum oldRendering = rendering; |
| rendering = newRendering == null ? RENDERING_EDEFAULT : newRendering; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__RENDERING, oldRendering, rendering)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getExternalCssURI() { |
| return externalCssURI; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setExternalCssURI(String newExternalCssURI) { |
| String oldExternalCssURI = externalCssURI; |
| externalCssURI = newExternalCssURI; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__EXTERNAL_CSS_URI, oldExternalCssURI, externalCssURI)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getExternalCssURIBundle() { |
| return externalCssURIBundle; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setExternalCssURIBundle(String newExternalCssURIBundle) { |
| String oldExternalCssURIBundle = externalCssURIBundle; |
| externalCssURIBundle = newExternalCssURIBundle; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__EXTERNAL_CSS_URI_BUNDLE, oldExternalCssURIBundle, externalCssURIBundle)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getDefaultUnit() { |
| return defaultUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDefaultUnit(UnitEnum newDefaultUnit) { |
| UnitEnum oldDefaultUnit = defaultUnit; |
| defaultUnit = newDefaultUnit == null ? DEFAULT_UNIT_EDEFAULT : newDefaultUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__DEFAULT_UNIT, oldDefaultUnit, defaultUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PageTemplate getPageTemplate() { |
| if (pageTemplate != null && pageTemplate.eIsProxy()) { |
| InternalEObject oldPageTemplate = (InternalEObject)pageTemplate; |
| pageTemplate = (PageTemplate)eResolveProxy(oldPageTemplate); |
| if (pageTemplate != oldPageTemplate) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.REPORT__PAGE_TEMPLATE, oldPageTemplate, pageTemplate)); |
| } |
| } |
| return pageTemplate; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public PageTemplate basicGetPageTemplate() { |
| return pageTemplate; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPageTemplate(PageTemplate newPageTemplate) { |
| PageTemplate oldPageTemplate = pageTemplate; |
| pageTemplate = newPageTemplate; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__PAGE_TEMPLATE, oldPageTemplate, pageTemplate)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Media getMedia() { |
| if (media != null && media.eIsProxy()) { |
| InternalEObject oldMedia = (InternalEObject)media; |
| media = (Media)eResolveProxy(oldMedia); |
| if (media != oldMedia) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.REPORT__MEDIA, oldMedia, media)); |
| } |
| } |
| return media; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Media basicGetMedia() { |
| return media; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMedia(Media newMedia) { |
| Media oldMedia = media; |
| media = newMedia; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__MEDIA, oldMedia, media)); |
| } |
| |
| /** |
| * <!-- 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, ReportDSLPackage.REPORT__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, ReportDSLPackage.REPORT__TOOLBAR, oldToolbar, toolbar)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public ReportDesign getDesign() { |
| return design; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetDesign(ReportDesign newDesign, NotificationChain msgs) { |
| ReportDesign oldDesign = design; |
| design = newDesign; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__DESIGN, oldDesign, newDesign); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDesign(ReportDesign newDesign) { |
| if (newDesign != design) { |
| NotificationChain msgs = null; |
| if (design != null) |
| msgs = ((InternalEObject)design).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT__DESIGN, null, msgs); |
| if (newDesign != null) |
| msgs = ((InternalEObject)newDesign).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT__DESIGN, null, msgs); |
| msgs = basicSetDesign(newDesign, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT__DESIGN, newDesign, newDesign)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case ReportDSLPackage.REPORT__DESIGN: |
| return basicSetDesign(null, 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 ReportDSLPackage.REPORT__DATAMART_REF: |
| if (resolve) return getDatamartRef(); |
| return basicGetDatamartRef(); |
| case ReportDSLPackage.REPORT__SELECT_BY_ID: |
| return isSelectById(); |
| case ReportDSLPackage.REPORT__DESCRIPTION: |
| return isDescription(); |
| case ReportDSLPackage.REPORT__DESCRIPTION_VALUE: |
| return getDescriptionValue(); |
| case ReportDSLPackage.REPORT__RENDERING: |
| return getRendering(); |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI: |
| return getExternalCssURI(); |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI_BUNDLE: |
| return getExternalCssURIBundle(); |
| case ReportDSLPackage.REPORT__DEFAULT_UNIT: |
| return getDefaultUnit(); |
| case ReportDSLPackage.REPORT__PAGE_TEMPLATE: |
| if (resolve) return getPageTemplate(); |
| return basicGetPageTemplate(); |
| case ReportDSLPackage.REPORT__MEDIA: |
| if (resolve) return getMedia(); |
| return basicGetMedia(); |
| case ReportDSLPackage.REPORT__TOOLBAR: |
| if (resolve) return getToolbar(); |
| return basicGetToolbar(); |
| case ReportDSLPackage.REPORT__DESIGN: |
| return getDesign(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case ReportDSLPackage.REPORT__DATAMART_REF: |
| setDatamartRef((DatamartDefinition)newValue); |
| return; |
| case ReportDSLPackage.REPORT__SELECT_BY_ID: |
| setSelectById((Boolean)newValue); |
| return; |
| case ReportDSLPackage.REPORT__DESCRIPTION: |
| setDescription((Boolean)newValue); |
| return; |
| case ReportDSLPackage.REPORT__DESCRIPTION_VALUE: |
| setDescriptionValue((String)newValue); |
| return; |
| case ReportDSLPackage.REPORT__RENDERING: |
| setRendering((RenderingEnum)newValue); |
| return; |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI: |
| setExternalCssURI((String)newValue); |
| return; |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI_BUNDLE: |
| setExternalCssURIBundle((String)newValue); |
| return; |
| case ReportDSLPackage.REPORT__DEFAULT_UNIT: |
| setDefaultUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.REPORT__PAGE_TEMPLATE: |
| setPageTemplate((PageTemplate)newValue); |
| return; |
| case ReportDSLPackage.REPORT__MEDIA: |
| setMedia((Media)newValue); |
| return; |
| case ReportDSLPackage.REPORT__TOOLBAR: |
| setToolbar((ActionToolbar)newValue); |
| return; |
| case ReportDSLPackage.REPORT__DESIGN: |
| setDesign((ReportDesign)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case ReportDSLPackage.REPORT__DATAMART_REF: |
| setDatamartRef((DatamartDefinition)null); |
| return; |
| case ReportDSLPackage.REPORT__SELECT_BY_ID: |
| setSelectById(SELECT_BY_ID_EDEFAULT); |
| return; |
| case ReportDSLPackage.REPORT__DESCRIPTION: |
| setDescription(DESCRIPTION_EDEFAULT); |
| return; |
| case ReportDSLPackage.REPORT__DESCRIPTION_VALUE: |
| setDescriptionValue(DESCRIPTION_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.REPORT__RENDERING: |
| setRendering(RENDERING_EDEFAULT); |
| return; |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI: |
| setExternalCssURI(EXTERNAL_CSS_URI_EDEFAULT); |
| return; |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI_BUNDLE: |
| setExternalCssURIBundle(EXTERNAL_CSS_URI_BUNDLE_EDEFAULT); |
| return; |
| case ReportDSLPackage.REPORT__DEFAULT_UNIT: |
| setDefaultUnit(DEFAULT_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.REPORT__PAGE_TEMPLATE: |
| setPageTemplate((PageTemplate)null); |
| return; |
| case ReportDSLPackage.REPORT__MEDIA: |
| setMedia((Media)null); |
| return; |
| case ReportDSLPackage.REPORT__TOOLBAR: |
| setToolbar((ActionToolbar)null); |
| return; |
| case ReportDSLPackage.REPORT__DESIGN: |
| setDesign((ReportDesign)null); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case ReportDSLPackage.REPORT__DATAMART_REF: |
| return datamartRef != null; |
| case ReportDSLPackage.REPORT__SELECT_BY_ID: |
| return selectById != SELECT_BY_ID_EDEFAULT; |
| case ReportDSLPackage.REPORT__DESCRIPTION: |
| return description != DESCRIPTION_EDEFAULT; |
| case ReportDSLPackage.REPORT__DESCRIPTION_VALUE: |
| return DESCRIPTION_VALUE_EDEFAULT == null ? descriptionValue != null : !DESCRIPTION_VALUE_EDEFAULT.equals(descriptionValue); |
| case ReportDSLPackage.REPORT__RENDERING: |
| return rendering != RENDERING_EDEFAULT; |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI: |
| return EXTERNAL_CSS_URI_EDEFAULT == null ? externalCssURI != null : !EXTERNAL_CSS_URI_EDEFAULT.equals(externalCssURI); |
| case ReportDSLPackage.REPORT__EXTERNAL_CSS_URI_BUNDLE: |
| return EXTERNAL_CSS_URI_BUNDLE_EDEFAULT == null ? externalCssURIBundle != null : !EXTERNAL_CSS_URI_BUNDLE_EDEFAULT.equals(externalCssURIBundle); |
| case ReportDSLPackage.REPORT__DEFAULT_UNIT: |
| return defaultUnit != DEFAULT_UNIT_EDEFAULT; |
| case ReportDSLPackage.REPORT__PAGE_TEMPLATE: |
| return pageTemplate != null; |
| case ReportDSLPackage.REPORT__MEDIA: |
| return media != null; |
| case ReportDSLPackage.REPORT__TOOLBAR: |
| return toolbar != null; |
| case ReportDSLPackage.REPORT__DESIGN: |
| return design != null; |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { |
| if (baseClass == DatamartContainer.class) { |
| switch (derivedFeatureID) { |
| case ReportDSLPackage.REPORT__DATAMART_REF: return ReportDSLPackage.DATAMART_CONTAINER__DATAMART_REF; |
| 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 == DatamartContainer.class) { |
| switch (baseFeatureID) { |
| case ReportDSLPackage.DATAMART_CONTAINER__DATAMART_REF: return ReportDSLPackage.REPORT__DATAMART_REF; |
| 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(" (selectById: "); |
| result.append(selectById); |
| result.append(", description: "); |
| result.append(description); |
| result.append(", descriptionValue: "); |
| result.append(descriptionValue); |
| result.append(", rendering: "); |
| result.append(rendering); |
| result.append(", externalCssURI: "); |
| result.append(externalCssURI); |
| result.append(", externalCssURIBundle: "); |
| result.append(externalCssURIBundle); |
| result.append(", defaultUnit: "); |
| result.append(defaultUnit); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //ReportImpl |