diff options
Diffstat (limited to 'dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java')
-rw-r--r-- | dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java new file mode 100644 index 0000000..7699732 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java @@ -0,0 +1,179 @@ + +/*- + * ============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.dcae.controller.core.stream.impl; + +import org.openecomp.dcae.controller.core.stream.DatabusLocation; +import org.openecomp.dcae.controller.core.stream.StreamPackage; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Databus Location</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusLocationImpl#getDcaeLayer <em>Dcae Layer</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DatabusLocationImpl extends DatabusEntityImpl implements DatabusLocation { + /** + * The default value of the '{@link #getDcaeLayer() <em>Dcae Layer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDcaeLayer() + * @generated + * @ordered + */ + protected static final String DCAE_LAYER_EDEFAULT = null; + /** + * The cached value of the '{@link #getDcaeLayer() <em>Dcae Layer</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDcaeLayer() + * @generated + * @ordered + */ + protected String dcaeLayer = DCAE_LAYER_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DatabusLocationImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return StreamPackage.Literals.DATABUS_LOCATION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDcaeLayer() { + return dcaeLayer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDcaeLayer(String newDcaeLayer) { + String oldDcaeLayer = dcaeLayer; + dcaeLayer = newDcaeLayer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StreamPackage.DATABUS_LOCATION__DCAE_LAYER, oldDcaeLayer, dcaeLayer)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case StreamPackage.DATABUS_LOCATION__DCAE_LAYER: + return getDcaeLayer(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case StreamPackage.DATABUS_LOCATION__DCAE_LAYER: + setDcaeLayer((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case StreamPackage.DATABUS_LOCATION__DCAE_LAYER: + setDcaeLayer(DCAE_LAYER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case StreamPackage.DATABUS_LOCATION__DCAE_LAYER: + return DCAE_LAYER_EDEFAULT == null ? dcaeLayer != null : !DCAE_LAYER_EDEFAULT.equals(dcaeLayer); + } + 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(" (dcaeLayer: "); + result.append(dcaeLayer); + result.append(')'); + return result.toString(); + } + +} //DatabusLocationImpl |