diff options
Diffstat (limited to 'ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java')
-rw-r--r-- | ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java | 402 |
1 files changed, 402 insertions, 0 deletions
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java new file mode 100644 index 0000000..bedbee7 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/gwt/siriusportal/model/impl/GuiTimeSerieDataImpl.java @@ -0,0 +1,402 @@ + +/*- + * ============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.GuiTimeSerieData; +import org.openecomp.ncomp.gwt.siriusportal.model.ModelPackage; + +import java.util.Date; + +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; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Gui Time Serie Data</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getTime <em>Time</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getValue <em>Value</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getMax <em>Max</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getMin <em>Min</em>}</li> + * <li>{@link org.openecomp.ncomp.gwt.siriusportal.model.impl.GuiTimeSerieDataImpl#getNum <em>Num</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GuiTimeSerieDataImpl extends MinimalEObjectImpl.Container implements GuiTimeSerieData { + /** + * The default value of the '{@link #getTime() <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTime() + * @generated + * @ordered + */ + protected static final Date TIME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTime() <em>Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTime() + * @generated + * @ordered + */ + protected Date time = TIME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final double VALUE_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected double value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getMax() <em>Max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMax() + * @generated + * @ordered + */ + protected static final Double MAX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMax() <em>Max</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMax() + * @generated + * @ordered + */ + protected Double max = MAX_EDEFAULT; + + /** + * The default value of the '{@link #getMin() <em>Min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMin() + * @generated + * @ordered + */ + protected static final Double MIN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMin() <em>Min</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMin() + * @generated + * @ordered + */ + protected Double min = MIN_EDEFAULT; + + /** + * The default value of the '{@link #getNum() <em>Num</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNum() + * @generated + * @ordered + */ + protected static final int NUM_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getNum() <em>Num</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNum() + * @generated + * @ordered + */ + protected int num = NUM_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GuiTimeSerieDataImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ModelPackage.Literals.GUI_TIME_SERIE_DATA; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getTime() { + return time; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTime(Date newTime) { + Date oldTime = time; + time = newTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__TIME, oldTime, time)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(double newValue) { + double oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Double getMax() { + return max; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMax(Double newMax) { + Double oldMax = max; + max = newMax; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__MAX, oldMax, max)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Double getMin() { + return min; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMin(Double newMin) { + Double oldMin = min; + min = newMin; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__MIN, oldMin, min)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getNum() { + return num; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNum(int newNum) { + int oldNum = num; + num = newNum; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.GUI_TIME_SERIE_DATA__NUM, oldNum, num)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + return getTime(); + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + return getValue(); + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + return getMax(); + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + return getMin(); + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + return getNum(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + setTime((Date)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + setValue((Double)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + setMax((Double)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + setMin((Double)newValue); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + setNum((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + setTime(TIME_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + setValue(VALUE_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + setMax(MAX_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + setMin(MIN_EDEFAULT); + return; + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + setNum(NUM_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ModelPackage.GUI_TIME_SERIE_DATA__TIME: + return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time); + case ModelPackage.GUI_TIME_SERIE_DATA__VALUE: + return value != VALUE_EDEFAULT; + case ModelPackage.GUI_TIME_SERIE_DATA__MAX: + return MAX_EDEFAULT == null ? max != null : !MAX_EDEFAULT.equals(max); + case ModelPackage.GUI_TIME_SERIE_DATA__MIN: + return MIN_EDEFAULT == null ? min != null : !MIN_EDEFAULT.equals(min); + case ModelPackage.GUI_TIME_SERIE_DATA__NUM: + return num != NUM_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(" (time: "); + result.append(time); + result.append(", value: "); + result.append(value); + result.append(", max: "); + result.append(max); + result.append(", min: "); + result.append(min); + result.append(", num: "); + result.append(num); + result.append(')'); + return result.toString(); + } + +} //GuiTimeSerieDataImpl |