diff options
Diffstat (limited to 'ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java')
-rw-r--r-- | ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java | 246 |
1 files changed, 246 insertions, 0 deletions
diff --git a/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java new file mode 100644 index 0000000..a59b006 --- /dev/null +++ b/ncomp-sirius-manager-model/src/main/xcore-gen/org/openecomp/ncomp/sirius/manager/tableTemplate/impl/TableTemplateMetricColumnImpl.java @@ -0,0 +1,246 @@ + +/*- + * ============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.sirius.manager.tableTemplate.impl; + +import org.openecomp.ncomp.core.metrics.MetricValueOption; + +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplateMetricColumn; +import org.openecomp.ncomp.sirius.manager.tableTemplate.TableTemplatePackage; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Metric Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl#getPath <em>Path</em>}</li> + * <li>{@link org.openecomp.ncomp.sirius.manager.tableTemplate.impl.TableTemplateMetricColumnImpl#getOption <em>Option</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TableTemplateMetricColumnImpl extends TableTemplateColumnImpl implements TableTemplateMetricColumn { + /** + * The default value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected static final String PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPath() <em>Path</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPath() + * @generated + * @ordered + */ + protected String path = PATH_EDEFAULT; + + /** + * The cached value of the '{@link #getOption() <em>Option</em>}' reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOption() + * @generated + * @ordered + */ + protected MetricValueOption option; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableTemplateMetricColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return TableTemplatePackage.Literals.TABLE_TEMPLATE_METRIC_COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPath() { + return path; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPath(String newPath) { + String oldPath = path; + path = newPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MetricValueOption getOption() { + if (option != null && option.eIsProxy()) { + InternalEObject oldOption = (InternalEObject)option; + option = (MetricValueOption)eResolveProxy(oldOption); + if (option != oldOption) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION, oldOption, option)); + } + } + return option; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MetricValueOption basicGetOption() { + return option; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOption(MetricValueOption newOption) { + MetricValueOption oldOption = option; + option = newOption; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION, oldOption, option)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + return getPath(); + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + if (resolve) return getOption(); + return basicGetOption(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + setPath((String)newValue); + return; + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + setOption((MetricValueOption)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + setPath(PATH_EDEFAULT); + return; + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + setOption((MetricValueOption)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + case TableTemplatePackage.TABLE_TEMPLATE_METRIC_COLUMN__OPTION: + return option != null; + } + 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(" (path: "); + result.append(path); + result.append(')'); + return result.toString(); + } + +} //TableTemplateMetricColumnImpl |