/******************************************************************************* * Copyright (c) 2006-2012 * Software Technology Group, Dresden University of Technology * DevBoost GmbH, Berlin, Amtsgericht Charlottenburg, HRB 140026 * * 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 * * Contributors: * Software Technology Group - TU Dresden, Germany; * DevBoost GmbH - Berlin, Germany * - initial API and implementation ******************************************************************************/ /** * <copyright> * </copyright> * * $Id$ */ package org.oasisopen.names.tc.opendocument.xmlns.drawing.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; import org.oasisopen.names.tc.opendocument.xmlns.drawing.AreaRectangleType; import org.oasisopen.names.tc.opendocument.xmlns.drawing.DrawingPackage; import org.oasisopen.names.tc.opendocument.xmlns.drawing.NohrefType; import org.oasisopen.names.tc.opendocument.xmlns.office.EventListenersType; import org.w3.xlink.ShowType2; import org.w3.xlink.TypeType; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Area Rectangle Type</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getTitle <em>Title</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getDesc <em>Desc</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getEventListeners <em>Event Listeners</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getHeight <em>Height</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getHref <em>Href</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getName <em>Name</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getNohref <em>Nohref</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getShow <em>Show</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getTargetFrameName <em>Target Frame Name</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getType <em>Type</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getWidth <em>Width</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getX <em>X</em>}</li> * <li>{@link org.oasisopen.names.tc.opendocument.xmlns.drawing.impl.AreaRectangleTypeImpl#getY <em>Y</em>}</li> * </ul> * </p> * * @generated */ public class AreaRectangleTypeImpl extends EObjectImpl implements AreaRectangleType { /** * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTitle() * @generated * @ordered */ protected static final String TITLE_EDEFAULT = null; /** * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTitle() * @generated * @ordered */ protected String title = TITLE_EDEFAULT; /** * The default value of the '{@link #getDesc() <em>Desc</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDesc() * @generated * @ordered */ protected static final String DESC_EDEFAULT = null; /** * The cached value of the '{@link #getDesc() <em>Desc</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDesc() * @generated * @ordered */ protected String desc = DESC_EDEFAULT; /** * The cached value of the '{@link #getEventListeners() <em>Event Listeners</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getEventListeners() * @generated * @ordered */ protected EventListenersType eventListeners; /** * The default value of the '{@link #getHeight() <em>Height</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getHeight() * @generated * @ordered */ protected static final String HEIGHT_EDEFAULT = null; /** * The cached value of the '{@link #getHeight() <em>Height</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getHeight() * @generated * @ordered */ protected String height = HEIGHT_EDEFAULT; /** * The default value of the '{@link #getHref() <em>Href</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getHref() * @generated * @ordered */ protected static final String HREF_EDEFAULT = null; /** * The cached value of the '{@link #getHref() <em>Href</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getHref() * @generated * @ordered */ protected String href = HREF_EDEFAULT; /** * 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 #getNohref() <em>Nohref</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getNohref() * @generated * @ordered */ protected static final NohrefType NOHREF_EDEFAULT = NohrefType.NOHREF; /** * The cached value of the '{@link #getNohref() <em>Nohref</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getNohref() * @generated * @ordered */ protected NohrefType nohref = NOHREF_EDEFAULT; /** * This is true if the Nohref attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean nohrefESet; /** * The default value of the '{@link #getShow() <em>Show</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getShow() * @generated * @ordered */ protected static final ShowType2 SHOW_EDEFAULT = ShowType2.NEW; /** * The cached value of the '{@link #getShow() <em>Show</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getShow() * @generated * @ordered */ protected ShowType2 show = SHOW_EDEFAULT; /** * This is true if the Show attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean showESet; /** * The default value of the '{@link #getTargetFrameName() <em>Target Frame Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTargetFrameName() * @generated * @ordered */ protected static final Object TARGET_FRAME_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getTargetFrameName() <em>Target Frame Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTargetFrameName() * @generated * @ordered */ protected Object targetFrameName = TARGET_FRAME_NAME_EDEFAULT; /** * The default value of the '{@link #getType() <em>Type</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getType() * @generated * @ordered */ protected static final TypeType TYPE_EDEFAULT = TypeType.SIMPLE; /** * The cached value of the '{@link #getType() <em>Type</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getType() * @generated * @ordered */ protected TypeType type = TYPE_EDEFAULT; /** * This is true if the Type attribute has been set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ protected boolean typeESet; /** * The default value of the '{@link #getWidth() <em>Width</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getWidth() * @generated * @ordered */ protected static final String WIDTH_EDEFAULT = null; /** * The cached value of the '{@link #getWidth() <em>Width</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getWidth() * @generated * @ordered */ protected String width = WIDTH_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 String X_EDEFAULT = null; /** * The cached value of the '{@link #getX() <em>X</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getX() * @generated * @ordered */ protected String 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 String Y_EDEFAULT = null; /** * The cached value of the '{@link #getY() <em>Y</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getY() * @generated * @ordered */ protected String y = Y_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected AreaRectangleTypeImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return DrawingPackage.eINSTANCE.getAreaRectangleType(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getTitle() { return title; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTitle(String newTitle) { String oldTitle = title; title = newTitle; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__TITLE, oldTitle, title)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getDesc() { return desc; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDesc(String newDesc) { String oldDesc = desc; desc = newDesc; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__DESC, oldDesc, desc)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EventListenersType getEventListeners() { return eventListeners; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetEventListeners(EventListenersType newEventListeners, NotificationChain msgs) { EventListenersType oldEventListeners = eventListeners; eventListeners = newEventListeners; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS, oldEventListeners, newEventListeners); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEventListeners(EventListenersType newEventListeners) { if (newEventListeners != eventListeners) { NotificationChain msgs = null; if (eventListeners != null) msgs = ((InternalEObject)eventListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS, null, msgs); if (newEventListeners != null) msgs = ((InternalEObject)newEventListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS, null, msgs); msgs = basicSetEventListeners(newEventListeners, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS, newEventListeners, newEventListeners)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getHeight() { return height; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setHeight(String newHeight) { String oldHeight = height; height = newHeight; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__HEIGHT, oldHeight, height)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getHref() { return href; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setHref(String newHref) { String oldHref = href; href = newHref; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__HREF, oldHref, href)); } /** * <!-- 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, DrawingPackage.AREA_RECTANGLE_TYPE__NAME, oldName, name)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NohrefType getNohref() { return nohref; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setNohref(NohrefType newNohref) { NohrefType oldNohref = nohref; nohref = newNohref == null ? NOHREF_EDEFAULT : newNohref; boolean oldNohrefESet = nohrefESet; nohrefESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__NOHREF, oldNohref, nohref, !oldNohrefESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void unsetNohref() { NohrefType oldNohref = nohref; boolean oldNohrefESet = nohrefESet; nohref = NOHREF_EDEFAULT; nohrefESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, DrawingPackage.AREA_RECTANGLE_TYPE__NOHREF, oldNohref, NOHREF_EDEFAULT, oldNohrefESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean isSetNohref() { return nohrefESet; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ShowType2 getShow() { return show; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setShow(ShowType2 newShow) { ShowType2 oldShow = show; show = newShow == null ? SHOW_EDEFAULT : newShow; boolean oldShowESet = showESet; showESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__SHOW, oldShow, show, !oldShowESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void unsetShow() { ShowType2 oldShow = show; boolean oldShowESet = showESet; show = SHOW_EDEFAULT; showESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, DrawingPackage.AREA_RECTANGLE_TYPE__SHOW, oldShow, SHOW_EDEFAULT, oldShowESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean isSetShow() { return showESet; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Object getTargetFrameName() { return targetFrameName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTargetFrameName(Object newTargetFrameName) { Object oldTargetFrameName = targetFrameName; targetFrameName = newTargetFrameName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__TARGET_FRAME_NAME, oldTargetFrameName, targetFrameName)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypeType getType() { return type; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(TypeType newType) { TypeType oldType = type; type = newType == null ? TYPE_EDEFAULT : newType; boolean oldTypeESet = typeESet; typeESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__TYPE, oldType, type, !oldTypeESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void unsetType() { TypeType oldType = type; boolean oldTypeESet = typeESet; type = TYPE_EDEFAULT; typeESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, DrawingPackage.AREA_RECTANGLE_TYPE__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean isSetType() { return typeESet; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getWidth() { return width; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setWidth(String newWidth) { String oldWidth = width; width = newWidth; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__WIDTH, oldWidth, width)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getX() { return x; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setX(String newX) { String oldX = x; x = newX; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__X, oldX, x)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getY() { return y; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setY(String newY) { String oldY = y; y = newY; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DrawingPackage.AREA_RECTANGLE_TYPE__Y, oldY, y)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS: return basicSetEventListeners(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DrawingPackage.AREA_RECTANGLE_TYPE__TITLE: return getTitle(); case DrawingPackage.AREA_RECTANGLE_TYPE__DESC: return getDesc(); case DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS: return getEventListeners(); case DrawingPackage.AREA_RECTANGLE_TYPE__HEIGHT: return getHeight(); case DrawingPackage.AREA_RECTANGLE_TYPE__HREF: return getHref(); case DrawingPackage.AREA_RECTANGLE_TYPE__NAME: return getName(); case DrawingPackage.AREA_RECTANGLE_TYPE__NOHREF: return getNohref(); case DrawingPackage.AREA_RECTANGLE_TYPE__SHOW: return getShow(); case DrawingPackage.AREA_RECTANGLE_TYPE__TARGET_FRAME_NAME: return getTargetFrameName(); case DrawingPackage.AREA_RECTANGLE_TYPE__TYPE: return getType(); case DrawingPackage.AREA_RECTANGLE_TYPE__WIDTH: return getWidth(); case DrawingPackage.AREA_RECTANGLE_TYPE__X: return getX(); case DrawingPackage.AREA_RECTANGLE_TYPE__Y: return getY(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DrawingPackage.AREA_RECTANGLE_TYPE__TITLE: setTitle((String)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__DESC: setDesc((String)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS: setEventListeners((EventListenersType)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__HEIGHT: setHeight((String)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__HREF: setHref((String)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__NAME: setName((String)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__NOHREF: setNohref((NohrefType)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__SHOW: setShow((ShowType2)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__TARGET_FRAME_NAME: setTargetFrameName(newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__TYPE: setType((TypeType)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__WIDTH: setWidth((String)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__X: setX((String)newValue); return; case DrawingPackage.AREA_RECTANGLE_TYPE__Y: setY((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DrawingPackage.AREA_RECTANGLE_TYPE__TITLE: setTitle(TITLE_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__DESC: setDesc(DESC_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS: setEventListeners((EventListenersType)null); return; case DrawingPackage.AREA_RECTANGLE_TYPE__HEIGHT: setHeight(HEIGHT_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__HREF: setHref(HREF_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__NAME: setName(NAME_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__NOHREF: unsetNohref(); return; case DrawingPackage.AREA_RECTANGLE_TYPE__SHOW: unsetShow(); return; case DrawingPackage.AREA_RECTANGLE_TYPE__TARGET_FRAME_NAME: setTargetFrameName(TARGET_FRAME_NAME_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__TYPE: unsetType(); return; case DrawingPackage.AREA_RECTANGLE_TYPE__WIDTH: setWidth(WIDTH_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__X: setX(X_EDEFAULT); return; case DrawingPackage.AREA_RECTANGLE_TYPE__Y: setY(Y_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DrawingPackage.AREA_RECTANGLE_TYPE__TITLE: return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); case DrawingPackage.AREA_RECTANGLE_TYPE__DESC: return DESC_EDEFAULT == null ? desc != null : !DESC_EDEFAULT.equals(desc); case DrawingPackage.AREA_RECTANGLE_TYPE__EVENT_LISTENERS: return eventListeners != null; case DrawingPackage.AREA_RECTANGLE_TYPE__HEIGHT: return HEIGHT_EDEFAULT == null ? height != null : !HEIGHT_EDEFAULT.equals(height); case DrawingPackage.AREA_RECTANGLE_TYPE__HREF: return HREF_EDEFAULT == null ? href != null : !HREF_EDEFAULT.equals(href); case DrawingPackage.AREA_RECTANGLE_TYPE__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case DrawingPackage.AREA_RECTANGLE_TYPE__NOHREF: return isSetNohref(); case DrawingPackage.AREA_RECTANGLE_TYPE__SHOW: return isSetShow(); case DrawingPackage.AREA_RECTANGLE_TYPE__TARGET_FRAME_NAME: return TARGET_FRAME_NAME_EDEFAULT == null ? targetFrameName != null : !TARGET_FRAME_NAME_EDEFAULT.equals(targetFrameName); case DrawingPackage.AREA_RECTANGLE_TYPE__TYPE: return isSetType(); case DrawingPackage.AREA_RECTANGLE_TYPE__WIDTH: return WIDTH_EDEFAULT == null ? width != null : !WIDTH_EDEFAULT.equals(width); case DrawingPackage.AREA_RECTANGLE_TYPE__X: return X_EDEFAULT == null ? x != null : !X_EDEFAULT.equals(x); case DrawingPackage.AREA_RECTANGLE_TYPE__Y: return Y_EDEFAULT == null ? y != null : !Y_EDEFAULT.equals(y); } 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(", desc: "); result.append(desc); result.append(", height: "); result.append(height); result.append(", href: "); result.append(href); result.append(", name: "); result.append(name); result.append(", nohref: "); if (nohrefESet) result.append(nohref); else result.append("<unset>"); result.append(", show: "); if (showESet) result.append(show); else result.append("<unset>"); result.append(", targetFrameName: "); result.append(targetFrameName); result.append(", type: "); if (typeESet) result.append(type); else result.append("<unset>"); result.append(", width: "); result.append(width); result.append(", x: "); result.append(x); result.append(", y: "); result.append(y); result.append(')'); return result.toString(); } } //AreaRectangleTypeImpl