/*-
* ============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.openstack.core.impl;
import org.openecomp.ncomp.openstack.core.CorePackage;
import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
*
* An implementation of the model object 'Openstack Request Delete'.
*
*
* The following features are implemented:
*
*
* - {@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl#getObjectType Object Type}
* - {@link org.openecomp.ncomp.openstack.core.impl.OpenstackRequestDeleteImpl#getObjectName Object Name}
*
*
* @generated
*/
public class OpenstackRequestDeleteImpl extends OpenStackRequestImpl implements OpenstackRequestDelete {
/**
* The default value of the '{@link #getObjectType() Object Type}' attribute.
*
*
* @see #getObjectType()
* @generated
* @ordered
*/
protected static final String OBJECT_TYPE_EDEFAULT = null;
/**
* The cached value of the '{@link #getObjectType() Object Type}' attribute.
*
*
* @see #getObjectType()
* @generated
* @ordered
*/
protected String objectType = OBJECT_TYPE_EDEFAULT;
/**
* The default value of the '{@link #getObjectName() Object Name}' attribute.
*
*
* @see #getObjectName()
* @generated
* @ordered
*/
protected static final String OBJECT_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getObjectName() Object Name}' attribute.
*
*
* @see #getObjectName()
* @generated
* @ordered
*/
protected String objectName = OBJECT_NAME_EDEFAULT;
/**
*
*
* @generated
*/
protected OpenstackRequestDeleteImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return CorePackage.Literals.OPENSTACK_REQUEST_DELETE;
}
/**
*
*
* @generated
*/
public String getObjectType() {
return objectType;
}
/**
*
*
* @generated
*/
public void setObjectType(String newObjectType) {
String oldObjectType = objectType;
objectType = newObjectType;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE, oldObjectType, objectType));
}
/**
*
*
* @generated
*/
public String getObjectName() {
return objectName;
}
/**
*
*
* @generated
*/
public void setObjectName(String newObjectName) {
String oldObjectName = objectName;
objectName = newObjectName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME, oldObjectName, objectName));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE:
return getObjectType();
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME:
return getObjectName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE:
setObjectType((String)newValue);
return;
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME:
setObjectName((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE:
setObjectType(OBJECT_TYPE_EDEFAULT);
return;
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME:
setObjectName(OBJECT_NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_TYPE:
return OBJECT_TYPE_EDEFAULT == null ? objectType != null : !OBJECT_TYPE_EDEFAULT.equals(objectType);
case CorePackage.OPENSTACK_REQUEST_DELETE__OBJECT_NAME:
return OBJECT_NAME_EDEFAULT == null ? objectName != null : !OBJECT_NAME_EDEFAULT.equals(objectName);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (objectType: ");
result.append(objectType);
result.append(", objectName: ");
result.append(objectName);
result.append(')');
return result.toString();
}
} //OpenstackRequestDeleteImpl