/*- * ============LICENSE_START========================================== * OPENECOMP - DCAE * =================================================================== * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. * =================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END============================================ */ /** */ package org.openecomp.ncomp.gwt.siriusportal.model.impl; import org.openecomp.ncomp.gwt.siriusportal.model.GuiDiagramItem; import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; /** * * An implementation of the model object 'Gui Diagram Item'. * *

* The following features are implemented: *

*

* * @generated */ public class GuiDiagramItemImpl extends MinimalEObjectImpl.Container implements GuiDiagramItem { /** * The default value of the '{@link #getTooltip() Tooltip}' attribute. * * * @see #getTooltip() * @generated * @ordered */ protected static final String TOOLTIP_EDEFAULT = null; /** * The cached value of the '{@link #getTooltip() Tooltip}' attribute. * * * @see #getTooltip() * @generated * @ordered */ protected String tooltip = TOOLTIP_EDEFAULT; /** * * * @generated */ protected GuiDiagramItemImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return ModelPackage.Literals.GUI_DIAGRAM_ITEM; } /** * * * @generated */ public String getTooltip() { return tooltip; } /** * * * @generated */ public void setTooltip(String newTooltip) { String oldTooltip = tooltip; tooltip = newTooltip; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP, oldTooltip, tooltip)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: return getTooltip(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: setTooltip((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: setTooltip(TOOLTIP_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ModelPackage.GUI_DIAGRAM_ITEM__TOOLTIP: return TOOLTIP_EDEFAULT == null ? tooltip != null : !TOOLTIP_EDEFAULT.equals(tooltip); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (tooltip: "); result.append(tooltip); result.append(')'); return result.toString(); } } //GuiDiagramItemImpl