blob: 413701877b97c69148a27ec70d4512b74b3b728e [file] [log] [blame]
/**
* 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 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.common.types.impl.LPackageImpl;
import org.eclipse.osbp.xtext.reportdsl.Colors;
import org.eclipse.osbp.xtext.reportdsl.Fonts;
import org.eclipse.osbp.xtext.reportdsl.Medias;
import org.eclipse.osbp.xtext.reportdsl.PageTemplates;
import org.eclipse.osbp.xtext.reportdsl.Report;
import org.eclipse.osbp.xtext.reportdsl.ReportDSLPackage;
import org.eclipse.osbp.xtext.reportdsl.ReportPackage;
import org.eclipse.osbp.xtext.reportdsl.SomeFormats;
import org.eclipse.osbp.xtext.reportdsl.Styles;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Report Package</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getExternalCssURI <em>External Css URI</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getExternalCssURIBundle <em>External Css URI Bundle</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getPagetemplates <em>Pagetemplates</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getFormatters <em>Formatters</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getColors <em>Colors</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getFonts <em>Fonts</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getMedias <em>Medias</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getStyles <em>Styles</em>}</li>
* <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.ReportPackageImpl#getReports <em>Reports</em>}</li>
* </ul>
*
* @generated
*/
public class ReportPackageImpl extends LPackageImpl implements ReportPackage {
/**
* 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 cached value of the '{@link #getPagetemplates() <em>Pagetemplates</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPagetemplates()
* @generated
* @ordered
*/
protected PageTemplates pagetemplates;
/**
* The cached value of the '{@link #getFormatters() <em>Formatters</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFormatters()
* @generated
* @ordered
*/
protected SomeFormats formatters;
/**
* The cached value of the '{@link #getColors() <em>Colors</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getColors()
* @generated
* @ordered
*/
protected Colors colors;
/**
* The cached value of the '{@link #getFonts() <em>Fonts</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getFonts()
* @generated
* @ordered
*/
protected Fonts fonts;
/**
* The cached value of the '{@link #getMedias() <em>Medias</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMedias()
* @generated
* @ordered
*/
protected Medias medias;
/**
* The cached value of the '{@link #getStyles() <em>Styles</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStyles()
* @generated
* @ordered
*/
protected Styles styles;
/**
* The cached value of the '{@link #getReports() <em>Reports</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getReports()
* @generated
* @ordered
*/
protected EList<Report> reports;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ReportPackageImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return ReportDSLPackage.Literals.REPORT_PACKAGE;
}
/**
* <!-- 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_PACKAGE__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_PACKAGE__EXTERNAL_CSS_URI_BUNDLE, oldExternalCssURIBundle, externalCssURIBundle));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public PageTemplates getPagetemplates() {
return pagetemplates;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPagetemplates(PageTemplates newPagetemplates, NotificationChain msgs) {
PageTemplates oldPagetemplates = pagetemplates;
pagetemplates = newPagetemplates;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES, oldPagetemplates, newPagetemplates);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPagetemplates(PageTemplates newPagetemplates) {
if (newPagetemplates != pagetemplates) {
NotificationChain msgs = null;
if (pagetemplates != null)
msgs = ((InternalEObject)pagetemplates).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES, null, msgs);
if (newPagetemplates != null)
msgs = ((InternalEObject)newPagetemplates).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES, null, msgs);
msgs = basicSetPagetemplates(newPagetemplates, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES, newPagetemplates, newPagetemplates));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public SomeFormats getFormatters() {
return formatters;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetFormatters(SomeFormats newFormatters, NotificationChain msgs) {
SomeFormats oldFormatters = formatters;
formatters = newFormatters;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__FORMATTERS, oldFormatters, newFormatters);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFormatters(SomeFormats newFormatters) {
if (newFormatters != formatters) {
NotificationChain msgs = null;
if (formatters != null)
msgs = ((InternalEObject)formatters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__FORMATTERS, null, msgs);
if (newFormatters != null)
msgs = ((InternalEObject)newFormatters).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__FORMATTERS, null, msgs);
msgs = basicSetFormatters(newFormatters, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__FORMATTERS, newFormatters, newFormatters));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Colors getColors() {
return colors;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetColors(Colors newColors, NotificationChain msgs) {
Colors oldColors = colors;
colors = newColors;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__COLORS, oldColors, newColors);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setColors(Colors newColors) {
if (newColors != colors) {
NotificationChain msgs = null;
if (colors != null)
msgs = ((InternalEObject)colors).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__COLORS, null, msgs);
if (newColors != null)
msgs = ((InternalEObject)newColors).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__COLORS, null, msgs);
msgs = basicSetColors(newColors, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__COLORS, newColors, newColors));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Fonts getFonts() {
return fonts;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetFonts(Fonts newFonts, NotificationChain msgs) {
Fonts oldFonts = fonts;
fonts = newFonts;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__FONTS, oldFonts, newFonts);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setFonts(Fonts newFonts) {
if (newFonts != fonts) {
NotificationChain msgs = null;
if (fonts != null)
msgs = ((InternalEObject)fonts).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__FONTS, null, msgs);
if (newFonts != null)
msgs = ((InternalEObject)newFonts).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__FONTS, null, msgs);
msgs = basicSetFonts(newFonts, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__FONTS, newFonts, newFonts));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Medias getMedias() {
return medias;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetMedias(Medias newMedias, NotificationChain msgs) {
Medias oldMedias = medias;
medias = newMedias;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__MEDIAS, oldMedias, newMedias);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMedias(Medias newMedias) {
if (newMedias != medias) {
NotificationChain msgs = null;
if (medias != null)
msgs = ((InternalEObject)medias).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__MEDIAS, null, msgs);
if (newMedias != null)
msgs = ((InternalEObject)newMedias).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__MEDIAS, null, msgs);
msgs = basicSetMedias(newMedias, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__MEDIAS, newMedias, newMedias));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Styles getStyles() {
return styles;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetStyles(Styles newStyles, NotificationChain msgs) {
Styles oldStyles = styles;
styles = newStyles;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__STYLES, oldStyles, newStyles);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStyles(Styles newStyles) {
if (newStyles != styles) {
NotificationChain msgs = null;
if (styles != null)
msgs = ((InternalEObject)styles).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__STYLES, null, msgs);
if (newStyles != null)
msgs = ((InternalEObject)newStyles).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.REPORT_PACKAGE__STYLES, null, msgs);
msgs = basicSetStyles(newStyles, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.REPORT_PACKAGE__STYLES, newStyles, newStyles));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<Report> getReports() {
if (reports == null) {
reports = new EObjectContainmentEList<Report>(Report.class, this, ReportDSLPackage.REPORT_PACKAGE__REPORTS);
}
return reports;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES:
return basicSetPagetemplates(null, msgs);
case ReportDSLPackage.REPORT_PACKAGE__FORMATTERS:
return basicSetFormatters(null, msgs);
case ReportDSLPackage.REPORT_PACKAGE__COLORS:
return basicSetColors(null, msgs);
case ReportDSLPackage.REPORT_PACKAGE__FONTS:
return basicSetFonts(null, msgs);
case ReportDSLPackage.REPORT_PACKAGE__MEDIAS:
return basicSetMedias(null, msgs);
case ReportDSLPackage.REPORT_PACKAGE__STYLES:
return basicSetStyles(null, msgs);
case ReportDSLPackage.REPORT_PACKAGE__REPORTS:
return ((InternalEList<?>)getReports()).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 ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI:
return getExternalCssURI();
case ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI_BUNDLE:
return getExternalCssURIBundle();
case ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES:
return getPagetemplates();
case ReportDSLPackage.REPORT_PACKAGE__FORMATTERS:
return getFormatters();
case ReportDSLPackage.REPORT_PACKAGE__COLORS:
return getColors();
case ReportDSLPackage.REPORT_PACKAGE__FONTS:
return getFonts();
case ReportDSLPackage.REPORT_PACKAGE__MEDIAS:
return getMedias();
case ReportDSLPackage.REPORT_PACKAGE__STYLES:
return getStyles();
case ReportDSLPackage.REPORT_PACKAGE__REPORTS:
return getReports();
}
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 ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI:
setExternalCssURI((String)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI_BUNDLE:
setExternalCssURIBundle((String)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES:
setPagetemplates((PageTemplates)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__FORMATTERS:
setFormatters((SomeFormats)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__COLORS:
setColors((Colors)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__FONTS:
setFonts((Fonts)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__MEDIAS:
setMedias((Medias)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__STYLES:
setStyles((Styles)newValue);
return;
case ReportDSLPackage.REPORT_PACKAGE__REPORTS:
getReports().clear();
getReports().addAll((Collection<? extends Report>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI:
setExternalCssURI(EXTERNAL_CSS_URI_EDEFAULT);
return;
case ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI_BUNDLE:
setExternalCssURIBundle(EXTERNAL_CSS_URI_BUNDLE_EDEFAULT);
return;
case ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES:
setPagetemplates((PageTemplates)null);
return;
case ReportDSLPackage.REPORT_PACKAGE__FORMATTERS:
setFormatters((SomeFormats)null);
return;
case ReportDSLPackage.REPORT_PACKAGE__COLORS:
setColors((Colors)null);
return;
case ReportDSLPackage.REPORT_PACKAGE__FONTS:
setFonts((Fonts)null);
return;
case ReportDSLPackage.REPORT_PACKAGE__MEDIAS:
setMedias((Medias)null);
return;
case ReportDSLPackage.REPORT_PACKAGE__STYLES:
setStyles((Styles)null);
return;
case ReportDSLPackage.REPORT_PACKAGE__REPORTS:
getReports().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI:
return EXTERNAL_CSS_URI_EDEFAULT == null ? externalCssURI != null : !EXTERNAL_CSS_URI_EDEFAULT.equals(externalCssURI);
case ReportDSLPackage.REPORT_PACKAGE__EXTERNAL_CSS_URI_BUNDLE:
return EXTERNAL_CSS_URI_BUNDLE_EDEFAULT == null ? externalCssURIBundle != null : !EXTERNAL_CSS_URI_BUNDLE_EDEFAULT.equals(externalCssURIBundle);
case ReportDSLPackage.REPORT_PACKAGE__PAGETEMPLATES:
return pagetemplates != null;
case ReportDSLPackage.REPORT_PACKAGE__FORMATTERS:
return formatters != null;
case ReportDSLPackage.REPORT_PACKAGE__COLORS:
return colors != null;
case ReportDSLPackage.REPORT_PACKAGE__FONTS:
return fonts != null;
case ReportDSLPackage.REPORT_PACKAGE__MEDIAS:
return medias != null;
case ReportDSLPackage.REPORT_PACKAGE__STYLES:
return styles != null;
case ReportDSLPackage.REPORT_PACKAGE__REPORTS:
return reports != null && !reports.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(" (externalCssURI: ");
result.append(externalCssURI);
result.append(", externalCssURIBundle: ");
result.append(externalCssURIBundle);
result.append(')');
return result.toString();
}
} //ReportPackageImpl