| /** |
| * 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.xtext.reportdsl.BaseStyle; |
| import org.eclipse.osbp.xtext.reportdsl.BorderStyle; |
| import org.eclipse.osbp.xtext.reportdsl.Color; |
| import org.eclipse.osbp.xtext.reportdsl.Font; |
| import org.eclipse.osbp.xtext.reportdsl.MediaStyle; |
| import org.eclipse.osbp.xtext.reportdsl.ReportDSLPackage; |
| import org.eclipse.osbp.xtext.reportdsl.SomeFormat; |
| import org.eclipse.osbp.xtext.reportdsl.Style; |
| import org.eclipse.osbp.xtext.reportdsl.TextAlignEnum; |
| import org.eclipse.osbp.xtext.reportdsl.UnitEnum; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Style</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getFormat <em>Format</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getFont <em>Font</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getBackgroundcolor <em>Backgroundcolor</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getBackgroundcolor_alternate <em>Backgroundcolor alternate</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getTextcolor <em>Textcolor</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getTextalign <em>Textalign</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getBorderTop <em>Border Top</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getBorderBottom <em>Border Bottom</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getBorderLeft <em>Border Left</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getBorderRight <em>Border Right</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingTopValue <em>Padding Top Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingTopUnit <em>Padding Top Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingBottomValue <em>Padding Bottom Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingBottomUnit <em>Padding Bottom Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingLeftValue <em>Padding Left Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingLeftUnit <em>Padding Left Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingRightValue <em>Padding Right Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getPaddingRightUnit <em>Padding Right Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginTopValue <em>Margin Top Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginTopUnit <em>Margin Top Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginLeftValue <em>Margin Left Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginLeftUnit <em>Margin Left Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginBottomValue <em>Margin Bottom Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginBottomUnit <em>Margin Bottom Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginRightValue <em>Margin Right Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMarginRightUnit <em>Margin Right Unit</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getExtends <em>Extends</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.reportdsl.impl.StyleImpl#getMediastyles <em>Mediastyles</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class StyleImpl extends ReportBaseImpl implements Style { |
| /** |
| * The cached value of the '{@link #getFormat() <em>Format</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFormat() |
| * @generated |
| * @ordered |
| */ |
| protected SomeFormat format; |
| |
| /** |
| * The cached value of the '{@link #getFont() <em>Font</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFont() |
| * @generated |
| * @ordered |
| */ |
| protected Font font; |
| |
| /** |
| * The cached value of the '{@link #getBackgroundcolor() <em>Backgroundcolor</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBackgroundcolor() |
| * @generated |
| * @ordered |
| */ |
| protected Color backgroundcolor; |
| |
| /** |
| * The cached value of the '{@link #getBackgroundcolor_alternate() <em>Backgroundcolor alternate</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBackgroundcolor_alternate() |
| * @generated |
| * @ordered |
| */ |
| protected Color backgroundcolor_alternate; |
| |
| /** |
| * The cached value of the '{@link #getTextcolor() <em>Textcolor</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTextcolor() |
| * @generated |
| * @ordered |
| */ |
| protected Color textcolor; |
| |
| /** |
| * The default value of the '{@link #getTextalign() <em>Textalign</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTextalign() |
| * @generated |
| * @ordered |
| */ |
| protected static final TextAlignEnum TEXTALIGN_EDEFAULT = TextAlignEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getTextalign() <em>Textalign</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTextalign() |
| * @generated |
| * @ordered |
| */ |
| protected TextAlignEnum textalign = TEXTALIGN_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getBorderTop() <em>Border Top</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBorderTop() |
| * @generated |
| * @ordered |
| */ |
| protected BorderStyle borderTop; |
| |
| /** |
| * The cached value of the '{@link #getBorderBottom() <em>Border Bottom</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBorderBottom() |
| * @generated |
| * @ordered |
| */ |
| protected BorderStyle borderBottom; |
| |
| /** |
| * The cached value of the '{@link #getBorderLeft() <em>Border Left</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBorderLeft() |
| * @generated |
| * @ordered |
| */ |
| protected BorderStyle borderLeft; |
| |
| /** |
| * The cached value of the '{@link #getBorderRight() <em>Border Right</em>}' containment reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getBorderRight() |
| * @generated |
| * @ordered |
| */ |
| protected BorderStyle borderRight; |
| |
| /** |
| * The default value of the '{@link #getPaddingTopValue() <em>Padding Top Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingTopValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double PADDING_TOP_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getPaddingTopValue() <em>Padding Top Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingTopValue() |
| * @generated |
| * @ordered |
| */ |
| protected double paddingTopValue = PADDING_TOP_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPaddingTopUnit() <em>Padding Top Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingTopUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum PADDING_TOP_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getPaddingTopUnit() <em>Padding Top Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingTopUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum paddingTopUnit = PADDING_TOP_UNIT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPaddingBottomValue() <em>Padding Bottom Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingBottomValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double PADDING_BOTTOM_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getPaddingBottomValue() <em>Padding Bottom Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingBottomValue() |
| * @generated |
| * @ordered |
| */ |
| protected double paddingBottomValue = PADDING_BOTTOM_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPaddingBottomUnit() <em>Padding Bottom Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingBottomUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum PADDING_BOTTOM_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getPaddingBottomUnit() <em>Padding Bottom Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingBottomUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum paddingBottomUnit = PADDING_BOTTOM_UNIT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPaddingLeftValue() <em>Padding Left Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingLeftValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double PADDING_LEFT_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getPaddingLeftValue() <em>Padding Left Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingLeftValue() |
| * @generated |
| * @ordered |
| */ |
| protected double paddingLeftValue = PADDING_LEFT_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPaddingLeftUnit() <em>Padding Left Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingLeftUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum PADDING_LEFT_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getPaddingLeftUnit() <em>Padding Left Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingLeftUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum paddingLeftUnit = PADDING_LEFT_UNIT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPaddingRightValue() <em>Padding Right Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingRightValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double PADDING_RIGHT_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getPaddingRightValue() <em>Padding Right Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingRightValue() |
| * @generated |
| * @ordered |
| */ |
| protected double paddingRightValue = PADDING_RIGHT_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getPaddingRightUnit() <em>Padding Right Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingRightUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum PADDING_RIGHT_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getPaddingRightUnit() <em>Padding Right Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getPaddingRightUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum paddingRightUnit = PADDING_RIGHT_UNIT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginTopValue() <em>Margin Top Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginTopValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double MARGIN_TOP_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getMarginTopValue() <em>Margin Top Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginTopValue() |
| * @generated |
| * @ordered |
| */ |
| protected double marginTopValue = MARGIN_TOP_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginTopUnit() <em>Margin Top Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginTopUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum MARGIN_TOP_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getMarginTopUnit() <em>Margin Top Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginTopUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum marginTopUnit = MARGIN_TOP_UNIT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginLeftValue() <em>Margin Left Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginLeftValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double MARGIN_LEFT_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getMarginLeftValue() <em>Margin Left Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginLeftValue() |
| * @generated |
| * @ordered |
| */ |
| protected double marginLeftValue = MARGIN_LEFT_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginLeftUnit() <em>Margin Left Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginLeftUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum MARGIN_LEFT_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getMarginLeftUnit() <em>Margin Left Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginLeftUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum marginLeftUnit = MARGIN_LEFT_UNIT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginBottomValue() <em>Margin Bottom Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginBottomValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double MARGIN_BOTTOM_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getMarginBottomValue() <em>Margin Bottom Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginBottomValue() |
| * @generated |
| * @ordered |
| */ |
| protected double marginBottomValue = MARGIN_BOTTOM_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginBottomUnit() <em>Margin Bottom Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginBottomUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum MARGIN_BOTTOM_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getMarginBottomUnit() <em>Margin Bottom Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginBottomUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum marginBottomUnit = MARGIN_BOTTOM_UNIT_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginRightValue() <em>Margin Right Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginRightValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final double MARGIN_RIGHT_VALUE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getMarginRightValue() <em>Margin Right Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginRightValue() |
| * @generated |
| * @ordered |
| */ |
| protected double marginRightValue = MARGIN_RIGHT_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMarginRightUnit() <em>Margin Right Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginRightUnit() |
| * @generated |
| * @ordered |
| */ |
| protected static final UnitEnum MARGIN_RIGHT_UNIT_EDEFAULT = UnitEnum.NULL; |
| |
| /** |
| * The cached value of the '{@link #getMarginRightUnit() <em>Margin Right Unit</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMarginRightUnit() |
| * @generated |
| * @ordered |
| */ |
| protected UnitEnum marginRightUnit = MARGIN_RIGHT_UNIT_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getExtends() <em>Extends</em>}' reference. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getExtends() |
| * @generated |
| * @ordered |
| */ |
| protected Style extends_; |
| |
| /** |
| * The cached value of the '{@link #getMediastyles() <em>Mediastyles</em>}' containment reference list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMediastyles() |
| * @generated |
| * @ordered |
| */ |
| protected EList<MediaStyle> mediastyles; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected StyleImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return ReportDSLPackage.Literals.STYLE; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SomeFormat getFormat() { |
| if (format != null && format.eIsProxy()) { |
| InternalEObject oldFormat = (InternalEObject)format; |
| format = (SomeFormat)eResolveProxy(oldFormat); |
| if (format != oldFormat) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.STYLE__FORMAT, oldFormat, format)); |
| } |
| } |
| return format; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public SomeFormat basicGetFormat() { |
| return format; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFormat(SomeFormat newFormat) { |
| SomeFormat oldFormat = format; |
| format = newFormat; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__FORMAT, oldFormat, format)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Font getFont() { |
| if (font != null && font.eIsProxy()) { |
| InternalEObject oldFont = (InternalEObject)font; |
| font = (Font)eResolveProxy(oldFont); |
| if (font != oldFont) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.STYLE__FONT, oldFont, font)); |
| } |
| } |
| return font; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Font basicGetFont() { |
| return font; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFont(Font newFont) { |
| Font oldFont = font; |
| font = newFont; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__FONT, oldFont, font)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Color getBackgroundcolor() { |
| if (backgroundcolor != null && backgroundcolor.eIsProxy()) { |
| InternalEObject oldBackgroundcolor = (InternalEObject)backgroundcolor; |
| backgroundcolor = (Color)eResolveProxy(oldBackgroundcolor); |
| if (backgroundcolor != oldBackgroundcolor) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.STYLE__BACKGROUNDCOLOR, oldBackgroundcolor, backgroundcolor)); |
| } |
| } |
| return backgroundcolor; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Color basicGetBackgroundcolor() { |
| return backgroundcolor; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBackgroundcolor(Color newBackgroundcolor) { |
| Color oldBackgroundcolor = backgroundcolor; |
| backgroundcolor = newBackgroundcolor; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BACKGROUNDCOLOR, oldBackgroundcolor, backgroundcolor)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Color getBackgroundcolor_alternate() { |
| if (backgroundcolor_alternate != null && backgroundcolor_alternate.eIsProxy()) { |
| InternalEObject oldBackgroundcolor_alternate = (InternalEObject)backgroundcolor_alternate; |
| backgroundcolor_alternate = (Color)eResolveProxy(oldBackgroundcolor_alternate); |
| if (backgroundcolor_alternate != oldBackgroundcolor_alternate) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE, oldBackgroundcolor_alternate, backgroundcolor_alternate)); |
| } |
| } |
| return backgroundcolor_alternate; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Color basicGetBackgroundcolor_alternate() { |
| return backgroundcolor_alternate; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBackgroundcolor_alternate(Color newBackgroundcolor_alternate) { |
| Color oldBackgroundcolor_alternate = backgroundcolor_alternate; |
| backgroundcolor_alternate = newBackgroundcolor_alternate; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE, oldBackgroundcolor_alternate, backgroundcolor_alternate)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Color getTextcolor() { |
| if (textcolor != null && textcolor.eIsProxy()) { |
| InternalEObject oldTextcolor = (InternalEObject)textcolor; |
| textcolor = (Color)eResolveProxy(oldTextcolor); |
| if (textcolor != oldTextcolor) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.STYLE__TEXTCOLOR, oldTextcolor, textcolor)); |
| } |
| } |
| return textcolor; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Color basicGetTextcolor() { |
| return textcolor; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTextcolor(Color newTextcolor) { |
| Color oldTextcolor = textcolor; |
| textcolor = newTextcolor; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__TEXTCOLOR, oldTextcolor, textcolor)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TextAlignEnum getTextalign() { |
| return textalign; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTextalign(TextAlignEnum newTextalign) { |
| TextAlignEnum oldTextalign = textalign; |
| textalign = newTextalign == null ? TEXTALIGN_EDEFAULT : newTextalign; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__TEXTALIGN, oldTextalign, textalign)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public BorderStyle getBorderTop() { |
| return borderTop; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetBorderTop(BorderStyle newBorderTop, NotificationChain msgs) { |
| BorderStyle oldBorderTop = borderTop; |
| borderTop = newBorderTop; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_TOP, oldBorderTop, newBorderTop); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBorderTop(BorderStyle newBorderTop) { |
| if (newBorderTop != borderTop) { |
| NotificationChain msgs = null; |
| if (borderTop != null) |
| msgs = ((InternalEObject)borderTop).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_TOP, null, msgs); |
| if (newBorderTop != null) |
| msgs = ((InternalEObject)newBorderTop).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_TOP, null, msgs); |
| msgs = basicSetBorderTop(newBorderTop, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_TOP, newBorderTop, newBorderTop)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public BorderStyle getBorderBottom() { |
| return borderBottom; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetBorderBottom(BorderStyle newBorderBottom, NotificationChain msgs) { |
| BorderStyle oldBorderBottom = borderBottom; |
| borderBottom = newBorderBottom; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_BOTTOM, oldBorderBottom, newBorderBottom); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBorderBottom(BorderStyle newBorderBottom) { |
| if (newBorderBottom != borderBottom) { |
| NotificationChain msgs = null; |
| if (borderBottom != null) |
| msgs = ((InternalEObject)borderBottom).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_BOTTOM, null, msgs); |
| if (newBorderBottom != null) |
| msgs = ((InternalEObject)newBorderBottom).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_BOTTOM, null, msgs); |
| msgs = basicSetBorderBottom(newBorderBottom, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_BOTTOM, newBorderBottom, newBorderBottom)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public BorderStyle getBorderLeft() { |
| return borderLeft; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetBorderLeft(BorderStyle newBorderLeft, NotificationChain msgs) { |
| BorderStyle oldBorderLeft = borderLeft; |
| borderLeft = newBorderLeft; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_LEFT, oldBorderLeft, newBorderLeft); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBorderLeft(BorderStyle newBorderLeft) { |
| if (newBorderLeft != borderLeft) { |
| NotificationChain msgs = null; |
| if (borderLeft != null) |
| msgs = ((InternalEObject)borderLeft).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_LEFT, null, msgs); |
| if (newBorderLeft != null) |
| msgs = ((InternalEObject)newBorderLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_LEFT, null, msgs); |
| msgs = basicSetBorderLeft(newBorderLeft, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_LEFT, newBorderLeft, newBorderLeft)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public BorderStyle getBorderRight() { |
| return borderRight; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain basicSetBorderRight(BorderStyle newBorderRight, NotificationChain msgs) { |
| BorderStyle oldBorderRight = borderRight; |
| borderRight = newBorderRight; |
| if (eNotificationRequired()) { |
| ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_RIGHT, oldBorderRight, newBorderRight); |
| if (msgs == null) msgs = notification; else msgs.add(notification); |
| } |
| return msgs; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setBorderRight(BorderStyle newBorderRight) { |
| if (newBorderRight != borderRight) { |
| NotificationChain msgs = null; |
| if (borderRight != null) |
| msgs = ((InternalEObject)borderRight).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_RIGHT, null, msgs); |
| if (newBorderRight != null) |
| msgs = ((InternalEObject)newBorderRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ReportDSLPackage.STYLE__BORDER_RIGHT, null, msgs); |
| msgs = basicSetBorderRight(newBorderRight, msgs); |
| if (msgs != null) msgs.dispatch(); |
| } |
| else if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__BORDER_RIGHT, newBorderRight, newBorderRight)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getPaddingTopValue() { |
| return paddingTopValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingTopValue(double newPaddingTopValue) { |
| double oldPaddingTopValue = paddingTopValue; |
| paddingTopValue = newPaddingTopValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_TOP_VALUE, oldPaddingTopValue, paddingTopValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getPaddingTopUnit() { |
| return paddingTopUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingTopUnit(UnitEnum newPaddingTopUnit) { |
| UnitEnum oldPaddingTopUnit = paddingTopUnit; |
| paddingTopUnit = newPaddingTopUnit == null ? PADDING_TOP_UNIT_EDEFAULT : newPaddingTopUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_TOP_UNIT, oldPaddingTopUnit, paddingTopUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getPaddingBottomValue() { |
| return paddingBottomValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingBottomValue(double newPaddingBottomValue) { |
| double oldPaddingBottomValue = paddingBottomValue; |
| paddingBottomValue = newPaddingBottomValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_BOTTOM_VALUE, oldPaddingBottomValue, paddingBottomValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getPaddingBottomUnit() { |
| return paddingBottomUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingBottomUnit(UnitEnum newPaddingBottomUnit) { |
| UnitEnum oldPaddingBottomUnit = paddingBottomUnit; |
| paddingBottomUnit = newPaddingBottomUnit == null ? PADDING_BOTTOM_UNIT_EDEFAULT : newPaddingBottomUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_BOTTOM_UNIT, oldPaddingBottomUnit, paddingBottomUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getPaddingLeftValue() { |
| return paddingLeftValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingLeftValue(double newPaddingLeftValue) { |
| double oldPaddingLeftValue = paddingLeftValue; |
| paddingLeftValue = newPaddingLeftValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_LEFT_VALUE, oldPaddingLeftValue, paddingLeftValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getPaddingLeftUnit() { |
| return paddingLeftUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingLeftUnit(UnitEnum newPaddingLeftUnit) { |
| UnitEnum oldPaddingLeftUnit = paddingLeftUnit; |
| paddingLeftUnit = newPaddingLeftUnit == null ? PADDING_LEFT_UNIT_EDEFAULT : newPaddingLeftUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_LEFT_UNIT, oldPaddingLeftUnit, paddingLeftUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getPaddingRightValue() { |
| return paddingRightValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingRightValue(double newPaddingRightValue) { |
| double oldPaddingRightValue = paddingRightValue; |
| paddingRightValue = newPaddingRightValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_RIGHT_VALUE, oldPaddingRightValue, paddingRightValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getPaddingRightUnit() { |
| return paddingRightUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPaddingRightUnit(UnitEnum newPaddingRightUnit) { |
| UnitEnum oldPaddingRightUnit = paddingRightUnit; |
| paddingRightUnit = newPaddingRightUnit == null ? PADDING_RIGHT_UNIT_EDEFAULT : newPaddingRightUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__PADDING_RIGHT_UNIT, oldPaddingRightUnit, paddingRightUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getMarginTopValue() { |
| return marginTopValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginTopValue(double newMarginTopValue) { |
| double oldMarginTopValue = marginTopValue; |
| marginTopValue = newMarginTopValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_TOP_VALUE, oldMarginTopValue, marginTopValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getMarginTopUnit() { |
| return marginTopUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginTopUnit(UnitEnum newMarginTopUnit) { |
| UnitEnum oldMarginTopUnit = marginTopUnit; |
| marginTopUnit = newMarginTopUnit == null ? MARGIN_TOP_UNIT_EDEFAULT : newMarginTopUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_TOP_UNIT, oldMarginTopUnit, marginTopUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getMarginLeftValue() { |
| return marginLeftValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginLeftValue(double newMarginLeftValue) { |
| double oldMarginLeftValue = marginLeftValue; |
| marginLeftValue = newMarginLeftValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_LEFT_VALUE, oldMarginLeftValue, marginLeftValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getMarginLeftUnit() { |
| return marginLeftUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginLeftUnit(UnitEnum newMarginLeftUnit) { |
| UnitEnum oldMarginLeftUnit = marginLeftUnit; |
| marginLeftUnit = newMarginLeftUnit == null ? MARGIN_LEFT_UNIT_EDEFAULT : newMarginLeftUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_LEFT_UNIT, oldMarginLeftUnit, marginLeftUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getMarginBottomValue() { |
| return marginBottomValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginBottomValue(double newMarginBottomValue) { |
| double oldMarginBottomValue = marginBottomValue; |
| marginBottomValue = newMarginBottomValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_BOTTOM_VALUE, oldMarginBottomValue, marginBottomValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getMarginBottomUnit() { |
| return marginBottomUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginBottomUnit(UnitEnum newMarginBottomUnit) { |
| UnitEnum oldMarginBottomUnit = marginBottomUnit; |
| marginBottomUnit = newMarginBottomUnit == null ? MARGIN_BOTTOM_UNIT_EDEFAULT : newMarginBottomUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_BOTTOM_UNIT, oldMarginBottomUnit, marginBottomUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getMarginRightValue() { |
| return marginRightValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginRightValue(double newMarginRightValue) { |
| double oldMarginRightValue = marginRightValue; |
| marginRightValue = newMarginRightValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_RIGHT_VALUE, oldMarginRightValue, marginRightValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public UnitEnum getMarginRightUnit() { |
| return marginRightUnit; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMarginRightUnit(UnitEnum newMarginRightUnit) { |
| UnitEnum oldMarginRightUnit = marginRightUnit; |
| marginRightUnit = newMarginRightUnit == null ? MARGIN_RIGHT_UNIT_EDEFAULT : newMarginRightUnit; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__MARGIN_RIGHT_UNIT, oldMarginRightUnit, marginRightUnit)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Style getExtends() { |
| if (extends_ != null && extends_.eIsProxy()) { |
| InternalEObject oldExtends = (InternalEObject)extends_; |
| extends_ = (Style)eResolveProxy(oldExtends); |
| if (extends_ != oldExtends) { |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.RESOLVE, ReportDSLPackage.STYLE__EXTENDS, oldExtends, extends_)); |
| } |
| } |
| return extends_; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Style basicGetExtends() { |
| return extends_; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setExtends(Style newExtends) { |
| Style oldExtends = extends_; |
| extends_ = newExtends; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ReportDSLPackage.STYLE__EXTENDS, oldExtends, extends_)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public EList<MediaStyle> getMediastyles() { |
| if (mediastyles == null) { |
| mediastyles = new EObjectContainmentEList<MediaStyle>(MediaStyle.class, this, ReportDSLPackage.STYLE__MEDIASTYLES); |
| } |
| return mediastyles; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { |
| switch (featureID) { |
| case ReportDSLPackage.STYLE__BORDER_TOP: |
| return basicSetBorderTop(null, msgs); |
| case ReportDSLPackage.STYLE__BORDER_BOTTOM: |
| return basicSetBorderBottom(null, msgs); |
| case ReportDSLPackage.STYLE__BORDER_LEFT: |
| return basicSetBorderLeft(null, msgs); |
| case ReportDSLPackage.STYLE__BORDER_RIGHT: |
| return basicSetBorderRight(null, msgs); |
| case ReportDSLPackage.STYLE__MEDIASTYLES: |
| return ((InternalEList<?>)getMediastyles()).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.STYLE__FORMAT: |
| if (resolve) return getFormat(); |
| return basicGetFormat(); |
| case ReportDSLPackage.STYLE__FONT: |
| if (resolve) return getFont(); |
| return basicGetFont(); |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR: |
| if (resolve) return getBackgroundcolor(); |
| return basicGetBackgroundcolor(); |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE: |
| if (resolve) return getBackgroundcolor_alternate(); |
| return basicGetBackgroundcolor_alternate(); |
| case ReportDSLPackage.STYLE__TEXTCOLOR: |
| if (resolve) return getTextcolor(); |
| return basicGetTextcolor(); |
| case ReportDSLPackage.STYLE__TEXTALIGN: |
| return getTextalign(); |
| case ReportDSLPackage.STYLE__BORDER_TOP: |
| return getBorderTop(); |
| case ReportDSLPackage.STYLE__BORDER_BOTTOM: |
| return getBorderBottom(); |
| case ReportDSLPackage.STYLE__BORDER_LEFT: |
| return getBorderLeft(); |
| case ReportDSLPackage.STYLE__BORDER_RIGHT: |
| return getBorderRight(); |
| case ReportDSLPackage.STYLE__PADDING_TOP_VALUE: |
| return getPaddingTopValue(); |
| case ReportDSLPackage.STYLE__PADDING_TOP_UNIT: |
| return getPaddingTopUnit(); |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_VALUE: |
| return getPaddingBottomValue(); |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_UNIT: |
| return getPaddingBottomUnit(); |
| case ReportDSLPackage.STYLE__PADDING_LEFT_VALUE: |
| return getPaddingLeftValue(); |
| case ReportDSLPackage.STYLE__PADDING_LEFT_UNIT: |
| return getPaddingLeftUnit(); |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_VALUE: |
| return getPaddingRightValue(); |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_UNIT: |
| return getPaddingRightUnit(); |
| case ReportDSLPackage.STYLE__MARGIN_TOP_VALUE: |
| return getMarginTopValue(); |
| case ReportDSLPackage.STYLE__MARGIN_TOP_UNIT: |
| return getMarginTopUnit(); |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_VALUE: |
| return getMarginLeftValue(); |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_UNIT: |
| return getMarginLeftUnit(); |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_VALUE: |
| return getMarginBottomValue(); |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_UNIT: |
| return getMarginBottomUnit(); |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_VALUE: |
| return getMarginRightValue(); |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_UNIT: |
| return getMarginRightUnit(); |
| case ReportDSLPackage.STYLE__EXTENDS: |
| if (resolve) return getExtends(); |
| return basicGetExtends(); |
| case ReportDSLPackage.STYLE__MEDIASTYLES: |
| return getMediastyles(); |
| } |
| 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.STYLE__FORMAT: |
| setFormat((SomeFormat)newValue); |
| return; |
| case ReportDSLPackage.STYLE__FONT: |
| setFont((Font)newValue); |
| return; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR: |
| setBackgroundcolor((Color)newValue); |
| return; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE: |
| setBackgroundcolor_alternate((Color)newValue); |
| return; |
| case ReportDSLPackage.STYLE__TEXTCOLOR: |
| setTextcolor((Color)newValue); |
| return; |
| case ReportDSLPackage.STYLE__TEXTALIGN: |
| setTextalign((TextAlignEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_TOP: |
| setBorderTop((BorderStyle)newValue); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_BOTTOM: |
| setBorderBottom((BorderStyle)newValue); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_LEFT: |
| setBorderLeft((BorderStyle)newValue); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_RIGHT: |
| setBorderRight((BorderStyle)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_TOP_VALUE: |
| setPaddingTopValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_TOP_UNIT: |
| setPaddingTopUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_VALUE: |
| setPaddingBottomValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_UNIT: |
| setPaddingBottomUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_VALUE: |
| setPaddingLeftValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_UNIT: |
| setPaddingLeftUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_VALUE: |
| setPaddingRightValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_UNIT: |
| setPaddingRightUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_VALUE: |
| setMarginTopValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_UNIT: |
| setMarginTopUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_VALUE: |
| setMarginLeftValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_UNIT: |
| setMarginLeftUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_VALUE: |
| setMarginBottomValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_UNIT: |
| setMarginBottomUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_VALUE: |
| setMarginRightValue((Double)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_UNIT: |
| setMarginRightUnit((UnitEnum)newValue); |
| return; |
| case ReportDSLPackage.STYLE__EXTENDS: |
| setExtends((Style)newValue); |
| return; |
| case ReportDSLPackage.STYLE__MEDIASTYLES: |
| getMediastyles().clear(); |
| getMediastyles().addAll((Collection<? extends MediaStyle>)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case ReportDSLPackage.STYLE__FORMAT: |
| setFormat((SomeFormat)null); |
| return; |
| case ReportDSLPackage.STYLE__FONT: |
| setFont((Font)null); |
| return; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR: |
| setBackgroundcolor((Color)null); |
| return; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE: |
| setBackgroundcolor_alternate((Color)null); |
| return; |
| case ReportDSLPackage.STYLE__TEXTCOLOR: |
| setTextcolor((Color)null); |
| return; |
| case ReportDSLPackage.STYLE__TEXTALIGN: |
| setTextalign(TEXTALIGN_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_TOP: |
| setBorderTop((BorderStyle)null); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_BOTTOM: |
| setBorderBottom((BorderStyle)null); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_LEFT: |
| setBorderLeft((BorderStyle)null); |
| return; |
| case ReportDSLPackage.STYLE__BORDER_RIGHT: |
| setBorderRight((BorderStyle)null); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_TOP_VALUE: |
| setPaddingTopValue(PADDING_TOP_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_TOP_UNIT: |
| setPaddingTopUnit(PADDING_TOP_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_VALUE: |
| setPaddingBottomValue(PADDING_BOTTOM_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_UNIT: |
| setPaddingBottomUnit(PADDING_BOTTOM_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_VALUE: |
| setPaddingLeftValue(PADDING_LEFT_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_UNIT: |
| setPaddingLeftUnit(PADDING_LEFT_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_VALUE: |
| setPaddingRightValue(PADDING_RIGHT_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_UNIT: |
| setPaddingRightUnit(PADDING_RIGHT_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_VALUE: |
| setMarginTopValue(MARGIN_TOP_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_UNIT: |
| setMarginTopUnit(MARGIN_TOP_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_VALUE: |
| setMarginLeftValue(MARGIN_LEFT_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_UNIT: |
| setMarginLeftUnit(MARGIN_LEFT_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_VALUE: |
| setMarginBottomValue(MARGIN_BOTTOM_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_UNIT: |
| setMarginBottomUnit(MARGIN_BOTTOM_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_VALUE: |
| setMarginRightValue(MARGIN_RIGHT_VALUE_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_UNIT: |
| setMarginRightUnit(MARGIN_RIGHT_UNIT_EDEFAULT); |
| return; |
| case ReportDSLPackage.STYLE__EXTENDS: |
| setExtends((Style)null); |
| return; |
| case ReportDSLPackage.STYLE__MEDIASTYLES: |
| getMediastyles().clear(); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case ReportDSLPackage.STYLE__FORMAT: |
| return format != null; |
| case ReportDSLPackage.STYLE__FONT: |
| return font != null; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR: |
| return backgroundcolor != null; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE: |
| return backgroundcolor_alternate != null; |
| case ReportDSLPackage.STYLE__TEXTCOLOR: |
| return textcolor != null; |
| case ReportDSLPackage.STYLE__TEXTALIGN: |
| return textalign != TEXTALIGN_EDEFAULT; |
| case ReportDSLPackage.STYLE__BORDER_TOP: |
| return borderTop != null; |
| case ReportDSLPackage.STYLE__BORDER_BOTTOM: |
| return borderBottom != null; |
| case ReportDSLPackage.STYLE__BORDER_LEFT: |
| return borderLeft != null; |
| case ReportDSLPackage.STYLE__BORDER_RIGHT: |
| return borderRight != null; |
| case ReportDSLPackage.STYLE__PADDING_TOP_VALUE: |
| return paddingTopValue != PADDING_TOP_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__PADDING_TOP_UNIT: |
| return paddingTopUnit != PADDING_TOP_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_VALUE: |
| return paddingBottomValue != PADDING_BOTTOM_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_UNIT: |
| return paddingBottomUnit != PADDING_BOTTOM_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_VALUE: |
| return paddingLeftValue != PADDING_LEFT_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_UNIT: |
| return paddingLeftUnit != PADDING_LEFT_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_VALUE: |
| return paddingRightValue != PADDING_RIGHT_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_UNIT: |
| return paddingRightUnit != PADDING_RIGHT_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_VALUE: |
| return marginTopValue != MARGIN_TOP_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_UNIT: |
| return marginTopUnit != MARGIN_TOP_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_VALUE: |
| return marginLeftValue != MARGIN_LEFT_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_UNIT: |
| return marginLeftUnit != MARGIN_LEFT_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_VALUE: |
| return marginBottomValue != MARGIN_BOTTOM_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_UNIT: |
| return marginBottomUnit != MARGIN_BOTTOM_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_VALUE: |
| return marginRightValue != MARGIN_RIGHT_VALUE_EDEFAULT; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_UNIT: |
| return marginRightUnit != MARGIN_RIGHT_UNIT_EDEFAULT; |
| case ReportDSLPackage.STYLE__EXTENDS: |
| return extends_ != null; |
| case ReportDSLPackage.STYLE__MEDIASTYLES: |
| return mediastyles != null && !mediastyles.isEmpty(); |
| } |
| return super.eIsSet(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { |
| if (baseClass == BaseStyle.class) { |
| switch (derivedFeatureID) { |
| case ReportDSLPackage.STYLE__FORMAT: return ReportDSLPackage.BASE_STYLE__FORMAT; |
| case ReportDSLPackage.STYLE__FONT: return ReportDSLPackage.BASE_STYLE__FONT; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR: return ReportDSLPackage.BASE_STYLE__BACKGROUNDCOLOR; |
| case ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE: return ReportDSLPackage.BASE_STYLE__BACKGROUNDCOLOR_ALTERNATE; |
| case ReportDSLPackage.STYLE__TEXTCOLOR: return ReportDSLPackage.BASE_STYLE__TEXTCOLOR; |
| case ReportDSLPackage.STYLE__TEXTALIGN: return ReportDSLPackage.BASE_STYLE__TEXTALIGN; |
| case ReportDSLPackage.STYLE__BORDER_TOP: return ReportDSLPackage.BASE_STYLE__BORDER_TOP; |
| case ReportDSLPackage.STYLE__BORDER_BOTTOM: return ReportDSLPackage.BASE_STYLE__BORDER_BOTTOM; |
| case ReportDSLPackage.STYLE__BORDER_LEFT: return ReportDSLPackage.BASE_STYLE__BORDER_LEFT; |
| case ReportDSLPackage.STYLE__BORDER_RIGHT: return ReportDSLPackage.BASE_STYLE__BORDER_RIGHT; |
| case ReportDSLPackage.STYLE__PADDING_TOP_VALUE: return ReportDSLPackage.BASE_STYLE__PADDING_TOP_VALUE; |
| case ReportDSLPackage.STYLE__PADDING_TOP_UNIT: return ReportDSLPackage.BASE_STYLE__PADDING_TOP_UNIT; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_VALUE: return ReportDSLPackage.BASE_STYLE__PADDING_BOTTOM_VALUE; |
| case ReportDSLPackage.STYLE__PADDING_BOTTOM_UNIT: return ReportDSLPackage.BASE_STYLE__PADDING_BOTTOM_UNIT; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_VALUE: return ReportDSLPackage.BASE_STYLE__PADDING_LEFT_VALUE; |
| case ReportDSLPackage.STYLE__PADDING_LEFT_UNIT: return ReportDSLPackage.BASE_STYLE__PADDING_LEFT_UNIT; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_VALUE: return ReportDSLPackage.BASE_STYLE__PADDING_RIGHT_VALUE; |
| case ReportDSLPackage.STYLE__PADDING_RIGHT_UNIT: return ReportDSLPackage.BASE_STYLE__PADDING_RIGHT_UNIT; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_VALUE: return ReportDSLPackage.BASE_STYLE__MARGIN_TOP_VALUE; |
| case ReportDSLPackage.STYLE__MARGIN_TOP_UNIT: return ReportDSLPackage.BASE_STYLE__MARGIN_TOP_UNIT; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_VALUE: return ReportDSLPackage.BASE_STYLE__MARGIN_LEFT_VALUE; |
| case ReportDSLPackage.STYLE__MARGIN_LEFT_UNIT: return ReportDSLPackage.BASE_STYLE__MARGIN_LEFT_UNIT; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_VALUE: return ReportDSLPackage.BASE_STYLE__MARGIN_BOTTOM_VALUE; |
| case ReportDSLPackage.STYLE__MARGIN_BOTTOM_UNIT: return ReportDSLPackage.BASE_STYLE__MARGIN_BOTTOM_UNIT; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_VALUE: return ReportDSLPackage.BASE_STYLE__MARGIN_RIGHT_VALUE; |
| case ReportDSLPackage.STYLE__MARGIN_RIGHT_UNIT: return ReportDSLPackage.BASE_STYLE__MARGIN_RIGHT_UNIT; |
| 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 == BaseStyle.class) { |
| switch (baseFeatureID) { |
| case ReportDSLPackage.BASE_STYLE__FORMAT: return ReportDSLPackage.STYLE__FORMAT; |
| case ReportDSLPackage.BASE_STYLE__FONT: return ReportDSLPackage.STYLE__FONT; |
| case ReportDSLPackage.BASE_STYLE__BACKGROUNDCOLOR: return ReportDSLPackage.STYLE__BACKGROUNDCOLOR; |
| case ReportDSLPackage.BASE_STYLE__BACKGROUNDCOLOR_ALTERNATE: return ReportDSLPackage.STYLE__BACKGROUNDCOLOR_ALTERNATE; |
| case ReportDSLPackage.BASE_STYLE__TEXTCOLOR: return ReportDSLPackage.STYLE__TEXTCOLOR; |
| case ReportDSLPackage.BASE_STYLE__TEXTALIGN: return ReportDSLPackage.STYLE__TEXTALIGN; |
| case ReportDSLPackage.BASE_STYLE__BORDER_TOP: return ReportDSLPackage.STYLE__BORDER_TOP; |
| case ReportDSLPackage.BASE_STYLE__BORDER_BOTTOM: return ReportDSLPackage.STYLE__BORDER_BOTTOM; |
| case ReportDSLPackage.BASE_STYLE__BORDER_LEFT: return ReportDSLPackage.STYLE__BORDER_LEFT; |
| case ReportDSLPackage.BASE_STYLE__BORDER_RIGHT: return ReportDSLPackage.STYLE__BORDER_RIGHT; |
| case ReportDSLPackage.BASE_STYLE__PADDING_TOP_VALUE: return ReportDSLPackage.STYLE__PADDING_TOP_VALUE; |
| case ReportDSLPackage.BASE_STYLE__PADDING_TOP_UNIT: return ReportDSLPackage.STYLE__PADDING_TOP_UNIT; |
| case ReportDSLPackage.BASE_STYLE__PADDING_BOTTOM_VALUE: return ReportDSLPackage.STYLE__PADDING_BOTTOM_VALUE; |
| case ReportDSLPackage.BASE_STYLE__PADDING_BOTTOM_UNIT: return ReportDSLPackage.STYLE__PADDING_BOTTOM_UNIT; |
| case ReportDSLPackage.BASE_STYLE__PADDING_LEFT_VALUE: return ReportDSLPackage.STYLE__PADDING_LEFT_VALUE; |
| case ReportDSLPackage.BASE_STYLE__PADDING_LEFT_UNIT: return ReportDSLPackage.STYLE__PADDING_LEFT_UNIT; |
| case ReportDSLPackage.BASE_STYLE__PADDING_RIGHT_VALUE: return ReportDSLPackage.STYLE__PADDING_RIGHT_VALUE; |
| case ReportDSLPackage.BASE_STYLE__PADDING_RIGHT_UNIT: return ReportDSLPackage.STYLE__PADDING_RIGHT_UNIT; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_TOP_VALUE: return ReportDSLPackage.STYLE__MARGIN_TOP_VALUE; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_TOP_UNIT: return ReportDSLPackage.STYLE__MARGIN_TOP_UNIT; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_LEFT_VALUE: return ReportDSLPackage.STYLE__MARGIN_LEFT_VALUE; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_LEFT_UNIT: return ReportDSLPackage.STYLE__MARGIN_LEFT_UNIT; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_BOTTOM_VALUE: return ReportDSLPackage.STYLE__MARGIN_BOTTOM_VALUE; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_BOTTOM_UNIT: return ReportDSLPackage.STYLE__MARGIN_BOTTOM_UNIT; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_RIGHT_VALUE: return ReportDSLPackage.STYLE__MARGIN_RIGHT_VALUE; |
| case ReportDSLPackage.BASE_STYLE__MARGIN_RIGHT_UNIT: return ReportDSLPackage.STYLE__MARGIN_RIGHT_UNIT; |
| 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(" (textalign: "); |
| result.append(textalign); |
| result.append(", paddingTopValue: "); |
| result.append(paddingTopValue); |
| result.append(", paddingTopUnit: "); |
| result.append(paddingTopUnit); |
| result.append(", paddingBottomValue: "); |
| result.append(paddingBottomValue); |
| result.append(", paddingBottomUnit: "); |
| result.append(paddingBottomUnit); |
| result.append(", paddingLeftValue: "); |
| result.append(paddingLeftValue); |
| result.append(", paddingLeftUnit: "); |
| result.append(paddingLeftUnit); |
| result.append(", paddingRightValue: "); |
| result.append(paddingRightValue); |
| result.append(", paddingRightUnit: "); |
| result.append(paddingRightUnit); |
| result.append(", marginTopValue: "); |
| result.append(marginTopValue); |
| result.append(", marginTopUnit: "); |
| result.append(marginTopUnit); |
| result.append(", marginLeftValue: "); |
| result.append(marginLeftValue); |
| result.append(", marginLeftUnit: "); |
| result.append(marginLeftUnit); |
| result.append(", marginBottomValue: "); |
| result.append(marginBottomValue); |
| result.append(", marginBottomUnit: "); |
| result.append(marginBottomUnit); |
| result.append(", marginRightValue: "); |
| result.append(marginRightValue); |
| result.append(", marginRightUnit: "); |
| result.append(marginRightUnit); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //StyleImpl |