diff options
Diffstat (limited to 'dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java')
-rw-r--r-- | dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java | 267 |
1 files changed, 267 insertions, 0 deletions
diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java new file mode 100644 index 0000000..075fa66 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java @@ -0,0 +1,267 @@ + +/*- + * ============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.DcaeStreamInternalEndPoint; +import org.openecomp.dcae.controller.core.stream.DcaeStreamSubscriberInternal; +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>Dcae Stream Subscriber Internal</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberInternalImpl#getLocalName <em>Local Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberInternalImpl#getServiceName <em>Service Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DcaeStreamSubscriberInternalImpl extends DcaeStreamSubscriberImpl implements DcaeStreamSubscriberInternal { + /** + * The default value of the '{@link #getLocalName() <em>Local Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLocalName() + * @generated + * @ordered + */ + protected static final String LOCAL_NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getLocalName() <em>Local Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLocalName() + * @generated + * @ordered + */ + protected String localName = LOCAL_NAME_EDEFAULT; + /** + * The default value of the '{@link #getServiceName() <em>Service Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceName() + * @generated + * @ordered + */ + protected static final String SERVICE_NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getServiceName() <em>Service Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceName() + * @generated + * @ordered + */ + protected String serviceName = SERVICE_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DcaeStreamSubscriberInternalImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return StreamPackage.Literals.DCAE_STREAM_SUBSCRIBER_INTERNAL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLocalName() { + return localName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLocalName(String newLocalName) { + String oldLocalName = localName; + localName = newLocalName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__LOCAL_NAME, oldLocalName, localName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getServiceName() { + return serviceName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setServiceName(String newServiceName) { + String oldServiceName = serviceName; + serviceName = newServiceName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__SERVICE_NAME, oldServiceName, serviceName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__LOCAL_NAME: + return getLocalName(); + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__SERVICE_NAME: + return getServiceName(); + } + 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.DCAE_STREAM_SUBSCRIBER_INTERNAL__LOCAL_NAME: + setLocalName((String)newValue); + return; + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__SERVICE_NAME: + setServiceName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__LOCAL_NAME: + setLocalName(LOCAL_NAME_EDEFAULT); + return; + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__SERVICE_NAME: + setServiceName(SERVICE_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__LOCAL_NAME: + return LOCAL_NAME_EDEFAULT == null ? localName != null : !LOCAL_NAME_EDEFAULT.equals(localName); + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__SERVICE_NAME: + return SERVICE_NAME_EDEFAULT == null ? serviceName != null : !SERVICE_NAME_EDEFAULT.equals(serviceName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) { + if (baseClass == DcaeStreamInternalEndPoint.class) { + switch (derivedFeatureID) { + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__LOCAL_NAME: return StreamPackage.DCAE_STREAM_INTERNAL_END_POINT__LOCAL_NAME; + case StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__SERVICE_NAME: return StreamPackage.DCAE_STREAM_INTERNAL_END_POINT__SERVICE_NAME; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) { + if (baseClass == DcaeStreamInternalEndPoint.class) { + switch (baseFeatureID) { + case StreamPackage.DCAE_STREAM_INTERNAL_END_POINT__LOCAL_NAME: return StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__LOCAL_NAME; + case StreamPackage.DCAE_STREAM_INTERNAL_END_POINT__SERVICE_NAME: return StreamPackage.DCAE_STREAM_SUBSCRIBER_INTERNAL__SERVICE_NAME; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (localName: "); + result.append(localName); + result.append(", serviceName: "); + result.append(serviceName); + result.append(')'); + return result.toString(); + } + +} //DcaeStreamSubscriberInternalImpl |