| /** |
| * 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 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Based on ideas from Xtext, Xtend, Xcore |
| * |
| * Contributors: |
| * Joerg Riegel - Initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.topologydsl.impl; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| |
| import org.eclipse.emf.ecore.EClass; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| |
| import org.eclipse.osbp.xtext.topologydsl.Topology; |
| import org.eclipse.osbp.xtext.topologydsl.TopologyDSLPackage; |
| import org.eclipse.osbp.xtext.topologydsl.TopologyProjection; |
| import org.eclipse.osbp.xtext.topologydsl.TopologyProperty; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Topology</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * </p> |
| * <ul> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isTitle <em>Title</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getTitleValue <em>Title Value</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getFileName <em>File Name</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getProjection <em>Projection</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getProperty <em>Property</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isHasScaling <em>Has Scaling</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isHasCentering <em>Has Centering</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isHasRotation <em>Has Rotation</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isHasTranslation <em>Has Translation</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getScale <em>Scale</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getRotate_x <em>Rotate x</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getRotate_y <em>Rotate y</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getCenter_x <em>Center x</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getCenter_y <em>Center y</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getTranslate_x <em>Translate x</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#getTranslate_y <em>Translate y</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isPartition <em>Partition</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isPlaces <em>Places</em>}</li> |
| * <li>{@link org.eclipse.osbp.xtext.topologydsl.impl.TopologyImpl#isZoomable <em>Zoomable</em>}</li> |
| * </ul> |
| * |
| * @generated |
| */ |
| public class TopologyImpl extends TopologyBaseImpl implements Topology { |
| /** |
| * The default value of the '{@link #isTitle() <em>Title</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isTitle() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean TITLE_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isTitle() <em>Title</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isTitle() |
| * @generated |
| * @ordered |
| */ |
| protected boolean title = TITLE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getTitleValue() <em>Title Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTitleValue() |
| * @generated |
| * @ordered |
| */ |
| protected static final String TITLE_VALUE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getTitleValue() <em>Title Value</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTitleValue() |
| * @generated |
| * @ordered |
| */ |
| protected String titleValue = TITLE_VALUE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getFileName() <em>File Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFileName() |
| * @generated |
| * @ordered |
| */ |
| protected static final String FILE_NAME_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getFileName() <em>File Name</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getFileName() |
| * @generated |
| * @ordered |
| */ |
| protected String fileName = FILE_NAME_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getProjection() <em>Projection</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getProjection() |
| * @generated |
| * @ordered |
| */ |
| protected static final TopologyProjection PROJECTION_EDEFAULT = TopologyProjection.PATH; |
| |
| /** |
| * The cached value of the '{@link #getProjection() <em>Projection</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getProjection() |
| * @generated |
| * @ordered |
| */ |
| protected TopologyProjection projection = PROJECTION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getProperty() <em>Property</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getProperty() |
| * @generated |
| * @ordered |
| */ |
| protected static final TopologyProperty PROPERTY_EDEFAULT = TopologyProperty.NAME; |
| |
| /** |
| * The cached value of the '{@link #getProperty() <em>Property</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getProperty() |
| * @generated |
| * @ordered |
| */ |
| protected TopologyProperty property = PROPERTY_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasScaling() <em>Has Scaling</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasScaling() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_SCALING_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasScaling() <em>Has Scaling</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasScaling() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasScaling = HAS_SCALING_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasCentering() <em>Has Centering</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasCentering() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_CENTERING_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasCentering() <em>Has Centering</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasCentering() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasCentering = HAS_CENTERING_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasRotation() <em>Has Rotation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasRotation() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_ROTATION_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasRotation() <em>Has Rotation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasRotation() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasRotation = HAS_ROTATION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isHasTranslation() <em>Has Translation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasTranslation() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean HAS_TRANSLATION_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isHasTranslation() <em>Has Translation</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isHasTranslation() |
| * @generated |
| * @ordered |
| */ |
| protected boolean hasTranslation = HAS_TRANSLATION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getScale() <em>Scale</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getScale() |
| * @generated |
| * @ordered |
| */ |
| protected static final double SCALE_EDEFAULT = 0.0; |
| |
| /** |
| * The cached value of the '{@link #getScale() <em>Scale</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getScale() |
| * @generated |
| * @ordered |
| */ |
| protected double scale = SCALE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getRotate_x() <em>Rotate x</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRotate_x() |
| * @generated |
| * @ordered |
| */ |
| protected static final int ROTATE_X_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getRotate_x() <em>Rotate x</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRotate_x() |
| * @generated |
| * @ordered |
| */ |
| protected int rotate_x = ROTATE_X_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getRotate_y() <em>Rotate y</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRotate_y() |
| * @generated |
| * @ordered |
| */ |
| protected static final int ROTATE_Y_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getRotate_y() <em>Rotate y</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getRotate_y() |
| * @generated |
| * @ordered |
| */ |
| protected int rotate_y = ROTATE_Y_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getCenter_x() <em>Center x</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCenter_x() |
| * @generated |
| * @ordered |
| */ |
| protected static final int CENTER_X_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getCenter_x() <em>Center x</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCenter_x() |
| * @generated |
| * @ordered |
| */ |
| protected int center_x = CENTER_X_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getCenter_y() <em>Center y</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCenter_y() |
| * @generated |
| * @ordered |
| */ |
| protected static final int CENTER_Y_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getCenter_y() <em>Center y</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getCenter_y() |
| * @generated |
| * @ordered |
| */ |
| protected int center_y = CENTER_Y_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getTranslate_x() <em>Translate x</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTranslate_x() |
| * @generated |
| * @ordered |
| */ |
| protected static final int TRANSLATE_X_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getTranslate_x() <em>Translate x</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTranslate_x() |
| * @generated |
| * @ordered |
| */ |
| protected int translate_x = TRANSLATE_X_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getTranslate_y() <em>Translate y</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTranslate_y() |
| * @generated |
| * @ordered |
| */ |
| protected static final int TRANSLATE_Y_EDEFAULT = 0; |
| |
| /** |
| * The cached value of the '{@link #getTranslate_y() <em>Translate y</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getTranslate_y() |
| * @generated |
| * @ordered |
| */ |
| protected int translate_y = TRANSLATE_Y_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isPartition() <em>Partition</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isPartition() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean PARTITION_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isPartition() <em>Partition</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isPartition() |
| * @generated |
| * @ordered |
| */ |
| protected boolean partition = PARTITION_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isPlaces() <em>Places</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isPlaces() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean PLACES_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isPlaces() <em>Places</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isPlaces() |
| * @generated |
| * @ordered |
| */ |
| protected boolean places = PLACES_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #isZoomable() <em>Zoomable</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isZoomable() |
| * @generated |
| * @ordered |
| */ |
| protected static final boolean ZOOMABLE_EDEFAULT = false; |
| |
| /** |
| * The cached value of the '{@link #isZoomable() <em>Zoomable</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #isZoomable() |
| * @generated |
| * @ordered |
| */ |
| protected boolean zoomable = ZOOMABLE_EDEFAULT; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected TopologyImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return TopologyDSLPackage.Literals.TOPOLOGY; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isTitle() { |
| return title; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTitle(boolean newTitle) { |
| boolean oldTitle = title; |
| title = newTitle; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__TITLE, oldTitle, title)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getTitleValue() { |
| return titleValue; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTitleValue(String newTitleValue) { |
| String oldTitleValue = titleValue; |
| titleValue = newTitleValue; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__TITLE_VALUE, oldTitleValue, titleValue)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getFileName() { |
| return fileName; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setFileName(String newFileName) { |
| String oldFileName = fileName; |
| fileName = newFileName; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__FILE_NAME, oldFileName, fileName)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TopologyProjection getProjection() { |
| return projection; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setProjection(TopologyProjection newProjection) { |
| TopologyProjection oldProjection = projection; |
| projection = newProjection == null ? PROJECTION_EDEFAULT : newProjection; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__PROJECTION, oldProjection, projection)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public TopologyProperty getProperty() { |
| return property; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setProperty(TopologyProperty newProperty) { |
| TopologyProperty oldProperty = property; |
| property = newProperty == null ? PROPERTY_EDEFAULT : newProperty; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__PROPERTY, oldProperty, property)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasScaling() { |
| return hasScaling; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasScaling(boolean newHasScaling) { |
| boolean oldHasScaling = hasScaling; |
| hasScaling = newHasScaling; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__HAS_SCALING, oldHasScaling, hasScaling)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasCentering() { |
| return hasCentering; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasCentering(boolean newHasCentering) { |
| boolean oldHasCentering = hasCentering; |
| hasCentering = newHasCentering; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__HAS_CENTERING, oldHasCentering, hasCentering)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasRotation() { |
| return hasRotation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasRotation(boolean newHasRotation) { |
| boolean oldHasRotation = hasRotation; |
| hasRotation = newHasRotation; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__HAS_ROTATION, oldHasRotation, hasRotation)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isHasTranslation() { |
| return hasTranslation; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setHasTranslation(boolean newHasTranslation) { |
| boolean oldHasTranslation = hasTranslation; |
| hasTranslation = newHasTranslation; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__HAS_TRANSLATION, oldHasTranslation, hasTranslation)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public double getScale() { |
| return scale; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setScale(double newScale) { |
| double oldScale = scale; |
| scale = newScale; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__SCALE, oldScale, scale)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getRotate_x() { |
| return rotate_x; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRotate_x(int newRotate_x) { |
| int oldRotate_x = rotate_x; |
| rotate_x = newRotate_x; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__ROTATE_X, oldRotate_x, rotate_x)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getRotate_y() { |
| return rotate_y; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setRotate_y(int newRotate_y) { |
| int oldRotate_y = rotate_y; |
| rotate_y = newRotate_y; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__ROTATE_Y, oldRotate_y, rotate_y)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getCenter_x() { |
| return center_x; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setCenter_x(int newCenter_x) { |
| int oldCenter_x = center_x; |
| center_x = newCenter_x; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__CENTER_X, oldCenter_x, center_x)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getCenter_y() { |
| return center_y; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setCenter_y(int newCenter_y) { |
| int oldCenter_y = center_y; |
| center_y = newCenter_y; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__CENTER_Y, oldCenter_y, center_y)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getTranslate_x() { |
| return translate_x; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTranslate_x(int newTranslate_x) { |
| int oldTranslate_x = translate_x; |
| translate_x = newTranslate_x; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__TRANSLATE_X, oldTranslate_x, translate_x)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public int getTranslate_y() { |
| return translate_y; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setTranslate_y(int newTranslate_y) { |
| int oldTranslate_y = translate_y; |
| translate_y = newTranslate_y; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__TRANSLATE_Y, oldTranslate_y, translate_y)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isPartition() { |
| return partition; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPartition(boolean newPartition) { |
| boolean oldPartition = partition; |
| partition = newPartition; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__PARTITION, oldPartition, partition)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isPlaces() { |
| return places; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setPlaces(boolean newPlaces) { |
| boolean oldPlaces = places; |
| places = newPlaces; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__PLACES, oldPlaces, places)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean isZoomable() { |
| return zoomable; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setZoomable(boolean newZoomable) { |
| boolean oldZoomable = zoomable; |
| zoomable = newZoomable; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, TopologyDSLPackage.TOPOLOGY__ZOOMABLE, oldZoomable, zoomable)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public Object eGet(int featureID, boolean resolve, boolean coreType) { |
| switch (featureID) { |
| case TopologyDSLPackage.TOPOLOGY__TITLE: |
| return isTitle(); |
| case TopologyDSLPackage.TOPOLOGY__TITLE_VALUE: |
| return getTitleValue(); |
| case TopologyDSLPackage.TOPOLOGY__FILE_NAME: |
| return getFileName(); |
| case TopologyDSLPackage.TOPOLOGY__PROJECTION: |
| return getProjection(); |
| case TopologyDSLPackage.TOPOLOGY__PROPERTY: |
| return getProperty(); |
| case TopologyDSLPackage.TOPOLOGY__HAS_SCALING: |
| return isHasScaling(); |
| case TopologyDSLPackage.TOPOLOGY__HAS_CENTERING: |
| return isHasCentering(); |
| case TopologyDSLPackage.TOPOLOGY__HAS_ROTATION: |
| return isHasRotation(); |
| case TopologyDSLPackage.TOPOLOGY__HAS_TRANSLATION: |
| return isHasTranslation(); |
| case TopologyDSLPackage.TOPOLOGY__SCALE: |
| return getScale(); |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_X: |
| return getRotate_x(); |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_Y: |
| return getRotate_y(); |
| case TopologyDSLPackage.TOPOLOGY__CENTER_X: |
| return getCenter_x(); |
| case TopologyDSLPackage.TOPOLOGY__CENTER_Y: |
| return getCenter_y(); |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_X: |
| return getTranslate_x(); |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_Y: |
| return getTranslate_y(); |
| case TopologyDSLPackage.TOPOLOGY__PARTITION: |
| return isPartition(); |
| case TopologyDSLPackage.TOPOLOGY__PLACES: |
| return isPlaces(); |
| case TopologyDSLPackage.TOPOLOGY__ZOOMABLE: |
| return isZoomable(); |
| } |
| return super.eGet(featureID, resolve, coreType); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eSet(int featureID, Object newValue) { |
| switch (featureID) { |
| case TopologyDSLPackage.TOPOLOGY__TITLE: |
| setTitle((Boolean)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__TITLE_VALUE: |
| setTitleValue((String)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__FILE_NAME: |
| setFileName((String)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PROJECTION: |
| setProjection((TopologyProjection)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PROPERTY: |
| setProperty((TopologyProperty)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_SCALING: |
| setHasScaling((Boolean)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_CENTERING: |
| setHasCentering((Boolean)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_ROTATION: |
| setHasRotation((Boolean)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_TRANSLATION: |
| setHasTranslation((Boolean)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__SCALE: |
| setScale((Double)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_X: |
| setRotate_x((Integer)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_Y: |
| setRotate_y((Integer)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__CENTER_X: |
| setCenter_x((Integer)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__CENTER_Y: |
| setCenter_y((Integer)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_X: |
| setTranslate_x((Integer)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_Y: |
| setTranslate_y((Integer)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PARTITION: |
| setPartition((Boolean)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PLACES: |
| setPlaces((Boolean)newValue); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__ZOOMABLE: |
| setZoomable((Boolean)newValue); |
| return; |
| } |
| super.eSet(featureID, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public void eUnset(int featureID) { |
| switch (featureID) { |
| case TopologyDSLPackage.TOPOLOGY__TITLE: |
| setTitle(TITLE_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__TITLE_VALUE: |
| setTitleValue(TITLE_VALUE_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__FILE_NAME: |
| setFileName(FILE_NAME_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PROJECTION: |
| setProjection(PROJECTION_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PROPERTY: |
| setProperty(PROPERTY_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_SCALING: |
| setHasScaling(HAS_SCALING_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_CENTERING: |
| setHasCentering(HAS_CENTERING_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_ROTATION: |
| setHasRotation(HAS_ROTATION_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__HAS_TRANSLATION: |
| setHasTranslation(HAS_TRANSLATION_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__SCALE: |
| setScale(SCALE_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_X: |
| setRotate_x(ROTATE_X_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_Y: |
| setRotate_y(ROTATE_Y_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__CENTER_X: |
| setCenter_x(CENTER_X_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__CENTER_Y: |
| setCenter_y(CENTER_Y_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_X: |
| setTranslate_x(TRANSLATE_X_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_Y: |
| setTranslate_y(TRANSLATE_Y_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PARTITION: |
| setPartition(PARTITION_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__PLACES: |
| setPlaces(PLACES_EDEFAULT); |
| return; |
| case TopologyDSLPackage.TOPOLOGY__ZOOMABLE: |
| setZoomable(ZOOMABLE_EDEFAULT); |
| return; |
| } |
| super.eUnset(featureID); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| public boolean eIsSet(int featureID) { |
| switch (featureID) { |
| case TopologyDSLPackage.TOPOLOGY__TITLE: |
| return title != TITLE_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__TITLE_VALUE: |
| return TITLE_VALUE_EDEFAULT == null ? titleValue != null : !TITLE_VALUE_EDEFAULT.equals(titleValue); |
| case TopologyDSLPackage.TOPOLOGY__FILE_NAME: |
| return FILE_NAME_EDEFAULT == null ? fileName != null : !FILE_NAME_EDEFAULT.equals(fileName); |
| case TopologyDSLPackage.TOPOLOGY__PROJECTION: |
| return projection != PROJECTION_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__PROPERTY: |
| return property != PROPERTY_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__HAS_SCALING: |
| return hasScaling != HAS_SCALING_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__HAS_CENTERING: |
| return hasCentering != HAS_CENTERING_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__HAS_ROTATION: |
| return hasRotation != HAS_ROTATION_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__HAS_TRANSLATION: |
| return hasTranslation != HAS_TRANSLATION_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__SCALE: |
| return scale != SCALE_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_X: |
| return rotate_x != ROTATE_X_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__ROTATE_Y: |
| return rotate_y != ROTATE_Y_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__CENTER_X: |
| return center_x != CENTER_X_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__CENTER_Y: |
| return center_y != CENTER_Y_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_X: |
| return translate_x != TRANSLATE_X_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__TRANSLATE_Y: |
| return translate_y != TRANSLATE_Y_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__PARTITION: |
| return partition != PARTITION_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__PLACES: |
| return places != PLACES_EDEFAULT; |
| case TopologyDSLPackage.TOPOLOGY__ZOOMABLE: |
| return zoomable != ZOOMABLE_EDEFAULT; |
| } |
| 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(" (title: "); |
| result.append(title); |
| result.append(", titleValue: "); |
| result.append(titleValue); |
| result.append(", fileName: "); |
| result.append(fileName); |
| result.append(", projection: "); |
| result.append(projection); |
| result.append(", property: "); |
| result.append(property); |
| result.append(", hasScaling: "); |
| result.append(hasScaling); |
| result.append(", hasCentering: "); |
| result.append(hasCentering); |
| result.append(", hasRotation: "); |
| result.append(hasRotation); |
| result.append(", hasTranslation: "); |
| result.append(hasTranslation); |
| result.append(", scale: "); |
| result.append(scale); |
| result.append(", rotate_x: "); |
| result.append(rotate_x); |
| result.append(", rotate_y: "); |
| result.append(rotate_y); |
| result.append(", center_x: "); |
| result.append(center_x); |
| result.append(", center_y: "); |
| result.append(center_y); |
| result.append(", translate_x: "); |
| result.append(translate_x); |
| result.append(", translate_y: "); |
| result.append(translate_y); |
| result.append(", partition: "); |
| result.append(partition); |
| result.append(", places: "); |
| result.append(places); |
| result.append(", zoomable: "); |
| result.append(zoomable); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| } //TopologyImpl |