Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowElementImpl.java')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowElementImpl.java482
1 files changed, 0 insertions, 482 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowElementImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowElementImpl.java
deleted file mode 100644
index 8efba1d01..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/sample/workflow/impl/WorkflowElementImpl.java
+++ /dev/null
@@ -1,482 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id: WorkflowElementImpl.java,v 1.1 2006/07/11 16:57:00 mtaal Exp $
- */
-package org.eclipse.emf.teneo.samples.emf.sample.workflow.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.teneo.samples.emf.sample.workflow.WorkflowElement;
-import org.eclipse.emf.teneo.samples.emf.sample.workflow.WorkflowPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Element</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl#getComment <em>Comment</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl#getX <em>X</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl#getY <em>Y</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl#getWidth <em>Width</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl#getHeight <em>Height</em>}</li>
- * <li>{@link org.eclipse.emf.teneo.samples.emf.sample.workflow.impl.WorkflowElementImpl#getId <em>Id</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class WorkflowElementImpl extends EObjectImpl implements WorkflowElement {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final String copyright = "Copyright (c) 2003 IBM Corporation";
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getComment() <em>Comment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getComment()
- * @generated
- * @ordered
- */
- protected static final String COMMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getComment()
- * @generated
- * @ordered
- */
- protected String comment = COMMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected static final int X_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getX() <em>X</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getX()
- * @generated
- * @ordered
- */
- protected int x = X_EDEFAULT;
-
- /**
- * The default value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected static final int Y_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getY() <em>Y</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getY()
- * @generated
- * @ordered
- */
- protected int y = Y_EDEFAULT;
-
- /**
- * The default value of the '{@link #getWidth() <em>Width</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWidth()
- * @generated
- * @ordered
- */
- protected static final int WIDTH_EDEFAULT = -1;
-
- /**
- * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getWidth()
- * @generated
- * @ordered
- */
- protected int width = WIDTH_EDEFAULT;
-
- /**
- * The default value of the '{@link #getHeight() <em>Height</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeight()
- * @generated
- * @ordered
- */
- protected static final int HEIGHT_EDEFAULT = -1;
-
- /**
- * The cached value of the '{@link #getHeight() <em>Height</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getHeight()
- * @generated
- * @ordered
- */
- protected int height = HEIGHT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getId() <em>Id</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getId()
- * @generated
- * @ordered
- */
- protected static final String ID_EDEFAULT = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected WorkflowElementImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return WorkflowPackage.eINSTANCE.getWorkflowElement();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getName() {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WorkflowPackage.WORKFLOW_ELEMENT__NAME, oldName, name));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getComment() {
- return comment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setComment(String newComment) {
- String oldComment = comment;
- comment = newComment;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WorkflowPackage.WORKFLOW_ELEMENT__COMMENT, oldComment, comment));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getX() {
- return x;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setX(int newX) {
- int oldX = x;
- x = newX;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WorkflowPackage.WORKFLOW_ELEMENT__X, oldX, x));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getY() {
- return y;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setY(int newY) {
- int oldY = y;
- y = newY;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WorkflowPackage.WORKFLOW_ELEMENT__Y, oldY, y));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getWidth() {
- return width;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setWidth(int newWidth) {
- int oldWidth = width;
- width = newWidth;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WorkflowPackage.WORKFLOW_ELEMENT__WIDTH, oldWidth, width));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public int getHeight() {
- return height;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setHeight(int newHeight) {
- int oldHeight = height;
- height = newHeight;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, WorkflowPackage.WORKFLOW_ELEMENT__HEIGHT, oldHeight, height));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getId() {
- // TODO: implement this method to return the 'Id' attribute
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setId(String newId) {
- // TODO: implement this method to set the 'Id' attribute
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WorkflowPackage.WORKFLOW_ELEMENT__NAME:
- return getName();
- case WorkflowPackage.WORKFLOW_ELEMENT__COMMENT:
- return getComment();
- case WorkflowPackage.WORKFLOW_ELEMENT__X:
- return new Integer(getX());
- case WorkflowPackage.WORKFLOW_ELEMENT__Y:
- return new Integer(getY());
- case WorkflowPackage.WORKFLOW_ELEMENT__WIDTH:
- return new Integer(getWidth());
- case WorkflowPackage.WORKFLOW_ELEMENT__HEIGHT:
- return new Integer(getHeight());
- case WorkflowPackage.WORKFLOW_ELEMENT__ID:
- return getId();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WorkflowPackage.WORKFLOW_ELEMENT__NAME:
- setName((String)newValue);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__COMMENT:
- setComment((String)newValue);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__X:
- setX(((Integer)newValue).intValue());
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__Y:
- setY(((Integer)newValue).intValue());
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__WIDTH:
- setWidth(((Integer)newValue).intValue());
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__HEIGHT:
- setHeight(((Integer)newValue).intValue());
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__ID:
- setId((String)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WorkflowPackage.WORKFLOW_ELEMENT__NAME:
- setName(NAME_EDEFAULT);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__COMMENT:
- setComment(COMMENT_EDEFAULT);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__X:
- setX(X_EDEFAULT);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__Y:
- setY(Y_EDEFAULT);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__WIDTH:
- setWidth(WIDTH_EDEFAULT);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__HEIGHT:
- setHeight(HEIGHT_EDEFAULT);
- return;
- case WorkflowPackage.WORKFLOW_ELEMENT__ID:
- setId(ID_EDEFAULT);
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case WorkflowPackage.WORKFLOW_ELEMENT__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case WorkflowPackage.WORKFLOW_ELEMENT__COMMENT:
- return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment);
- case WorkflowPackage.WORKFLOW_ELEMENT__X:
- return x != X_EDEFAULT;
- case WorkflowPackage.WORKFLOW_ELEMENT__Y:
- return y != Y_EDEFAULT;
- case WorkflowPackage.WORKFLOW_ELEMENT__WIDTH:
- return width != WIDTH_EDEFAULT;
- case WorkflowPackage.WORKFLOW_ELEMENT__HEIGHT:
- return height != HEIGHT_EDEFAULT;
- case WorkflowPackage.WORKFLOW_ELEMENT__ID:
- return ID_EDEFAULT == null ? getId() != null : !ID_EDEFAULT.equals(getId());
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", comment: ");
- result.append(comment);
- result.append(", x: ");
- result.append(x);
- result.append(", y: ");
- result.append(y);
- result.append(", width: ");
- result.append(width);
- result.append(", height: ");
- result.append(height);
- result.append(')');
- return result.toString();
- }
-
-} //WorkflowElementImpl

Back to the top