diff options
Diffstat (limited to 'ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl')
26 files changed, 12235 insertions, 0 deletions
diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java new file mode 100644 index 0000000..23c7319 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressImpl.java @@ -0,0 +1,346 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Address; +import org.openecomp.ncomp.openstack.compute.ComputePackage; + +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>Address</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getVersion <em>Version</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getAddr <em>Addr</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getOS_EXT_IPS_MAC_mac_addr <em>OS EXT IPS MAC mac addr</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.AddressImpl#getOS_EXT_IPS_type <em>OS EXT IPS type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AddressImpl extends MinimalEObjectImpl.Container implements Address { + /** + * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected static final int VERSION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected int version = VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getAddr() <em>Addr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAddr() + * @generated + * @ordered + */ + protected static final String ADDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAddr() <em>Addr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAddr() + * @generated + * @ordered + */ + protected String addr = ADDR_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_IPS_MAC_mac_addr() <em>OS EXT IPS MAC mac addr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_IPS_MAC_mac_addr() + * @generated + * @ordered + */ + protected static final String OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_IPS_MAC_mac_addr() <em>OS EXT IPS MAC mac addr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_IPS_MAC_mac_addr() + * @generated + * @ordered + */ + protected String oS_EXT_IPS_MAC_mac_addr = OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_IPS_type() <em>OS EXT IPS type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_IPS_type() + * @generated + * @ordered + */ + protected static final String OS_EXT_IPS_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_IPS_type() <em>OS EXT IPS type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_IPS_type() + * @generated + * @ordered + */ + protected String oS_EXT_IPS_type = OS_EXT_IPS_TYPE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AddressImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.ADDRESS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getVersion() { + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVersion(int newVersion) { + int oldVersion = version; + version = newVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__VERSION, oldVersion, version)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAddr() { + return addr; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAddr(String newAddr) { + String oldAddr = addr; + addr = newAddr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__ADDR, oldAddr, addr)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_EXT_IPS_MAC_mac_addr() { + return oS_EXT_IPS_MAC_mac_addr; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_IPS_MAC_mac_addr(String newOS_EXT_IPS_MAC_mac_addr) { + String oldOS_EXT_IPS_MAC_mac_addr = oS_EXT_IPS_MAC_mac_addr; + oS_EXT_IPS_MAC_mac_addr = newOS_EXT_IPS_MAC_mac_addr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR, oldOS_EXT_IPS_MAC_mac_addr, oS_EXT_IPS_MAC_mac_addr)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_EXT_IPS_type() { + return oS_EXT_IPS_type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_IPS_type(String newOS_EXT_IPS_type) { + String oldOS_EXT_IPS_type = oS_EXT_IPS_type; + oS_EXT_IPS_type = newOS_EXT_IPS_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESS__OS_EXT_IPS_TYPE, oldOS_EXT_IPS_type, oS_EXT_IPS_type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + return getVersion(); + case ComputePackage.ADDRESS__ADDR: + return getAddr(); + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + return getOS_EXT_IPS_MAC_mac_addr(); + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + return getOS_EXT_IPS_type(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + setVersion((Integer)newValue); + return; + case ComputePackage.ADDRESS__ADDR: + setAddr((String)newValue); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + setOS_EXT_IPS_MAC_mac_addr((String)newValue); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + setOS_EXT_IPS_type((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case ComputePackage.ADDRESS__ADDR: + setAddr(ADDR_EDEFAULT); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + setOS_EXT_IPS_MAC_mac_addr(OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT); + return; + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + setOS_EXT_IPS_type(OS_EXT_IPS_TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESS__VERSION: + return version != VERSION_EDEFAULT; + case ComputePackage.ADDRESS__ADDR: + return ADDR_EDEFAULT == null ? addr != null : !ADDR_EDEFAULT.equals(addr); + case ComputePackage.ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR: + return OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT == null ? oS_EXT_IPS_MAC_mac_addr != null : !OS_EXT_IPS_MAC_MAC_ADDR_EDEFAULT.equals(oS_EXT_IPS_MAC_mac_addr); + case ComputePackage.ADDRESS__OS_EXT_IPS_TYPE: + return OS_EXT_IPS_TYPE_EDEFAULT == null ? oS_EXT_IPS_type != null : !OS_EXT_IPS_TYPE_EDEFAULT.equals(oS_EXT_IPS_type); + } + 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(" (version: "); + result.append(version); + result.append(", addr: "); + result.append(addr); + result.append(", OS_EXT_IPS_MAC_mac_addr: "); + result.append(oS_EXT_IPS_MAC_mac_addr); + result.append(", OS_EXT_IPS_type: "); + result.append(oS_EXT_IPS_type); + result.append(')'); + return result.toString(); + } + +} //AddressImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressesImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressesImpl.java new file mode 100644 index 0000000..246e4c1 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/AddressesImpl.java @@ -0,0 +1,243 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Address; +import org.openecomp.ncomp.openstack.compute.Addresses; +import org.openecomp.ncomp.openstack.compute.ComputePackage; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Addresses</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.AddressesImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.AddressesImpl#getIps <em>Ips</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AddressesImpl extends MinimalEObjectImpl.Container implements Addresses { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getIps() <em>Ips</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIps() + * @generated + * @ordered + */ + protected EList<Address> ips; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AddressesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.ADDRESSES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.ADDRESSES__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Address> getIps() { + if (ips == null) { + ips = new EObjectContainmentEList<Address>(Address.class, this, ComputePackage.ADDRESSES__IPS); + } + return ips; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.ADDRESSES__IPS: + return ((InternalEList<?>)getIps()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + return getName(); + case ComputePackage.ADDRESSES__IPS: + return getIps(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + setName((String)newValue); + return; + case ComputePackage.ADDRESSES__IPS: + getIps().clear(); + getIps().addAll((Collection<? extends Address>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.ADDRESSES__IPS: + getIps().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.ADDRESSES__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.ADDRESSES__IPS: + return ips != null && !ips.isEmpty(); + } + 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(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //AddressesImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeFactoryImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeFactoryImpl.java new file mode 100644 index 0000000..e6688e6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeFactoryImpl.java @@ -0,0 +1,358 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.*; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EFactoryImpl; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ComputeFactoryImpl extends EFactoryImpl implements ComputeFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static ComputeFactory init() { + try { + ComputeFactory theComputeFactory = (ComputeFactory)EPackage.Registry.INSTANCE.getEFactory(ComputePackage.eNS_URI); + if (theComputeFactory != null) { + return theComputeFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ComputeFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ComputeFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER: return createOpenstackRequestNewServer(); + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR: return createOpenstackRequestKeyPair(); + case ComputePackage.OPENSTACK_REQUEST_FLAVOR: return createOpenstackRequestFlavor(); + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP: return createOpenstackRequestSecurityGroup(); + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION: return createOpenstackRequestServerAction(); + case ComputePackage.OPENSTACK_REQUEST_POLL: return createOpenstackRequestPoll(); + case ComputePackage.SERVER: return createServer(); + case ComputePackage.IMAGE: return createImage(); + case ComputePackage.FLAVOR: return createFlavor(); + case ComputePackage.ADDRESSES: return createAddresses(); + case ComputePackage.ADDRESS: return createAddress(); + case ComputePackage.LINK: return createLink(); + case ComputePackage.METADATA: return createMetadata(); + case ComputePackage.FAULT: return createFault(); + case ComputePackage.PERSONALITY: return createPersonality(); + case ComputePackage.REFERENCE: return createReference(); + case ComputePackage.VOLUME: return createVolume(); + case ComputePackage.VOLUME_ATTACHMENT: return createVolumeAttachment(); + case ComputePackage.FLOATING_IP: return createFloatingIp(); + case ComputePackage.SECURITY_GROUP: return createSecurityGroup(); + case ComputePackage.SECURITY_RULE: return createSecurityRule(); + case ComputePackage.SECURITY_RANGE: return createSecurityRange(); + case ComputePackage.KEY_PAIR: return createKeyPair(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OpenstackRequestNewServer createOpenstackRequestNewServer() { + OpenstackRequestNewServerImpl openstackRequestNewServer = new OpenstackRequestNewServerImpl(); + return openstackRequestNewServer; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OpenstackRequestKeyPair createOpenstackRequestKeyPair() { + OpenstackRequestKeyPairImpl openstackRequestKeyPair = new OpenstackRequestKeyPairImpl(); + return openstackRequestKeyPair; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OpenstackRequestFlavor createOpenstackRequestFlavor() { + OpenstackRequestFlavorImpl openstackRequestFlavor = new OpenstackRequestFlavorImpl(); + return openstackRequestFlavor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OpenstackRequestSecurityGroup createOpenstackRequestSecurityGroup() { + OpenstackRequestSecurityGroupImpl openstackRequestSecurityGroup = new OpenstackRequestSecurityGroupImpl(); + return openstackRequestSecurityGroup; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OpenstackRequestServerAction createOpenstackRequestServerAction() { + OpenstackRequestServerActionImpl openstackRequestServerAction = new OpenstackRequestServerActionImpl(); + return openstackRequestServerAction; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OpenstackRequestPoll createOpenstackRequestPoll() { + OpenstackRequestPollImpl openstackRequestPoll = new OpenstackRequestPollImpl(); + return openstackRequestPoll; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Server createServer() { + ServerImpl server = new ServerImpl(); + return server; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Image createImage() { + ImageImpl image = new ImageImpl(); + return image; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Flavor createFlavor() { + FlavorImpl flavor = new FlavorImpl(); + return flavor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Addresses createAddresses() { + AddressesImpl addresses = new AddressesImpl(); + return addresses; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Address createAddress() { + AddressImpl address = new AddressImpl(); + return address; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link createLink() { + LinkImpl link = new LinkImpl(); + return link; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Metadata createMetadata() { + MetadataImpl metadata = new MetadataImpl(); + return metadata; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Fault createFault() { + FaultImpl fault = new FaultImpl(); + return fault; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Personality createPersonality() { + PersonalityImpl personality = new PersonalityImpl(); + return personality; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Reference createReference() { + ReferenceImpl reference = new ReferenceImpl(); + return reference; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Volume createVolume() { + VolumeImpl volume = new VolumeImpl(); + return volume; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VolumeAttachment createVolumeAttachment() { + VolumeAttachmentImpl volumeAttachment = new VolumeAttachmentImpl(); + return volumeAttachment; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FloatingIp createFloatingIp() { + FloatingIpImpl floatingIp = new FloatingIpImpl(); + return floatingIp; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SecurityGroup createSecurityGroup() { + SecurityGroupImpl securityGroup = new SecurityGroupImpl(); + return securityGroup; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SecurityRule createSecurityRule() { + SecurityRuleImpl securityRule = new SecurityRuleImpl(); + return securityRule; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SecurityRange createSecurityRange() { + SecurityRangeImpl securityRange = new SecurityRangeImpl(); + return securityRange; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public KeyPair createKeyPair() { + KeyPairImpl keyPair = new KeyPairImpl(); + return keyPair; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ComputePackage getComputePackage() { + return (ComputePackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static ComputePackage getPackage() { + return ComputePackage.eINSTANCE; + } + +} //ComputeFactoryImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputePackageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputePackageImpl.java new file mode 100644 index 0000000..53dbcb9 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputePackageImpl.java @@ -0,0 +1,2156 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Address; +import org.openecomp.ncomp.openstack.compute.Addresses; +import org.openecomp.ncomp.openstack.compute.ComputeFactory; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.Fault; +import org.openecomp.ncomp.openstack.compute.Flavor; +import org.openecomp.ncomp.openstack.compute.FloatingIp; +import org.openecomp.ncomp.openstack.compute.Image; +import org.openecomp.ncomp.openstack.compute.KeyPair; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; +import org.openecomp.ncomp.openstack.compute.Personality; +import org.openecomp.ncomp.openstack.compute.Reference; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.SecurityRange; +import org.openecomp.ncomp.openstack.compute.SecurityRule; +import org.openecomp.ncomp.openstack.compute.Server; +import org.openecomp.ncomp.openstack.compute.Volume; +import org.openecomp.ncomp.openstack.compute.VolumeAttachment; +import org.openecomp.ncomp.openstack.core.CorePackage; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EOperation; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.impl.EPackageImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class ComputePackageImpl extends EPackageImpl implements ComputePackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass computeServiceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass openstackRequestNewServerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass openstackRequestKeyPairEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass openstackRequestFlavorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass openstackRequestSecurityGroupEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass openstackRequestServerActionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass openstackRequestPollEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass serverEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass imageEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass flavorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass addressesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass addressEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass linkEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass metadataEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass faultEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass personalityEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass referenceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass volumeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass volumeAttachmentEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass floatingIpEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass securityGroupEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass securityRuleEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass securityRangeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass keyPairEClass = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.openecomp.ncomp.openstack.compute.ComputePackage#eNS_URI + * @see #init() + * @generated + */ + private ComputePackageImpl() { + super(eNS_URI, ComputeFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link ComputePackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ComputePackage init() { + if (isInited) return (ComputePackage)EPackage.Registry.INSTANCE.getEPackage(ComputePackage.eNS_URI); + + // Obtain or create and register package + ComputePackageImpl theComputePackage = (ComputePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ComputePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ComputePackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theComputePackage.createPackageContents(); + + // Initialize created meta-data + theComputePackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theComputePackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ComputePackage.eNS_URI, theComputePackage); + return theComputePackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getComputeService() { + return computeServiceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__CreateServer__OpenstackRequestNewServer() { + return computeServiceEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__DeleteServer__String_String() { + return computeServiceEClass.getEOperations().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__CreateKeyPair__OpenstackRequestKeyPair() { + return computeServiceEClass.getEOperations().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__Delete__OpenstackRequestDelete() { + return computeServiceEClass.getEOperations().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__CreateFlavor__OpenstackRequestFlavor() { + return computeServiceEClass.getEOperations().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup() { + return computeServiceEClass.getEOperations().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__ServerAction__OpenstackRequestServerAction() { + return computeServiceEClass.getEOperations().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__DeployVmType__String_String() { + return computeServiceEClass.getEOperations().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__UndeployVmType__String_String() { + return computeServiceEClass.getEOperations().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__DeployUser__User_String() { + return computeServiceEClass.getEOperations().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getComputeService__UndeployUser__User_String() { + return computeServiceEClass.getEOperations().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOpenstackRequestNewServer() { + return openstackRequestNewServerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Name() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Hypervisor() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestNewServer_User() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Networks() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestNewServer_Ports() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestNewServer_User_data() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestNewServer_FloatingIp() { + return (EAttribute)openstackRequestNewServerEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOpenstackRequestNewServer_VmType() { + return (EReference)openstackRequestNewServerEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOpenstackRequestKeyPair() { + return openstackRequestKeyPairEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOpenstackRequestKeyPair_User() { + return (EReference)openstackRequestKeyPairEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOpenstackRequestFlavor() { + return openstackRequestFlavorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOpenstackRequestFlavor_VmType() { + return (EReference)openstackRequestFlavorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOpenstackRequestSecurityGroup() { + return openstackRequestSecurityGroupEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOpenstackRequestSecurityGroup_VmType() { + return (EReference)openstackRequestSecurityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOpenstackRequestServerAction() { + return openstackRequestServerActionEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestServerAction_Name() { + return (EAttribute)openstackRequestServerActionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOpenstackRequestServerAction_Action() { + return (EAttribute)openstackRequestServerActionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOpenstackRequestPoll() { + return openstackRequestPollEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getServer() { + return serverEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Tenant_id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_User_id() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Updated() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Created() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_HostId() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_AccessIPv4() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_AccessIPv6() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Status() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Config_drive() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Key_name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_Progress() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_DCF_diskConfig() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_EXT_STS_power_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_EXT_STS_vm_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(15); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_EXT_STS_task_state() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(16); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_host() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(17); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_instance_name() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(18); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_EXT_SRV_ATTR_hypervisor_hostname() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(19); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_SRV_USG_launched_at() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(20); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getServer_OS_SRV_USG_terminated_at() { + return (EAttribute)serverEClass.getEStructuralFeatures().get(21); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getServer_Image() { + return (EReference)serverEClass.getEStructuralFeatures().get(22); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getServer_Flavor() { + return (EReference)serverEClass.getEStructuralFeatures().get(23); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getServer_Addresses() { + return (EReference)serverEClass.getEStructuralFeatures().get(24); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getServer_Security_groups() { + return (EReference)serverEClass.getEStructuralFeatures().get(25); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getServer_Metadata() { + return (EReference)serverEClass.getEStructuralFeatures().get(26); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getServer_Links() { + return (EReference)serverEClass.getEStructuralFeatures().get(27); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getServer_Fault() { + return (EReference)serverEClass.getEStructuralFeatures().get(28); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getImage() { + return imageEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_Id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_Name() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_Updated() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_Created() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_Tenant_id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_User_id() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_Status() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_Progress() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_MinDisk() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_MinRam() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getImage_OS_EXT_IMG_SIZE_size() { + return (EAttribute)imageEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getImage_Server() { + return (EReference)imageEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getImage_Links() { + return (EReference)imageEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getImage_Metadata() { + return (EReference)imageEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFlavor() { + return flavorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Id() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Name() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Ram() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Disk() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Vcpus() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Swap() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Rxtx_factor() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_OS_FLV_EXT_DATA_ephemeral() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_OS_FLV_DISABLED_disabled() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFlavor_Os_flavor_access_is_public() { + return (EAttribute)flavorEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getFlavor_Links() { + return (EReference)flavorEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAddresses() { + return addressesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddresses_Name() { + return (EAttribute)addressesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAddresses_Ips() { + return (EReference)addressesEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAddress() { + return addressEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddress_Version() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddress_Addr() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddress_OS_EXT_IPS_MAC_mac_addr() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAddress_OS_EXT_IPS_type() { + return (EAttribute)addressEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getLink() { + return linkEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Rel() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Href() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Type() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getMetadata() { + return metadataEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMetadata_Key() { + return (EAttribute)metadataEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMetadata_Value() { + return (EAttribute)metadataEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFault() { + return faultEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFault_Message() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFault_Created() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFault_Code() { + return (EAttribute)faultEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPersonality() { + return personalityEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPersonality_Path() { + return (EAttribute)personalityEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPersonality_Contents() { + return (EAttribute)personalityEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getReference() { + return referenceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getReference_Id() { + return (EAttribute)referenceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getReference_Links() { + return (EReference)referenceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVolume() { + return volumeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Status() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Display_name() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVolume_Attachments() { + return (EReference)volumeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Availability_zone() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Created_at() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Volume_type() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVolume_Metadata() { + return (EReference)volumeEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Id() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Size() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Snapshot_id() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolume_Display_description() { + return (EAttribute)volumeEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVolumeAttachment() { + return volumeAttachmentEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolumeAttachment_Device() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolumeAttachment_Server_id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolumeAttachment_Id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVolumeAttachment_Volume_id() { + return (EAttribute)volumeAttachmentEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFloatingIp() { + return floatingIpEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFloatingIp_Instance_id() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFloatingIp_Ip() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFloatingIp_Fixed_ip() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFloatingIp_Id() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFloatingIp_Pool() { + return (EAttribute)floatingIpEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSecurityGroup() { + return securityGroupEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSecurityGroup_Rules() { + return (EReference)securityGroupEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityGroup_Tenant_id() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityGroup_Id() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityGroup_Description() { + return (EAttribute)securityGroupEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSecurityRule() { + return securityRuleEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityRule_From_port() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSecurityRule_Group() { + return (EReference)securityRuleEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityRule_Ip_protocol() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityRule_To_port() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityRule_Parent_group_id() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSecurityRule_Ip_range() { + return (EReference)securityRuleEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityRule_Id() { + return (EAttribute)securityRuleEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSecurityRange() { + return securityRangeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecurityRange_Cidr() { + return (EAttribute)securityRangeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getKeyPair() { + return keyPairEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getKeyPair_Public_key() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getKeyPair_Name() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getKeyPair_Fingerprint() { + return (EAttribute)keyPairEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ComputeFactory getComputeFactory() { + return (ComputeFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + computeServiceEClass = createEClass(COMPUTE_SERVICE); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___DEPLOY_USER__USER_STRING); + createEOperation(computeServiceEClass, COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING); + + openstackRequestNewServerEClass = createEClass(OPENSTACK_REQUEST_NEW_SERVER); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__NAME); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__USER); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__NETWORKS); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__PORTS); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__USER_DATA); + createEAttribute(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP); + createEReference(openstackRequestNewServerEClass, OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE); + + openstackRequestKeyPairEClass = createEClass(OPENSTACK_REQUEST_KEY_PAIR); + createEReference(openstackRequestKeyPairEClass, OPENSTACK_REQUEST_KEY_PAIR__USER); + + openstackRequestFlavorEClass = createEClass(OPENSTACK_REQUEST_FLAVOR); + createEReference(openstackRequestFlavorEClass, OPENSTACK_REQUEST_FLAVOR__VM_TYPE); + + openstackRequestSecurityGroupEClass = createEClass(OPENSTACK_REQUEST_SECURITY_GROUP); + createEReference(openstackRequestSecurityGroupEClass, OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE); + + openstackRequestServerActionEClass = createEClass(OPENSTACK_REQUEST_SERVER_ACTION); + createEAttribute(openstackRequestServerActionEClass, OPENSTACK_REQUEST_SERVER_ACTION__NAME); + createEAttribute(openstackRequestServerActionEClass, OPENSTACK_REQUEST_SERVER_ACTION__ACTION); + + openstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL); + + serverEClass = createEClass(SERVER); + createEAttribute(serverEClass, SERVER__ID); + createEAttribute(serverEClass, SERVER__TENANT_ID); + createEAttribute(serverEClass, SERVER__USER_ID); + createEAttribute(serverEClass, SERVER__NAME); + createEAttribute(serverEClass, SERVER__UPDATED); + createEAttribute(serverEClass, SERVER__CREATED); + createEAttribute(serverEClass, SERVER__HOST_ID); + createEAttribute(serverEClass, SERVER__ACCESS_IPV4); + createEAttribute(serverEClass, SERVER__ACCESS_IPV6); + createEAttribute(serverEClass, SERVER__STATUS); + createEAttribute(serverEClass, SERVER__CONFIG_DRIVE); + createEAttribute(serverEClass, SERVER__KEY_NAME); + createEAttribute(serverEClass, SERVER__PROGRESS); + createEAttribute(serverEClass, SERVER__OS_DCF_DISK_CONFIG); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_POWER_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_VM_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_STS_TASK_STATE); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_HOST); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME); + createEAttribute(serverEClass, SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME); + createEAttribute(serverEClass, SERVER__OS_SRV_USG_LAUNCHED_AT); + createEAttribute(serverEClass, SERVER__OS_SRV_USG_TERMINATED_AT); + createEReference(serverEClass, SERVER__IMAGE); + createEReference(serverEClass, SERVER__FLAVOR); + createEReference(serverEClass, SERVER__ADDRESSES); + createEReference(serverEClass, SERVER__SECURITY_GROUPS); + createEReference(serverEClass, SERVER__METADATA); + createEReference(serverEClass, SERVER__LINKS); + createEReference(serverEClass, SERVER__FAULT); + + imageEClass = createEClass(IMAGE); + createEAttribute(imageEClass, IMAGE__ID); + createEAttribute(imageEClass, IMAGE__NAME); + createEAttribute(imageEClass, IMAGE__UPDATED); + createEAttribute(imageEClass, IMAGE__CREATED); + createEAttribute(imageEClass, IMAGE__TENANT_ID); + createEAttribute(imageEClass, IMAGE__USER_ID); + createEAttribute(imageEClass, IMAGE__STATUS); + createEAttribute(imageEClass, IMAGE__PROGRESS); + createEAttribute(imageEClass, IMAGE__MIN_DISK); + createEAttribute(imageEClass, IMAGE__MIN_RAM); + createEAttribute(imageEClass, IMAGE__OS_EXT_IMG_SIZE_SIZE); + createEReference(imageEClass, IMAGE__SERVER); + createEReference(imageEClass, IMAGE__LINKS); + createEReference(imageEClass, IMAGE__METADATA); + + flavorEClass = createEClass(FLAVOR); + createEAttribute(flavorEClass, FLAVOR__ID); + createEAttribute(flavorEClass, FLAVOR__NAME); + createEAttribute(flavorEClass, FLAVOR__RAM); + createEAttribute(flavorEClass, FLAVOR__DISK); + createEAttribute(flavorEClass, FLAVOR__VCPUS); + createEAttribute(flavorEClass, FLAVOR__SWAP); + createEAttribute(flavorEClass, FLAVOR__RXTX_FACTOR); + createEAttribute(flavorEClass, FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL); + createEAttribute(flavorEClass, FLAVOR__OS_FLV_DISABLED_DISABLED); + createEAttribute(flavorEClass, FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC); + createEReference(flavorEClass, FLAVOR__LINKS); + + addressesEClass = createEClass(ADDRESSES); + createEAttribute(addressesEClass, ADDRESSES__NAME); + createEReference(addressesEClass, ADDRESSES__IPS); + + addressEClass = createEClass(ADDRESS); + createEAttribute(addressEClass, ADDRESS__VERSION); + createEAttribute(addressEClass, ADDRESS__ADDR); + createEAttribute(addressEClass, ADDRESS__OS_EXT_IPS_MAC_MAC_ADDR); + createEAttribute(addressEClass, ADDRESS__OS_EXT_IPS_TYPE); + + linkEClass = createEClass(LINK); + createEAttribute(linkEClass, LINK__REL); + createEAttribute(linkEClass, LINK__HREF); + createEAttribute(linkEClass, LINK__TYPE); + + metadataEClass = createEClass(METADATA); + createEAttribute(metadataEClass, METADATA__KEY); + createEAttribute(metadataEClass, METADATA__VALUE); + + faultEClass = createEClass(FAULT); + createEAttribute(faultEClass, FAULT__MESSAGE); + createEAttribute(faultEClass, FAULT__CREATED); + createEAttribute(faultEClass, FAULT__CODE); + + personalityEClass = createEClass(PERSONALITY); + createEAttribute(personalityEClass, PERSONALITY__PATH); + createEAttribute(personalityEClass, PERSONALITY__CONTENTS); + + referenceEClass = createEClass(REFERENCE); + createEAttribute(referenceEClass, REFERENCE__ID); + createEReference(referenceEClass, REFERENCE__LINKS); + + volumeEClass = createEClass(VOLUME); + createEAttribute(volumeEClass, VOLUME__STATUS); + createEAttribute(volumeEClass, VOLUME__DISPLAY_NAME); + createEReference(volumeEClass, VOLUME__ATTACHMENTS); + createEAttribute(volumeEClass, VOLUME__AVAILABILITY_ZONE); + createEAttribute(volumeEClass, VOLUME__CREATED_AT); + createEAttribute(volumeEClass, VOLUME__VOLUME_TYPE); + createEReference(volumeEClass, VOLUME__METADATA); + createEAttribute(volumeEClass, VOLUME__ID); + createEAttribute(volumeEClass, VOLUME__SIZE); + createEAttribute(volumeEClass, VOLUME__SNAPSHOT_ID); + createEAttribute(volumeEClass, VOLUME__DISPLAY_DESCRIPTION); + + volumeAttachmentEClass = createEClass(VOLUME_ATTACHMENT); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__DEVICE); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__SERVER_ID); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__ID); + createEAttribute(volumeAttachmentEClass, VOLUME_ATTACHMENT__VOLUME_ID); + + floatingIpEClass = createEClass(FLOATING_IP); + createEAttribute(floatingIpEClass, FLOATING_IP__INSTANCE_ID); + createEAttribute(floatingIpEClass, FLOATING_IP__IP); + createEAttribute(floatingIpEClass, FLOATING_IP__FIXED_IP); + createEAttribute(floatingIpEClass, FLOATING_IP__ID); + createEAttribute(floatingIpEClass, FLOATING_IP__POOL); + + securityGroupEClass = createEClass(SECURITY_GROUP); + createEReference(securityGroupEClass, SECURITY_GROUP__RULES); + createEAttribute(securityGroupEClass, SECURITY_GROUP__TENANT_ID); + createEAttribute(securityGroupEClass, SECURITY_GROUP__ID); + createEAttribute(securityGroupEClass, SECURITY_GROUP__DESCRIPTION); + + securityRuleEClass = createEClass(SECURITY_RULE); + createEAttribute(securityRuleEClass, SECURITY_RULE__FROM_PORT); + createEReference(securityRuleEClass, SECURITY_RULE__GROUP); + createEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL); + createEAttribute(securityRuleEClass, SECURITY_RULE__TO_PORT); + createEAttribute(securityRuleEClass, SECURITY_RULE__PARENT_GROUP_ID); + createEReference(securityRuleEClass, SECURITY_RULE__IP_RANGE); + createEAttribute(securityRuleEClass, SECURITY_RULE__ID); + + securityRangeEClass = createEClass(SECURITY_RANGE); + createEAttribute(securityRangeEClass, SECURITY_RANGE__CIDR); + + keyPairEClass = createEClass(KEY_PAIR); + createEAttribute(keyPairEClass, KEY_PAIR__PUBLIC_KEY); + createEAttribute(keyPairEClass, KEY_PAIR__NAME); + createEAttribute(keyPairEClass, KEY_PAIR__FINGERPRINT); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); + CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); + org.openecomp.ncomp.core.CorePackage theCorePackage_1 = (org.openecomp.ncomp.core.CorePackage)EPackage.Registry.INSTANCE.getEPackage(org.openecomp.ncomp.core.CorePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + openstackRequestNewServerEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestKeyPairEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestFlavorEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestSecurityGroupEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestServerActionEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + openstackRequestPollEClass.getESuperTypes().add(theCorePackage.getOpenStackRequest()); + volumeEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + securityGroupEClass.getESuperTypes().add(theCorePackage_1.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(computeServiceEClass, ComputeService.class, "ComputeService", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getComputeService__CreateServer__OpenstackRequestNewServer(), null, "createServer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestNewServer(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeleteServer__String_String(), null, "deleteServer", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "name", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateKeyPair__OpenstackRequestKeyPair(), null, "createKeyPair", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestKeyPair(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__Delete__OpenstackRequestDelete(), null, "delete", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage.getOpenstackRequestDelete(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateFlavor__OpenstackRequestFlavor(), null, "createFlavor", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestFlavor(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__CreateSecurityGroup__OpenstackRequestSecurityGroup(), null, "createSecurityGroup", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestSecurityGroup(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__ServerAction__OpenstackRequestServerAction(), null, "serverAction", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getOpenstackRequestServerAction(), "request", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeployVmType__String_String(), null, "deployVmType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vmTypeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__UndeployVmType__String_String(), null, "undeployVmType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vmTypeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__DeployUser__User_String(), null, "deployUser", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getUser(), "user", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getComputeService__UndeployUser__User_String(), null, "undeployUser", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theCorePackage_1.getUser(), "user", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "projectName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(openstackRequestNewServerEClass, OpenstackRequestNewServer.class, "OpenstackRequestNewServer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestNewServer_Name(), theEcorePackage.getEString(), "name", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Hypervisor(), theEcorePackage.getEString(), "hypervisor", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_User(), theEcorePackage.getEString(), "user", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Networks(), theEcorePackage.getEString(), "networks", null, 0, -1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_Ports(), theEcorePackage.getEString(), "ports", null, 0, -1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_User_data(), theEcorePackage.getEString(), "user_data", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestNewServer_FloatingIp(), theEcorePackage.getEString(), "floatingIp", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOpenstackRequestNewServer_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestNewServer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestKeyPairEClass, OpenstackRequestKeyPair.class, "OpenstackRequestKeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestKeyPair_User(), theCorePackage_1.getUser(), null, "user", null, 0, 1, OpenstackRequestKeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestFlavorEClass, OpenstackRequestFlavor.class, "OpenstackRequestFlavor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestFlavor_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestFlavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestSecurityGroupEClass, OpenstackRequestSecurityGroup.class, "OpenstackRequestSecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOpenstackRequestSecurityGroup_VmType(), theCorePackage.getVirtualMachineType(), null, "vmType", null, 0, 1, OpenstackRequestSecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestServerActionEClass, OpenstackRequestServerAction.class, "OpenstackRequestServerAction", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOpenstackRequestServerAction_Name(), theEcorePackage.getEString(), "name", null, 0, 1, OpenstackRequestServerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOpenstackRequestServerAction_Action(), theEcorePackage.getEString(), "action", null, 0, 1, OpenstackRequestServerAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(openstackRequestPollEClass, OpenstackRequestPoll.class, "OpenstackRequestPoll", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(serverEClass, Server.class, "Server", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getServer_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Updated(), theEcorePackage.getEString(), "updated", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_HostId(), theEcorePackage.getEString(), "hostId", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_AccessIPv4(), theEcorePackage.getEString(), "accessIPv4", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_AccessIPv6(), theEcorePackage.getEString(), "accessIPv6", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Config_drive(), theEcorePackage.getEString(), "config_drive", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Key_name(), theEcorePackage.getEString(), "key_name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Progress(), theEcorePackage.getEInt(), "progress", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_DCF_diskConfig(), theEcorePackage.getEString(), "OS_DCF_diskConfig", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_power_state(), theEcorePackage.getEInt(), "OS_EXT_STS_power_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_vm_state(), theEcorePackage.getEString(), "OS_EXT_STS_vm_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_STS_task_state(), theEcorePackage.getEString(), "OS_EXT_STS_task_state", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_host(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_host", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_instance_name(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_instance_name", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_EXT_SRV_ATTR_hypervisor_hostname(), theEcorePackage.getEString(), "OS_EXT_SRV_ATTR_hypervisor_hostname", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_SRV_USG_launched_at(), theEcorePackage.getEString(), "OS_SRV_USG_launched_at", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_OS_SRV_USG_terminated_at(), theEcorePackage.getEString(), "OS_SRV_USG_terminated_at", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Image(), this.getReference(), null, "image", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Flavor(), this.getReference(), null, "flavor", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Addresses(), this.getAddresses(), null, "addresses", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Security_groups(), this.getSecurityGroup(), null, "security_groups", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Links(), this.getLink(), null, "links", null, 0, -1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getServer_Fault(), this.getFault(), null, "fault", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(imageEClass, Image.class, "Image", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getImage_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Updated(), theEcorePackage.getEString(), "updated", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_User_id(), theEcorePackage.getEString(), "user_id", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_Progress(), theEcorePackage.getELongObject(), "progress", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_MinDisk(), theEcorePackage.getELongObject(), "minDisk", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_MinRam(), theEcorePackage.getELongObject(), "minRam", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getImage_OS_EXT_IMG_SIZE_size(), theEcorePackage.getELongObject(), "OS_EXT_IMG_SIZE_size", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Server(), this.getReference(), null, "server", null, 0, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Links(), this.getLink(), null, "links", null, 0, -1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getImage_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(flavorEClass, Flavor.class, "Flavor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFlavor_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Ram(), theEcorePackage.getEInt(), "ram", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Disk(), theEcorePackage.getEInt(), "disk", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Vcpus(), theEcorePackage.getEInt(), "vcpus", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Swap(), theEcorePackage.getEString(), "swap", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Rxtx_factor(), theEcorePackage.getEDouble(), "rxtx_factor", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_OS_FLV_EXT_DATA_ephemeral(), theEcorePackage.getEInt(), "OS_FLV_EXT_DATA_ephemeral", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_OS_FLV_DISABLED_disabled(), theEcorePackage.getEBoolean(), "OS_FLV_DISABLED_disabled", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFlavor_Os_flavor_access_is_public(), theEcorePackage.getEBoolean(), "os_flavor_access_is_public", null, 0, 1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFlavor_Links(), this.getLink(), null, "links", null, 0, -1, Flavor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(addressesEClass, Addresses.class, "Addresses", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAddresses_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Addresses.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAddresses_Ips(), this.getAddress(), null, "ips", null, 0, -1, Addresses.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(addressEClass, Address.class, "Address", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getAddress_Version(), theEcorePackage.getEInt(), "version", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_Addr(), theEcorePackage.getEString(), "addr", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_OS_EXT_IPS_MAC_mac_addr(), theEcorePackage.getEString(), "OS_EXT_IPS_MAC_mac_addr", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAddress_OS_EXT_IPS_type(), theEcorePackage.getEString(), "OS_EXT_IPS_type", null, 0, 1, Address.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(linkEClass, Link.class, "Link", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLink_Rel(), theEcorePackage.getEString(), "rel", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Href(), theEcorePackage.getEString(), "href", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Type(), theEcorePackage.getEString(), "type", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(metadataEClass, Metadata.class, "Metadata", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMetadata_Key(), theEcorePackage.getEString(), "key", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMetadata_Value(), theEcorePackage.getEString(), "value", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(faultEClass, Fault.class, "Fault", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFault_Message(), theEcorePackage.getEString(), "message", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFault_Created(), theEcorePackage.getEString(), "created", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFault_Code(), theEcorePackage.getEInt(), "code", null, 0, 1, Fault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(personalityEClass, Personality.class, "Personality", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPersonality_Path(), theEcorePackage.getEString(), "path", null, 0, 1, Personality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPersonality_Contents(), theEcorePackage.getEString(), "contents", null, 0, 1, Personality.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(referenceEClass, Reference.class, "Reference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getReference_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReference_Links(), this.getLink(), null, "links", null, 0, -1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(volumeEClass, Volume.class, "Volume", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVolume_Status(), theEcorePackage.getEString(), "status", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Display_name(), theEcorePackage.getEString(), "display_name", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVolume_Attachments(), this.getVolumeAttachment(), null, "attachments", null, 0, -1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Availability_zone(), theEcorePackage.getEString(), "availability_zone", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Created_at(), theEcorePackage.getEString(), "created_at", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Volume_type(), theEcorePackage.getEString(), "volume_type", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getVolume_Metadata(), this.getMetadata(), null, "metadata", null, 0, -1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Id(), theEcorePackage.getEString(), "id", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Size(), theEcorePackage.getEInt(), "size", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Snapshot_id(), theEcorePackage.getEString(), "snapshot_id", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolume_Display_description(), theEcorePackage.getEString(), "display_description", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(volumeAttachmentEClass, VolumeAttachment.class, "VolumeAttachment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getVolumeAttachment_Device(), theEcorePackage.getEString(), "device", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Server_id(), theEcorePackage.getEString(), "server_id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Id(), theEcorePackage.getEString(), "id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVolumeAttachment_Volume_id(), theEcorePackage.getEString(), "volume_id", null, 0, 1, VolumeAttachment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(floatingIpEClass, FloatingIp.class, "FloatingIp", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFloatingIp_Instance_id(), theEcorePackage.getEString(), "instance_id", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Ip(), theEcorePackage.getEString(), "ip", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Fixed_ip(), theEcorePackage.getEString(), "fixed_ip", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Id(), theEcorePackage.getEString(), "id", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFloatingIp_Pool(), theEcorePackage.getEString(), "pool", null, 0, 1, FloatingIp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityGroupEClass, SecurityGroup.class, "SecurityGroup", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSecurityGroup_Rules(), this.getSecurityRule(), null, "rules", null, 0, -1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Tenant_id(), theEcorePackage.getEString(), "tenant_id", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Id(), theEcorePackage.getEString(), "id", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityGroup_Description(), theEcorePackage.getEString(), "description", null, 0, 1, SecurityGroup.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRuleEClass, SecurityRule.class, "SecurityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRule_From_port(), theEcorePackage.getEIntegerObject(), "from_port", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityRule_Group(), this.getSecurityGroup(), null, "group", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Ip_protocol(), theEcorePackage.getEString(), "ip_protocol", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_To_port(), theEcorePackage.getEIntegerObject(), "to_port", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Parent_group_id(), theEcorePackage.getEString(), "parent_group_id", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecurityRule_Ip_range(), this.getSecurityRange(), null, "ip_range", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecurityRule_Id(), theEcorePackage.getEString(), "id", null, 0, 1, SecurityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(securityRangeEClass, SecurityRange.class, "SecurityRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSecurityRange_Cidr(), theEcorePackage.getEString(), "cidr", null, 0, 1, SecurityRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(keyPairEClass, KeyPair.class, "KeyPair", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getKeyPair_Public_key(), theEcorePackage.getEString(), "public_key", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getKeyPair_Name(), theEcorePackage.getEString(), "name", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getKeyPair_Fingerprint(), theEcorePackage.getEString(), "fingerprint", null, 0, 1, KeyPair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Create resource + createResource(eNS_URI); + } + +} //ComputePackageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java new file mode 100644 index 0000000..3e3a4b4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ComputeServiceImpl.java @@ -0,0 +1,235 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.ComputeService; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; +import org.openecomp.ncomp.openstack.core.OpenstackRequestDelete; +import java.lang.reflect.InvocationTargetException; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Service</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public abstract class ComputeServiceImpl extends MinimalEObjectImpl.Container implements ComputeService { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ComputeServiceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.COMPUTE_SERVICE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createServer(OpenstackRequestNewServer request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void deleteServer(String projectName, String name) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createKeyPair(OpenstackRequestKeyPair request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void delete(OpenstackRequestDelete request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createFlavor(OpenstackRequestFlavor request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createSecurityGroup(OpenstackRequestSecurityGroup request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void serverAction(OpenstackRequestServerAction request) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void deployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void undeployVmType(String vmTypeName, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void deployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void undeployUser(User user, String projectName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case ComputePackage.COMPUTE_SERVICE___CREATE_SERVER__OPENSTACKREQUESTNEWSERVER: + createServer((OpenstackRequestNewServer)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DELETE_SERVER__STRING_STRING: + deleteServer((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_KEY_PAIR__OPENSTACKREQUESTKEYPAIR: + createKeyPair((OpenstackRequestKeyPair)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DELETE__OPENSTACKREQUESTDELETE: + delete((OpenstackRequestDelete)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_FLAVOR__OPENSTACKREQUESTFLAVOR: + createFlavor((OpenstackRequestFlavor)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___CREATE_SECURITY_GROUP__OPENSTACKREQUESTSECURITYGROUP: + createSecurityGroup((OpenstackRequestSecurityGroup)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___SERVER_ACTION__OPENSTACKREQUESTSERVERACTION: + serverAction((OpenstackRequestServerAction)arguments.get(0)); + return null; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_VM_TYPE__STRING_STRING: + deployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_VM_TYPE__STRING_STRING: + undeployVmType((String)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___DEPLOY_USER__USER_STRING: + deployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + case ComputePackage.COMPUTE_SERVICE___UNDEPLOY_USER__USER_STRING: + undeployUser((User)arguments.get(0), (String)arguments.get(1)); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //ComputeServiceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java new file mode 100644 index 0000000..1946236 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FaultImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Fault; + +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>Fault</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl#getMessage <em>Message</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl#getCreated <em>Created</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FaultImpl#getCode <em>Code</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class FaultImpl extends MinimalEObjectImpl.Container implements Fault { + /** + * The default value of the '{@link #getMessage() <em>Message</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMessage() + * @generated + * @ordered + */ + protected static final String MESSAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMessage() <em>Message</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMessage() + * @generated + * @ordered + */ + protected String message = MESSAGE_EDEFAULT; + + /** + * The default value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected static final String CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected String created = CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getCode() <em>Code</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCode() + * @generated + * @ordered + */ + protected static final int CODE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getCode() <em>Code</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCode() + * @generated + * @ordered + */ + protected int code = CODE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FaultImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.FAULT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMessage() { + return message; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMessage(String newMessage) { + String oldMessage = message; + message = newMessage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FAULT__MESSAGE, oldMessage, message)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCreated() { + return created; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated(String newCreated) { + String oldCreated = created; + created = newCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FAULT__CREATED, oldCreated, created)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getCode() { + return code; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCode(int newCode) { + int oldCode = code; + code = newCode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FAULT__CODE, oldCode, code)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + return getMessage(); + case ComputePackage.FAULT__CREATED: + return getCreated(); + case ComputePackage.FAULT__CODE: + return getCode(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + setMessage((String)newValue); + return; + case ComputePackage.FAULT__CREATED: + setCreated((String)newValue); + return; + case ComputePackage.FAULT__CODE: + setCode((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + setMessage(MESSAGE_EDEFAULT); + return; + case ComputePackage.FAULT__CREATED: + setCreated(CREATED_EDEFAULT); + return; + case ComputePackage.FAULT__CODE: + setCode(CODE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.FAULT__MESSAGE: + return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); + case ComputePackage.FAULT__CREATED: + return CREATED_EDEFAULT == null ? created != null : !CREATED_EDEFAULT.equals(created); + case ComputePackage.FAULT__CODE: + return code != CODE_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(" (message: "); + result.append(message); + result.append(", created: "); + result.append(created); + result.append(", code: "); + result.append(code); + result.append(')'); + return result.toString(); + } + +} //FaultImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FlavorImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FlavorImpl.java new file mode 100644 index 0000000..0df02c4 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FlavorImpl.java @@ -0,0 +1,729 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Flavor; +import org.openecomp.ncomp.openstack.compute.Link; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Flavor</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getRam <em>Ram</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getDisk <em>Disk</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getVcpus <em>Vcpus</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getSwap <em>Swap</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getRxtx_factor <em>Rxtx factor</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getOS_FLV_EXT_DATA_ephemeral <em>OS FLV EXT DATA ephemeral</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#isOS_FLV_DISABLED_disabled <em>OS FLV DISABLED disabled</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#isOs_flavor_access_is_public <em>Os flavor access is public</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FlavorImpl#getLinks <em>Links</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class FlavorImpl extends MinimalEObjectImpl.Container implements Flavor { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getRam() <em>Ram</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRam() + * @generated + * @ordered + */ + protected static final int RAM_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getRam() <em>Ram</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRam() + * @generated + * @ordered + */ + protected int ram = RAM_EDEFAULT; + + /** + * The default value of the '{@link #getDisk() <em>Disk</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk() + * @generated + * @ordered + */ + protected static final int DISK_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getDisk() <em>Disk</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisk() + * @generated + * @ordered + */ + protected int disk = DISK_EDEFAULT; + + /** + * The default value of the '{@link #getVcpus() <em>Vcpus</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVcpus() + * @generated + * @ordered + */ + protected static final int VCPUS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getVcpus() <em>Vcpus</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVcpus() + * @generated + * @ordered + */ + protected int vcpus = VCPUS_EDEFAULT; + + /** + * The default value of the '{@link #getSwap() <em>Swap</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwap() + * @generated + * @ordered + */ + protected static final String SWAP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSwap() <em>Swap</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSwap() + * @generated + * @ordered + */ + protected String swap = SWAP_EDEFAULT; + + /** + * The default value of the '{@link #getRxtx_factor() <em>Rxtx factor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRxtx_factor() + * @generated + * @ordered + */ + protected static final double RXTX_FACTOR_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getRxtx_factor() <em>Rxtx factor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRxtx_factor() + * @generated + * @ordered + */ + protected double rxtx_factor = RXTX_FACTOR_EDEFAULT; + + /** + * The default value of the '{@link #getOS_FLV_EXT_DATA_ephemeral() <em>OS FLV EXT DATA ephemeral</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_FLV_EXT_DATA_ephemeral() + * @generated + * @ordered + */ + protected static final int OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getOS_FLV_EXT_DATA_ephemeral() <em>OS FLV EXT DATA ephemeral</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_FLV_EXT_DATA_ephemeral() + * @generated + * @ordered + */ + protected int oS_FLV_EXT_DATA_ephemeral = OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT; + + /** + * The default value of the '{@link #isOS_FLV_DISABLED_disabled() <em>OS FLV DISABLED disabled</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOS_FLV_DISABLED_disabled() + * @generated + * @ordered + */ + protected static final boolean OS_FLV_DISABLED_DISABLED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOS_FLV_DISABLED_disabled() <em>OS FLV DISABLED disabled</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOS_FLV_DISABLED_disabled() + * @generated + * @ordered + */ + protected boolean oS_FLV_DISABLED_disabled = OS_FLV_DISABLED_DISABLED_EDEFAULT; + + /** + * The default value of the '{@link #isOs_flavor_access_is_public() <em>Os flavor access is public</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOs_flavor_access_is_public() + * @generated + * @ordered + */ + protected static final boolean OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOs_flavor_access_is_public() <em>Os flavor access is public</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOs_flavor_access_is_public() + * @generated + * @ordered + */ + protected boolean os_flavor_access_is_public = OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT; + + /** + * The cached value of the '{@link #getLinks() <em>Links</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLinks() + * @generated + * @ordered + */ + protected EList<Link> links; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FlavorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.FLAVOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getRam() { + return ram; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRam(int newRam) { + int oldRam = ram; + ram = newRam; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__RAM, oldRam, ram)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getDisk() { + return disk; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisk(int newDisk) { + int oldDisk = disk; + disk = newDisk; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__DISK, oldDisk, disk)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getVcpus() { + return vcpus; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVcpus(int newVcpus) { + int oldVcpus = vcpus; + vcpus = newVcpus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__VCPUS, oldVcpus, vcpus)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSwap() { + return swap; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSwap(String newSwap) { + String oldSwap = swap; + swap = newSwap; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__SWAP, oldSwap, swap)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public double getRxtx_factor() { + return rxtx_factor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRxtx_factor(double newRxtx_factor) { + double oldRxtx_factor = rxtx_factor; + rxtx_factor = newRxtx_factor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__RXTX_FACTOR, oldRxtx_factor, rxtx_factor)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getOS_FLV_EXT_DATA_ephemeral() { + return oS_FLV_EXT_DATA_ephemeral; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_FLV_EXT_DATA_ephemeral(int newOS_FLV_EXT_DATA_ephemeral) { + int oldOS_FLV_EXT_DATA_ephemeral = oS_FLV_EXT_DATA_ephemeral; + oS_FLV_EXT_DATA_ephemeral = newOS_FLV_EXT_DATA_ephemeral; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL, oldOS_FLV_EXT_DATA_ephemeral, oS_FLV_EXT_DATA_ephemeral)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isOS_FLV_DISABLED_disabled() { + return oS_FLV_DISABLED_disabled; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_FLV_DISABLED_disabled(boolean newOS_FLV_DISABLED_disabled) { + boolean oldOS_FLV_DISABLED_disabled = oS_FLV_DISABLED_disabled; + oS_FLV_DISABLED_disabled = newOS_FLV_DISABLED_disabled; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED, oldOS_FLV_DISABLED_disabled, oS_FLV_DISABLED_disabled)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isOs_flavor_access_is_public() { + return os_flavor_access_is_public; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOs_flavor_access_is_public(boolean newOs_flavor_access_is_public) { + boolean oldOs_flavor_access_is_public = os_flavor_access_is_public; + os_flavor_access_is_public = newOs_flavor_access_is_public; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC, oldOs_flavor_access_is_public, os_flavor_access_is_public)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Link> getLinks() { + if (links == null) { + links = new EObjectContainmentEList<Link>(Link.class, this, ComputePackage.FLAVOR__LINKS); + } + return links; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.FLAVOR__LINKS: + return ((InternalEList<?>)getLinks()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + return getId(); + case ComputePackage.FLAVOR__NAME: + return getName(); + case ComputePackage.FLAVOR__RAM: + return getRam(); + case ComputePackage.FLAVOR__DISK: + return getDisk(); + case ComputePackage.FLAVOR__VCPUS: + return getVcpus(); + case ComputePackage.FLAVOR__SWAP: + return getSwap(); + case ComputePackage.FLAVOR__RXTX_FACTOR: + return getRxtx_factor(); + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + return getOS_FLV_EXT_DATA_ephemeral(); + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + return isOS_FLV_DISABLED_disabled(); + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + return isOs_flavor_access_is_public(); + case ComputePackage.FLAVOR__LINKS: + return getLinks(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + setId((String)newValue); + return; + case ComputePackage.FLAVOR__NAME: + setName((String)newValue); + return; + case ComputePackage.FLAVOR__RAM: + setRam((Integer)newValue); + return; + case ComputePackage.FLAVOR__DISK: + setDisk((Integer)newValue); + return; + case ComputePackage.FLAVOR__VCPUS: + setVcpus((Integer)newValue); + return; + case ComputePackage.FLAVOR__SWAP: + setSwap((String)newValue); + return; + case ComputePackage.FLAVOR__RXTX_FACTOR: + setRxtx_factor((Double)newValue); + return; + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + setOS_FLV_EXT_DATA_ephemeral((Integer)newValue); + return; + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + setOS_FLV_DISABLED_disabled((Boolean)newValue); + return; + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + setOs_flavor_access_is_public((Boolean)newValue); + return; + case ComputePackage.FLAVOR__LINKS: + getLinks().clear(); + getLinks().addAll((Collection<? extends Link>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.FLAVOR__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.FLAVOR__RAM: + setRam(RAM_EDEFAULT); + return; + case ComputePackage.FLAVOR__DISK: + setDisk(DISK_EDEFAULT); + return; + case ComputePackage.FLAVOR__VCPUS: + setVcpus(VCPUS_EDEFAULT); + return; + case ComputePackage.FLAVOR__SWAP: + setSwap(SWAP_EDEFAULT); + return; + case ComputePackage.FLAVOR__RXTX_FACTOR: + setRxtx_factor(RXTX_FACTOR_EDEFAULT); + return; + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + setOS_FLV_EXT_DATA_ephemeral(OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT); + return; + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + setOS_FLV_DISABLED_disabled(OS_FLV_DISABLED_DISABLED_EDEFAULT); + return; + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + setOs_flavor_access_is_public(OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT); + return; + case ComputePackage.FLAVOR__LINKS: + getLinks().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.FLAVOR__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.FLAVOR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.FLAVOR__RAM: + return ram != RAM_EDEFAULT; + case ComputePackage.FLAVOR__DISK: + return disk != DISK_EDEFAULT; + case ComputePackage.FLAVOR__VCPUS: + return vcpus != VCPUS_EDEFAULT; + case ComputePackage.FLAVOR__SWAP: + return SWAP_EDEFAULT == null ? swap != null : !SWAP_EDEFAULT.equals(swap); + case ComputePackage.FLAVOR__RXTX_FACTOR: + return rxtx_factor != RXTX_FACTOR_EDEFAULT; + case ComputePackage.FLAVOR__OS_FLV_EXT_DATA_EPHEMERAL: + return oS_FLV_EXT_DATA_ephemeral != OS_FLV_EXT_DATA_EPHEMERAL_EDEFAULT; + case ComputePackage.FLAVOR__OS_FLV_DISABLED_DISABLED: + return oS_FLV_DISABLED_disabled != OS_FLV_DISABLED_DISABLED_EDEFAULT; + case ComputePackage.FLAVOR__OS_FLAVOR_ACCESS_IS_PUBLIC: + return os_flavor_access_is_public != OS_FLAVOR_ACCESS_IS_PUBLIC_EDEFAULT; + case ComputePackage.FLAVOR__LINKS: + return links != null && !links.isEmpty(); + } + 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(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", ram: "); + result.append(ram); + result.append(", disk: "); + result.append(disk); + result.append(", vcpus: "); + result.append(vcpus); + result.append(", swap: "); + result.append(swap); + result.append(", rxtx_factor: "); + result.append(rxtx_factor); + result.append(", OS_FLV_EXT_DATA_ephemeral: "); + result.append(oS_FLV_EXT_DATA_ephemeral); + result.append(", OS_FLV_DISABLED_disabled: "); + result.append(oS_FLV_DISABLED_disabled); + result.append(", os_flavor_access_is_public: "); + result.append(os_flavor_access_is_public); + result.append(')'); + return result.toString(); + } + +} //FlavorImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FloatingIpImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FloatingIpImpl.java new file mode 100644 index 0000000..89bab49 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/FloatingIpImpl.java @@ -0,0 +1,400 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.FloatingIp; + +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>Floating Ip</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getInstance_id <em>Instance id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getIp <em>Ip</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getFixed_ip <em>Fixed ip</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.FloatingIpImpl#getPool <em>Pool</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class FloatingIpImpl extends MinimalEObjectImpl.Container implements FloatingIp { + /** + * The default value of the '{@link #getInstance_id() <em>Instance id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInstance_id() + * @generated + * @ordered + */ + protected static final String INSTANCE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getInstance_id() <em>Instance id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInstance_id() + * @generated + * @ordered + */ + protected String instance_id = INSTANCE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getIp() <em>Ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp() + * @generated + * @ordered + */ + protected static final String IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp() <em>Ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp() + * @generated + * @ordered + */ + protected String ip = IP_EDEFAULT; + + /** + * The default value of the '{@link #getFixed_ip() <em>Fixed ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFixed_ip() + * @generated + * @ordered + */ + protected static final String FIXED_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFixed_ip() <em>Fixed ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFixed_ip() + * @generated + * @ordered + */ + protected String fixed_ip = FIXED_IP_EDEFAULT; + + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getPool() <em>Pool</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPool() + * @generated + * @ordered + */ + protected static final String POOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPool() <em>Pool</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPool() + * @generated + * @ordered + */ + protected String pool = POOL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FloatingIpImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.FLOATING_IP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getInstance_id() { + return instance_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInstance_id(String newInstance_id) { + String oldInstance_id = instance_id; + instance_id = newInstance_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__INSTANCE_ID, oldInstance_id, instance_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIp() { + return ip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIp(String newIp) { + String oldIp = ip; + ip = newIp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__IP, oldIp, ip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFixed_ip() { + return fixed_ip; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFixed_ip(String newFixed_ip) { + String oldFixed_ip = fixed_ip; + fixed_ip = newFixed_ip; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__FIXED_IP, oldFixed_ip, fixed_ip)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPool() { + return pool; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPool(String newPool) { + String oldPool = pool; + pool = newPool; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.FLOATING_IP__POOL, oldPool, pool)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + return getInstance_id(); + case ComputePackage.FLOATING_IP__IP: + return getIp(); + case ComputePackage.FLOATING_IP__FIXED_IP: + return getFixed_ip(); + case ComputePackage.FLOATING_IP__ID: + return getId(); + case ComputePackage.FLOATING_IP__POOL: + return getPool(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + setInstance_id((String)newValue); + return; + case ComputePackage.FLOATING_IP__IP: + setIp((String)newValue); + return; + case ComputePackage.FLOATING_IP__FIXED_IP: + setFixed_ip((String)newValue); + return; + case ComputePackage.FLOATING_IP__ID: + setId((String)newValue); + return; + case ComputePackage.FLOATING_IP__POOL: + setPool((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + setInstance_id(INSTANCE_ID_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__IP: + setIp(IP_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__FIXED_IP: + setFixed_ip(FIXED_IP_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.FLOATING_IP__POOL: + setPool(POOL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.FLOATING_IP__INSTANCE_ID: + return INSTANCE_ID_EDEFAULT == null ? instance_id != null : !INSTANCE_ID_EDEFAULT.equals(instance_id); + case ComputePackage.FLOATING_IP__IP: + return IP_EDEFAULT == null ? ip != null : !IP_EDEFAULT.equals(ip); + case ComputePackage.FLOATING_IP__FIXED_IP: + return FIXED_IP_EDEFAULT == null ? fixed_ip != null : !FIXED_IP_EDEFAULT.equals(fixed_ip); + case ComputePackage.FLOATING_IP__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.FLOATING_IP__POOL: + return POOL_EDEFAULT == null ? pool != null : !POOL_EDEFAULT.equals(pool); + } + 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(" (instance_id: "); + result.append(instance_id); + result.append(", ip: "); + result.append(ip); + result.append(", fixed_ip: "); + result.append(fixed_ip); + result.append(", id: "); + result.append(id); + result.append(", pool: "); + result.append(pool); + result.append(')'); + return result.toString(); + } + +} //FloatingIpImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ImageImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ImageImpl.java new file mode 100644 index 0000000..b873aa6 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ImageImpl.java @@ -0,0 +1,887 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Image; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.Reference; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Image</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getUpdated <em>Updated</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getCreated <em>Created</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getTenant_id <em>Tenant id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getUser_id <em>User id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getProgress <em>Progress</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getMinDisk <em>Min Disk</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getMinRam <em>Min Ram</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getOS_EXT_IMG_SIZE_size <em>OS EXT IMG SIZE size</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getServer <em>Server</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ImageImpl#getMetadata <em>Metadata</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ImageImpl extends MinimalEObjectImpl.Container implements Image { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getUpdated() <em>Updated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUpdated() + * @generated + * @ordered + */ + protected static final String UPDATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUpdated() <em>Updated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUpdated() + * @generated + * @ordered + */ + protected String updated = UPDATED_EDEFAULT; + + /** + * The default value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected static final String CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected String created = CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getUser_id() <em>User id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_id() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_id() <em>User id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_id() + * @generated + * @ordered + */ + protected String user_id = USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getProgress() <em>Progress</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProgress() + * @generated + * @ordered + */ + protected static final Long PROGRESS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProgress() <em>Progress</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProgress() + * @generated + * @ordered + */ + protected Long progress = PROGRESS_EDEFAULT; + + /** + * The default value of the '{@link #getMinDisk() <em>Min Disk</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinDisk() + * @generated + * @ordered + */ + protected static final Long MIN_DISK_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMinDisk() <em>Min Disk</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinDisk() + * @generated + * @ordered + */ + protected Long minDisk = MIN_DISK_EDEFAULT; + + /** + * The default value of the '{@link #getMinRam() <em>Min Ram</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinRam() + * @generated + * @ordered + */ + protected static final Long MIN_RAM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMinRam() <em>Min Ram</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMinRam() + * @generated + * @ordered + */ + protected Long minRam = MIN_RAM_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_IMG_SIZE_size() <em>OS EXT IMG SIZE size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_IMG_SIZE_size() + * @generated + * @ordered + */ + protected static final Long OS_EXT_IMG_SIZE_SIZE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_IMG_SIZE_size() <em>OS EXT IMG SIZE size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_IMG_SIZE_size() + * @generated + * @ordered + */ + protected Long oS_EXT_IMG_SIZE_size = OS_EXT_IMG_SIZE_SIZE_EDEFAULT; + + /** + * The cached value of the '{@link #getServer() <em>Server</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServer() + * @generated + * @ordered + */ + protected Reference server; + + /** + * The cached value of the '{@link #getLinks() <em>Links</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLinks() + * @generated + * @ordered + */ + protected EList<Link> links; + + /** + * The cached value of the '{@link #getMetadata() <em>Metadata</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList<Metadata> metadata; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ImageImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.IMAGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUpdated() { + return updated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUpdated(String newUpdated) { + String oldUpdated = updated; + updated = newUpdated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__UPDATED, oldUpdated, updated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCreated() { + return created; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated(String newCreated) { + String oldCreated = created; + created = newCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__CREATED, oldCreated, created)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUser_id() { + return user_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser_id(String newUser_id) { + String oldUser_id = user_id; + user_id = newUser_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__USER_ID, oldUser_id, user_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Long getProgress() { + return progress; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setProgress(Long newProgress) { + Long oldProgress = progress; + progress = newProgress; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__PROGRESS, oldProgress, progress)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Long getMinDisk() { + return minDisk; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMinDisk(Long newMinDisk) { + Long oldMinDisk = minDisk; + minDisk = newMinDisk; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__MIN_DISK, oldMinDisk, minDisk)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Long getMinRam() { + return minRam; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMinRam(Long newMinRam) { + Long oldMinRam = minRam; + minRam = newMinRam; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__MIN_RAM, oldMinRam, minRam)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Long getOS_EXT_IMG_SIZE_size() { + return oS_EXT_IMG_SIZE_size; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_IMG_SIZE_size(Long newOS_EXT_IMG_SIZE_size) { + Long oldOS_EXT_IMG_SIZE_size = oS_EXT_IMG_SIZE_size; + oS_EXT_IMG_SIZE_size = newOS_EXT_IMG_SIZE_size; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE, oldOS_EXT_IMG_SIZE_size, oS_EXT_IMG_SIZE_size)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Reference getServer() { + return server; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetServer(Reference newServer, NotificationChain msgs) { + Reference oldServer = server; + server = newServer; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__SERVER, oldServer, newServer); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setServer(Reference newServer) { + if (newServer != server) { + NotificationChain msgs = null; + if (server != null) + msgs = ((InternalEObject)server).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.IMAGE__SERVER, null, msgs); + if (newServer != null) + msgs = ((InternalEObject)newServer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.IMAGE__SERVER, null, msgs); + msgs = basicSetServer(newServer, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.IMAGE__SERVER, newServer, newServer)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Link> getLinks() { + if (links == null) { + links = new EObjectContainmentEList<Link>(Link.class, this, ComputePackage.IMAGE__LINKS); + } + return links; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Metadata> getMetadata() { + if (metadata == null) { + metadata = new EObjectContainmentEList<Metadata>(Metadata.class, this, ComputePackage.IMAGE__METADATA); + } + return metadata; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.IMAGE__SERVER: + return basicSetServer(null, msgs); + case ComputePackage.IMAGE__LINKS: + return ((InternalEList<?>)getLinks()).basicRemove(otherEnd, msgs); + case ComputePackage.IMAGE__METADATA: + return ((InternalEList<?>)getMetadata()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + return getId(); + case ComputePackage.IMAGE__NAME: + return getName(); + case ComputePackage.IMAGE__UPDATED: + return getUpdated(); + case ComputePackage.IMAGE__CREATED: + return getCreated(); + case ComputePackage.IMAGE__TENANT_ID: + return getTenant_id(); + case ComputePackage.IMAGE__USER_ID: + return getUser_id(); + case ComputePackage.IMAGE__STATUS: + return getStatus(); + case ComputePackage.IMAGE__PROGRESS: + return getProgress(); + case ComputePackage.IMAGE__MIN_DISK: + return getMinDisk(); + case ComputePackage.IMAGE__MIN_RAM: + return getMinRam(); + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + return getOS_EXT_IMG_SIZE_size(); + case ComputePackage.IMAGE__SERVER: + return getServer(); + case ComputePackage.IMAGE__LINKS: + return getLinks(); + case ComputePackage.IMAGE__METADATA: + return getMetadata(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + setId((String)newValue); + return; + case ComputePackage.IMAGE__NAME: + setName((String)newValue); + return; + case ComputePackage.IMAGE__UPDATED: + setUpdated((String)newValue); + return; + case ComputePackage.IMAGE__CREATED: + setCreated((String)newValue); + return; + case ComputePackage.IMAGE__TENANT_ID: + setTenant_id((String)newValue); + return; + case ComputePackage.IMAGE__USER_ID: + setUser_id((String)newValue); + return; + case ComputePackage.IMAGE__STATUS: + setStatus((String)newValue); + return; + case ComputePackage.IMAGE__PROGRESS: + setProgress((Long)newValue); + return; + case ComputePackage.IMAGE__MIN_DISK: + setMinDisk((Long)newValue); + return; + case ComputePackage.IMAGE__MIN_RAM: + setMinRam((Long)newValue); + return; + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + setOS_EXT_IMG_SIZE_size((Long)newValue); + return; + case ComputePackage.IMAGE__SERVER: + setServer((Reference)newValue); + return; + case ComputePackage.IMAGE__LINKS: + getLinks().clear(); + getLinks().addAll((Collection<? extends Link>)newValue); + return; + case ComputePackage.IMAGE__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection<? extends Metadata>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.IMAGE__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.IMAGE__UPDATED: + setUpdated(UPDATED_EDEFAULT); + return; + case ComputePackage.IMAGE__CREATED: + setCreated(CREATED_EDEFAULT); + return; + case ComputePackage.IMAGE__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case ComputePackage.IMAGE__USER_ID: + setUser_id(USER_ID_EDEFAULT); + return; + case ComputePackage.IMAGE__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case ComputePackage.IMAGE__PROGRESS: + setProgress(PROGRESS_EDEFAULT); + return; + case ComputePackage.IMAGE__MIN_DISK: + setMinDisk(MIN_DISK_EDEFAULT); + return; + case ComputePackage.IMAGE__MIN_RAM: + setMinRam(MIN_RAM_EDEFAULT); + return; + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + setOS_EXT_IMG_SIZE_size(OS_EXT_IMG_SIZE_SIZE_EDEFAULT); + return; + case ComputePackage.IMAGE__SERVER: + setServer((Reference)null); + return; + case ComputePackage.IMAGE__LINKS: + getLinks().clear(); + return; + case ComputePackage.IMAGE__METADATA: + getMetadata().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.IMAGE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.IMAGE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.IMAGE__UPDATED: + return UPDATED_EDEFAULT == null ? updated != null : !UPDATED_EDEFAULT.equals(updated); + case ComputePackage.IMAGE__CREATED: + return CREATED_EDEFAULT == null ? created != null : !CREATED_EDEFAULT.equals(created); + case ComputePackage.IMAGE__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case ComputePackage.IMAGE__USER_ID: + return USER_ID_EDEFAULT == null ? user_id != null : !USER_ID_EDEFAULT.equals(user_id); + case ComputePackage.IMAGE__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case ComputePackage.IMAGE__PROGRESS: + return PROGRESS_EDEFAULT == null ? progress != null : !PROGRESS_EDEFAULT.equals(progress); + case ComputePackage.IMAGE__MIN_DISK: + return MIN_DISK_EDEFAULT == null ? minDisk != null : !MIN_DISK_EDEFAULT.equals(minDisk); + case ComputePackage.IMAGE__MIN_RAM: + return MIN_RAM_EDEFAULT == null ? minRam != null : !MIN_RAM_EDEFAULT.equals(minRam); + case ComputePackage.IMAGE__OS_EXT_IMG_SIZE_SIZE: + return OS_EXT_IMG_SIZE_SIZE_EDEFAULT == null ? oS_EXT_IMG_SIZE_size != null : !OS_EXT_IMG_SIZE_SIZE_EDEFAULT.equals(oS_EXT_IMG_SIZE_size); + case ComputePackage.IMAGE__SERVER: + return server != null; + case ComputePackage.IMAGE__LINKS: + return links != null && !links.isEmpty(); + case ComputePackage.IMAGE__METADATA: + return metadata != null && !metadata.isEmpty(); + } + 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(" (id: "); + result.append(id); + result.append(", name: "); + result.append(name); + result.append(", updated: "); + result.append(updated); + result.append(", created: "); + result.append(created); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(", user_id: "); + result.append(user_id); + result.append(", status: "); + result.append(status); + result.append(", progress: "); + result.append(progress); + result.append(", minDisk: "); + result.append(minDisk); + result.append(", minRam: "); + result.append(minRam); + result.append(", OS_EXT_IMG_SIZE_size: "); + result.append(oS_EXT_IMG_SIZE_size); + result.append(')'); + return result.toString(); + } + +} //ImageImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/KeyPairImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/KeyPairImpl.java new file mode 100644 index 0000000..dcb166c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/KeyPairImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.KeyPair; + +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>Key Pair</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl#getPublic_key <em>Public key</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.KeyPairImpl#getFingerprint <em>Fingerprint</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class KeyPairImpl extends MinimalEObjectImpl.Container implements KeyPair { + /** + * The default value of the '{@link #getPublic_key() <em>Public key</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPublic_key() + * @generated + * @ordered + */ + protected static final String PUBLIC_KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPublic_key() <em>Public key</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPublic_key() + * @generated + * @ordered + */ + protected String public_key = PUBLIC_KEY_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getFingerprint() <em>Fingerprint</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFingerprint() + * @generated + * @ordered + */ + protected static final String FINGERPRINT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFingerprint() <em>Fingerprint</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFingerprint() + * @generated + * @ordered + */ + protected String fingerprint = FINGERPRINT_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected KeyPairImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.KEY_PAIR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPublic_key() { + return public_key; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPublic_key(String newPublic_key) { + String oldPublic_key = public_key; + public_key = newPublic_key; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.KEY_PAIR__PUBLIC_KEY, oldPublic_key, public_key)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.KEY_PAIR__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFingerprint() { + return fingerprint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFingerprint(String newFingerprint) { + String oldFingerprint = fingerprint; + fingerprint = newFingerprint; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.KEY_PAIR__FINGERPRINT, oldFingerprint, fingerprint)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + return getPublic_key(); + case ComputePackage.KEY_PAIR__NAME: + return getName(); + case ComputePackage.KEY_PAIR__FINGERPRINT: + return getFingerprint(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + setPublic_key((String)newValue); + return; + case ComputePackage.KEY_PAIR__NAME: + setName((String)newValue); + return; + case ComputePackage.KEY_PAIR__FINGERPRINT: + setFingerprint((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + setPublic_key(PUBLIC_KEY_EDEFAULT); + return; + case ComputePackage.KEY_PAIR__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.KEY_PAIR__FINGERPRINT: + setFingerprint(FINGERPRINT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.KEY_PAIR__PUBLIC_KEY: + return PUBLIC_KEY_EDEFAULT == null ? public_key != null : !PUBLIC_KEY_EDEFAULT.equals(public_key); + case ComputePackage.KEY_PAIR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.KEY_PAIR__FINGERPRINT: + return FINGERPRINT_EDEFAULT == null ? fingerprint != null : !FINGERPRINT_EDEFAULT.equals(fingerprint); + } + 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(" (public_key: "); + result.append(public_key); + result.append(", name: "); + result.append(name); + result.append(", fingerprint: "); + result.append(fingerprint); + result.append(')'); + return result.toString(); + } + +} //KeyPairImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/LinkImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/LinkImpl.java new file mode 100644 index 0000000..9b7c106 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/LinkImpl.java @@ -0,0 +1,292 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Link; + +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>Link</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl#getRel <em>Rel</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl#getHref <em>Href</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.LinkImpl#getType <em>Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class LinkImpl extends MinimalEObjectImpl.Container implements Link { + /** + * The default value of the '{@link #getRel() <em>Rel</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRel() + * @generated + * @ordered + */ + protected static final String REL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRel() <em>Rel</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRel() + * @generated + * @ordered + */ + protected String rel = REL_EDEFAULT; + + /** + * The default value of the '{@link #getHref() <em>Href</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHref() + * @generated + * @ordered + */ + protected static final String HREF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHref() <em>Href</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHref() + * @generated + * @ordered + */ + protected String href = HREF_EDEFAULT; + + /** + * The default value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected LinkImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.LINK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getRel() { + return rel; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setRel(String newRel) { + String oldRel = rel; + rel = newRel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.LINK__REL, oldRel, rel)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getHref() { + return href; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHref(String newHref) { + String oldHref = href; + href = newHref; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.LINK__HREF, oldHref, href)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getType() { + return type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.LINK__TYPE, oldType, type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.LINK__REL: + return getRel(); + case ComputePackage.LINK__HREF: + return getHref(); + case ComputePackage.LINK__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.LINK__REL: + setRel((String)newValue); + return; + case ComputePackage.LINK__HREF: + setHref((String)newValue); + return; + case ComputePackage.LINK__TYPE: + setType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.LINK__REL: + setRel(REL_EDEFAULT); + return; + case ComputePackage.LINK__HREF: + setHref(HREF_EDEFAULT); + return; + case ComputePackage.LINK__TYPE: + setType(TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.LINK__REL: + return REL_EDEFAULT == null ? rel != null : !REL_EDEFAULT.equals(rel); + case ComputePackage.LINK__HREF: + return HREF_EDEFAULT == null ? href != null : !HREF_EDEFAULT.equals(href); + case ComputePackage.LINK__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + } + 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(" (rel: "); + result.append(rel); + result.append(", href: "); + result.append(href); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} //LinkImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/MetadataImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/MetadataImpl.java new file mode 100644 index 0000000..b49d692 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/MetadataImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Metadata; + +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>Metadata</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.MetadataImpl#getKey <em>Key</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.MetadataImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class MetadataImpl extends MinimalEObjectImpl.Container implements Metadata { + /** + * The default value of the '{@link #getKey() <em>Key</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKey() <em>Key</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKey() + * @generated + * @ordered + */ + protected String key = KEY_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 String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected MetadataImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.METADATA; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getKey() { + return key; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setKey(String newKey) { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.METADATA__KEY, oldKey, key)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.METADATA__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + return getKey(); + case ComputePackage.METADATA__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + setKey((String)newValue); + return; + case ComputePackage.METADATA__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + setKey(KEY_EDEFAULT); + return; + case ComputePackage.METADATA__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.METADATA__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case ComputePackage.METADATA__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + 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(" (key: "); + result.append(key); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //MetadataImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestFlavorImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestFlavorImpl.java new file mode 100644 index 0000000..8df633f --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestFlavorImpl.java @@ -0,0 +1,199 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestFlavor; + +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +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>Openstack Request Flavor</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestFlavorImpl#getVmType <em>Vm Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OpenstackRequestFlavorImpl extends OpenStackRequestImpl implements OpenstackRequestFlavor { + /** + * The cached value of the '{@link #getVmType() <em>Vm Type</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OpenstackRequestFlavorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_FLAVOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineType getVmType() { + return vmType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetVmType(VirtualMachineType newVmType, NotificationChain msgs) { + VirtualMachineType oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, oldVmType, newVmType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVmType(VirtualMachineType newVmType) { + if (newVmType != vmType) { + NotificationChain msgs = null; + if (vmType != null) + msgs = ((InternalEObject)vmType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, null, msgs); + if (newVmType != null) + msgs = ((InternalEObject)newVmType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, null, msgs); + msgs = basicSetVmType(newVmType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE, newVmType, newVmType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + return basicSetVmType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + return getVmType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + setVmType((VirtualMachineType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + setVmType((VirtualMachineType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_FLAVOR__VM_TYPE: + return vmType != null; + } + return super.eIsSet(featureID); + } + +} //OpenstackRequestFlavorImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestKeyPairImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestKeyPairImpl.java new file mode 100644 index 0000000..898ea93 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestKeyPairImpl.java @@ -0,0 +1,194 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.core.User; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestKeyPair; +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; +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>Openstack Request Key Pair</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestKeyPairImpl#getUser <em>User</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OpenstackRequestKeyPairImpl extends OpenStackRequestImpl implements OpenstackRequestKeyPair { + /** + * The cached value of the '{@link #getUser() <em>User</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser() + * @generated + * @ordered + */ + protected User user; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OpenstackRequestKeyPairImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_KEY_PAIR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public User getUser() { + return user; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetUser(User newUser, NotificationChain msgs) { + User oldUser = user; + user = newUser; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, oldUser, newUser); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser(User newUser) { + if (newUser != user) { + NotificationChain msgs = null; + if (user != null) + msgs = ((InternalEObject)user).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, null, msgs); + if (newUser != null) + msgs = ((InternalEObject)newUser).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, null, msgs); + msgs = basicSetUser(newUser, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER, newUser, newUser)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + return basicSetUser(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + return getUser(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + setUser((User)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + setUser((User)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_KEY_PAIR__USER: + return user != null; + } + return super.eIsSet(featureID); + } + +} //OpenstackRequestKeyPairImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestNewServerImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestNewServerImpl.java new file mode 100644 index 0000000..cc7aa34 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestNewServerImpl.java @@ -0,0 +1,562 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestNewServer; + +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Openstack Request New Server</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getHypervisor <em>Hypervisor</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getUser <em>User</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getNetworks <em>Networks</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getPorts <em>Ports</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getUser_data <em>User data</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getFloatingIp <em>Floating Ip</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestNewServerImpl#getVmType <em>Vm Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OpenstackRequestNewServerImpl extends OpenStackRequestImpl implements OpenstackRequestNewServer { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getHypervisor() <em>Hypervisor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHypervisor() + * @generated + * @ordered + */ + protected static final String HYPERVISOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHypervisor() <em>Hypervisor</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHypervisor() + * @generated + * @ordered + */ + protected String hypervisor = HYPERVISOR_EDEFAULT; + + /** + * The default value of the '{@link #getUser() <em>User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser() + * @generated + * @ordered + */ + protected static final String USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser() <em>User</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser() + * @generated + * @ordered + */ + protected String user = USER_EDEFAULT; + + /** + * The cached value of the '{@link #getNetworks() <em>Networks</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNetworks() + * @generated + * @ordered + */ + protected EList<String> networks; + + /** + * The cached value of the '{@link #getPorts() <em>Ports</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPorts() + * @generated + * @ordered + */ + protected EList<String> ports; + + /** + * The default value of the '{@link #getUser_data() <em>User data</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_data() + * @generated + * @ordered + */ + protected static final String USER_DATA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_data() <em>User data</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_data() + * @generated + * @ordered + */ + protected String user_data = USER_DATA_EDEFAULT; + + /** + * The default value of the '{@link #getFloatingIp() <em>Floating Ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFloatingIp() + * @generated + * @ordered + */ + protected static final String FLOATING_IP_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFloatingIp() <em>Floating Ip</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFloatingIp() + * @generated + * @ordered + */ + protected String floatingIp = FLOATING_IP_EDEFAULT; + + /** + * The cached value of the '{@link #getVmType() <em>Vm Type</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OpenstackRequestNewServerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_NEW_SERVER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getHypervisor() { + return hypervisor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHypervisor(String newHypervisor) { + String oldHypervisor = hypervisor; + hypervisor = newHypervisor; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR, oldHypervisor, hypervisor)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUser() { + return user; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser(String newUser) { + String oldUser = user; + user = newUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER, oldUser, user)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getNetworks() { + if (networks == null) { + networks = new EDataTypeEList<String>(String.class, this, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS); + } + return networks; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getPorts() { + if (ports == null) { + ports = new EDataTypeEList<String>(String.class, this, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS); + } + return ports; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUser_data() { + return user_data; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser_data(String newUser_data) { + String oldUser_data = user_data; + user_data = newUser_data; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA, oldUser_data, user_data)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getFloatingIp() { + return floatingIp; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFloatingIp(String newFloatingIp) { + String oldFloatingIp = floatingIp; + floatingIp = newFloatingIp; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP, oldFloatingIp, floatingIp)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineType getVmType() { + return vmType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetVmType(VirtualMachineType newVmType, NotificationChain msgs) { + VirtualMachineType oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, oldVmType, newVmType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVmType(VirtualMachineType newVmType) { + if (newVmType != vmType) { + NotificationChain msgs = null; + if (vmType != null) + msgs = ((InternalEObject)vmType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, null, msgs); + if (newVmType != null) + msgs = ((InternalEObject)newVmType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, null, msgs); + msgs = basicSetVmType(newVmType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE, newVmType, newVmType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + return basicSetVmType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + return getName(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + return getHypervisor(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + return getUser(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + return getNetworks(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + return getPorts(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + return getUser_data(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + return getFloatingIp(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + return getVmType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + setName((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + setHypervisor((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + setUser((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + getNetworks().clear(); + getNetworks().addAll((Collection<? extends String>)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + getPorts().clear(); + getPorts().addAll((Collection<? extends String>)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + setUser_data((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + setFloatingIp((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + setVmType((VirtualMachineType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + setHypervisor(HYPERVISOR_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + setUser(USER_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + getNetworks().clear(); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + getPorts().clear(); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + setUser_data(USER_DATA_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + setFloatingIp(FLOATING_IP_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + setVmType((VirtualMachineType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__HYPERVISOR: + return HYPERVISOR_EDEFAULT == null ? hypervisor != null : !HYPERVISOR_EDEFAULT.equals(hypervisor); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER: + return USER_EDEFAULT == null ? user != null : !USER_EDEFAULT.equals(user); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__NETWORKS: + return networks != null && !networks.isEmpty(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__PORTS: + return ports != null && !ports.isEmpty(); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__USER_DATA: + return USER_DATA_EDEFAULT == null ? user_data != null : !USER_DATA_EDEFAULT.equals(user_data); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__FLOATING_IP: + return FLOATING_IP_EDEFAULT == null ? floatingIp != null : !FLOATING_IP_EDEFAULT.equals(floatingIp); + case ComputePackage.OPENSTACK_REQUEST_NEW_SERVER__VM_TYPE: + return vmType != 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(" (name: "); + result.append(name); + result.append(", hypervisor: "); + result.append(hypervisor); + result.append(", user: "); + result.append(user); + result.append(", networks: "); + result.append(networks); + result.append(", ports: "); + result.append(ports); + result.append(", user_data: "); + result.append(user_data); + result.append(", floatingIp: "); + result.append(floatingIp); + result.append(')'); + return result.toString(); + } + +} //OpenstackRequestNewServerImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestPollImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestPollImpl.java new file mode 100644 index 0000000..3d7787d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestPollImpl.java @@ -0,0 +1,62 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestPoll; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.ecore.EClass; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Openstack Request Poll</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class OpenstackRequestPollImpl extends OpenStackRequestImpl implements OpenstackRequestPoll { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OpenstackRequestPollImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_POLL; + } + +} //OpenstackRequestPollImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java new file mode 100644 index 0000000..4e0ba54 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestSecurityGroupImpl.java @@ -0,0 +1,199 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestSecurityGroup; + +import org.openecomp.ncomp.openstack.core.VirtualMachineType; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +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>Openstack Request Security Group</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestSecurityGroupImpl#getVmType <em>Vm Type</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OpenstackRequestSecurityGroupImpl extends OpenStackRequestImpl implements OpenstackRequestSecurityGroup { + /** + * The cached value of the '{@link #getVmType() <em>Vm Type</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVmType() + * @generated + * @ordered + */ + protected VirtualMachineType vmType; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OpenstackRequestSecurityGroupImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_SECURITY_GROUP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public VirtualMachineType getVmType() { + return vmType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetVmType(VirtualMachineType newVmType, NotificationChain msgs) { + VirtualMachineType oldVmType = vmType; + vmType = newVmType; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, oldVmType, newVmType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVmType(VirtualMachineType newVmType) { + if (newVmType != vmType) { + NotificationChain msgs = null; + if (vmType != null) + msgs = ((InternalEObject)vmType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, null, msgs); + if (newVmType != null) + msgs = ((InternalEObject)newVmType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, null, msgs); + msgs = basicSetVmType(newVmType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE, newVmType, newVmType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + return basicSetVmType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + return getVmType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + setVmType((VirtualMachineType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + setVmType((VirtualMachineType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SECURITY_GROUP__VM_TYPE: + return vmType != null; + } + return super.eIsSet(featureID); + } + +} //OpenstackRequestSecurityGroupImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestServerActionImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestServerActionImpl.java new file mode 100644 index 0000000..412ac12 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/OpenstackRequestServerActionImpl.java @@ -0,0 +1,239 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.OpenstackRequestServerAction; + +import org.openecomp.ncomp.openstack.core.impl.OpenStackRequestImpl; + +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>Openstack Request Server Action</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.OpenstackRequestServerActionImpl#getAction <em>Action</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OpenstackRequestServerActionImpl extends OpenStackRequestImpl implements OpenstackRequestServerAction { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getAction() <em>Action</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAction() + * @generated + * @ordered + */ + protected static final String ACTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAction() <em>Action</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAction() + * @generated + * @ordered + */ + protected String action = ACTION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OpenstackRequestServerActionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.OPENSTACK_REQUEST_SERVER_ACTION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAction() { + return action; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAction(String newAction) { + String oldAction = action; + action = newAction; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION, oldAction, action)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + return getName(); + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + return getAction(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + setName((String)newValue); + return; + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + setAction((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + setAction(ACTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.OPENSTACK_REQUEST_SERVER_ACTION__ACTION: + return ACTION_EDEFAULT == null ? action != null : !ACTION_EDEFAULT.equals(action); + } + 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(" (name: "); + result.append(name); + result.append(", action: "); + result.append(action); + result.append(')'); + return result.toString(); + } + +} //OpenstackRequestServerActionImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/PersonalityImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/PersonalityImpl.java new file mode 100644 index 0000000..8b2b26d --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/PersonalityImpl.java @@ -0,0 +1,238 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Personality; + +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>Personality</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl#getPath <em>Path</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.PersonalityImpl#getContents <em>Contents</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PersonalityImpl extends MinimalEObjectImpl.Container implements Personality { + /** + * 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 default value of the '{@link #getContents() <em>Contents</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContents() + * @generated + * @ordered + */ + protected static final String CONTENTS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getContents() <em>Contents</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getContents() + * @generated + * @ordered + */ + protected String contents = CONTENTS_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PersonalityImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.PERSONALITY; + } + + /** + * <!-- 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, ComputePackage.PERSONALITY__PATH, oldPath, path)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getContents() { + return contents; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setContents(String newContents) { + String oldContents = contents; + contents = newContents; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.PERSONALITY__CONTENTS, oldContents, contents)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + return getPath(); + case ComputePackage.PERSONALITY__CONTENTS: + return getContents(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + setPath((String)newValue); + return; + case ComputePackage.PERSONALITY__CONTENTS: + setContents((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + setPath(PATH_EDEFAULT); + return; + case ComputePackage.PERSONALITY__CONTENTS: + setContents(CONTENTS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.PERSONALITY__PATH: + return PATH_EDEFAULT == null ? path != null : !PATH_EDEFAULT.equals(path); + case ComputePackage.PERSONALITY__CONTENTS: + return CONTENTS_EDEFAULT == null ? contents != null : !CONTENTS_EDEFAULT.equals(contents); + } + 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(", contents: "); + result.append(contents); + result.append(')'); + return result.toString(); + } + +} //PersonalityImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ReferenceImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ReferenceImpl.java new file mode 100644 index 0000000..6295315 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ReferenceImpl.java @@ -0,0 +1,243 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Reference; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Reference</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ReferenceImpl#getLinks <em>Links</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ReferenceImpl extends MinimalEObjectImpl.Container implements Reference { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The cached value of the '{@link #getLinks() <em>Links</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLinks() + * @generated + * @ordered + */ + protected EList<Link> links; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ReferenceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.REFERENCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.REFERENCE__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Link> getLinks() { + if (links == null) { + links = new EObjectContainmentEList<Link>(Link.class, this, ComputePackage.REFERENCE__LINKS); + } + return links; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.REFERENCE__LINKS: + return ((InternalEList<?>)getLinks()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + return getId(); + case ComputePackage.REFERENCE__LINKS: + return getLinks(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + setId((String)newValue); + return; + case ComputePackage.REFERENCE__LINKS: + getLinks().clear(); + getLinks().addAll((Collection<? extends Link>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.REFERENCE__LINKS: + getLinks().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.REFERENCE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.REFERENCE__LINKS: + return links != null && !links.isEmpty(); + } + 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(" (id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //ReferenceImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityGroupImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityGroupImpl.java new file mode 100644 index 0000000..c99d77c --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityGroupImpl.java @@ -0,0 +1,352 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.SecurityRule; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Security Group</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getRules <em>Rules</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getTenant_id <em>Tenant id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityGroupImpl#getDescription <em>Description</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SecurityGroupImpl extends NamedEntityImpl implements SecurityGroup { + /** + * The cached value of the '{@link #getRules() <em>Rules</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRules() + * @generated + * @ordered + */ + protected EList<SecurityRule> rules; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SecurityGroupImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SECURITY_GROUP; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SecurityRule> getRules() { + if (rules == null) { + rules = new EObjectContainmentEList<SecurityRule>(SecurityRule.class, this, ComputePackage.SECURITY_GROUP__RULES); + } + return rules; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_GROUP__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_GROUP__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_GROUP__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + return ((InternalEList<?>)getRules()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + return getRules(); + case ComputePackage.SECURITY_GROUP__TENANT_ID: + return getTenant_id(); + case ComputePackage.SECURITY_GROUP__ID: + return getId(); + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + return getDescription(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + getRules().clear(); + getRules().addAll((Collection<? extends SecurityRule>)newValue); + return; + case ComputePackage.SECURITY_GROUP__TENANT_ID: + setTenant_id((String)newValue); + return; + case ComputePackage.SECURITY_GROUP__ID: + setId((String)newValue); + return; + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + setDescription((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + getRules().clear(); + return; + case ComputePackage.SECURITY_GROUP__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case ComputePackage.SECURITY_GROUP__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_GROUP__RULES: + return rules != null && !rules.isEmpty(); + case ComputePackage.SECURITY_GROUP__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case ComputePackage.SECURITY_GROUP__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.SECURITY_GROUP__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + } + 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(" (tenant_id: "); + result.append(tenant_id); + result.append(", id: "); + result.append(id); + result.append(", description: "); + result.append(description); + result.append(')'); + return result.toString(); + } + +} //SecurityGroupImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRangeImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRangeImpl.java new file mode 100644 index 0000000..8796364 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRangeImpl.java @@ -0,0 +1,184 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.SecurityRange; + +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>Security Range</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRangeImpl#getCidr <em>Cidr</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SecurityRangeImpl extends MinimalEObjectImpl.Container implements SecurityRange { + /** + * The default value of the '{@link #getCidr() <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCidr() + * @generated + * @ordered + */ + protected static final String CIDR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCidr() <em>Cidr</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCidr() + * @generated + * @ordered + */ + protected String cidr = CIDR_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SecurityRangeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SECURITY_RANGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCidr() { + return cidr; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCidr(String newCidr) { + String oldCidr = cidr; + cidr = newCidr; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RANGE__CIDR, oldCidr, cidr)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + return getCidr(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + setCidr((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + setCidr(CIDR_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RANGE__CIDR: + return CIDR_EDEFAULT == null ? cidr != null : !CIDR_EDEFAULT.equals(cidr); + } + 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(" (cidr: "); + result.append(cidr); + result.append(')'); + return result.toString(); + } + +} //SecurityRangeImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRuleImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRuleImpl.java new file mode 100644 index 0000000..cbb2ccf --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/SecurityRuleImpl.java @@ -0,0 +1,548 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.SecurityRange; +import org.openecomp.ncomp.openstack.compute.SecurityRule; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +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>Security Rule</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getFrom_port <em>From port</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getGroup <em>Group</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getIp_protocol <em>Ip protocol</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getTo_port <em>To port</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getParent_group_id <em>Parent group id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getIp_range <em>Ip range</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.SecurityRuleImpl#getId <em>Id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SecurityRuleImpl extends MinimalEObjectImpl.Container implements SecurityRule { + /** + * The default value of the '{@link #getFrom_port() <em>From port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFrom_port() + * @generated + * @ordered + */ + protected static final Integer FROM_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFrom_port() <em>From port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFrom_port() + * @generated + * @ordered + */ + protected Integer from_port = FROM_PORT_EDEFAULT; + + /** + * The cached value of the '{@link #getGroup() <em>Group</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGroup() + * @generated + * @ordered + */ + protected SecurityGroup group; + + /** + * The default value of the '{@link #getIp_protocol() <em>Ip protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_protocol() + * @generated + * @ordered + */ + protected static final String IP_PROTOCOL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIp_protocol() <em>Ip protocol</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_protocol() + * @generated + * @ordered + */ + protected String ip_protocol = IP_PROTOCOL_EDEFAULT; + + /** + * The default value of the '{@link #getTo_port() <em>To port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTo_port() + * @generated + * @ordered + */ + protected static final Integer TO_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTo_port() <em>To port</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTo_port() + * @generated + * @ordered + */ + protected Integer to_port = TO_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getParent_group_id() <em>Parent group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getParent_group_id() + * @generated + * @ordered + */ + protected static final String PARENT_GROUP_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getParent_group_id() <em>Parent group id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getParent_group_id() + * @generated + * @ordered + */ + protected String parent_group_id = PARENT_GROUP_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getIp_range() <em>Ip range</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIp_range() + * @generated + * @ordered + */ + protected SecurityRange ip_range; + + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SecurityRuleImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SECURITY_RULE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getFrom_port() { + return from_port; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFrom_port(Integer newFrom_port) { + Integer oldFrom_port = from_port; + from_port = newFrom_port; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__FROM_PORT, oldFrom_port, from_port)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SecurityGroup getGroup() { + return group; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetGroup(SecurityGroup newGroup, NotificationChain msgs) { + SecurityGroup oldGroup = group; + group = newGroup; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__GROUP, oldGroup, newGroup); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setGroup(SecurityGroup newGroup) { + if (newGroup != group) { + NotificationChain msgs = null; + if (group != null) + msgs = ((InternalEObject)group).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__GROUP, null, msgs); + if (newGroup != null) + msgs = ((InternalEObject)newGroup).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__GROUP, null, msgs); + msgs = basicSetGroup(newGroup, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__GROUP, newGroup, newGroup)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getIp_protocol() { + return ip_protocol; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIp_protocol(String newIp_protocol) { + String oldIp_protocol = ip_protocol; + ip_protocol = newIp_protocol; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__IP_PROTOCOL, oldIp_protocol, ip_protocol)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getTo_port() { + return to_port; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTo_port(Integer newTo_port) { + Integer oldTo_port = to_port; + to_port = newTo_port; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__TO_PORT, oldTo_port, to_port)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getParent_group_id() { + return parent_group_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setParent_group_id(String newParent_group_id) { + String oldParent_group_id = parent_group_id; + parent_group_id = newParent_group_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__PARENT_GROUP_ID, oldParent_group_id, parent_group_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SecurityRange getIp_range() { + return ip_range; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetIp_range(SecurityRange newIp_range, NotificationChain msgs) { + SecurityRange oldIp_range = ip_range; + ip_range = newIp_range; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__IP_RANGE, oldIp_range, newIp_range); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIp_range(SecurityRange newIp_range) { + if (newIp_range != ip_range) { + NotificationChain msgs = null; + if (ip_range != null) + msgs = ((InternalEObject)ip_range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__IP_RANGE, null, msgs); + if (newIp_range != null) + msgs = ((InternalEObject)newIp_range).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SECURITY_RULE__IP_RANGE, null, msgs); + msgs = basicSetIp_range(newIp_range, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__IP_RANGE, newIp_range, newIp_range)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SECURITY_RULE__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__GROUP: + return basicSetGroup(null, msgs); + case ComputePackage.SECURITY_RULE__IP_RANGE: + return basicSetIp_range(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + return getFrom_port(); + case ComputePackage.SECURITY_RULE__GROUP: + return getGroup(); + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + return getIp_protocol(); + case ComputePackage.SECURITY_RULE__TO_PORT: + return getTo_port(); + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + return getParent_group_id(); + case ComputePackage.SECURITY_RULE__IP_RANGE: + return getIp_range(); + case ComputePackage.SECURITY_RULE__ID: + return getId(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + setFrom_port((Integer)newValue); + return; + case ComputePackage.SECURITY_RULE__GROUP: + setGroup((SecurityGroup)newValue); + return; + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + setIp_protocol((String)newValue); + return; + case ComputePackage.SECURITY_RULE__TO_PORT: + setTo_port((Integer)newValue); + return; + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + setParent_group_id((String)newValue); + return; + case ComputePackage.SECURITY_RULE__IP_RANGE: + setIp_range((SecurityRange)newValue); + return; + case ComputePackage.SECURITY_RULE__ID: + setId((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + setFrom_port(FROM_PORT_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__GROUP: + setGroup((SecurityGroup)null); + return; + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + setIp_protocol(IP_PROTOCOL_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__TO_PORT: + setTo_port(TO_PORT_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + setParent_group_id(PARENT_GROUP_ID_EDEFAULT); + return; + case ComputePackage.SECURITY_RULE__IP_RANGE: + setIp_range((SecurityRange)null); + return; + case ComputePackage.SECURITY_RULE__ID: + setId(ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SECURITY_RULE__FROM_PORT: + return FROM_PORT_EDEFAULT == null ? from_port != null : !FROM_PORT_EDEFAULT.equals(from_port); + case ComputePackage.SECURITY_RULE__GROUP: + return group != null; + case ComputePackage.SECURITY_RULE__IP_PROTOCOL: + return IP_PROTOCOL_EDEFAULT == null ? ip_protocol != null : !IP_PROTOCOL_EDEFAULT.equals(ip_protocol); + case ComputePackage.SECURITY_RULE__TO_PORT: + return TO_PORT_EDEFAULT == null ? to_port != null : !TO_PORT_EDEFAULT.equals(to_port); + case ComputePackage.SECURITY_RULE__PARENT_GROUP_ID: + return PARENT_GROUP_ID_EDEFAULT == null ? parent_group_id != null : !PARENT_GROUP_ID_EDEFAULT.equals(parent_group_id); + case ComputePackage.SECURITY_RULE__IP_RANGE: + return ip_range != null; + case ComputePackage.SECURITY_RULE__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + } + 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(" (from_port: "); + result.append(from_port); + result.append(", ip_protocol: "); + result.append(ip_protocol); + result.append(", to_port: "); + result.append(to_port); + result.append(", parent_group_id: "); + result.append(parent_group_id); + result.append(", id: "); + result.append(id); + result.append(')'); + return result.toString(); + } + +} //SecurityRuleImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ServerImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ServerImpl.java new file mode 100644 index 0000000..e7a43ae --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/ServerImpl.java @@ -0,0 +1,1688 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.Addresses; +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Fault; +import org.openecomp.ncomp.openstack.compute.Link; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.Reference; +import org.openecomp.ncomp.openstack.compute.SecurityGroup; +import org.openecomp.ncomp.openstack.compute.Server; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Server</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getTenant_id <em>Tenant id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getUser_id <em>User id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getName <em>Name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getUpdated <em>Updated</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getCreated <em>Created</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getHostId <em>Host Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getAccessIPv4 <em>Access IPv4</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getAccessIPv6 <em>Access IPv6</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getConfig_drive <em>Config drive</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getKey_name <em>Key name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getProgress <em>Progress</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_DCF_diskConfig <em>OS DCF disk Config</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_STS_power_state <em>OS EXT STS power state</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_STS_vm_state <em>OS EXT STS vm state</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_STS_task_state <em>OS EXT STS task state</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_SRV_ATTR_host <em>OS EXT SRV ATTR host</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_SRV_ATTR_instance_name <em>OS EXT SRV ATTR instance name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_EXT_SRV_ATTR_hypervisor_hostname <em>OS EXT SRV ATTR hypervisor hostname</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_SRV_USG_launched_at <em>OS SRV USG launched at</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getOS_SRV_USG_terminated_at <em>OS SRV USG terminated at</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getImage <em>Image</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getFlavor <em>Flavor</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getAddresses <em>Addresses</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getSecurity_groups <em>Security groups</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getMetadata <em>Metadata</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.ServerImpl#getFault <em>Fault</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ServerImpl extends MinimalEObjectImpl.Container implements Server { + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected static final String TENANT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTenant_id() <em>Tenant id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTenant_id() + * @generated + * @ordered + */ + protected String tenant_id = TENANT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getUser_id() <em>User id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_id() + * @generated + * @ordered + */ + protected static final String USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUser_id() <em>User id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUser_id() + * @generated + * @ordered + */ + protected String user_id = USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getUpdated() <em>Updated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUpdated() + * @generated + * @ordered + */ + protected static final String UPDATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUpdated() <em>Updated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUpdated() + * @generated + * @ordered + */ + protected String updated = UPDATED_EDEFAULT; + + /** + * The default value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected static final String CREATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated() <em>Created</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated() + * @generated + * @ordered + */ + protected String created = CREATED_EDEFAULT; + + /** + * The default value of the '{@link #getHostId() <em>Host Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHostId() + * @generated + * @ordered + */ + protected static final String HOST_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHostId() <em>Host Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHostId() + * @generated + * @ordered + */ + protected String hostId = HOST_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAccessIPv4() <em>Access IPv4</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccessIPv4() + * @generated + * @ordered + */ + protected static final String ACCESS_IPV4_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAccessIPv4() <em>Access IPv4</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccessIPv4() + * @generated + * @ordered + */ + protected String accessIPv4 = ACCESS_IPV4_EDEFAULT; + + /** + * The default value of the '{@link #getAccessIPv6() <em>Access IPv6</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccessIPv6() + * @generated + * @ordered + */ + protected static final String ACCESS_IPV6_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAccessIPv6() <em>Access IPv6</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccessIPv6() + * @generated + * @ordered + */ + protected String accessIPv6 = ACCESS_IPV6_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getConfig_drive() <em>Config drive</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfig_drive() + * @generated + * @ordered + */ + protected static final String CONFIG_DRIVE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getConfig_drive() <em>Config drive</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getConfig_drive() + * @generated + * @ordered + */ + protected String config_drive = CONFIG_DRIVE_EDEFAULT; + + /** + * The default value of the '{@link #getKey_name() <em>Key name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKey_name() + * @generated + * @ordered + */ + protected static final String KEY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKey_name() <em>Key name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getKey_name() + * @generated + * @ordered + */ + protected String key_name = KEY_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getProgress() <em>Progress</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProgress() + * @generated + * @ordered + */ + protected static final int PROGRESS_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getProgress() <em>Progress</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getProgress() + * @generated + * @ordered + */ + protected int progress = PROGRESS_EDEFAULT; + + /** + * The default value of the '{@link #getOS_DCF_diskConfig() <em>OS DCF disk Config</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_DCF_diskConfig() + * @generated + * @ordered + */ + protected static final String OS_DCF_DISK_CONFIG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_DCF_diskConfig() <em>OS DCF disk Config</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_DCF_diskConfig() + * @generated + * @ordered + */ + protected String oS_DCF_diskConfig = OS_DCF_DISK_CONFIG_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_STS_power_state() <em>OS EXT STS power state</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_STS_power_state() + * @generated + * @ordered + */ + protected static final int OS_EXT_STS_POWER_STATE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getOS_EXT_STS_power_state() <em>OS EXT STS power state</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_STS_power_state() + * @generated + * @ordered + */ + protected int oS_EXT_STS_power_state = OS_EXT_STS_POWER_STATE_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_STS_vm_state() <em>OS EXT STS vm state</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_STS_vm_state() + * @generated + * @ordered + */ + protected static final String OS_EXT_STS_VM_STATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_STS_vm_state() <em>OS EXT STS vm state</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_STS_vm_state() + * @generated + * @ordered + */ + protected String oS_EXT_STS_vm_state = OS_EXT_STS_VM_STATE_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_STS_task_state() <em>OS EXT STS task state</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_STS_task_state() + * @generated + * @ordered + */ + protected static final String OS_EXT_STS_TASK_STATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_STS_task_state() <em>OS EXT STS task state</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_STS_task_state() + * @generated + * @ordered + */ + protected String oS_EXT_STS_task_state = OS_EXT_STS_TASK_STATE_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_SRV_ATTR_host() <em>OS EXT SRV ATTR host</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_SRV_ATTR_host() + * @generated + * @ordered + */ + protected static final String OS_EXT_SRV_ATTR_HOST_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_SRV_ATTR_host() <em>OS EXT SRV ATTR host</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_SRV_ATTR_host() + * @generated + * @ordered + */ + protected String oS_EXT_SRV_ATTR_host = OS_EXT_SRV_ATTR_HOST_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_SRV_ATTR_instance_name() <em>OS EXT SRV ATTR instance name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_SRV_ATTR_instance_name() + * @generated + * @ordered + */ + protected static final String OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_SRV_ATTR_instance_name() <em>OS EXT SRV ATTR instance name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_SRV_ATTR_instance_name() + * @generated + * @ordered + */ + protected String oS_EXT_SRV_ATTR_instance_name = OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getOS_EXT_SRV_ATTR_hypervisor_hostname() <em>OS EXT SRV ATTR hypervisor hostname</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_SRV_ATTR_hypervisor_hostname() + * @generated + * @ordered + */ + protected static final String OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_EXT_SRV_ATTR_hypervisor_hostname() <em>OS EXT SRV ATTR hypervisor hostname</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_EXT_SRV_ATTR_hypervisor_hostname() + * @generated + * @ordered + */ + protected String oS_EXT_SRV_ATTR_hypervisor_hostname = OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT; + + /** + * The default value of the '{@link #getOS_SRV_USG_launched_at() <em>OS SRV USG launched at</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_SRV_USG_launched_at() + * @generated + * @ordered + */ + protected static final String OS_SRV_USG_LAUNCHED_AT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_SRV_USG_launched_at() <em>OS SRV USG launched at</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_SRV_USG_launched_at() + * @generated + * @ordered + */ + protected String oS_SRV_USG_launched_at = OS_SRV_USG_LAUNCHED_AT_EDEFAULT; + + /** + * The default value of the '{@link #getOS_SRV_USG_terminated_at() <em>OS SRV USG terminated at</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_SRV_USG_terminated_at() + * @generated + * @ordered + */ + protected static final String OS_SRV_USG_TERMINATED_AT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOS_SRV_USG_terminated_at() <em>OS SRV USG terminated at</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOS_SRV_USG_terminated_at() + * @generated + * @ordered + */ + protected String oS_SRV_USG_terminated_at = OS_SRV_USG_TERMINATED_AT_EDEFAULT; + + /** + * The cached value of the '{@link #getImage() <em>Image</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getImage() + * @generated + * @ordered + */ + protected Reference image; + + /** + * The cached value of the '{@link #getFlavor() <em>Flavor</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFlavor() + * @generated + * @ordered + */ + protected Reference flavor; + + /** + * The cached value of the '{@link #getAddresses() <em>Addresses</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAddresses() + * @generated + * @ordered + */ + protected EList<Addresses> addresses; + + /** + * The cached value of the '{@link #getSecurity_groups() <em>Security groups</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecurity_groups() + * @generated + * @ordered + */ + protected EList<SecurityGroup> security_groups; + + /** + * The cached value of the '{@link #getMetadata() <em>Metadata</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList<Metadata> metadata; + + /** + * The cached value of the '{@link #getLinks() <em>Links</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLinks() + * @generated + * @ordered + */ + protected EList<Link> links; + + /** + * The cached value of the '{@link #getFault() <em>Fault</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFault() + * @generated + * @ordered + */ + protected Fault fault; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ServerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.SERVER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTenant_id() { + return tenant_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTenant_id(String newTenant_id) { + String oldTenant_id = tenant_id; + tenant_id = newTenant_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__TENANT_ID, oldTenant_id, tenant_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUser_id() { + return user_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUser_id(String newUser_id) { + String oldUser_id = user_id; + user_id = newUser_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__USER_ID, oldUser_id, user_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUpdated() { + return updated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUpdated(String newUpdated) { + String oldUpdated = updated; + updated = newUpdated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__UPDATED, oldUpdated, updated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCreated() { + return created; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated(String newCreated) { + String oldCreated = created; + created = newCreated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__CREATED, oldCreated, created)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getHostId() { + return hostId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setHostId(String newHostId) { + String oldHostId = hostId; + hostId = newHostId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__HOST_ID, oldHostId, hostId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAccessIPv4() { + return accessIPv4; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAccessIPv4(String newAccessIPv4) { + String oldAccessIPv4 = accessIPv4; + accessIPv4 = newAccessIPv4; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__ACCESS_IPV4, oldAccessIPv4, accessIPv4)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAccessIPv6() { + return accessIPv6; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAccessIPv6(String newAccessIPv6) { + String oldAccessIPv6 = accessIPv6; + accessIPv6 = newAccessIPv6; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__ACCESS_IPV6, oldAccessIPv6, accessIPv6)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getConfig_drive() { + return config_drive; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setConfig_drive(String newConfig_drive) { + String oldConfig_drive = config_drive; + config_drive = newConfig_drive; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__CONFIG_DRIVE, oldConfig_drive, config_drive)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getKey_name() { + return key_name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setKey_name(String newKey_name) { + String oldKey_name = key_name; + key_name = newKey_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__KEY_NAME, oldKey_name, key_name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getProgress() { + return progress; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setProgress(int newProgress) { + int oldProgress = progress; + progress = newProgress; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__PROGRESS, oldProgress, progress)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_DCF_diskConfig() { + return oS_DCF_diskConfig; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_DCF_diskConfig(String newOS_DCF_diskConfig) { + String oldOS_DCF_diskConfig = oS_DCF_diskConfig; + oS_DCF_diskConfig = newOS_DCF_diskConfig; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_DCF_DISK_CONFIG, oldOS_DCF_diskConfig, oS_DCF_diskConfig)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getOS_EXT_STS_power_state() { + return oS_EXT_STS_power_state; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_STS_power_state(int newOS_EXT_STS_power_state) { + int oldOS_EXT_STS_power_state = oS_EXT_STS_power_state; + oS_EXT_STS_power_state = newOS_EXT_STS_power_state; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_STS_POWER_STATE, oldOS_EXT_STS_power_state, oS_EXT_STS_power_state)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_EXT_STS_vm_state() { + return oS_EXT_STS_vm_state; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_STS_vm_state(String newOS_EXT_STS_vm_state) { + String oldOS_EXT_STS_vm_state = oS_EXT_STS_vm_state; + oS_EXT_STS_vm_state = newOS_EXT_STS_vm_state; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_STS_VM_STATE, oldOS_EXT_STS_vm_state, oS_EXT_STS_vm_state)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_EXT_STS_task_state() { + return oS_EXT_STS_task_state; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_STS_task_state(String newOS_EXT_STS_task_state) { + String oldOS_EXT_STS_task_state = oS_EXT_STS_task_state; + oS_EXT_STS_task_state = newOS_EXT_STS_task_state; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_STS_TASK_STATE, oldOS_EXT_STS_task_state, oS_EXT_STS_task_state)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_EXT_SRV_ATTR_host() { + return oS_EXT_SRV_ATTR_host; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_SRV_ATTR_host(String newOS_EXT_SRV_ATTR_host) { + String oldOS_EXT_SRV_ATTR_host = oS_EXT_SRV_ATTR_host; + oS_EXT_SRV_ATTR_host = newOS_EXT_SRV_ATTR_host; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST, oldOS_EXT_SRV_ATTR_host, oS_EXT_SRV_ATTR_host)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_EXT_SRV_ATTR_instance_name() { + return oS_EXT_SRV_ATTR_instance_name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_SRV_ATTR_instance_name(String newOS_EXT_SRV_ATTR_instance_name) { + String oldOS_EXT_SRV_ATTR_instance_name = oS_EXT_SRV_ATTR_instance_name; + oS_EXT_SRV_ATTR_instance_name = newOS_EXT_SRV_ATTR_instance_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME, oldOS_EXT_SRV_ATTR_instance_name, oS_EXT_SRV_ATTR_instance_name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_EXT_SRV_ATTR_hypervisor_hostname() { + return oS_EXT_SRV_ATTR_hypervisor_hostname; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_EXT_SRV_ATTR_hypervisor_hostname(String newOS_EXT_SRV_ATTR_hypervisor_hostname) { + String oldOS_EXT_SRV_ATTR_hypervisor_hostname = oS_EXT_SRV_ATTR_hypervisor_hostname; + oS_EXT_SRV_ATTR_hypervisor_hostname = newOS_EXT_SRV_ATTR_hypervisor_hostname; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME, oldOS_EXT_SRV_ATTR_hypervisor_hostname, oS_EXT_SRV_ATTR_hypervisor_hostname)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_SRV_USG_launched_at() { + return oS_SRV_USG_launched_at; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_SRV_USG_launched_at(String newOS_SRV_USG_launched_at) { + String oldOS_SRV_USG_launched_at = oS_SRV_USG_launched_at; + oS_SRV_USG_launched_at = newOS_SRV_USG_launched_at; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT, oldOS_SRV_USG_launched_at, oS_SRV_USG_launched_at)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOS_SRV_USG_terminated_at() { + return oS_SRV_USG_terminated_at; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOS_SRV_USG_terminated_at(String newOS_SRV_USG_terminated_at) { + String oldOS_SRV_USG_terminated_at = oS_SRV_USG_terminated_at; + oS_SRV_USG_terminated_at = newOS_SRV_USG_terminated_at; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT, oldOS_SRV_USG_terminated_at, oS_SRV_USG_terminated_at)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Reference getImage() { + return image; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetImage(Reference newImage, NotificationChain msgs) { + Reference oldImage = image; + image = newImage; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__IMAGE, oldImage, newImage); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setImage(Reference newImage) { + if (newImage != image) { + NotificationChain msgs = null; + if (image != null) + msgs = ((InternalEObject)image).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__IMAGE, null, msgs); + if (newImage != null) + msgs = ((InternalEObject)newImage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__IMAGE, null, msgs); + msgs = basicSetImage(newImage, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__IMAGE, newImage, newImage)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Reference getFlavor() { + return flavor; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetFlavor(Reference newFlavor, NotificationChain msgs) { + Reference oldFlavor = flavor; + flavor = newFlavor; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FLAVOR, oldFlavor, newFlavor); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFlavor(Reference newFlavor) { + if (newFlavor != flavor) { + NotificationChain msgs = null; + if (flavor != null) + msgs = ((InternalEObject)flavor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FLAVOR, null, msgs); + if (newFlavor != null) + msgs = ((InternalEObject)newFlavor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FLAVOR, null, msgs); + msgs = basicSetFlavor(newFlavor, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FLAVOR, newFlavor, newFlavor)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Addresses> getAddresses() { + if (addresses == null) { + addresses = new EObjectContainmentEList<Addresses>(Addresses.class, this, ComputePackage.SERVER__ADDRESSES); + } + return addresses; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SecurityGroup> getSecurity_groups() { + if (security_groups == null) { + security_groups = new EObjectContainmentEList<SecurityGroup>(SecurityGroup.class, this, ComputePackage.SERVER__SECURITY_GROUPS); + } + return security_groups; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Metadata> getMetadata() { + if (metadata == null) { + metadata = new EObjectContainmentEList<Metadata>(Metadata.class, this, ComputePackage.SERVER__METADATA); + } + return metadata; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Link> getLinks() { + if (links == null) { + links = new EObjectContainmentEList<Link>(Link.class, this, ComputePackage.SERVER__LINKS); + } + return links; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Fault getFault() { + return fault; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetFault(Fault newFault, NotificationChain msgs) { + Fault oldFault = fault; + fault = newFault; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FAULT, oldFault, newFault); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFault(Fault newFault) { + if (newFault != fault) { + NotificationChain msgs = null; + if (fault != null) + msgs = ((InternalEObject)fault).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FAULT, null, msgs); + if (newFault != null) + msgs = ((InternalEObject)newFault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComputePackage.SERVER__FAULT, null, msgs); + msgs = basicSetFault(newFault, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.SERVER__FAULT, newFault, newFault)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.SERVER__IMAGE: + return basicSetImage(null, msgs); + case ComputePackage.SERVER__FLAVOR: + return basicSetFlavor(null, msgs); + case ComputePackage.SERVER__ADDRESSES: + return ((InternalEList<?>)getAddresses()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__SECURITY_GROUPS: + return ((InternalEList<?>)getSecurity_groups()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__METADATA: + return ((InternalEList<?>)getMetadata()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__LINKS: + return ((InternalEList<?>)getLinks()).basicRemove(otherEnd, msgs); + case ComputePackage.SERVER__FAULT: + return basicSetFault(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.SERVER__ID: + return getId(); + case ComputePackage.SERVER__TENANT_ID: + return getTenant_id(); + case ComputePackage.SERVER__USER_ID: + return getUser_id(); + case ComputePackage.SERVER__NAME: + return getName(); + case ComputePackage.SERVER__UPDATED: + return getUpdated(); + case ComputePackage.SERVER__CREATED: + return getCreated(); + case ComputePackage.SERVER__HOST_ID: + return getHostId(); + case ComputePackage.SERVER__ACCESS_IPV4: + return getAccessIPv4(); + case ComputePackage.SERVER__ACCESS_IPV6: + return getAccessIPv6(); + case ComputePackage.SERVER__STATUS: + return getStatus(); + case ComputePackage.SERVER__CONFIG_DRIVE: + return getConfig_drive(); + case ComputePackage.SERVER__KEY_NAME: + return getKey_name(); + case ComputePackage.SERVER__PROGRESS: + return getProgress(); + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + return getOS_DCF_diskConfig(); + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + return getOS_EXT_STS_power_state(); + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + return getOS_EXT_STS_vm_state(); + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + return getOS_EXT_STS_task_state(); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + return getOS_EXT_SRV_ATTR_host(); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + return getOS_EXT_SRV_ATTR_instance_name(); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + return getOS_EXT_SRV_ATTR_hypervisor_hostname(); + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + return getOS_SRV_USG_launched_at(); + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + return getOS_SRV_USG_terminated_at(); + case ComputePackage.SERVER__IMAGE: + return getImage(); + case ComputePackage.SERVER__FLAVOR: + return getFlavor(); + case ComputePackage.SERVER__ADDRESSES: + return getAddresses(); + case ComputePackage.SERVER__SECURITY_GROUPS: + return getSecurity_groups(); + case ComputePackage.SERVER__METADATA: + return getMetadata(); + case ComputePackage.SERVER__LINKS: + return getLinks(); + case ComputePackage.SERVER__FAULT: + return getFault(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.SERVER__ID: + setId((String)newValue); + return; + case ComputePackage.SERVER__TENANT_ID: + setTenant_id((String)newValue); + return; + case ComputePackage.SERVER__USER_ID: + setUser_id((String)newValue); + return; + case ComputePackage.SERVER__NAME: + setName((String)newValue); + return; + case ComputePackage.SERVER__UPDATED: + setUpdated((String)newValue); + return; + case ComputePackage.SERVER__CREATED: + setCreated((String)newValue); + return; + case ComputePackage.SERVER__HOST_ID: + setHostId((String)newValue); + return; + case ComputePackage.SERVER__ACCESS_IPV4: + setAccessIPv4((String)newValue); + return; + case ComputePackage.SERVER__ACCESS_IPV6: + setAccessIPv6((String)newValue); + return; + case ComputePackage.SERVER__STATUS: + setStatus((String)newValue); + return; + case ComputePackage.SERVER__CONFIG_DRIVE: + setConfig_drive((String)newValue); + return; + case ComputePackage.SERVER__KEY_NAME: + setKey_name((String)newValue); + return; + case ComputePackage.SERVER__PROGRESS: + setProgress((Integer)newValue); + return; + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + setOS_DCF_diskConfig((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + setOS_EXT_STS_power_state((Integer)newValue); + return; + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + setOS_EXT_STS_vm_state((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + setOS_EXT_STS_task_state((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + setOS_EXT_SRV_ATTR_host((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + setOS_EXT_SRV_ATTR_instance_name((String)newValue); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + setOS_EXT_SRV_ATTR_hypervisor_hostname((String)newValue); + return; + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + setOS_SRV_USG_launched_at((String)newValue); + return; + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + setOS_SRV_USG_terminated_at((String)newValue); + return; + case ComputePackage.SERVER__IMAGE: + setImage((Reference)newValue); + return; + case ComputePackage.SERVER__FLAVOR: + setFlavor((Reference)newValue); + return; + case ComputePackage.SERVER__ADDRESSES: + getAddresses().clear(); + getAddresses().addAll((Collection<? extends Addresses>)newValue); + return; + case ComputePackage.SERVER__SECURITY_GROUPS: + getSecurity_groups().clear(); + getSecurity_groups().addAll((Collection<? extends SecurityGroup>)newValue); + return; + case ComputePackage.SERVER__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection<? extends Metadata>)newValue); + return; + case ComputePackage.SERVER__LINKS: + getLinks().clear(); + getLinks().addAll((Collection<? extends Link>)newValue); + return; + case ComputePackage.SERVER__FAULT: + setFault((Fault)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.SERVER__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.SERVER__TENANT_ID: + setTenant_id(TENANT_ID_EDEFAULT); + return; + case ComputePackage.SERVER__USER_ID: + setUser_id(USER_ID_EDEFAULT); + return; + case ComputePackage.SERVER__NAME: + setName(NAME_EDEFAULT); + return; + case ComputePackage.SERVER__UPDATED: + setUpdated(UPDATED_EDEFAULT); + return; + case ComputePackage.SERVER__CREATED: + setCreated(CREATED_EDEFAULT); + return; + case ComputePackage.SERVER__HOST_ID: + setHostId(HOST_ID_EDEFAULT); + return; + case ComputePackage.SERVER__ACCESS_IPV4: + setAccessIPv4(ACCESS_IPV4_EDEFAULT); + return; + case ComputePackage.SERVER__ACCESS_IPV6: + setAccessIPv6(ACCESS_IPV6_EDEFAULT); + return; + case ComputePackage.SERVER__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case ComputePackage.SERVER__CONFIG_DRIVE: + setConfig_drive(CONFIG_DRIVE_EDEFAULT); + return; + case ComputePackage.SERVER__KEY_NAME: + setKey_name(KEY_NAME_EDEFAULT); + return; + case ComputePackage.SERVER__PROGRESS: + setProgress(PROGRESS_EDEFAULT); + return; + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + setOS_DCF_diskConfig(OS_DCF_DISK_CONFIG_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + setOS_EXT_STS_power_state(OS_EXT_STS_POWER_STATE_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + setOS_EXT_STS_vm_state(OS_EXT_STS_VM_STATE_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + setOS_EXT_STS_task_state(OS_EXT_STS_TASK_STATE_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + setOS_EXT_SRV_ATTR_host(OS_EXT_SRV_ATTR_HOST_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + setOS_EXT_SRV_ATTR_instance_name(OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT); + return; + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + setOS_EXT_SRV_ATTR_hypervisor_hostname(OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT); + return; + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + setOS_SRV_USG_launched_at(OS_SRV_USG_LAUNCHED_AT_EDEFAULT); + return; + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + setOS_SRV_USG_terminated_at(OS_SRV_USG_TERMINATED_AT_EDEFAULT); + return; + case ComputePackage.SERVER__IMAGE: + setImage((Reference)null); + return; + case ComputePackage.SERVER__FLAVOR: + setFlavor((Reference)null); + return; + case ComputePackage.SERVER__ADDRESSES: + getAddresses().clear(); + return; + case ComputePackage.SERVER__SECURITY_GROUPS: + getSecurity_groups().clear(); + return; + case ComputePackage.SERVER__METADATA: + getMetadata().clear(); + return; + case ComputePackage.SERVER__LINKS: + getLinks().clear(); + return; + case ComputePackage.SERVER__FAULT: + setFault((Fault)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.SERVER__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.SERVER__TENANT_ID: + return TENANT_ID_EDEFAULT == null ? tenant_id != null : !TENANT_ID_EDEFAULT.equals(tenant_id); + case ComputePackage.SERVER__USER_ID: + return USER_ID_EDEFAULT == null ? user_id != null : !USER_ID_EDEFAULT.equals(user_id); + case ComputePackage.SERVER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case ComputePackage.SERVER__UPDATED: + return UPDATED_EDEFAULT == null ? updated != null : !UPDATED_EDEFAULT.equals(updated); + case ComputePackage.SERVER__CREATED: + return CREATED_EDEFAULT == null ? created != null : !CREATED_EDEFAULT.equals(created); + case ComputePackage.SERVER__HOST_ID: + return HOST_ID_EDEFAULT == null ? hostId != null : !HOST_ID_EDEFAULT.equals(hostId); + case ComputePackage.SERVER__ACCESS_IPV4: + return ACCESS_IPV4_EDEFAULT == null ? accessIPv4 != null : !ACCESS_IPV4_EDEFAULT.equals(accessIPv4); + case ComputePackage.SERVER__ACCESS_IPV6: + return ACCESS_IPV6_EDEFAULT == null ? accessIPv6 != null : !ACCESS_IPV6_EDEFAULT.equals(accessIPv6); + case ComputePackage.SERVER__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case ComputePackage.SERVER__CONFIG_DRIVE: + return CONFIG_DRIVE_EDEFAULT == null ? config_drive != null : !CONFIG_DRIVE_EDEFAULT.equals(config_drive); + case ComputePackage.SERVER__KEY_NAME: + return KEY_NAME_EDEFAULT == null ? key_name != null : !KEY_NAME_EDEFAULT.equals(key_name); + case ComputePackage.SERVER__PROGRESS: + return progress != PROGRESS_EDEFAULT; + case ComputePackage.SERVER__OS_DCF_DISK_CONFIG: + return OS_DCF_DISK_CONFIG_EDEFAULT == null ? oS_DCF_diskConfig != null : !OS_DCF_DISK_CONFIG_EDEFAULT.equals(oS_DCF_diskConfig); + case ComputePackage.SERVER__OS_EXT_STS_POWER_STATE: + return oS_EXT_STS_power_state != OS_EXT_STS_POWER_STATE_EDEFAULT; + case ComputePackage.SERVER__OS_EXT_STS_VM_STATE: + return OS_EXT_STS_VM_STATE_EDEFAULT == null ? oS_EXT_STS_vm_state != null : !OS_EXT_STS_VM_STATE_EDEFAULT.equals(oS_EXT_STS_vm_state); + case ComputePackage.SERVER__OS_EXT_STS_TASK_STATE: + return OS_EXT_STS_TASK_STATE_EDEFAULT == null ? oS_EXT_STS_task_state != null : !OS_EXT_STS_TASK_STATE_EDEFAULT.equals(oS_EXT_STS_task_state); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HOST: + return OS_EXT_SRV_ATTR_HOST_EDEFAULT == null ? oS_EXT_SRV_ATTR_host != null : !OS_EXT_SRV_ATTR_HOST_EDEFAULT.equals(oS_EXT_SRV_ATTR_host); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_INSTANCE_NAME: + return OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT == null ? oS_EXT_SRV_ATTR_instance_name != null : !OS_EXT_SRV_ATTR_INSTANCE_NAME_EDEFAULT.equals(oS_EXT_SRV_ATTR_instance_name); + case ComputePackage.SERVER__OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME: + return OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT == null ? oS_EXT_SRV_ATTR_hypervisor_hostname != null : !OS_EXT_SRV_ATTR_HYPERVISOR_HOSTNAME_EDEFAULT.equals(oS_EXT_SRV_ATTR_hypervisor_hostname); + case ComputePackage.SERVER__OS_SRV_USG_LAUNCHED_AT: + return OS_SRV_USG_LAUNCHED_AT_EDEFAULT == null ? oS_SRV_USG_launched_at != null : !OS_SRV_USG_LAUNCHED_AT_EDEFAULT.equals(oS_SRV_USG_launched_at); + case ComputePackage.SERVER__OS_SRV_USG_TERMINATED_AT: + return OS_SRV_USG_TERMINATED_AT_EDEFAULT == null ? oS_SRV_USG_terminated_at != null : !OS_SRV_USG_TERMINATED_AT_EDEFAULT.equals(oS_SRV_USG_terminated_at); + case ComputePackage.SERVER__IMAGE: + return image != null; + case ComputePackage.SERVER__FLAVOR: + return flavor != null; + case ComputePackage.SERVER__ADDRESSES: + return addresses != null && !addresses.isEmpty(); + case ComputePackage.SERVER__SECURITY_GROUPS: + return security_groups != null && !security_groups.isEmpty(); + case ComputePackage.SERVER__METADATA: + return metadata != null && !metadata.isEmpty(); + case ComputePackage.SERVER__LINKS: + return links != null && !links.isEmpty(); + case ComputePackage.SERVER__FAULT: + return fault != 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(" (id: "); + result.append(id); + result.append(", tenant_id: "); + result.append(tenant_id); + result.append(", user_id: "); + result.append(user_id); + result.append(", name: "); + result.append(name); + result.append(", updated: "); + result.append(updated); + result.append(", created: "); + result.append(created); + result.append(", hostId: "); + result.append(hostId); + result.append(", accessIPv4: "); + result.append(accessIPv4); + result.append(", accessIPv6: "); + result.append(accessIPv6); + result.append(", status: "); + result.append(status); + result.append(", config_drive: "); + result.append(config_drive); + result.append(", key_name: "); + result.append(key_name); + result.append(", progress: "); + result.append(progress); + result.append(", OS_DCF_diskConfig: "); + result.append(oS_DCF_diskConfig); + result.append(", OS_EXT_STS_power_state: "); + result.append(oS_EXT_STS_power_state); + result.append(", OS_EXT_STS_vm_state: "); + result.append(oS_EXT_STS_vm_state); + result.append(", OS_EXT_STS_task_state: "); + result.append(oS_EXT_STS_task_state); + result.append(", OS_EXT_SRV_ATTR_host: "); + result.append(oS_EXT_SRV_ATTR_host); + result.append(", OS_EXT_SRV_ATTR_instance_name: "); + result.append(oS_EXT_SRV_ATTR_instance_name); + result.append(", OS_EXT_SRV_ATTR_hypervisor_hostname: "); + result.append(oS_EXT_SRV_ATTR_hypervisor_hostname); + result.append(", OS_SRV_USG_launched_at: "); + result.append(oS_SRV_USG_launched_at); + result.append(", OS_SRV_USG_terminated_at: "); + result.append(oS_SRV_USG_terminated_at); + result.append(')'); + return result.toString(); + } + +} //ServerImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeAttachmentImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeAttachmentImpl.java new file mode 100644 index 0000000..abdd4a5 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeAttachmentImpl.java @@ -0,0 +1,346 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.VolumeAttachment; + +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>Volume Attachment</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getDevice <em>Device</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getServer_id <em>Server id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeAttachmentImpl#getVolume_id <em>Volume id</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VolumeAttachmentImpl extends MinimalEObjectImpl.Container implements VolumeAttachment { + /** + * The default value of the '{@link #getDevice() <em>Device</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDevice() + * @generated + * @ordered + */ + protected static final String DEVICE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDevice() <em>Device</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDevice() + * @generated + * @ordered + */ + protected String device = DEVICE_EDEFAULT; + + /** + * The default value of the '{@link #getServer_id() <em>Server id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServer_id() + * @generated + * @ordered + */ + protected static final String SERVER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServer_id() <em>Server id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServer_id() + * @generated + * @ordered + */ + protected String server_id = SERVER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getVolume_id() <em>Volume id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVolume_id() + * @generated + * @ordered + */ + protected static final String VOLUME_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVolume_id() <em>Volume id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVolume_id() + * @generated + * @ordered + */ + protected String volume_id = VOLUME_ID_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VolumeAttachmentImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.VOLUME_ATTACHMENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDevice() { + return device; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDevice(String newDevice) { + String oldDevice = device; + device = newDevice; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__DEVICE, oldDevice, device)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getServer_id() { + return server_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setServer_id(String newServer_id) { + String oldServer_id = server_id; + server_id = newServer_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__SERVER_ID, oldServer_id, server_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVolume_id() { + return volume_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVolume_id(String newVolume_id) { + String oldVolume_id = volume_id; + volume_id = newVolume_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID, oldVolume_id, volume_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + return getDevice(); + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + return getServer_id(); + case ComputePackage.VOLUME_ATTACHMENT__ID: + return getId(); + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + return getVolume_id(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + setDevice((String)newValue); + return; + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + setServer_id((String)newValue); + return; + case ComputePackage.VOLUME_ATTACHMENT__ID: + setId((String)newValue); + return; + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + setVolume_id((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + setDevice(DEVICE_EDEFAULT); + return; + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + setServer_id(SERVER_ID_EDEFAULT); + return; + case ComputePackage.VOLUME_ATTACHMENT__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + setVolume_id(VOLUME_ID_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME_ATTACHMENT__DEVICE: + return DEVICE_EDEFAULT == null ? device != null : !DEVICE_EDEFAULT.equals(device); + case ComputePackage.VOLUME_ATTACHMENT__SERVER_ID: + return SERVER_ID_EDEFAULT == null ? server_id != null : !SERVER_ID_EDEFAULT.equals(server_id); + case ComputePackage.VOLUME_ATTACHMENT__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.VOLUME_ATTACHMENT__VOLUME_ID: + return VOLUME_ID_EDEFAULT == null ? volume_id != null : !VOLUME_ID_EDEFAULT.equals(volume_id); + } + 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(" (device: "); + result.append(device); + result.append(", server_id: "); + result.append(server_id); + result.append(", id: "); + result.append(id); + result.append(", volume_id: "); + result.append(volume_id); + result.append(')'); + return result.toString(); + } + +} //VolumeAttachmentImpl diff --git a/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeImpl.java b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeImpl.java new file mode 100644 index 0000000..d443043 --- /dev/null +++ b/ncomp-openstack-model/src/main/xcore-gen/org/openecomp/ncomp/openstack/compute/impl/VolumeImpl.java @@ -0,0 +1,713 @@ + +/*- + * ============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.compute.impl; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +import org.openecomp.ncomp.openstack.compute.ComputePackage; +import org.openecomp.ncomp.openstack.compute.Metadata; +import org.openecomp.ncomp.openstack.compute.Volume; +import org.openecomp.ncomp.openstack.compute.VolumeAttachment; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Volume</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getDisplay_name <em>Display name</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getAttachments <em>Attachments</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getAvailability_zone <em>Availability zone</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getCreated_at <em>Created at</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getVolume_type <em>Volume type</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getMetadata <em>Metadata</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getId <em>Id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getSize <em>Size</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getSnapshot_id <em>Snapshot id</em>}</li> + * <li>{@link org.openecomp.ncomp.openstack.compute.impl.VolumeImpl#getDisplay_description <em>Display description</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VolumeImpl extends NamedEntityImpl implements Volume { + /** + * The default value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getDisplay_name() <em>Display name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplay_name() + * @generated + * @ordered + */ + protected static final String DISPLAY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisplay_name() <em>Display name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplay_name() + * @generated + * @ordered + */ + protected String display_name = DISPLAY_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getAttachments() <em>Attachments</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttachments() + * @generated + * @ordered + */ + protected EList<VolumeAttachment> attachments; + + /** + * The default value of the '{@link #getAvailability_zone() <em>Availability zone</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAvailability_zone() + * @generated + * @ordered + */ + protected static final String AVAILABILITY_ZONE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAvailability_zone() <em>Availability zone</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAvailability_zone() + * @generated + * @ordered + */ + protected String availability_zone = AVAILABILITY_ZONE_EDEFAULT; + + /** + * The default value of the '{@link #getCreated_at() <em>Created at</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated_at() + * @generated + * @ordered + */ + protected static final String CREATED_AT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated_at() <em>Created at</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated_at() + * @generated + * @ordered + */ + protected String created_at = CREATED_AT_EDEFAULT; + + /** + * The default value of the '{@link #getVolume_type() <em>Volume type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVolume_type() + * @generated + * @ordered + */ + protected static final String VOLUME_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVolume_type() <em>Volume type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVolume_type() + * @generated + * @ordered + */ + protected String volume_type = VOLUME_TYPE_EDEFAULT; + + /** + * The cached value of the '{@link #getMetadata() <em>Metadata</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMetadata() + * @generated + * @ordered + */ + protected EList<Metadata> metadata; + + /** + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected static final String ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected String id = ID_EDEFAULT; + + /** + * The default value of the '{@link #getSize() <em>Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSize() + * @generated + * @ordered + */ + protected static final int SIZE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getSize() <em>Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSize() + * @generated + * @ordered + */ + protected int size = SIZE_EDEFAULT; + + /** + * The default value of the '{@link #getSnapshot_id() <em>Snapshot id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSnapshot_id() + * @generated + * @ordered + */ + protected static final String SNAPSHOT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSnapshot_id() <em>Snapshot id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSnapshot_id() + * @generated + * @ordered + */ + protected String snapshot_id = SNAPSHOT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getDisplay_description() <em>Display description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplay_description() + * @generated + * @ordered + */ + protected static final String DISPLAY_DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisplay_description() <em>Display description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplay_description() + * @generated + * @ordered + */ + protected String display_description = DISPLAY_DESCRIPTION_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VolumeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return ComputePackage.Literals.VOLUME; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getStatus() { + return status; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStatus(String newStatus) { + String oldStatus = status; + status = newStatus; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDisplay_name() { + return display_name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisplay_name(String newDisplay_name) { + String oldDisplay_name = display_name; + display_name = newDisplay_name; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__DISPLAY_NAME, oldDisplay_name, display_name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<VolumeAttachment> getAttachments() { + if (attachments == null) { + attachments = new EObjectContainmentEList<VolumeAttachment>(VolumeAttachment.class, this, ComputePackage.VOLUME__ATTACHMENTS); + } + return attachments; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAvailability_zone() { + return availability_zone; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAvailability_zone(String newAvailability_zone) { + String oldAvailability_zone = availability_zone; + availability_zone = newAvailability_zone; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__AVAILABILITY_ZONE, oldAvailability_zone, availability_zone)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCreated_at() { + return created_at; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated_at(String newCreated_at) { + String oldCreated_at = created_at; + created_at = newCreated_at; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__CREATED_AT, oldCreated_at, created_at)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVolume_type() { + return volume_type; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVolume_type(String newVolume_type) { + String oldVolume_type = volume_type; + volume_type = newVolume_type; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__VOLUME_TYPE, oldVolume_type, volume_type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Metadata> getMetadata() { + if (metadata == null) { + metadata = new EObjectContainmentEList<Metadata>(Metadata.class, this, ComputePackage.VOLUME__METADATA); + } + return metadata; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getId() { + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setId(String newId) { + String oldId = id; + id = newId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__ID, oldId, id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getSize() { + return size; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSize(int newSize) { + int oldSize = size; + size = newSize; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__SIZE, oldSize, size)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSnapshot_id() { + return snapshot_id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSnapshot_id(String newSnapshot_id) { + String oldSnapshot_id = snapshot_id; + snapshot_id = newSnapshot_id; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__SNAPSHOT_ID, oldSnapshot_id, snapshot_id)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDisplay_description() { + return display_description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisplay_description(String newDisplay_description) { + String oldDisplay_description = display_description; + display_description = newDisplay_description; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ComputePackage.VOLUME__DISPLAY_DESCRIPTION, oldDisplay_description, display_description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case ComputePackage.VOLUME__ATTACHMENTS: + return ((InternalEList<?>)getAttachments()).basicRemove(otherEnd, msgs); + case ComputePackage.VOLUME__METADATA: + return ((InternalEList<?>)getMetadata()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + return getStatus(); + case ComputePackage.VOLUME__DISPLAY_NAME: + return getDisplay_name(); + case ComputePackage.VOLUME__ATTACHMENTS: + return getAttachments(); + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + return getAvailability_zone(); + case ComputePackage.VOLUME__CREATED_AT: + return getCreated_at(); + case ComputePackage.VOLUME__VOLUME_TYPE: + return getVolume_type(); + case ComputePackage.VOLUME__METADATA: + return getMetadata(); + case ComputePackage.VOLUME__ID: + return getId(); + case ComputePackage.VOLUME__SIZE: + return getSize(); + case ComputePackage.VOLUME__SNAPSHOT_ID: + return getSnapshot_id(); + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + return getDisplay_description(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + setStatus((String)newValue); + return; + case ComputePackage.VOLUME__DISPLAY_NAME: + setDisplay_name((String)newValue); + return; + case ComputePackage.VOLUME__ATTACHMENTS: + getAttachments().clear(); + getAttachments().addAll((Collection<? extends VolumeAttachment>)newValue); + return; + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + setAvailability_zone((String)newValue); + return; + case ComputePackage.VOLUME__CREATED_AT: + setCreated_at((String)newValue); + return; + case ComputePackage.VOLUME__VOLUME_TYPE: + setVolume_type((String)newValue); + return; + case ComputePackage.VOLUME__METADATA: + getMetadata().clear(); + getMetadata().addAll((Collection<? extends Metadata>)newValue); + return; + case ComputePackage.VOLUME__ID: + setId((String)newValue); + return; + case ComputePackage.VOLUME__SIZE: + setSize((Integer)newValue); + return; + case ComputePackage.VOLUME__SNAPSHOT_ID: + setSnapshot_id((String)newValue); + return; + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + setDisplay_description((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case ComputePackage.VOLUME__DISPLAY_NAME: + setDisplay_name(DISPLAY_NAME_EDEFAULT); + return; + case ComputePackage.VOLUME__ATTACHMENTS: + getAttachments().clear(); + return; + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + setAvailability_zone(AVAILABILITY_ZONE_EDEFAULT); + return; + case ComputePackage.VOLUME__CREATED_AT: + setCreated_at(CREATED_AT_EDEFAULT); + return; + case ComputePackage.VOLUME__VOLUME_TYPE: + setVolume_type(VOLUME_TYPE_EDEFAULT); + return; + case ComputePackage.VOLUME__METADATA: + getMetadata().clear(); + return; + case ComputePackage.VOLUME__ID: + setId(ID_EDEFAULT); + return; + case ComputePackage.VOLUME__SIZE: + setSize(SIZE_EDEFAULT); + return; + case ComputePackage.VOLUME__SNAPSHOT_ID: + setSnapshot_id(SNAPSHOT_ID_EDEFAULT); + return; + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + setDisplay_description(DISPLAY_DESCRIPTION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ComputePackage.VOLUME__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case ComputePackage.VOLUME__DISPLAY_NAME: + return DISPLAY_NAME_EDEFAULT == null ? display_name != null : !DISPLAY_NAME_EDEFAULT.equals(display_name); + case ComputePackage.VOLUME__ATTACHMENTS: + return attachments != null && !attachments.isEmpty(); + case ComputePackage.VOLUME__AVAILABILITY_ZONE: + return AVAILABILITY_ZONE_EDEFAULT == null ? availability_zone != null : !AVAILABILITY_ZONE_EDEFAULT.equals(availability_zone); + case ComputePackage.VOLUME__CREATED_AT: + return CREATED_AT_EDEFAULT == null ? created_at != null : !CREATED_AT_EDEFAULT.equals(created_at); + case ComputePackage.VOLUME__VOLUME_TYPE: + return VOLUME_TYPE_EDEFAULT == null ? volume_type != null : !VOLUME_TYPE_EDEFAULT.equals(volume_type); + case ComputePackage.VOLUME__METADATA: + return metadata != null && !metadata.isEmpty(); + case ComputePackage.VOLUME__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case ComputePackage.VOLUME__SIZE: + return size != SIZE_EDEFAULT; + case ComputePackage.VOLUME__SNAPSHOT_ID: + return SNAPSHOT_ID_EDEFAULT == null ? snapshot_id != null : !SNAPSHOT_ID_EDEFAULT.equals(snapshot_id); + case ComputePackage.VOLUME__DISPLAY_DESCRIPTION: + return DISPLAY_DESCRIPTION_EDEFAULT == null ? display_description != null : !DISPLAY_DESCRIPTION_EDEFAULT.equals(display_description); + } + 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(" (status: "); + result.append(status); + result.append(", display_name: "); + result.append(display_name); + result.append(", availability_zone: "); + result.append(availability_zone); + result.append(", created_at: "); + result.append(created_at); + result.append(", volume_type: "); + result.append(volume_type); + result.append(", id: "); + result.append(id); + result.append(", size: "); + result.append(size); + result.append(", snapshot_id: "); + result.append(snapshot_id); + result.append(", display_description: "); + result.append(display_description); + result.append(')'); + return result.toString(); + } + +} //VolumeImpl |