diff options
Diffstat (limited to 'dcae-controller-core')
158 files changed, 17194 insertions, 199 deletions
diff --git a/dcae-controller-core/dcae-controller-core-model/.classpath b/dcae-controller-core/dcae-controller-core-model/.classpath index 17b1da0..c143627 100644 --- a/dcae-controller-core/dcae-controller-core-model/.classpath +++ b/dcae-controller-core/dcae-controller-core-model/.classpath @@ -1,13 +1,33 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="src" output="target/classes" path="src/main/xcore"> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/xcore"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/classes" path="src/main/xcore-gen"> <attributes> <attribute name="optional" value="true"/> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> - <classpathentry kind="src" path="src/main/xcore-gen"/> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> <classpathentry kind="output" path="target/classes"/> </classpath> diff --git a/dcae-controller-core/dcae-controller-core-model/.project b/dcae-controller-core/dcae-controller-core-model/.project index 8e3ca28..2295300 100644 --- a/dcae-controller-core/dcae-controller-core-model/.project +++ b/dcae-controller-core/dcae-controller-core-model/.project @@ -25,8 +25,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> + <nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> diff --git a/dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.core.resources.prefs b/dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..447ff97 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/xcore=UTF-8 +encoding//src/main/xcore-gen=UTF-8 +encoding/<project>=UTF-8 diff --git a/dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.jdt.core.prefs b/dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.jdt.core.prefs index 45a6e0e..443e085 100644 --- a/dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.jdt.core.prefs +++ b/dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.jdt.core.prefs @@ -1,8 +1,8 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.5 +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/dcae-controller-core/dcae-controller-core-model/META-INF/MANIFEST.MF b/dcae-controller-core/dcae-controller-core-model/META-INF/MANIFEST.MF index 97afb49..edfbfde 100644 --- a/dcae-controller-core/dcae-controller-core-model/META-INF/MANIFEST.MF +++ b/dcae-controller-core/dcae-controller-core-model/META-INF/MANIFEST.MF @@ -26,11 +26,5 @@ Require-Bundle: org.eclipse.core.runtime, org.eclipse.emf.ecore;visibility:=reexport, org.eclipse.xtext.xbase.lib, org.eclipse.emf.ecore.xcore.lib, - dcae-controller-core-model;visibility:=reexport, - ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-core-types;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0", - ncomp-openstack-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-agent-model;bundle-version="0.1.0";visibility:=reexport + dcae-controller-core-model;visibility:=reexport Bundle-ActivationPolicy: lazy diff --git a/dcae-controller-core/dcae-controller-core-model/plugin.xml b/dcae-controller-core/dcae-controller-core-model/plugin.xml index 6b4da95..58b1301 100644 --- a/dcae-controller-core/dcae-controller-core-model/plugin.xml +++ b/dcae-controller-core/dcae-controller-core-model/plugin.xml @@ -46,4 +46,12 @@ genModel="src/main/xcore/manager.xcore"/> </extension> + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated inventory --> + <package + uri="org.openecomp.dcae.controller.inventory" + class="org.openecomp.dcae.controller.inventory.InventoryPackage" + genModel="src/main/xcore/inventory.xcore"/> + </extension> + </plugin> diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/HypervisorPackage.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/HypervisorPackage.java index ffb9939..79fe048 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/HypervisorPackage.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/HypervisorPackage.java @@ -40,6 +40,24 @@ import org.eclipse.emf.ecore.EPackage; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * - + * ============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============================================ + * <!-- end-model-doc --> * @see org.openecomp.dcae.controller.core.hypervisor.HypervisorFactory * @model kind="package" * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-core-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.core'" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/impl/HypervisorImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/impl/HypervisorImpl.java index eb1716b..612905d 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/impl/HypervisorImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/impl/HypervisorImpl.java @@ -34,8 +34,6 @@ import org.eclipse.emf.ecore.EClass; * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Hypervisor</b></em>'. * <!-- end-user-doc --> - * <p> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/util/HypervisorSwitch.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/util/HypervisorSwitch.java index 990ad99..f6ee732 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/util/HypervisorSwitch.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/hypervisor/util/HypervisorSwitch.java @@ -70,7 +70,7 @@ public class HypervisorSwitch<T> extends Switch<T> { * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @parameter ePackage the package in question. + * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/DcaeManager.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/DcaeManager.java index a1f6c81..93a17a3 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/DcaeManager.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/DcaeManager.java @@ -37,11 +37,11 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.manager.DcaeManager#getInputStreams <em>Input Streams</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.manager.DcaeManager#getOutputStreams <em>Output Streams</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.manager.ManagerPackage#getDcaeManager() * @model abstract="true" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/ManagerPackage.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/ManagerPackage.java index 46a5821..33d6cdb 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/ManagerPackage.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/ManagerPackage.java @@ -40,6 +40,24 @@ import org.eclipse.emf.ecore.EReference; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * - + * ============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============================================ + * <!-- end-model-doc --> * @see org.openecomp.dcae.controller.core.manager.ManagerFactory * @model kind="package" * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-core-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.core'" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/impl/DcaeManagerImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/impl/DcaeManagerImpl.java index 1ed926b..7fd204d 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/impl/DcaeManagerImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/impl/DcaeManagerImpl.java @@ -51,11 +51,11 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.manager.impl.DcaeManagerImpl#getInputStreams <em>Input Streams</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.manager.impl.DcaeManagerImpl#getOutputStreams <em>Output Streams</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/util/ManagerSwitch.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/util/ManagerSwitch.java index 81ff606..14cef6b 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/util/ManagerSwitch.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/manager/util/ManagerSwitch.java @@ -68,7 +68,7 @@ public class ManagerSwitch<T> extends Switch<T> { * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @parameter ePackage the package in question. + * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServer.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServer.java index 13a2d73..3e35c45 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServer.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServer.java @@ -42,6 +42,7 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getPrivateIp <em>Private Ip</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getPublicIp <em>Public Ip</em>}</li> @@ -58,7 +59,6 @@ import org.eclipse.emf.common.util.EList; * <li>{@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getHealthTestStatus <em>Health Test Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getHealthTestMessageCode <em>Health Test Message Code</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.server.ServerPackage#getDcaeBasicServer() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServerNetwork.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServerNetwork.java index 2b699cb..2ce1f3e 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServerNetwork.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/DcaeBasicServerNetwork.java @@ -32,11 +32,11 @@ import org.openecomp.ncomp.core.NamedEntity; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.server.DcaeBasicServerNetwork#getIp <em>Ip</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.server.DcaeBasicServerNetwork#getDnsName <em>Dns Name</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.server.ServerPackage#getDcaeBasicServerNetwork() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/ServerPackage.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/ServerPackage.java index 97f8482..46a6a40 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/ServerPackage.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/ServerPackage.java @@ -41,6 +41,24 @@ import org.eclipse.emf.ecore.EReference; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * - + * ============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============================================ + * <!-- end-model-doc --> * @see org.openecomp.dcae.controller.core.server.ServerFactory * @model kind="package" * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-core-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.core'" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerImpl.java index 515e297..6dd8b82 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerImpl.java @@ -58,6 +58,7 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getOperationalState <em>Operational State</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getLogMessageConfiguration <em>Log Message Configuration</em>}</li> @@ -78,7 +79,6 @@ import org.eclipse.emf.ecore.util.InternalEList; * <li>{@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getHealthTestStatus <em>Health Test Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getHealthTestMessageCode <em>Health Test Message Code</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerNetworkImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerNetworkImpl.java index 7c25664..1d17579 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerNetworkImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/DcaeBasicServerNetworkImpl.java @@ -40,11 +40,11 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerNetworkImpl#getIp <em>Ip</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerNetworkImpl#getDnsName <em>Dns Name</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/ServerPackageImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/ServerPackageImpl.java index b524685..ec49cdd 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/ServerPackageImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/impl/ServerPackageImpl.java @@ -107,9 +107,9 @@ public class ServerPackageImpl extends EPackageImpl implements ServerPackage { isInited = true; // Initialize simple dependencies - ServicePackage.eINSTANCE.eClass(); - PropertiesPackage.eINSTANCE.eClass(); CollectdPackage.eINSTANCE.eClass(); + PropertiesPackage.eINSTANCE.eClass(); + ServicePackage.eINSTANCE.eClass(); // Create package meta-data objects theServerPackage.createPackageContents(); diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/util/ServerSwitch.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/util/ServerSwitch.java index 964f0cb..856843e 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/util/ServerSwitch.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/server/util/ServerSwitch.java @@ -69,7 +69,7 @@ public class ServerSwitch<T> extends Switch<T> { * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @parameter ePackage the package in question. + * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeLocation.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeLocation.java index 25ea31c..d52dd34 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeLocation.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeLocation.java @@ -33,11 +33,11 @@ import org.openecomp.ncomp.openstack.location.OpenStackProject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeLocation#getLocationType <em>Location Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeLocation#getOpenstackProject <em>Openstack Project</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.service.ServicePackage#getDcaeLocation() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaePolicyEntity.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaePolicyEntity.java index 3bbb77e..52ce263 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaePolicyEntity.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaePolicyEntity.java @@ -32,6 +32,7 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyName <em>Policy Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyDescription <em>Policy Description</em>}</li> @@ -41,7 +42,6 @@ import org.eclipse.emf.ecore.EObject; * <li>{@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyPriority <em>Policy Priority</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyScope <em>Policy Scope</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.service.ServicePackage#getDcaePolicyEntity() * @model abstract="true" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceContainer.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceContainer.java index def3b75..b65f52c 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceContainer.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceContainer.java @@ -34,10 +34,10 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceContainer#getInstances <em>Instances</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.service.ServicePackage#getDcaeServiceContainer() * @model abstract="true" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceDescriptor.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceDescriptor.java index dc920ac..6853be6 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceDescriptor.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceDescriptor.java @@ -32,12 +32,12 @@ import org.openecomp.ncomp.core.NamedEntity; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor#getGroupId <em>Group Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor#getArtifact <em>Artifact</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor#getVersion <em>Version</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.service.ServicePackage#getDcaeServiceDescriptor() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceInstance.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceInstance.java index 2475f84..d756b2f 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceInstance.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/DcaeServiceInstance.java @@ -36,6 +36,7 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getServiceContainer <em>Service Container</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getStatus <em>Status</em>}</li> @@ -45,7 +46,6 @@ import org.eclipse.emf.common.util.EList; * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getHealthTestStatus <em>Health Test Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getHealthTestMessageCode <em>Health Test Message Code</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.service.ServicePackage#getDcaeServiceInstance() * @model abstract="true" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestResponse.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestResponse.java index 0eaab17..17735e6 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestResponse.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestResponse.java @@ -32,11 +32,11 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.HealthTestResponse#getStatus <em>Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.HealthTestResponse#getMessageCode <em>Message Code</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.service.ServicePackage#getHealthTestResponse() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestStatus.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestStatus.java index be353a2..c38f917 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestStatus.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/HealthTestStatus.java @@ -139,6 +139,8 @@ public enum HealthTestStatus implements Enumerator { * Returns the '<em><b>Health Test Status</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param literal the literal. + * @return the matching enumerator or <code>null</code>. * @generated */ public static HealthTestStatus get(String literal) { @@ -155,6 +157,8 @@ public enum HealthTestStatus implements Enumerator { * Returns the '<em><b>Health Test Status</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param name the name. + * @return the matching enumerator or <code>null</code>. * @generated */ public static HealthTestStatus getByName(String name) { @@ -171,6 +175,8 @@ public enum HealthTestStatus implements Enumerator { * Returns the '<em><b>Health Test Status</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param value the integer value. + * @return the matching enumerator or <code>null</code>. * @generated */ public static HealthTestStatus get(int value) { diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/ServicePackage.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/ServicePackage.java index 74f5786..2c5a489 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/ServicePackage.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/ServicePackage.java @@ -44,6 +44,24 @@ import org.eclipse.emf.ecore.EReference; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * - + * ============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============================================ + * <!-- end-model-doc --> * @see org.openecomp.dcae.controller.core.service.ServiceFactory * @model kind="package" * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-core-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.core'" diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeLocationImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeLocationImpl.java index 553af71..95f0049 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeLocationImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeLocationImpl.java @@ -37,11 +37,11 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeLocationImpl#getLocationType <em>Location Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeLocationImpl#getOpenstackProject <em>Openstack Project</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaePolicyEntityImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaePolicyEntityImpl.java index d053055..2dea041 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaePolicyEntityImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaePolicyEntityImpl.java @@ -39,6 +39,7 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyName <em>Policy Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyDescription <em>Policy Description</em>}</li> @@ -48,7 +49,6 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyPriority <em>Policy Priority</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyScope <em>Policy Scope</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceContainerImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceContainerImpl.java index fea898d..c569285 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceContainerImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceContainerImpl.java @@ -41,10 +41,10 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceContainerImpl#getInstances <em>Instances</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceDescriptorImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceDescriptorImpl.java index 8ad411e..b3f2931 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceDescriptorImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceDescriptorImpl.java @@ -40,12 +40,12 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceDescriptorImpl#getGroupId <em>Group Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceDescriptorImpl#getArtifact <em>Artifact</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceDescriptorImpl#getVersion <em>Version</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceImpl.java index 2fc6b56..bd05645 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceImpl.java @@ -37,8 +37,6 @@ import org.json.JSONObject; * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Dcae Service</b></em>'. * <!-- end-user-doc --> - * <p> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceInstanceImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceInstanceImpl.java index ce2d06b..ef9d6c1 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceInstanceImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/DcaeServiceInstanceImpl.java @@ -47,6 +47,7 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getServiceContainer <em>Service Container</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getStatus <em>Status</em>}</li> @@ -56,7 +57,6 @@ import org.eclipse.emf.ecore.util.InternalEList; * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getHealthTestStatus <em>Health Test Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getHealthTestMessageCode <em>Health Test Message Code</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/HealthTestResponseImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/HealthTestResponseImpl.java index 70b646c..dadce84 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/HealthTestResponseImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/HealthTestResponseImpl.java @@ -40,11 +40,11 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.service.impl.HealthTestResponseImpl#getStatus <em>Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.service.impl.HealthTestResponseImpl#getMessageCode <em>Message Code</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/ServicePackageImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/ServicePackageImpl.java index f3bc7f0..32d3ffe 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/ServicePackageImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/impl/ServicePackageImpl.java @@ -155,8 +155,8 @@ public class ServicePackageImpl extends EPackageImpl implements ServicePackage { isInited = true; // Initialize simple dependencies - LocationPackage.eINSTANCE.eClass(); StreamPackage.eINSTANCE.eClass(); + LocationPackage.eINSTANCE.eClass(); // Create package meta-data objects theServicePackage.createPackageContents(); @@ -746,7 +746,7 @@ public class ServicePackageImpl extends EPackageImpl implements ServicePackage { // http://www.eclipse.org/emf/2011/Xcore createXcoreAnnotations(); // http://openecomp.org - createEcompAnnotations(); + createOpenecompAnnotations(); // http://openecomp.org/cdap createCdapAnnotations(); } @@ -774,7 +774,7 @@ public class ServicePackageImpl extends EPackageImpl implements ServicePackage { * <!-- end-user-doc --> * @generated */ - protected void createEcompAnnotations() { + protected void createOpenecompAnnotations() { String source = "http://openecomp.org"; addAnnotation (getDcaeServiceInstance_ServiceContainer(), diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/util/ServiceSwitch.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/util/ServiceSwitch.java index 3845664..e9e3675 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/util/ServiceSwitch.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/service/util/ServiceSwitch.java @@ -70,7 +70,7 @@ public class ServiceSwitch<T> extends Switch<T> { * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @parameter ePackage the package in question. + * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusDataRouterNode.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusDataRouterNode.java index eab989b..512cff3 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusDataRouterNode.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusDataRouterNode.java @@ -31,12 +31,12 @@ package org.openecomp.dcae.controller.core.stream; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusDataRouterNode#getDcaeLocationName <em>Dcae Location Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusDataRouterNode#getHostFqdn <em>Host Fqdn</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusDataRouterNode#getVersion <em>Version</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusDataRouterNode() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusEntity.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusEntity.java index 0047458..69933b0 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusEntity.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusEntity.java @@ -33,12 +33,12 @@ import java.util.Date; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusEntity#getStatus <em>Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusEntity#getLastModified <em>Last Modified</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusEntity#getType <em>Type</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusEntity() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusLocation.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusLocation.java index a4aee6b..6fd0826 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusLocation.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusLocation.java @@ -31,10 +31,10 @@ package org.openecomp.dcae.controller.core.stream; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusLocation#getDcaeLayer <em>Dcae Layer</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusLocation() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusMessageRouterCluster.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusMessageRouterCluster.java index d176b17..af5584c 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusMessageRouterCluster.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusMessageRouterCluster.java @@ -32,6 +32,7 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getDcaeLocationName <em>Dcae Location Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getServiceFqdn <em>Service Fqdn</em>}</li> @@ -39,7 +40,6 @@ import org.eclipse.emf.common.util.EList; * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getTopicPort <em>Topic Port</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getTopicProtocol <em>Topic Protocol</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusMessageRouterCluster() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeed.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeed.java index 910a0f8..8a19bf3 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeed.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeed.java @@ -33,6 +33,7 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getFeedName <em>Feed Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getFeedVersion <em>Feed Version</em>}</li> @@ -48,7 +49,6 @@ import org.eclipse.emf.common.util.EList; * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getPublishers <em>Publishers</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getSubscribers <em>Subscribers</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusStreamFeed() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedPublisher.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedPublisher.java index 9513cfc..3007d91 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedPublisher.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedPublisher.java @@ -32,6 +32,7 @@ import org.openecomp.ncomp.core.NamedEntity; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getLocalStreamId <em>Local Stream Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getDcaeLocationName <em>Dcae Location Name</em>}</li> @@ -41,7 +42,6 @@ import org.openecomp.ncomp.core.NamedEntity; * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getUsername <em>Username</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getUserpwd <em>Userpwd</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusStreamFeedPublisher() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedSubscriber.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedSubscriber.java index b9b37d1..1e3822b 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedSubscriber.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamFeedSubscriber.java @@ -32,6 +32,7 @@ import org.openecomp.ncomp.core.NamedEntity; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getLocalStreamId <em>Local Stream Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getDcaeLocationName <em>Dcae Location Name</em>}</li> @@ -46,7 +47,6 @@ import org.openecomp.ncomp.core.NamedEntity; * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getUserpwd <em>Userpwd</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getDeliveryURL <em>Delivery URL</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusStreamFeedSubscriber() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopic.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopic.java index 7fab2f2..8e5aae8 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopic.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopic.java @@ -34,6 +34,7 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getTopicName <em>Topic Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getTopicDescription <em>Topic Description</em>}</li> @@ -47,8 +48,9 @@ import org.eclipse.emf.common.util.EList; * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getPublishURL <em>Publish URL</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getSubscribeURL <em>Subscribe URL</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getAuthenticationMethod <em>Authentication Method</em>}</li> + * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getReplicationCase <em>Replication Case</em>}</li> + * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getGlobalMrURL <em>Global Mr URL</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusStreamTopic() * @model @@ -360,4 +362,56 @@ public interface DatabusStreamTopic extends DatabusStream { * @generated */ void setAuthenticationMethod(StreamAuthentication value); + + /** + * Returns the value of the '<em><b>Replication Case</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Replication Case</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Replication Case</em>' attribute. + * @see #setReplicationCase(String) + * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusStreamTopic_ReplicationCase() + * @model unique="false" + * @generated + */ + String getReplicationCase(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getReplicationCase <em>Replication Case</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Replication Case</em>' attribute. + * @see #getReplicationCase() + * @generated + */ + void setReplicationCase(String value); + + /** + * Returns the value of the '<em><b>Global Mr URL</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Global Mr URL</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Global Mr URL</em>' attribute. + * @see #setGlobalMrURL(String) + * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusStreamTopic_GlobalMrURL() + * @model unique="false" + * @generated + */ + String getGlobalMrURL(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getGlobalMrURL <em>Global Mr URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Global Mr URL</em>' attribute. + * @see #getGlobalMrURL() + * @generated + */ + void setGlobalMrURL(String value); } // DatabusStreamTopic diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicAction.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicAction.java index 313e19e..dcfcf9a 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicAction.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicAction.java @@ -139,6 +139,8 @@ public enum DatabusStreamTopicAction implements Enumerator { * Returns the '<em><b>Databus Stream Topic Action</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param literal the literal. + * @return the matching enumerator or <code>null</code>. * @generated */ public static DatabusStreamTopicAction get(String literal) { @@ -155,6 +157,8 @@ public enum DatabusStreamTopicAction implements Enumerator { * Returns the '<em><b>Databus Stream Topic Action</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param name the name. + * @return the matching enumerator or <code>null</code>. * @generated */ public static DatabusStreamTopicAction getByName(String name) { @@ -171,6 +175,8 @@ public enum DatabusStreamTopicAction implements Enumerator { * Returns the '<em><b>Databus Stream Topic Action</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param value the integer value. + * @return the matching enumerator or <code>null</code>. * @generated */ public static DatabusStreamTopicAction get(int value) { diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicClient.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicClient.java index 21b7e59..dac5c3e 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicClient.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DatabusStreamTopicClient.java @@ -32,6 +32,7 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getLocalStreamId <em>Local Stream Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getDcaeLocationName <em>Dcae Location Name</em>}</li> @@ -43,7 +44,6 @@ import org.eclipse.emf.common.util.EList; * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getMrClientId <em>Mr Client Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getTopicURL <em>Topic URL</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDatabusStreamTopicClient() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamDefinition.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamDefinition.java index 24e4702..3cd2e78 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamDefinition.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamDefinition.java @@ -33,13 +33,13 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getStreamType <em>Stream Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getDatabusType <em>Databus Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getPublishers <em>Publishers</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getSubscribers <em>Subscribers</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDcaeStreamDefinition() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamExternalEndPoint.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamExternalEndPoint.java index b8e9ab3..d93ae4b 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamExternalEndPoint.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamExternalEndPoint.java @@ -32,12 +32,12 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamExternalEndPoint#getUser <em>User</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamExternalEndPoint#getPassword <em>Password</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamExternalEndPoint#getUrl <em>Url</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDcaeStreamExternalEndPoint() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamInternalEndPoint.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamInternalEndPoint.java index 0fc65fe..70d40f3 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamInternalEndPoint.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DcaeStreamInternalEndPoint.java @@ -32,11 +32,11 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamInternalEndPoint#getLocalName <em>Local Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DcaeStreamInternalEndPoint#getServiceName <em>Service Name</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDcaeStreamInternalEndPoint() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DmaapStream.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DmaapStream.java index b0e9b89..a5656ed 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DmaapStream.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/DmaapStream.java @@ -31,6 +31,7 @@ package org.openecomp.dcae.controller.core.stream; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapDataType <em>Dmaap Data Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapAction <em>Dmaap Action</em>}</li> @@ -39,7 +40,6 @@ package org.openecomp.dcae.controller.core.stream; * <li>{@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapPassword <em>Dmaap Password</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapAuthMethod <em>Dmaap Auth Method</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.core.stream.StreamPackage#getDmaapStream() * @model diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamAuthentication.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamAuthentication.java index 597fbc9..3f52f8a 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamAuthentication.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamAuthentication.java @@ -139,6 +139,8 @@ public enum StreamAuthentication implements Enumerator { * Returns the '<em><b>Authentication</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param literal the literal. + * @return the matching enumerator or <code>null</code>. * @generated */ public static StreamAuthentication get(String literal) { @@ -155,6 +157,8 @@ public enum StreamAuthentication implements Enumerator { * Returns the '<em><b>Authentication</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param name the name. + * @return the matching enumerator or <code>null</code>. * @generated */ public static StreamAuthentication getByName(String name) { @@ -171,6 +175,8 @@ public enum StreamAuthentication implements Enumerator { * Returns the '<em><b>Authentication</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param value the integer value. + * @return the matching enumerator or <code>null</code>. * @generated */ public static StreamAuthentication get(int value) { diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamPackage.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamPackage.java index efeb246..b9eb6b7 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamPackage.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/StreamPackage.java @@ -43,6 +43,24 @@ import org.eclipse.emf.ecore.EReference; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * - + * ============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============================================ + * <!-- end-model-doc --> * @see org.openecomp.dcae.controller.core.stream.StreamFactory * @model kind="package" * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-core-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.core'" @@ -1162,13 +1180,31 @@ public interface StreamPackage extends EPackage { int DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD = DATABUS_STREAM_FEATURE_COUNT + 11; /** + * The feature id for the '<em><b>Replication Case</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DATABUS_STREAM_TOPIC__REPLICATION_CASE = DATABUS_STREAM_FEATURE_COUNT + 12; + + /** + * The feature id for the '<em><b>Global Mr URL</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DATABUS_STREAM_TOPIC__GLOBAL_MR_URL = DATABUS_STREAM_FEATURE_COUNT + 13; + + /** * The number of structural features of the '<em>Databus Stream Topic</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ - int DATABUS_STREAM_TOPIC_FEATURE_COUNT = DATABUS_STREAM_FEATURE_COUNT + 12; + int DATABUS_STREAM_TOPIC_FEATURE_COUNT = DATABUS_STREAM_FEATURE_COUNT + 14; /** * The number of operations of the '<em>Databus Stream Topic</em>' class. @@ -2701,6 +2737,28 @@ public interface StreamPackage extends EPackage { EAttribute getDatabusStreamTopic_AuthenticationMethod(); /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getReplicationCase <em>Replication Case</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Replication Case</em>'. + * @see org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getReplicationCase() + * @see #getDatabusStreamTopic() + * @generated + */ + EAttribute getDatabusStreamTopic_ReplicationCase(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getGlobalMrURL <em>Global Mr URL</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Global Mr URL</em>'. + * @see org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getGlobalMrURL() + * @see #getDatabusStreamTopic() + * @generated + */ + EAttribute getDatabusStreamTopic_GlobalMrURL(); + + /** * Returns the meta object for class '{@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient <em>Databus Stream Topic Client</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -3713,6 +3771,20 @@ public interface StreamPackage extends EPackage { */ EAttribute DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD = eINSTANCE.getDatabusStreamTopic_AuthenticationMethod(); /** + * The meta object literal for the '<em><b>Replication Case</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DATABUS_STREAM_TOPIC__REPLICATION_CASE = eINSTANCE.getDatabusStreamTopic_ReplicationCase(); + /** + * The meta object literal for the '<em><b>Global Mr URL</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DATABUS_STREAM_TOPIC__GLOBAL_MR_URL = eINSTANCE.getDatabusStreamTopic_GlobalMrURL(); + /** * The meta object literal for the '{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl <em>Databus Stream Topic Client</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusDataRouterNodeImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusDataRouterNodeImpl.java index 605ad95..61bb28d 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusDataRouterNodeImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusDataRouterNodeImpl.java @@ -35,12 +35,12 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusDataRouterNodeImpl#getDcaeLocationName <em>Dcae Location Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusDataRouterNodeImpl#getHostFqdn <em>Host Fqdn</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusDataRouterNodeImpl#getVersion <em>Version</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusEntityImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusEntityImpl.java index e4b8a36..784988c 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusEntityImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusEntityImpl.java @@ -41,12 +41,12 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusEntityImpl#getStatus <em>Status</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusEntityImpl#getLastModified <em>Last Modified</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusEntityImpl#getType <em>Type</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java index 7699732..7b8ddc8 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusLocationImpl.java @@ -35,10 +35,10 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusLocationImpl#getDcaeLayer <em>Dcae Layer</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusMessageRouterClusterImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusMessageRouterClusterImpl.java index 958e545..ea94700 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusMessageRouterClusterImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusMessageRouterClusterImpl.java @@ -38,6 +38,7 @@ import org.eclipse.emf.ecore.util.EDataTypeEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getDcaeLocationName <em>Dcae Location Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getServiceFqdn <em>Service Fqdn</em>}</li> @@ -45,7 +46,6 @@ import org.eclipse.emf.ecore.util.EDataTypeEList; * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getTopicPort <em>Topic Port</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getTopicProtocol <em>Topic Protocol</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedImpl.java index 7bc9a2d..95200a0 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedImpl.java @@ -44,6 +44,7 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getFeedName <em>Feed Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getFeedVersion <em>Feed Version</em>}</li> @@ -59,7 +60,6 @@ import org.eclipse.emf.ecore.util.InternalEList; * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getPublishers <em>Publishers</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getSubscribers <em>Subscribers</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedPublisherImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedPublisherImpl.java index bf33b26..7cbb315 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedPublisherImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedPublisherImpl.java @@ -36,6 +36,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getLocalStreamId <em>Local Stream Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getDcaeLocationName <em>Dcae Location Name</em>}</li> @@ -45,7 +46,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getUsername <em>Username</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getUserpwd <em>Userpwd</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedSubscriberImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedSubscriberImpl.java index ea2427b..69ce43f 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedSubscriberImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamFeedSubscriberImpl.java @@ -36,6 +36,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getLocalStreamId <em>Local Stream Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getDcaeLocationName <em>Dcae Location Name</em>}</li> @@ -50,7 +51,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getUserpwd <em>Userpwd</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getDeliveryURL <em>Delivery URL</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamImpl.java index 40a142a..c6580ca 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamImpl.java @@ -34,8 +34,6 @@ import org.eclipse.emf.ecore.EClass; * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Databus Stream</b></em>'. * <!-- end-user-doc --> - * <p> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicClientImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicClientImpl.java index b412b3e..86457ed 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicClientImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicClientImpl.java @@ -45,6 +45,7 @@ import org.eclipse.emf.ecore.util.EDataTypeEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getLocalStreamId <em>Local Stream Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getDcaeLocationName <em>Dcae Location Name</em>}</li> @@ -56,7 +57,6 @@ import org.eclipse.emf.ecore.util.EDataTypeEList; * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getMrClientId <em>Mr Client Id</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getTopicURL <em>Topic URL</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicImpl.java index a5a3fb8..c3518d7 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DatabusStreamTopicImpl.java @@ -45,6 +45,7 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getTopicName <em>Topic Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getTopicDescription <em>Topic Description</em>}</li> @@ -58,8 +59,9 @@ import org.eclipse.emf.ecore.util.InternalEList; * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getPublishURL <em>Publish URL</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getSubscribeURL <em>Subscribe URL</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getAuthenticationMethod <em>Authentication Method</em>}</li> + * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getReplicationCase <em>Replication Case</em>}</li> + * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getGlobalMrURL <em>Global Mr URL</em>}</li> * </ul> - * </p> * * @generated */ @@ -276,6 +278,43 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus protected StreamAuthentication authenticationMethod = AUTHENTICATION_METHOD_EDEFAULT; /** + * The default value of the '{@link #getReplicationCase() <em>Replication Case</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getReplicationCase() + * @generated + * @ordered + */ + protected static final String REPLICATION_CASE_EDEFAULT = null; + /** + * The cached value of the '{@link #getReplicationCase() <em>Replication Case</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getReplicationCase() + * @generated + * @ordered + */ + protected String replicationCase = REPLICATION_CASE_EDEFAULT; + /** + * The default value of the '{@link #getGlobalMrURL() <em>Global Mr URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGlobalMrURL() + * @generated + * @ordered + */ + protected static final String GLOBAL_MR_URL_EDEFAULT = null; + /** + * The cached value of the '{@link #getGlobalMrURL() <em>Global Mr URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGlobalMrURL() + * @generated + * @ordered + */ + protected String globalMrURL = GLOBAL_MR_URL_EDEFAULT; + + /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated @@ -542,6 +581,48 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus * <!-- end-user-doc --> * @generated */ + public String getReplicationCase() { + return replicationCase; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setReplicationCase(String newReplicationCase) { + String oldReplicationCase = replicationCase; + replicationCase = newReplicationCase; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StreamPackage.DATABUS_STREAM_TOPIC__REPLICATION_CASE, oldReplicationCase, replicationCase)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getGlobalMrURL() { + return globalMrURL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setGlobalMrURL(String newGlobalMrURL) { + String oldGlobalMrURL = globalMrURL; + globalMrURL = newGlobalMrURL; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StreamPackage.DATABUS_STREAM_TOPIC__GLOBAL_MR_URL, oldGlobalMrURL, globalMrURL)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { @@ -583,6 +664,10 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus return getSubscribeURL(); case StreamPackage.DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD: return getAuthenticationMethod(); + case StreamPackage.DATABUS_STREAM_TOPIC__REPLICATION_CASE: + return getReplicationCase(); + case StreamPackage.DATABUS_STREAM_TOPIC__GLOBAL_MR_URL: + return getGlobalMrURL(); } return super.eGet(featureID, resolve, coreType); } @@ -633,6 +718,12 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus case StreamPackage.DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD: setAuthenticationMethod((StreamAuthentication)newValue); return; + case StreamPackage.DATABUS_STREAM_TOPIC__REPLICATION_CASE: + setReplicationCase((String)newValue); + return; + case StreamPackage.DATABUS_STREAM_TOPIC__GLOBAL_MR_URL: + setGlobalMrURL((String)newValue); + return; } super.eSet(featureID, newValue); } @@ -681,6 +772,12 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus case StreamPackage.DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD: setAuthenticationMethod(AUTHENTICATION_METHOD_EDEFAULT); return; + case StreamPackage.DATABUS_STREAM_TOPIC__REPLICATION_CASE: + setReplicationCase(REPLICATION_CASE_EDEFAULT); + return; + case StreamPackage.DATABUS_STREAM_TOPIC__GLOBAL_MR_URL: + setGlobalMrURL(GLOBAL_MR_URL_EDEFAULT); + return; } super.eUnset(featureID); } @@ -717,6 +814,10 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus return SUBSCRIBE_URL_EDEFAULT == null ? subscribeURL != null : !SUBSCRIBE_URL_EDEFAULT.equals(subscribeURL); case StreamPackage.DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD: return authenticationMethod != AUTHENTICATION_METHOD_EDEFAULT; + case StreamPackage.DATABUS_STREAM_TOPIC__REPLICATION_CASE: + return REPLICATION_CASE_EDEFAULT == null ? replicationCase != null : !REPLICATION_CASE_EDEFAULT.equals(replicationCase); + case StreamPackage.DATABUS_STREAM_TOPIC__GLOBAL_MR_URL: + return GLOBAL_MR_URL_EDEFAULT == null ? globalMrURL != null : !GLOBAL_MR_URL_EDEFAULT.equals(globalMrURL); } return super.eIsSet(featureID); } @@ -753,6 +854,10 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus result.append(subscribeURL); result.append(", authenticationMethod: "); result.append(authenticationMethod); + result.append(", replicationCase: "); + result.append(replicationCase); + result.append(", globalMrURL: "); + result.append(globalMrURL); result.append(')'); return result.toString(); } diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamDefinitionImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamDefinitionImpl.java index 39e69f2..e967a0a 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamDefinitionImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamDefinitionImpl.java @@ -50,13 +50,13 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getStreamType <em>Stream Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getDatabusType <em>Databus Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getPublishers <em>Publishers</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getSubscribers <em>Subscribers</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamExternalEndPointImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamExternalEndPointImpl.java index 41eb02d..26d44a2 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamExternalEndPointImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamExternalEndPointImpl.java @@ -39,12 +39,12 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamExternalEndPointImpl#getUser <em>User</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamExternalEndPointImpl#getPassword <em>Password</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamExternalEndPointImpl#getUrl <em>Url</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamImpl.java index 69a342d..1bc3e60 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamImpl.java @@ -34,8 +34,6 @@ import org.eclipse.emf.ecore.EClass; * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Dcae Stream</b></em>'. * <!-- end-user-doc --> - * <p> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamInternalEndPointImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamInternalEndPointImpl.java index 4286bab..dcf1484 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamInternalEndPointImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamInternalEndPointImpl.java @@ -39,11 +39,11 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamInternalEndPointImpl#getLocalName <em>Local Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamInternalEndPointImpl#getServiceName <em>Service Name</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherExternalImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherExternalImpl.java index eccb2f7..8c8f104 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherExternalImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherExternalImpl.java @@ -39,12 +39,12 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherExternalImpl#getUser <em>User</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherExternalImpl#getPassword <em>Password</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherExternalImpl#getUrl <em>Url</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherImpl.java index bbcaf85..e888121 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherImpl.java @@ -34,8 +34,6 @@ import org.eclipse.emf.ecore.EClass; * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Dcae Stream Publisher</b></em>'. * <!-- end-user-doc --> - * <p> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherInternalImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherInternalImpl.java index 480d1d3..bb24b6b 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherInternalImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamPublisherInternalImpl.java @@ -39,11 +39,11 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherInternalImpl#getLocalName <em>Local Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherInternalImpl#getServiceName <em>Service Name</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberExternalImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberExternalImpl.java index 130a016..8728deb 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberExternalImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberExternalImpl.java @@ -37,12 +37,12 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberExternalImpl#getUser <em>User</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberExternalImpl#getPassword <em>Password</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberExternalImpl#getUrl <em>Url</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberImpl.java index b136cfd..e068e6c 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberImpl.java @@ -32,8 +32,6 @@ import org.eclipse.emf.ecore.EClass; * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Dcae Stream Subscriber</b></em>'. * <!-- end-user-doc --> - * <p> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java index 075fa66..6de780a 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DcaeStreamSubscriberInternalImpl.java @@ -37,11 +37,11 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberInternalImpl#getLocalName <em>Local Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberInternalImpl#getServiceName <em>Service Name</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DmaapStreamImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DmaapStreamImpl.java index a365d18..4400220 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DmaapStreamImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/DmaapStreamImpl.java @@ -38,6 +38,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapDataType <em>Dmaap Data Type</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapAction <em>Dmaap Action</em>}</li> @@ -46,7 +47,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapPassword <em>Dmaap Password</em>}</li> * <li>{@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapAuthMethod <em>Dmaap Auth Method</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/StreamPackageImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/StreamPackageImpl.java index a3e6ef7..23ba317 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/StreamPackageImpl.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/impl/StreamPackageImpl.java @@ -657,6 +657,24 @@ public class StreamPackageImpl extends EPackageImpl implements StreamPackage { * <!-- end-user-doc --> * @generated */ + public EAttribute getDatabusStreamTopic_ReplicationCase() { + return (EAttribute)databusStreamTopicEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDatabusStreamTopic_GlobalMrURL() { + return (EAttribute)databusStreamTopicEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public EClass getDatabusStreamTopicClient() { return databusStreamTopicClientEClass; } @@ -1299,6 +1317,8 @@ public class StreamPackageImpl extends EPackageImpl implements StreamPackage { createEAttribute(databusStreamTopicEClass, DATABUS_STREAM_TOPIC__PUBLISH_URL); createEAttribute(databusStreamTopicEClass, DATABUS_STREAM_TOPIC__SUBSCRIBE_URL); createEAttribute(databusStreamTopicEClass, DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD); + createEAttribute(databusStreamTopicEClass, DATABUS_STREAM_TOPIC__REPLICATION_CASE); + createEAttribute(databusStreamTopicEClass, DATABUS_STREAM_TOPIC__GLOBAL_MR_URL); databusStreamTopicClientEClass = createEClass(DATABUS_STREAM_TOPIC_CLIENT); createEAttribute(databusStreamTopicClientEClass, DATABUS_STREAM_TOPIC_CLIENT__LOCAL_STREAM_ID); @@ -1483,6 +1503,8 @@ public class StreamPackageImpl extends EPackageImpl implements StreamPackage { initEAttribute(getDatabusStreamTopic_PublishURL(), theEcorePackage.getEString(), "publishURL", null, 0, 1, DatabusStreamTopic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDatabusStreamTopic_SubscribeURL(), theEcorePackage.getEString(), "subscribeURL", null, 0, 1, DatabusStreamTopic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDatabusStreamTopic_AuthenticationMethod(), this.getStreamAuthentication(), "authenticationMethod", null, 0, 1, DatabusStreamTopic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDatabusStreamTopic_ReplicationCase(), theEcorePackage.getEString(), "replicationCase", null, 0, 1, DatabusStreamTopic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDatabusStreamTopic_GlobalMrURL(), theEcorePackage.getEString(), "globalMrURL", null, 0, 1, DatabusStreamTopic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(databusStreamTopicClientEClass, DatabusStreamTopicClient.class, "DatabusStreamTopicClient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDatabusStreamTopicClient_LocalStreamId(), theEcorePackage.getEString(), "localStreamId", null, 0, 1, DatabusStreamTopicClient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/util/StreamSwitch.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/util/StreamSwitch.java index 4305d88..0ed47dd 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/util/StreamSwitch.java +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/core/stream/util/StreamSwitch.java @@ -70,7 +70,7 @@ public class StreamSwitch<T> extends Switch<T> { * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @parameter ePackage the package in question. + * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/ApiResponseMessage.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/ApiResponseMessage.java new file mode 100644 index 0000000..a861f36 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/ApiResponseMessage.java @@ -0,0 +1,104 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Api Response Message</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getCode <em>Code</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getMessage <em>Message</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getApiResponseMessage() + * @model + * @generated + */ +public interface ApiResponseMessage extends EObject { + /** + * Returns the value of the '<em><b>Code</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Code</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Code</em>' attribute. + * @see #setCode(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getApiResponseMessage_Code() + * @model unique="false" + * @generated + */ + Integer getCode(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getCode <em>Code</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Code</em>' attribute. + * @see #getCode() + * @generated + */ + void setCode(Integer value); + + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' attribute. + * @see #setType(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getApiResponseMessage_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getType <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the '<em><b>Message</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Message</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Message</em>' attribute. + * @see #setMessage(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getApiResponseMessage_Message() + * @model unique="false" + * @generated + */ + String getMessage(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getMessage <em>Message</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Message</em>' attribute. + * @see #getMessage() + * @generated + */ + void setMessage(String value); + +} // ApiResponseMessage diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEService.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEService.java new file mode 100644 index 0000000..3974ef0 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEService.java @@ -0,0 +1,308 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import java.util.Date; + +import org.eclipse.emf.common.util.EList; +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getServiceId <em>Service Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getSelfLink <em>Self Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getCreated1 <em>Created1</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getModified <em>Modified</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getTypeLink <em>Type Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfId <em>Vnf Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLink <em>Vnf Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfType <em>Vnf Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLocation <em>Vnf Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getDeploymentRef <em>Deployment Ref</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEService#getComponents <em>Components</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService() + * @model + * @generated + */ +public interface DCAEService extends NamedEntity { + /** + * Returns the value of the '<em><b>Service Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Service Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Service Id</em>' attribute. + * @see #setServiceId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_ServiceId() + * @model unique="false" + * @generated + */ + String getServiceId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getServiceId <em>Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Service Id</em>' attribute. + * @see #getServiceId() + * @generated + */ + void setServiceId(String value); + + /** + * Returns the value of the '<em><b>Self Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Link.title is serviceId + * <!-- end-model-doc --> + * @return the value of the '<em>Self Link</em>' containment reference. + * @see #setSelfLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_SelfLink() + * @model containment="true" + * @generated + */ + Link getSelfLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getSelfLink <em>Self Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Self Link</em>' containment reference. + * @see #getSelfLink() + * @generated + */ + void setSelfLink(Link value); + + /** + * Returns the value of the '<em><b>Created1</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Created1</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Created1</em>' attribute. + * @see #setCreated1(Date) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_Created1() + * @model unique="false" + * @generated + */ + Date getCreated1(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getCreated1 <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Created1</em>' attribute. + * @see #getCreated1() + * @generated + */ + void setCreated1(Date value); + + /** + * Returns the value of the '<em><b>Modified</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Modified</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Modified</em>' attribute. + * @see #setModified(Date) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_Modified() + * @model unique="false" + * @generated + */ + Date getModified(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getModified <em>Modified</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Modified</em>' attribute. + * @see #getModified() + * @generated + */ + void setModified(Date value); + + /** + * Returns the value of the '<em><b>Type Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Link.title is typeId + * <!-- end-model-doc --> + * @return the value of the '<em>Type Link</em>' containment reference. + * @see #setTypeLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_TypeLink() + * @model containment="true" + * @generated + */ + Link getTypeLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getTypeLink <em>Type Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type Link</em>' containment reference. + * @see #getTypeLink() + * @generated + */ + void setTypeLink(Link value); + + /** + * Returns the value of the '<em><b>Vnf Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vnf Id</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vnf Id</em>' attribute. + * @see #setVnfId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_VnfId() + * @model unique="false" + * @generated + */ + String getVnfId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfId <em>Vnf Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnf Id</em>' attribute. + * @see #getVnfId() + * @generated + */ + void setVnfId(String value); + + /** + * Returns the value of the '<em><b>Vnf Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Link.title is vnfId + * <!-- end-model-doc --> + * @return the value of the '<em>Vnf Link</em>' containment reference. + * @see #setVnfLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_VnfLink() + * @model containment="true" + * @generated + */ + Link getVnfLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLink <em>Vnf Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnf Link</em>' containment reference. + * @see #getVnfLink() + * @generated + */ + void setVnfLink(Link value); + + /** + * Returns the value of the '<em><b>Vnf Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vnf Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vnf Type</em>' attribute. + * @see #setVnfType(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_VnfType() + * @model unique="false" + * @generated + */ + String getVnfType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfType <em>Vnf Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnf Type</em>' attribute. + * @see #getVnfType() + * @generated + */ + void setVnfType(String value); + + /** + * Returns the value of the '<em><b>Vnf Location</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Location information of the associated VNF + * <!-- end-model-doc --> + * @return the value of the '<em>Vnf Location</em>' attribute. + * @see #setVnfLocation(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_VnfLocation() + * @model unique="false" + * @generated + */ + String getVnfLocation(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLocation <em>Vnf Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnf Location</em>' attribute. + * @see #getVnfLocation() + * @generated + */ + void setVnfLocation(String value); + + /** + * Returns the value of the '<em><b>Deployment Ref</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Reference to a Cloudify deployment + * <!-- end-model-doc --> + * @return the value of the '<em>Deployment Ref</em>' attribute. + * @see #setDeploymentRef(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_DeploymentRef() + * @model unique="false" + * @generated + */ + String getDeploymentRef(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEService#getDeploymentRef <em>Deployment Ref</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Deployment Ref</em>' attribute. + * @see #getDeploymentRef() + * @generated + */ + void setDeploymentRef(String value); + + /** + * Returns the value of the '<em><b>Components</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Components</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Components</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_Components() + * @model containment="true" + * @generated + */ + EList<DCAEServiceComponent> getComponents(); + +} // DCAEService diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponent.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponent.java new file mode 100644 index 0000000..c912313 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponent.java @@ -0,0 +1,262 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import java.util.Date; +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service Component</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentId <em>Component Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentLink <em>Component Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getCreated1 <em>Created1</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getModified <em>Modified</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentType <em>Component Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentSource <em>Component Source</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getLocation <em>Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getShareable <em>Shareable</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent() + * @model + * @generated + */ +public interface DCAEServiceComponent extends NamedEntity { + /** + * Returns the value of the '<em><b>Component Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * The id format is unique to the source + * <!-- end-model-doc --> + * @return the value of the '<em>Component Id</em>' attribute. + * @see #setComponentId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_ComponentId() + * @model unique="false" + * @generated + */ + String getComponentId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentId <em>Component Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component Id</em>' attribute. + * @see #getComponentId() + * @generated + */ + void setComponentId(String value); + + /** + * Returns the value of the '<em><b>Component Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Link to the underlying resource of this component + * <!-- end-model-doc --> + * @return the value of the '<em>Component Link</em>' containment reference. + * @see #setComponentLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_ComponentLink() + * @model containment="true" + * @generated + */ + Link getComponentLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentLink <em>Component Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component Link</em>' containment reference. + * @see #getComponentLink() + * @generated + */ + void setComponentLink(Link value); + + /** + * Returns the value of the '<em><b>Created1</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Created1</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Created1</em>' attribute. + * @see #setCreated1(Date) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_Created1() + * @model unique="false" + * @generated + */ + Date getCreated1(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getCreated1 <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Created1</em>' attribute. + * @see #getCreated1() + * @generated + */ + void setCreated1(Date value); + + /** + * Returns the value of the '<em><b>Modified</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Modified</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Modified</em>' attribute. + * @see #setModified(Date) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_Modified() + * @model unique="false" + * @generated + */ + Date getModified(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getModified <em>Modified</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Modified</em>' attribute. + * @see #getModified() + * @generated + */ + void setModified(Date value); + + /** + * Returns the value of the '<em><b>Component Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Component Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Component Type</em>' attribute. + * @see #setComponentType(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_ComponentType() + * @model unique="false" + * @generated + */ + String getComponentType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentType <em>Component Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component Type</em>' attribute. + * @see #getComponentType() + * @generated + */ + void setComponentType(String value); + + /** + * Returns the value of the '<em><b>Component Source</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Specifies the name of the underying source service that is responsible for this components + * <!-- end-model-doc --> + * @return the value of the '<em>Component Source</em>' attribute. + * @see #setComponentSource(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_ComponentSource() + * @model unique="false" + * @generated + */ + String getComponentSource(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentSource <em>Component Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component Source</em>' attribute. + * @see #getComponentSource() + * @generated + */ + void setComponentSource(String value); + + /** + * Returns the value of the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Status</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Status</em>' attribute. + * @see #setStatus(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_Status() + * @model unique="false" + * @generated + */ + String getStatus(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getStatus <em>Status</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Status</em>' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the '<em><b>Location</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Location information of the component + * <!-- end-model-doc --> + * @return the value of the '<em>Location</em>' attribute. + * @see #setLocation(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_Location() + * @model unique="false" + * @generated + */ + String getLocation(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getLocation <em>Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Location</em>' attribute. + * @see #getLocation() + * @generated + */ + void setLocation(String value); + + /** + * Returns the value of the '<em><b>Shareable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Used to determine if this component can be shared amongst different DCAE services + * <!-- end-model-doc --> + * @return the value of the '<em>Shareable</em>' attribute. + * @see #setShareable(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent_Shareable() + * @model unique="false" + * @generated + */ + Integer getShareable(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getShareable <em>Shareable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Shareable</em>' attribute. + * @see #getShareable() + * @generated + */ + void setShareable(Integer value); + +} // DCAEServiceComponent diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponentRequest.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponentRequest.java new file mode 100644 index 0000000..f2e99ce --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponentRequest.java @@ -0,0 +1,128 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service Component Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentId <em>Component Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentType <em>Component Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentSource <em>Component Source</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getShareable <em>Shareable</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponentRequest() + * @model + * @generated + */ +public interface DCAEServiceComponentRequest extends EObject { + /** + * Returns the value of the '<em><b>Component Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * The id format is unique to the source + * <!-- end-model-doc --> + * @return the value of the '<em>Component Id</em>' attribute. + * @see #setComponentId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponentRequest_ComponentId() + * @model unique="false" + * @generated + */ + String getComponentId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentId <em>Component Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component Id</em>' attribute. + * @see #getComponentId() + * @generated + */ + void setComponentId(String value); + + /** + * Returns the value of the '<em><b>Component Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Component Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Component Type</em>' attribute. + * @see #setComponentType(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponentRequest_ComponentType() + * @model unique="false" + * @generated + */ + String getComponentType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentType <em>Component Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component Type</em>' attribute. + * @see #getComponentType() + * @generated + */ + void setComponentType(String value); + + /** + * Returns the value of the '<em><b>Component Source</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Specifies the name of the underying source service that is responsible for this components + * <!-- end-model-doc --> + * @return the value of the '<em>Component Source</em>' attribute. + * @see #setComponentSource(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponentRequest_ComponentSource() + * @model unique="false" + * @generated + */ + String getComponentSource(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentSource <em>Component Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Component Source</em>' attribute. + * @see #getComponentSource() + * @generated + */ + void setComponentSource(String value); + + /** + * Returns the value of the '<em><b>Shareable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Used to determine if this component can be shared amongst different DCAE services + * <!-- end-model-doc --> + * @return the value of the '<em>Shareable</em>' attribute. + * @see #setShareable(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponentRequest_Shareable() + * @model unique="false" + * @generated + */ + Integer getShareable(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getShareable <em>Shareable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Shareable</em>' attribute. + * @see #getShareable() + * @generated + */ + void setShareable(Integer value); + +} // DCAEServiceComponentRequest diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResults.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResults.java new file mode 100644 index 0000000..de31e7c --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResults.java @@ -0,0 +1,68 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service Group By Results</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyName <em>Property Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyValues <em>Property Values</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResults() + * @model + * @generated + */ +public interface DCAEServiceGroupByResults extends EObject { + /** + * Returns the value of the '<em><b>Property Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Property name of DCAE service that the group by operation was performed on + * <!-- end-model-doc --> + * @return the value of the '<em>Property Name</em>' attribute. + * @see #setPropertyName(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResults_PropertyName() + * @model unique="false" + * @generated + */ + String getPropertyName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyName <em>Property Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Property Name</em>' attribute. + * @see #getPropertyName() + * @generated + */ + void setPropertyName(String value); + + /** + * Returns the value of the '<em><b>Property Values</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Property Values</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Property Values</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResults_PropertyValues() + * @model containment="true" + * @generated + */ + EList<DCAEServiceGroupByResultsPropertyValues> getPropertyValues(); + +} // DCAEServiceGroupByResults diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResultsPropertyValues.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResultsPropertyValues.java new file mode 100644 index 0000000..b6076df --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResultsPropertyValues.java @@ -0,0 +1,103 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service Group By Results Property Values</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getCount <em>Count</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getPropertyValue <em>Property Value</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getDcaeServiceQueryLink <em>Dcae Service Query Link</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResultsPropertyValues() + * @model + * @generated + */ +public interface DCAEServiceGroupByResultsPropertyValues extends EObject { + /** + * Returns the value of the '<em><b>Count</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Count</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Count</em>' attribute. + * @see #setCount(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResultsPropertyValues_Count() + * @model unique="false" + * @generated + */ + Integer getCount(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getCount <em>Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Count</em>' attribute. + * @see #getCount() + * @generated + */ + void setCount(Integer value); + + /** + * Returns the value of the '<em><b>Property Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Property Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Property Value</em>' attribute. + * @see #setPropertyValue(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResultsPropertyValues_PropertyValue() + * @model unique="false" + * @generated + */ + String getPropertyValue(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getPropertyValue <em>Property Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Property Value</em>' attribute. + * @see #getPropertyValue() + * @generated + */ + void setPropertyValue(String value); + + /** + * Returns the value of the '<em><b>Dcae Service Query Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Link.title is the DCAE service property value. Following this link will provide a list of DCAE services that all have this property value. + * <!-- end-model-doc --> + * @return the value of the '<em>Dcae Service Query Link</em>' containment reference. + * @see #setDcaeServiceQueryLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResultsPropertyValues_DcaeServiceQueryLink() + * @model containment="true" + * @generated + */ + Link getDcaeServiceQueryLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getDcaeServiceQueryLink <em>Dcae Service Query Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Dcae Service Query Link</em>' containment reference. + * @see #getDcaeServiceQueryLink() + * @generated + */ + void setDcaeServiceQueryLink(Link value); + +} // DCAEServiceGroupByResultsPropertyValues diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceRequest.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceRequest.java new file mode 100644 index 0000000..fbed601 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceRequest.java @@ -0,0 +1,171 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getTypeId <em>Type Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfId <em>Vnf Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfType <em>Vnf Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfLocation <em>Vnf Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getDeploymentRef <em>Deployment Ref</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getComponents <em>Components</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest() + * @model + * @generated + */ +public interface DCAEServiceRequest extends EObject { + /** + * Returns the value of the '<em><b>Type Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Id of the associated DCAE service type + * <!-- end-model-doc --> + * @return the value of the '<em>Type Id</em>' attribute. + * @see #setTypeId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest_TypeId() + * @model unique="false" + * @generated + */ + String getTypeId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getTypeId <em>Type Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type Id</em>' attribute. + * @see #getTypeId() + * @generated + */ + void setTypeId(String value); + + /** + * Returns the value of the '<em><b>Vnf Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Id of the associated VNF that this service is monitoring + * <!-- end-model-doc --> + * @return the value of the '<em>Vnf Id</em>' attribute. + * @see #setVnfId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest_VnfId() + * @model unique="false" + * @generated + */ + String getVnfId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfId <em>Vnf Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnf Id</em>' attribute. + * @see #getVnfId() + * @generated + */ + void setVnfId(String value); + + /** + * Returns the value of the '<em><b>Vnf Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * The type of the associated VNF that this service is monitoring + * <!-- end-model-doc --> + * @return the value of the '<em>Vnf Type</em>' attribute. + * @see #setVnfType(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest_VnfType() + * @model unique="false" + * @generated + */ + String getVnfType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfType <em>Vnf Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnf Type</em>' attribute. + * @see #getVnfType() + * @generated + */ + void setVnfType(String value); + + /** + * Returns the value of the '<em><b>Vnf Location</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Location identifier of the associated VNF that this service is monitoring + * <!-- end-model-doc --> + * @return the value of the '<em>Vnf Location</em>' attribute. + * @see #setVnfLocation(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest_VnfLocation() + * @model unique="false" + * @generated + */ + String getVnfLocation(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfLocation <em>Vnf Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Vnf Location</em>' attribute. + * @see #getVnfLocation() + * @generated + */ + void setVnfLocation(String value); + + /** + * Returns the value of the '<em><b>Deployment Ref</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Reference to a Cloudify deployment + * <!-- end-model-doc --> + * @return the value of the '<em>Deployment Ref</em>' attribute. + * @see #setDeploymentRef(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest_DeploymentRef() + * @model unique="false" + * @generated + */ + String getDeploymentRef(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getDeploymentRef <em>Deployment Ref</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Deployment Ref</em>' attribute. + * @see #getDeploymentRef() + * @generated + */ + void setDeploymentRef(String value); + + /** + * Returns the value of the '<em><b>Components</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * List of DCAE service components that this service is composed of + * <!-- end-model-doc --> + * @return the value of the '<em>Components</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest_Components() + * @model containment="true" + * @generated + */ + EList<DCAEServiceComponentRequest> getComponents(); + +} // DCAEServiceRequest diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceType.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceType.java new file mode 100644 index 0000000..bc18934 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceType.java @@ -0,0 +1,362 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import java.util.Date; + +import org.eclipse.emf.common.util.EList; +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service Type</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getOwner <em>Owner</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeName <em>Type Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeVersion <em>Type Version</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getBlueprintTemplate <em>Blueprint Template</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceIds <em>Service Ids</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getVnfTypes <em>Vnf Types</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceLocations <em>Service Locations</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceId <em>Asdc Service Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcResourceId <em>Asdc Resource Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceURL <em>Asdc Service URL</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeId <em>Type Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getSelfLink <em>Self Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getCreated1 <em>Created1</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getDeactivated <em>Deactivated</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType() + * @model + * @generated + */ +public interface DCAEServiceType extends NamedEntity { + /** + * Returns the value of the '<em><b>Owner</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Owner</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Owner</em>' attribute. + * @see #setOwner(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_Owner() + * @model unique="false" + * @generated + */ + String getOwner(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getOwner <em>Owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Owner</em>' attribute. + * @see #getOwner() + * @generated + */ + void setOwner(String value); + + /** + * Returns the value of the '<em><b>Type Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Descriptive name for this DCAE service type + * <!-- end-model-doc --> + * @return the value of the '<em>Type Name</em>' attribute. + * @see #setTypeName(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_TypeName() + * @model unique="false" + * @generated + */ + String getTypeName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeName <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type Name</em>' attribute. + * @see #getTypeName() + * @generated + */ + void setTypeName(String value); + + /** + * Returns the value of the '<em><b>Type Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Version number for this DCAE service type + * <!-- end-model-doc --> + * @return the value of the '<em>Type Version</em>' attribute. + * @see #setTypeVersion(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_TypeVersion() + * @model unique="false" + * @generated + */ + Integer getTypeVersion(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeVersion <em>Type Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type Version</em>' attribute. + * @see #getTypeVersion() + * @generated + */ + void setTypeVersion(Integer value); + + /** + * Returns the value of the '<em><b>Blueprint Template</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * String representation of a Cloudify blueprint with unbound variables + * <!-- end-model-doc --> + * @return the value of the '<em>Blueprint Template</em>' attribute. + * @see #setBlueprintTemplate(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_BlueprintTemplate() + * @model unique="false" + * @generated + */ + String getBlueprintTemplate(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getBlueprintTemplate <em>Blueprint Template</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Blueprint Template</em>' attribute. + * @see #getBlueprintTemplate() + * @generated + */ + void setBlueprintTemplate(String value); + + /** + * Returns the value of the '<em><b>Service Ids</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * List of service ids that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service id. + * <!-- end-model-doc --> + * @return the value of the '<em>Service Ids</em>' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_ServiceIds() + * @model unique="false" + * @generated + */ + EList<String> getServiceIds(); + + /** + * Returns the value of the '<em><b>Vnf Types</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vnf Types</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vnf Types</em>' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_VnfTypes() + * @model unique="false" + * @generated + */ + EList<String> getVnfTypes(); + + /** + * Returns the value of the '<em><b>Service Locations</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * List of service locations that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service location. + * <!-- end-model-doc --> + * @return the value of the '<em>Service Locations</em>' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_ServiceLocations() + * @model unique="false" + * @generated + */ + EList<String> getServiceLocations(); + + /** + * Returns the value of the '<em><b>Asdc Service Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Id of service this DCAE service type is associated with. Value source is from ASDC's notification event's field `serviceInvariantUUID`. + * <!-- end-model-doc --> + * @return the value of the '<em>Asdc Service Id</em>' attribute. + * @see #setAsdcServiceId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_AsdcServiceId() + * @model unique="false" + * @generated + */ + String getAsdcServiceId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceId <em>Asdc Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Asdc Service Id</em>' attribute. + * @see #getAsdcServiceId() + * @generated + */ + void setAsdcServiceId(String value); + + /** + * Returns the value of the '<em><b>Asdc Resource Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Id of vf/vnf instance this DCAE service type is associated with. Value source is from ASDC's notification event's field `resourceInvariantUUID`. + * <!-- end-model-doc --> + * @return the value of the '<em>Asdc Resource Id</em>' attribute. + * @see #setAsdcResourceId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_AsdcResourceId() + * @model unique="false" + * @generated + */ + String getAsdcResourceId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcResourceId <em>Asdc Resource Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Asdc Resource Id</em>' attribute. + * @see #getAsdcResourceId() + * @generated + */ + void setAsdcResourceId(String value); + + /** + * Returns the value of the '<em><b>Asdc Service URL</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * URL to the ASDC service model + * <!-- end-model-doc --> + * @return the value of the '<em>Asdc Service URL</em>' attribute. + * @see #setAsdcServiceURL(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_AsdcServiceURL() + * @model unique="false" + * @generated + */ + String getAsdcServiceURL(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceURL <em>Asdc Service URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Asdc Service URL</em>' attribute. + * @see #getAsdcServiceURL() + * @generated + */ + void setAsdcServiceURL(String value); + + /** + * Returns the value of the '<em><b>Type Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Unique identifier for this DCAE service type + * <!-- end-model-doc --> + * @return the value of the '<em>Type Id</em>' attribute. + * @see #setTypeId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_TypeId() + * @model unique="false" + * @generated + */ + String getTypeId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeId <em>Type Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type Id</em>' attribute. + * @see #getTypeId() + * @generated + */ + void setTypeId(String value); + + /** + * Returns the value of the '<em><b>Self Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Link to self where the Link.title is typeName + * <!-- end-model-doc --> + * @return the value of the '<em>Self Link</em>' containment reference. + * @see #setSelfLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_SelfLink() + * @model containment="true" + * @generated + */ + Link getSelfLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getSelfLink <em>Self Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Self Link</em>' containment reference. + * @see #getSelfLink() + * @generated + */ + void setSelfLink(Link value); + + /** + * Returns the value of the '<em><b>Created1</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Created timestamp for this DCAE service type in epoch time + * <!-- end-model-doc --> + * @return the value of the '<em>Created1</em>' attribute. + * @see #setCreated1(Date) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_Created1() + * @model unique="false" + * @generated + */ + Date getCreated1(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getCreated1 <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Created1</em>' attribute. + * @see #getCreated1() + * @generated + */ + void setCreated1(Date value); + + /** + * Returns the value of the '<em><b>Deactivated</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Deactivated timestamp for this DCAE service type in epoch time + * <!-- end-model-doc --> + * @return the value of the '<em>Deactivated</em>' attribute. + * @see #setDeactivated(Date) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_Deactivated() + * @model unique="false" + * @generated + */ + Date getDeactivated(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getDeactivated <em>Deactivated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Deactivated</em>' attribute. + * @see #getDeactivated() + * @generated + */ + void setDeactivated(Date value); + +} // DCAEServiceType diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceTypeRequest.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceTypeRequest.java new file mode 100644 index 0000000..f955d7c --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceTypeRequest.java @@ -0,0 +1,257 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>DCAE Service Type Request</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getOwner <em>Owner</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeName <em>Type Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeVersion <em>Type Version</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getBlueprintTemplate <em>Blueprint Template</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceIds <em>Service Ids</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getVnfTypes <em>Vnf Types</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceLocations <em>Service Locations</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceId <em>Asdc Service Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcResourceId <em>Asdc Resource Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceURL <em>Asdc Service URL</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest() + * @model + * @generated + */ +public interface DCAEServiceTypeRequest extends EObject { + /** + * Returns the value of the '<em><b>Owner</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Owner</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Owner</em>' attribute. + * @see #setOwner(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_Owner() + * @model unique="false" + * @generated + */ + String getOwner(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getOwner <em>Owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Owner</em>' attribute. + * @see #getOwner() + * @generated + */ + void setOwner(String value); + + /** + * Returns the value of the '<em><b>Type Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Descriptive name for this DCAE service type + * <!-- end-model-doc --> + * @return the value of the '<em>Type Name</em>' attribute. + * @see #setTypeName(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_TypeName() + * @model unique="false" + * @generated + */ + String getTypeName(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeName <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type Name</em>' attribute. + * @see #getTypeName() + * @generated + */ + void setTypeName(String value); + + /** + * Returns the value of the '<em><b>Type Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Version number for this DCAE service type + * <!-- end-model-doc --> + * @return the value of the '<em>Type Version</em>' attribute. + * @see #setTypeVersion(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_TypeVersion() + * @model unique="false" + * @generated + */ + Integer getTypeVersion(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeVersion <em>Type Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type Version</em>' attribute. + * @see #getTypeVersion() + * @generated + */ + void setTypeVersion(Integer value); + + /** + * Returns the value of the '<em><b>Blueprint Template</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * String representation of a Cloudify blueprint with unbound variables + * <!-- end-model-doc --> + * @return the value of the '<em>Blueprint Template</em>' attribute. + * @see #setBlueprintTemplate(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_BlueprintTemplate() + * @model unique="false" + * @generated + */ + String getBlueprintTemplate(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getBlueprintTemplate <em>Blueprint Template</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Blueprint Template</em>' attribute. + * @see #getBlueprintTemplate() + * @generated + */ + void setBlueprintTemplate(String value); + + /** + * Returns the value of the '<em><b>Service Ids</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * List of service ids that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service id. + * <!-- end-model-doc --> + * @return the value of the '<em>Service Ids</em>' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_ServiceIds() + * @model unique="false" + * @generated + */ + EList<String> getServiceIds(); + + /** + * Returns the value of the '<em><b>Vnf Types</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Vnf Types</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Vnf Types</em>' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_VnfTypes() + * @model unique="false" + * @generated + */ + EList<String> getVnfTypes(); + + /** + * Returns the value of the '<em><b>Service Locations</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * List of service locations that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service location. + * <!-- end-model-doc --> + * @return the value of the '<em>Service Locations</em>' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_ServiceLocations() + * @model unique="false" + * @generated + */ + EList<String> getServiceLocations(); + + /** + * Returns the value of the '<em><b>Asdc Service Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Id of service this DCAE service type is associated with. Value source is from ASDC's notification event's field `serviceInvariantUUID`. + * <!-- end-model-doc --> + * @return the value of the '<em>Asdc Service Id</em>' attribute. + * @see #setAsdcServiceId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_AsdcServiceId() + * @model unique="false" + * @generated + */ + String getAsdcServiceId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceId <em>Asdc Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Asdc Service Id</em>' attribute. + * @see #getAsdcServiceId() + * @generated + */ + void setAsdcServiceId(String value); + + /** + * Returns the value of the '<em><b>Asdc Resource Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * Id of vf/vnf instance this DCAE service type is associated with. Value source is from ASDC's notification event's field `resourceInvariantUUID`. + * <!-- end-model-doc --> + * @return the value of the '<em>Asdc Resource Id</em>' attribute. + * @see #setAsdcResourceId(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_AsdcResourceId() + * @model unique="false" + * @generated + */ + String getAsdcResourceId(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcResourceId <em>Asdc Resource Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Asdc Resource Id</em>' attribute. + * @see #getAsdcResourceId() + * @generated + */ + void setAsdcResourceId(String value); + + /** + * Returns the value of the '<em><b>Asdc Service URL</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * URL to the ASDC service model + * <!-- end-model-doc --> + * @return the value of the '<em>Asdc Service URL</em>' attribute. + * @see #setAsdcServiceURL(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_AsdcServiceURL() + * @model unique="false" + * @generated + */ + String getAsdcServiceURL(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceURL <em>Asdc Service URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Asdc Service URL</em>' attribute. + * @see #getAsdcServiceURL() + * @generated + */ + void setAsdcServiceURL(String value); + +} // DCAEServiceTypeRequest diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeInventory.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeInventory.java new file mode 100644 index 0000000..2677c30 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeInventory.java @@ -0,0 +1,139 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Dcae Inventory</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getServiceTypes <em>Service Types</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getServices <em>Services</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeInventory() + * @model + * @generated + */ +public interface DcaeInventory extends EObject { + /** + * Returns the value of the '<em><b>Service Types</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Service Types</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Service Types</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeInventory_ServiceTypes() + * @model containment="true" + * @generated + */ + EList<DCAEServiceType> getServiceTypes(); + + /** + * Returns the value of the '<em><b>Services</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEService}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Services</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Services</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeInventory_Services() + * @model containment="true" + * @generated + */ + EList<DCAEService> getServices(); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" typeNameUnique="false" onlyLatestUnique="false" onlyActiveUnique="false" vnfTypeUnique="false" serviceIdUnique="false" serviceLocationUnique="false" asdcServiceIdUnique="false" asdcResourceIdUnique="false" offsetUnique="false" + * @generated + */ + DcaeServiceTypeResults getDcaeServiceTypes(String typeName, Boolean onlyLatest, Boolean onlyActive, String vnfType, String serviceId, String serviceLocation, String asdcServiceId, String asdcResourceId, Integer offset); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" typeIdUnique="false" typeIdRequired="true" + * @generated + */ + ApiResponseMessage deleteDcaeServiceTypesType(String typeId); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" typeIdUnique="false" + * @generated + */ + DCAEServiceType getDcaeServiceTypesType(String typeId); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" bodyUnique="false" + * @generated + */ + DCAEServiceType createDcaeServiceTypesTypeName(DCAEServiceTypeRequest body); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" typeIdUnique="false" vnfIdUnique="false" vnfTypeUnique="false" vnfLocationUnique="false" componentTypeUnique="false" shareableUnique="false" createdUnique="false" offsetUnique="false" + * @generated + */ + DcaeServiceResults getDcaeServices(String typeId, String vnfId, String vnfType, String vnfLocation, String componentType, Boolean shareable, String created, Integer offset); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" propertyNameUnique="false" + * @generated + */ + DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(String propertyName); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model serviceIdUnique="false" + * @generated + */ + void deleteDcaeServicesService(String serviceId); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" serviceIdUnique="false" + * @generated + */ + DCAEService getDcaeServicesService(String serviceId); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model unique="false" serviceIdUnique="false" bodyUnique="false" + * @generated + */ + DCAEService createDcaeServicesService(String serviceId, DCAEServiceRequest body); + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @model + * @generated + */ + void poll(); + +} // DcaeInventory diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceResults.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceResults.java new file mode 100644 index 0000000..7450e2c --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceResults.java @@ -0,0 +1,86 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Inline Response2001</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getTotalCount <em>Total Count</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getItems <em>Items</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceResults() + * @model + * @generated + */ +public interface DcaeServiceResults extends EObject { + /** + * Returns the value of the '<em><b>Links</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.Link}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Links</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Links</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceResults_Links() + * @model containment="true" + * @generated + */ + EList<Link> getLinks(); + + /** + * Returns the value of the '<em><b>Total Count</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total Count</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total Count</em>' attribute. + * @see #setTotalCount(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceResults_TotalCount() + * @model unique="false" + * @generated + */ + Integer getTotalCount(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getTotalCount <em>Total Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total Count</em>' attribute. + * @see #getTotalCount() + * @generated + */ + void setTotalCount(Integer value); + + /** + * Returns the value of the '<em><b>Items</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEService}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Items</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Items</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceResults_Items() + * @model containment="true" + * @generated + */ + EList<DCAEService> getItems(); + +} // InlineResponse2001 diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResultLinks.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResultLinks.java new file mode 100644 index 0000000..5272095 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResultLinks.java @@ -0,0 +1,77 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Inline Response200 Links</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResultLinks#getPreviousLink <em>Previous Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResultLinks#getNextLink <em>Next Link</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResultLinks() + * @model + * @generated + */ +public interface DcaeServiceTypeResultLinks extends EObject { + /** + * Returns the value of the '<em><b>Previous Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Previous Link</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Previous Link</em>' containment reference. + * @see #setPreviousLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResultLinks_PreviousLink() + * @model containment="true" + * @generated + */ + Link getPreviousLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResultLinks#getPreviousLink <em>Previous Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Previous Link</em>' containment reference. + * @see #getPreviousLink() + * @generated + */ + void setPreviousLink(Link value); + + /** + * Returns the value of the '<em><b>Next Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Next Link</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Next Link</em>' containment reference. + * @see #setNextLink(Link) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResultLinks_NextLink() + * @model containment="true" + * @generated + */ + Link getNextLink(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResultLinks#getNextLink <em>Next Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Next Link</em>' containment reference. + * @see #getNextLink() + * @generated + */ + void setNextLink(Link value); + +} // InlineResponse200Links diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResults.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResults.java new file mode 100644 index 0000000..b8c7c5c --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResults.java @@ -0,0 +1,86 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Inline Response200</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getTotalCount <em>Total Count</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getItems <em>Items</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResults() + * @model + * @generated + */ +public interface DcaeServiceTypeResults extends EObject { + /** + * Returns the value of the '<em><b>Links</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.Link}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Links</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Links</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResults_Links() + * @model containment="true" + * @generated + */ + EList<Link> getLinks(); + + /** + * Returns the value of the '<em><b>Total Count</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Total Count</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Total Count</em>' attribute. + * @see #setTotalCount(Integer) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResults_TotalCount() + * @model unique="false" + * @generated + */ + Integer getTotalCount(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getTotalCount <em>Total Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Total Count</em>' attribute. + * @see #getTotalCount() + * @generated + */ + void setTotalCount(Integer value); + + /** + * Returns the value of the '<em><b>Items</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Items</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Items</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResults_Items() + * @model containment="true" + * @generated + */ + EList<DCAEServiceType> getItems(); + +} // InlineResponse200 diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryFactory.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryFactory.java new file mode 100644 index 0000000..ca0e968 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryFactory.java @@ -0,0 +1,168 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.InventoryPackage + * @generated + */ +public interface InventoryFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + InventoryFactory eINSTANCE = org.openecomp.dcae.controller.inventory.impl.InventoryFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Dcae Inventory</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Dcae Inventory</em>'. + * @generated + */ + DcaeInventory createDcaeInventory(); + + /** + * Returns a new object of class '<em>Api Response Message</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Api Response Message</em>'. + * @generated + */ + ApiResponseMessage createApiResponseMessage(); + + /** + * Returns a new object of class '<em>DCAE Service Component</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service Component</em>'. + * @generated + */ + DCAEServiceComponent createDCAEServiceComponent(); + + /** + * Returns a new object of class '<em>DCAE Service Component Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service Component Request</em>'. + * @generated + */ + DCAEServiceComponentRequest createDCAEServiceComponentRequest(); + + /** + * Returns a new object of class '<em>DCAE Service</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service</em>'. + * @generated + */ + DCAEService createDCAEService(); + + /** + * Returns a new object of class '<em>DCAE Service Group By Results</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service Group By Results</em>'. + * @generated + */ + DCAEServiceGroupByResults createDCAEServiceGroupByResults(); + + /** + * Returns a new object of class '<em>DCAE Service Group By Results Property Values</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service Group By Results Property Values</em>'. + * @generated + */ + DCAEServiceGroupByResultsPropertyValues createDCAEServiceGroupByResultsPropertyValues(); + + /** + * Returns a new object of class '<em>DCAE Service Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service Request</em>'. + * @generated + */ + DCAEServiceRequest createDCAEServiceRequest(); + + /** + * Returns a new object of class '<em>DCAE Service Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service Type</em>'. + * @generated + */ + DCAEServiceType createDCAEServiceType(); + + /** + * Returns a new object of class '<em>DCAE Service Type Request</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>DCAE Service Type Request</em>'. + * @generated + */ + DCAEServiceTypeRequest createDCAEServiceTypeRequest(); + + /** + * Returns a new object of class '<em>Dcae Service Results</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Dcae Service Results</em>'. + * @generated + */ + DcaeServiceResults createDcaeServiceResults(); + + /** + * Returns a new object of class '<em>Dcae Service Type Results</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Dcae Service Type Results</em>'. + * @generated + */ + DcaeServiceTypeResults createDcaeServiceTypeResults(); + + /** + * Returns a new object of class '<em>Link</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Link</em>'. + * @generated + */ + Link createLink(); + + /** + * Returns a new object of class '<em>Parameter</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Parameter</em>'. + * @generated + */ + Parameter createParameter(); + + /** + * Returns a new object of class '<em>Uri Builder</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Uri Builder</em>'. + * @generated + */ + UriBuilder createUriBuilder(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + InventoryPackage getInventoryPackage(); + +} //InventoryFactory diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryPackage.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryPackage.java new file mode 100644 index 0000000..c454c29 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryPackage.java @@ -0,0 +1,3489 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +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.openecomp.ncomp.core.CorePackage; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * - + * ============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============================================ + * <!-- end-model-doc --> + * @see org.openecomp.dcae.controller.inventory.InventoryFactory + * @model kind="package" + * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-core-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller'" + * @generated + */ +public interface InventoryPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "inventory"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "org.openecomp.dcae.controller.inventory"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "inventory"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + InventoryPackage eINSTANCE = org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl.init(); + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl <em>Dcae Inventory</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDcaeInventory() + * @generated + */ + int DCAE_INVENTORY = 0; + + /** + * The feature id for the '<em><b>Service Types</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY__SERVICE_TYPES = 0; + + /** + * The feature id for the '<em><b>Services</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY__SERVICES = 1; + + /** + * The number of structural features of the '<em>Dcae Inventory</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY_FEATURE_COUNT = 2; + + /** + * The operation id for the '<em>Get Dcae Service Types</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES__STRING_BOOLEAN_BOOLEAN_STRING_STRING_STRING_STRING_STRING_INTEGER = 0; + + /** + * The operation id for the '<em>Delete Dcae Service Types Type</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___DELETE_DCAE_SERVICE_TYPES_TYPE__STRING = 1; + + /** + * The operation id for the '<em>Get Dcae Service Types Type</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES_TYPE__STRING = 2; + + /** + * The operation id for the '<em>Create Dcae Service Types Type Name</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___CREATE_DCAE_SERVICE_TYPES_TYPE_NAME__DCAESERVICETYPEREQUEST = 3; + + /** + * The operation id for the '<em>Get Dcae Services</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICES__STRING_STRING_STRING_STRING_STRING_BOOLEAN_STRING_INTEGER = 4; + + /** + * The operation id for the '<em>Get Dcae Services Groupby Property Name</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICES_GROUPBY_PROPERTY_NAME__STRING = 5; + + /** + * The operation id for the '<em>Delete Dcae Services Service</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___DELETE_DCAE_SERVICES_SERVICE__STRING = 6; + + /** + * The operation id for the '<em>Get Dcae Services Service</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICES_SERVICE__STRING = 7; + + /** + * The operation id for the '<em>Create Dcae Services Service</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___CREATE_DCAE_SERVICES_SERVICE__STRING_DCAESERVICEREQUEST = 8; + + /** + * The operation id for the '<em>Poll</em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY___POLL = 9; + + /** + * The number of operations of the '<em>Dcae Inventory</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_INVENTORY_OPERATION_COUNT = 10; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl <em>Api Response Message</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getApiResponseMessage() + * @generated + */ + int API_RESPONSE_MESSAGE = 1; + + /** + * The feature id for the '<em><b>Code</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE__CODE = 0; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE__TYPE = 1; + + /** + * The feature id for the '<em><b>Message</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE__MESSAGE = 2; + + /** + * The number of structural features of the '<em>Api Response Message</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>Api Response Message</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl <em>DCAE Service Component</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceComponent() + * @generated + */ + int DCAE_SERVICE_COMPONENT = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Component Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Component Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Created1</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__CREATED1 = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Modified</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__MODIFIED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Component Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Component Source</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Status</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__STATUS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Location</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__LOCATION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Shareable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__SHAREABLE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of structural features of the '<em>DCAE Service Component</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The number of operations of the '<em>DCAE Service Component</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl <em>DCAE Service Component Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceComponentRequest() + * @generated + */ + int DCAE_SERVICE_COMPONENT_REQUEST = 3; + + /** + * The feature id for the '<em><b>Component Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID = 0; + + /** + * The feature id for the '<em><b>Component Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE = 1; + + /** + * The feature id for the '<em><b>Component Source</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE = 2; + + /** + * The feature id for the '<em><b>Shareable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE = 3; + + /** + * The number of structural features of the '<em>DCAE Service Component Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST_FEATURE_COUNT = 4; + + /** + * The number of operations of the '<em>DCAE Service Component Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl <em>DCAE Service</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEService() + * @generated + */ + int DCAE_SERVICE = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Service Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__SERVICE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Self Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__SELF_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Created1</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__CREATED1 = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Modified</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__MODIFIED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Type Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__TYPE_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Vnf Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Vnf Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Vnf Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Vnf Location</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_LOCATION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Deployment Ref</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__DEPLOYMENT_REF = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Components</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE__COMPONENTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The number of structural features of the '<em>DCAE Service</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The number of operations of the '<em>DCAE Service</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl <em>DCAE Service Group By Results</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceGroupByResults() + * @generated + */ + int DCAE_SERVICE_GROUP_BY_RESULTS = 5; + + /** + * The feature id for the '<em><b>Property Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME = 0; + + /** + * The feature id for the '<em><b>Property Values</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES = 1; + + /** + * The number of structural features of the '<em>DCAE Service Group By Results</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_FEATURE_COUNT = 2; + + /** + * The number of operations of the '<em>DCAE Service Group By Results</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl <em>DCAE Service Group By Results Property Values</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceGroupByResultsPropertyValues() + * @generated + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES = 6; + + /** + * The feature id for the '<em><b>Count</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT = 0; + + /** + * The feature id for the '<em><b>Property Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE = 1; + + /** + * The feature id for the '<em><b>Dcae Service Query Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK = 2; + + /** + * The number of structural features of the '<em>DCAE Service Group By Results Property Values</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>DCAE Service Group By Results Property Values</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl <em>DCAE Service Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceRequest() + * @generated + */ + int DCAE_SERVICE_REQUEST = 7; + + /** + * The feature id for the '<em><b>Type Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__TYPE_ID = 0; + + /** + * The feature id for the '<em><b>Vnf Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__VNF_ID = 1; + + /** + * The feature id for the '<em><b>Vnf Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__VNF_TYPE = 2; + + /** + * The feature id for the '<em><b>Vnf Location</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__VNF_LOCATION = 3; + + /** + * The feature id for the '<em><b>Deployment Ref</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__DEPLOYMENT_REF = 4; + + /** + * The feature id for the '<em><b>Components</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__COMPONENTS = 5; + + /** + * The number of structural features of the '<em>DCAE Service Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST_FEATURE_COUNT = 6; + + /** + * The number of operations of the '<em>DCAE Service Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl <em>DCAE Service Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceType() + * @generated + */ + int DCAE_SERVICE_TYPE = 8; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Owner</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__OWNER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Type Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__TYPE_NAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Type Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__TYPE_VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Blueprint Template</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Service Ids</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__SERVICE_IDS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Vnf Types</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__VNF_TYPES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Service Locations</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__SERVICE_LOCATIONS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Asdc Service Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__ASDC_SERVICE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the '<em><b>Asdc Resource Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the '<em><b>Asdc Service URL</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__ASDC_SERVICE_URL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the '<em><b>Type Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__TYPE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the '<em><b>Self Link</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__SELF_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The feature id for the '<em><b>Created1</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__CREATED1 = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The feature id for the '<em><b>Deactivated</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__DEACTIVATED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 13; + + /** + * The number of structural features of the '<em>DCAE Service Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 14; + + /** + * The number of operations of the '<em>DCAE Service Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl <em>DCAE Service Type Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceTypeRequest() + * @generated + */ + int DCAE_SERVICE_TYPE_REQUEST = 9; + + /** + * The feature id for the '<em><b>Owner</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__OWNER = 0; + + /** + * The feature id for the '<em><b>Type Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME = 1; + + /** + * The feature id for the '<em><b>Type Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION = 2; + + /** + * The feature id for the '<em><b>Blueprint Template</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE = 3; + + /** + * The feature id for the '<em><b>Service Ids</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS = 4; + + /** + * The feature id for the '<em><b>Vnf Types</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES = 5; + + /** + * The feature id for the '<em><b>Service Locations</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS = 6; + + /** + * The feature id for the '<em><b>Asdc Service Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID = 7; + + /** + * The feature id for the '<em><b>Asdc Resource Id</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID = 8; + + /** + * The feature id for the '<em><b>Asdc Service URL</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL = 9; + + /** + * The number of structural features of the '<em>DCAE Service Type Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST_FEATURE_COUNT = 10; + + /** + * The number of operations of the '<em>DCAE Service Type Request</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl <em>Dcae Service Results</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDcaeServiceResults() + * @generated + */ + int DCAE_SERVICE_RESULTS = 10; + + /** + * The feature id for the '<em><b>Links</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS__LINKS = 0; + + /** + * The feature id for the '<em><b>Total Count</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS__TOTAL_COUNT = 1; + + /** + * The feature id for the '<em><b>Items</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS__ITEMS = 2; + + /** + * The number of structural features of the '<em>Dcae Service Results</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>Dcae Service Results</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl <em>Dcae Service Type Results</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDcaeServiceTypeResults() + * @generated + */ + int DCAE_SERVICE_TYPE_RESULTS = 11; + + /** + * The feature id for the '<em><b>Links</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS__LINKS = 0; + + /** + * The feature id for the '<em><b>Total Count</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT = 1; + + /** + * The feature id for the '<em><b>Items</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS__ITEMS = 2; + + /** + * The number of structural features of the '<em>Dcae Service Type Results</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS_FEATURE_COUNT = 3; + + /** + * The number of operations of the '<em>Dcae Service Type Results</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl <em>Link</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.LinkImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getLink() + * @generated + */ + int LINK = 12; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Params</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__PARAMS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__TITLE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Rel</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__REL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Href</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__HREF = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the '<em><b>Uri</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__URI = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the '<em><b>Uri Builder</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__URI_BUILDER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the '<em><b>Rels</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__RELS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK__TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The number of structural features of the '<em>Link</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of operations of the '<em>Link</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LINK_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.ParameterImpl <em>Parameter</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.ParameterImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getParameter() + * @generated + */ + int PARAMETER = 13; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PARAMETER__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the '<em><b>Last Polled</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PARAMETER__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the '<em><b>Last Changed</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PARAMETER__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the '<em><b>Created</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PARAMETER__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PARAMETER__VALUE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Parameter</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PARAMETER_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the '<em>Parameter</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PARAMETER_OPERATION_COUNT = CorePackage.NAMED_ENTITY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.UriBuilderImpl <em>Uri Builder</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.UriBuilderImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getUriBuilder() + * @generated + */ + int URI_BUILDER = 14; + + /** + * The number of structural features of the '<em>Uri Builder</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int URI_BUILDER_FEATURE_COUNT = 0; + + /** + * The number of operations of the '<em>Uri Builder</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int URI_BUILDER_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DcaeInventory <em>Dcae Inventory</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Dcae Inventory</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory + * @generated + */ + EClass getDcaeInventory(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getServiceTypes <em>Service Types</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Service Types</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#getServiceTypes() + * @see #getDcaeInventory() + * @generated + */ + EReference getDcaeInventory_ServiceTypes(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getServices <em>Services</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Services</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#getServices() + * @see #getDcaeInventory() + * @generated + */ + EReference getDcaeInventory_Services(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServiceTypes(java.lang.String, java.lang.Boolean, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer) <em>Get Dcae Service Types</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Dcae Service Types</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServiceTypes(java.lang.String, java.lang.Boolean, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer) + * @generated + */ + EOperation getDcaeInventory__GetDcaeServiceTypes__String_Boolean_Boolean_String_String_String_String_String_Integer(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#deleteDcaeServiceTypesType(java.lang.String) <em>Delete Dcae Service Types Type</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Delete Dcae Service Types Type</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#deleteDcaeServiceTypesType(java.lang.String) + * @generated + */ + EOperation getDcaeInventory__DeleteDcaeServiceTypesType__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServiceTypesType(java.lang.String) <em>Get Dcae Service Types Type</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Dcae Service Types Type</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServiceTypesType(java.lang.String) + * @generated + */ + EOperation getDcaeInventory__GetDcaeServiceTypesType__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#createDcaeServiceTypesTypeName(org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest) <em>Create Dcae Service Types Type Name</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Create Dcae Service Types Type Name</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#createDcaeServiceTypesTypeName(org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest) + * @generated + */ + EOperation getDcaeInventory__CreateDcaeServiceTypesTypeName__DCAEServiceTypeRequest(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServices(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.Integer) <em>Get Dcae Services</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Dcae Services</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServices(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.Integer) + * @generated + */ + EOperation getDcaeInventory__GetDcaeServices__String_String_String_String_String_Boolean_String_Integer(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServicesGroupbyPropertyName(java.lang.String) <em>Get Dcae Services Groupby Property Name</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Dcae Services Groupby Property Name</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServicesGroupbyPropertyName(java.lang.String) + * @generated + */ + EOperation getDcaeInventory__GetDcaeServicesGroupbyPropertyName__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#deleteDcaeServicesService(java.lang.String) <em>Delete Dcae Services Service</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Delete Dcae Services Service</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#deleteDcaeServicesService(java.lang.String) + * @generated + */ + EOperation getDcaeInventory__DeleteDcaeServicesService__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServicesService(java.lang.String) <em>Get Dcae Services Service</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Get Dcae Services Service</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#getDcaeServicesService(java.lang.String) + * @generated + */ + EOperation getDcaeInventory__GetDcaeServicesService__String(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#createDcaeServicesService(java.lang.String, org.openecomp.dcae.controller.inventory.DCAEServiceRequest) <em>Create Dcae Services Service</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Create Dcae Services Service</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#createDcaeServicesService(java.lang.String, org.openecomp.dcae.controller.inventory.DCAEServiceRequest) + * @generated + */ + EOperation getDcaeInventory__CreateDcaeServicesService__String_DCAEServiceRequest(); + + /** + * Returns the meta object for the '{@link org.openecomp.dcae.controller.inventory.DcaeInventory#poll() <em>Poll</em>}' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the '<em>Poll</em>' operation. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory#poll() + * @generated + */ + EOperation getDcaeInventory__Poll(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage <em>Api Response Message</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Api Response Message</em>'. + * @see org.openecomp.dcae.controller.inventory.ApiResponseMessage + * @generated + */ + EClass getApiResponseMessage(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getCode <em>Code</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Code</em>'. + * @see org.openecomp.dcae.controller.inventory.ApiResponseMessage#getCode() + * @see #getApiResponseMessage() + * @generated + */ + EAttribute getApiResponseMessage_Code(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.openecomp.dcae.controller.inventory.ApiResponseMessage#getType() + * @see #getApiResponseMessage() + * @generated + */ + EAttribute getApiResponseMessage_Type(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getMessage <em>Message</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Message</em>'. + * @see org.openecomp.dcae.controller.inventory.ApiResponseMessage#getMessage() + * @see #getApiResponseMessage() + * @generated + */ + EAttribute getApiResponseMessage_Message(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent <em>DCAE Service Component</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service Component</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent + * @generated + */ + EClass getDCAEServiceComponent(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentId <em>Component Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Component Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentId() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_ComponentId(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentLink <em>Component Link</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Component Link</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentLink() + * @see #getDCAEServiceComponent() + * @generated + */ + EReference getDCAEServiceComponent_ComponentLink(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getCreated1 <em>Created1</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Created1</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getCreated1() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_Created1(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getModified <em>Modified</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Modified</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getModified() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_Modified(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentType <em>Component Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Component Type</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentType() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_ComponentType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentSource <em>Component Source</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Component Source</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentSource() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_ComponentSource(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getStatus <em>Status</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Status</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getStatus() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_Status(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getLocation <em>Location</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Location</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getLocation() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_Location(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getShareable <em>Shareable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Shareable</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getShareable() + * @see #getDCAEServiceComponent() + * @generated + */ + EAttribute getDCAEServiceComponent_Shareable(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest <em>DCAE Service Component Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service Component Request</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest + * @generated + */ + EClass getDCAEServiceComponentRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentId <em>Component Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Component Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentId() + * @see #getDCAEServiceComponentRequest() + * @generated + */ + EAttribute getDCAEServiceComponentRequest_ComponentId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentType <em>Component Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Component Type</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentType() + * @see #getDCAEServiceComponentRequest() + * @generated + */ + EAttribute getDCAEServiceComponentRequest_ComponentType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentSource <em>Component Source</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Component Source</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentSource() + * @see #getDCAEServiceComponentRequest() + * @generated + */ + EAttribute getDCAEServiceComponentRequest_ComponentSource(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getShareable <em>Shareable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Shareable</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getShareable() + * @see #getDCAEServiceComponentRequest() + * @generated + */ + EAttribute getDCAEServiceComponentRequest_Shareable(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEService <em>DCAE Service</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService + * @generated + */ + EClass getDCAEService(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEService#getServiceId <em>Service Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Service Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getServiceId() + * @see #getDCAEService() + * @generated + */ + EAttribute getDCAEService_ServiceId(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.inventory.DCAEService#getSelfLink <em>Self Link</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Self Link</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getSelfLink() + * @see #getDCAEService() + * @generated + */ + EReference getDCAEService_SelfLink(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEService#getCreated1 <em>Created1</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Created1</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getCreated1() + * @see #getDCAEService() + * @generated + */ + EAttribute getDCAEService_Created1(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEService#getModified <em>Modified</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Modified</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getModified() + * @see #getDCAEService() + * @generated + */ + EAttribute getDCAEService_Modified(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.inventory.DCAEService#getTypeLink <em>Type Link</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Type Link</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getTypeLink() + * @see #getDCAEService() + * @generated + */ + EReference getDCAEService_TypeLink(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfId <em>Vnf Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vnf Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getVnfId() + * @see #getDCAEService() + * @generated + */ + EAttribute getDCAEService_VnfId(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLink <em>Vnf Link</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Vnf Link</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getVnfLink() + * @see #getDCAEService() + * @generated + */ + EReference getDCAEService_VnfLink(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfType <em>Vnf Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vnf Type</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getVnfType() + * @see #getDCAEService() + * @generated + */ + EAttribute getDCAEService_VnfType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLocation <em>Vnf Location</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vnf Location</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getVnfLocation() + * @see #getDCAEService() + * @generated + */ + EAttribute getDCAEService_VnfLocation(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEService#getDeploymentRef <em>Deployment Ref</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Deployment Ref</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getDeploymentRef() + * @see #getDCAEService() + * @generated + */ + EAttribute getDCAEService_DeploymentRef(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DCAEService#getComponents <em>Components</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Components</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEService#getComponents() + * @see #getDCAEService() + * @generated + */ + EReference getDCAEService_Components(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults <em>DCAE Service Group By Results</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service Group By Results</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults + * @generated + */ + EClass getDCAEServiceGroupByResults(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyName <em>Property Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Property Name</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyName() + * @see #getDCAEServiceGroupByResults() + * @generated + */ + EAttribute getDCAEServiceGroupByResults_PropertyName(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyValues <em>Property Values</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Property Values</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyValues() + * @see #getDCAEServiceGroupByResults() + * @generated + */ + EReference getDCAEServiceGroupByResults_PropertyValues(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues <em>DCAE Service Group By Results Property Values</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service Group By Results Property Values</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues + * @generated + */ + EClass getDCAEServiceGroupByResultsPropertyValues(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getCount <em>Count</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Count</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getCount() + * @see #getDCAEServiceGroupByResultsPropertyValues() + * @generated + */ + EAttribute getDCAEServiceGroupByResultsPropertyValues_Count(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getPropertyValue <em>Property Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Property Value</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getPropertyValue() + * @see #getDCAEServiceGroupByResultsPropertyValues() + * @generated + */ + EAttribute getDCAEServiceGroupByResultsPropertyValues_PropertyValue(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getDcaeServiceQueryLink <em>Dcae Service Query Link</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Dcae Service Query Link</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getDcaeServiceQueryLink() + * @see #getDCAEServiceGroupByResultsPropertyValues() + * @generated + */ + EReference getDCAEServiceGroupByResultsPropertyValues_DcaeServiceQueryLink(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest <em>DCAE Service Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service Request</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest + * @generated + */ + EClass getDCAEServiceRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getTypeId <em>Type Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getTypeId() + * @see #getDCAEServiceRequest() + * @generated + */ + EAttribute getDCAEServiceRequest_TypeId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfId <em>Vnf Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vnf Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfId() + * @see #getDCAEServiceRequest() + * @generated + */ + EAttribute getDCAEServiceRequest_VnfId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfType <em>Vnf Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vnf Type</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfType() + * @see #getDCAEServiceRequest() + * @generated + */ + EAttribute getDCAEServiceRequest_VnfType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfLocation <em>Vnf Location</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Vnf Location</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfLocation() + * @see #getDCAEServiceRequest() + * @generated + */ + EAttribute getDCAEServiceRequest_VnfLocation(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getDeploymentRef <em>Deployment Ref</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Deployment Ref</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getDeploymentRef() + * @see #getDCAEServiceRequest() + * @generated + */ + EAttribute getDCAEServiceRequest_DeploymentRef(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getComponents <em>Components</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Components</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getComponents() + * @see #getDCAEServiceRequest() + * @generated + */ + EReference getDCAEServiceRequest_Components(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType <em>DCAE Service Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service Type</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType + * @generated + */ + EClass getDCAEServiceType(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getOwner <em>Owner</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Owner</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getOwner() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_Owner(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeName <em>Type Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type Name</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeName() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_TypeName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeVersion <em>Type Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type Version</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeVersion() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_TypeVersion(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getBlueprintTemplate <em>Blueprint Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Blueprint Template</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getBlueprintTemplate() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_BlueprintTemplate(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceIds <em>Service Ids</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Service Ids</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceIds() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_ServiceIds(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getVnfTypes <em>Vnf Types</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Vnf Types</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getVnfTypes() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_VnfTypes(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceLocations <em>Service Locations</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Service Locations</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceLocations() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_ServiceLocations(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceId <em>Asdc Service Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Asdc Service Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceId() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_AsdcServiceId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcResourceId <em>Asdc Resource Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Asdc Resource Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcResourceId() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_AsdcResourceId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceURL <em>Asdc Service URL</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Asdc Service URL</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceURL() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_AsdcServiceURL(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeId <em>Type Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeId() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_TypeId(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getSelfLink <em>Self Link</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Self Link</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getSelfLink() + * @see #getDCAEServiceType() + * @generated + */ + EReference getDCAEServiceType_SelfLink(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getCreated1 <em>Created1</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Created1</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getCreated1() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_Created1(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getDeactivated <em>Deactivated</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Deactivated</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType#getDeactivated() + * @see #getDCAEServiceType() + * @generated + */ + EAttribute getDCAEServiceType_Deactivated(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest <em>DCAE Service Type Request</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>DCAE Service Type Request</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest + * @generated + */ + EClass getDCAEServiceTypeRequest(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getOwner <em>Owner</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Owner</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getOwner() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_Owner(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeName <em>Type Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type Name</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeName() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_TypeName(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeVersion <em>Type Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type Version</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeVersion() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_TypeVersion(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getBlueprintTemplate <em>Blueprint Template</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Blueprint Template</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getBlueprintTemplate() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_BlueprintTemplate(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceIds <em>Service Ids</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Service Ids</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceIds() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_ServiceIds(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getVnfTypes <em>Vnf Types</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Vnf Types</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getVnfTypes() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_VnfTypes(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceLocations <em>Service Locations</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Service Locations</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceLocations() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_ServiceLocations(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceId <em>Asdc Service Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Asdc Service Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceId() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_AsdcServiceId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcResourceId <em>Asdc Resource Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Asdc Resource Id</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcResourceId() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_AsdcResourceId(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceURL <em>Asdc Service URL</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Asdc Service URL</em>'. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceURL() + * @see #getDCAEServiceTypeRequest() + * @generated + */ + EAttribute getDCAEServiceTypeRequest_AsdcServiceURL(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults <em>Dcae Service Results</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Dcae Service Results</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceResults + * @generated + */ + EClass getDcaeServiceResults(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getLinks <em>Links</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Links</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceResults#getLinks() + * @see #getDcaeServiceResults() + * @generated + */ + EReference getDcaeServiceResults_Links(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getTotalCount <em>Total Count</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total Count</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceResults#getTotalCount() + * @see #getDcaeServiceResults() + * @generated + */ + EAttribute getDcaeServiceResults_TotalCount(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getItems <em>Items</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Items</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceResults#getItems() + * @see #getDcaeServiceResults() + * @generated + */ + EReference getDcaeServiceResults_Items(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults <em>Dcae Service Type Results</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Dcae Service Type Results</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults + * @generated + */ + EClass getDcaeServiceTypeResults(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getLinks <em>Links</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Links</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getLinks() + * @see #getDcaeServiceTypeResults() + * @generated + */ + EReference getDcaeServiceTypeResults_Links(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getTotalCount <em>Total Count</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Total Count</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getTotalCount() + * @see #getDcaeServiceTypeResults() + * @generated + */ + EAttribute getDcaeServiceTypeResults_TotalCount(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getItems <em>Items</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Items</em>'. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getItems() + * @see #getDcaeServiceTypeResults() + * @generated + */ + EReference getDcaeServiceTypeResults_Items(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.Link <em>Link</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Link</em>'. + * @see org.openecomp.dcae.controller.inventory.Link + * @generated + */ + EClass getLink(); + + /** + * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.inventory.Link#getParams <em>Params</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Params</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getParams() + * @see #getLink() + * @generated + */ + EReference getLink_Params(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.Link#getTitle <em>Title</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Title</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getTitle() + * @see #getLink() + * @generated + */ + EAttribute getLink_Title(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.Link#getRel <em>Rel</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Rel</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getRel() + * @see #getLink() + * @generated + */ + EAttribute getLink_Rel(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.Link#getHref <em>Href</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Href</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getHref() + * @see #getLink() + * @generated + */ + EAttribute getLink_Href(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.Link#getUri <em>Uri</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Uri</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getUri() + * @see #getLink() + * @generated + */ + EAttribute getLink_Uri(); + + /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.inventory.Link#getUriBuilder <em>Uri Builder</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Uri Builder</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getUriBuilder() + * @see #getLink() + * @generated + */ + EReference getLink_UriBuilder(); + + /** + * Returns the meta object for the attribute list '{@link org.openecomp.dcae.controller.inventory.Link#getRels <em>Rels</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Rels</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getRels() + * @see #getLink() + * @generated + */ + EAttribute getLink_Rels(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.Link#getType <em>Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Type</em>'. + * @see org.openecomp.dcae.controller.inventory.Link#getType() + * @see #getLink() + * @generated + */ + EAttribute getLink_Type(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.Parameter <em>Parameter</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Parameter</em>'. + * @see org.openecomp.dcae.controller.inventory.Parameter + * @generated + */ + EClass getParameter(); + + /** + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.inventory.Parameter#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.openecomp.dcae.controller.inventory.Parameter#getValue() + * @see #getParameter() + * @generated + */ + EAttribute getParameter_Value(); + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.UriBuilder <em>Uri Builder</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Uri Builder</em>'. + * @see org.openecomp.dcae.controller.inventory.UriBuilder + * @generated + */ + EClass getUriBuilder(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + InventoryFactory getInventoryFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each operation of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl <em>Dcae Inventory</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDcaeInventory() + * @generated + */ + EClass DCAE_INVENTORY = eINSTANCE.getDcaeInventory(); + + /** + * The meta object literal for the '<em><b>Service Types</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_INVENTORY__SERVICE_TYPES = eINSTANCE.getDcaeInventory_ServiceTypes(); + + /** + * The meta object literal for the '<em><b>Services</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_INVENTORY__SERVICES = eINSTANCE.getDcaeInventory_Services(); + + /** + * The meta object literal for the '<em><b>Get Dcae Service Types</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES__STRING_BOOLEAN_BOOLEAN_STRING_STRING_STRING_STRING_STRING_INTEGER = eINSTANCE.getDcaeInventory__GetDcaeServiceTypes__String_Boolean_Boolean_String_String_String_String_String_Integer(); + + /** + * The meta object literal for the '<em><b>Delete Dcae Service Types Type</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___DELETE_DCAE_SERVICE_TYPES_TYPE__STRING = eINSTANCE.getDcaeInventory__DeleteDcaeServiceTypesType__String(); + + /** + * The meta object literal for the '<em><b>Get Dcae Service Types Type</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES_TYPE__STRING = eINSTANCE.getDcaeInventory__GetDcaeServiceTypesType__String(); + + /** + * The meta object literal for the '<em><b>Create Dcae Service Types Type Name</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___CREATE_DCAE_SERVICE_TYPES_TYPE_NAME__DCAESERVICETYPEREQUEST = eINSTANCE.getDcaeInventory__CreateDcaeServiceTypesTypeName__DCAEServiceTypeRequest(); + + /** + * The meta object literal for the '<em><b>Get Dcae Services</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICES__STRING_STRING_STRING_STRING_STRING_BOOLEAN_STRING_INTEGER = eINSTANCE.getDcaeInventory__GetDcaeServices__String_String_String_String_String_Boolean_String_Integer(); + + /** + * The meta object literal for the '<em><b>Get Dcae Services Groupby Property Name</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICES_GROUPBY_PROPERTY_NAME__STRING = eINSTANCE.getDcaeInventory__GetDcaeServicesGroupbyPropertyName__String(); + + /** + * The meta object literal for the '<em><b>Delete Dcae Services Service</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___DELETE_DCAE_SERVICES_SERVICE__STRING = eINSTANCE.getDcaeInventory__DeleteDcaeServicesService__String(); + + /** + * The meta object literal for the '<em><b>Get Dcae Services Service</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICES_SERVICE__STRING = eINSTANCE.getDcaeInventory__GetDcaeServicesService__String(); + + /** + * The meta object literal for the '<em><b>Create Dcae Services Service</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___CREATE_DCAE_SERVICES_SERVICE__STRING_DCAESERVICEREQUEST = eINSTANCE.getDcaeInventory__CreateDcaeServicesService__String_DCAEServiceRequest(); + + /** + * The meta object literal for the '<em><b>Poll</b></em>' operation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EOperation DCAE_INVENTORY___POLL = eINSTANCE.getDcaeInventory__Poll(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl <em>Api Response Message</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getApiResponseMessage() + * @generated + */ + EClass API_RESPONSE_MESSAGE = eINSTANCE.getApiResponseMessage(); + + /** + * The meta object literal for the '<em><b>Code</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute API_RESPONSE_MESSAGE__CODE = eINSTANCE.getApiResponseMessage_Code(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute API_RESPONSE_MESSAGE__TYPE = eINSTANCE.getApiResponseMessage_Type(); + + /** + * The meta object literal for the '<em><b>Message</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute API_RESPONSE_MESSAGE__MESSAGE = eINSTANCE.getApiResponseMessage_Message(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl <em>DCAE Service Component</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceComponent() + * @generated + */ + EClass DCAE_SERVICE_COMPONENT = eINSTANCE.getDCAEServiceComponent(); + + /** + * The meta object literal for the '<em><b>Component Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__COMPONENT_ID = eINSTANCE.getDCAEServiceComponent_ComponentId(); + + /** + * The meta object literal for the '<em><b>Component Link</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_COMPONENT__COMPONENT_LINK = eINSTANCE.getDCAEServiceComponent_ComponentLink(); + + /** + * The meta object literal for the '<em><b>Created1</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__CREATED1 = eINSTANCE.getDCAEServiceComponent_Created1(); + + /** + * The meta object literal for the '<em><b>Modified</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__MODIFIED = eINSTANCE.getDCAEServiceComponent_Modified(); + + /** + * The meta object literal for the '<em><b>Component Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__COMPONENT_TYPE = eINSTANCE.getDCAEServiceComponent_ComponentType(); + + /** + * The meta object literal for the '<em><b>Component Source</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE = eINSTANCE.getDCAEServiceComponent_ComponentSource(); + + /** + * The meta object literal for the '<em><b>Status</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__STATUS = eINSTANCE.getDCAEServiceComponent_Status(); + + /** + * The meta object literal for the '<em><b>Location</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__LOCATION = eINSTANCE.getDCAEServiceComponent_Location(); + + /** + * The meta object literal for the '<em><b>Shareable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__SHAREABLE = eINSTANCE.getDCAEServiceComponent_Shareable(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl <em>DCAE Service Component Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceComponentRequest() + * @generated + */ + EClass DCAE_SERVICE_COMPONENT_REQUEST = eINSTANCE.getDCAEServiceComponentRequest(); + + /** + * The meta object literal for the '<em><b>Component Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID = eINSTANCE.getDCAEServiceComponentRequest_ComponentId(); + + /** + * The meta object literal for the '<em><b>Component Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE = eINSTANCE.getDCAEServiceComponentRequest_ComponentType(); + + /** + * The meta object literal for the '<em><b>Component Source</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE = eINSTANCE.getDCAEServiceComponentRequest_ComponentSource(); + + /** + * The meta object literal for the '<em><b>Shareable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE = eINSTANCE.getDCAEServiceComponentRequest_Shareable(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl <em>DCAE Service</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEService() + * @generated + */ + EClass DCAE_SERVICE = eINSTANCE.getDCAEService(); + + /** + * The meta object literal for the '<em><b>Service Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE__SERVICE_ID = eINSTANCE.getDCAEService_ServiceId(); + + /** + * The meta object literal for the '<em><b>Self Link</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE__SELF_LINK = eINSTANCE.getDCAEService_SelfLink(); + + /** + * The meta object literal for the '<em><b>Created1</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE__CREATED1 = eINSTANCE.getDCAEService_Created1(); + + /** + * The meta object literal for the '<em><b>Modified</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE__MODIFIED = eINSTANCE.getDCAEService_Modified(); + + /** + * The meta object literal for the '<em><b>Type Link</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE__TYPE_LINK = eINSTANCE.getDCAEService_TypeLink(); + + /** + * The meta object literal for the '<em><b>Vnf Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE__VNF_ID = eINSTANCE.getDCAEService_VnfId(); + + /** + * The meta object literal for the '<em><b>Vnf Link</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE__VNF_LINK = eINSTANCE.getDCAEService_VnfLink(); + + /** + * The meta object literal for the '<em><b>Vnf Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE__VNF_TYPE = eINSTANCE.getDCAEService_VnfType(); + + /** + * The meta object literal for the '<em><b>Vnf Location</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE__VNF_LOCATION = eINSTANCE.getDCAEService_VnfLocation(); + + /** + * The meta object literal for the '<em><b>Deployment Ref</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE__DEPLOYMENT_REF = eINSTANCE.getDCAEService_DeploymentRef(); + + /** + * The meta object literal for the '<em><b>Components</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE__COMPONENTS = eINSTANCE.getDCAEService_Components(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl <em>DCAE Service Group By Results</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceGroupByResults() + * @generated + */ + EClass DCAE_SERVICE_GROUP_BY_RESULTS = eINSTANCE.getDCAEServiceGroupByResults(); + + /** + * The meta object literal for the '<em><b>Property Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME = eINSTANCE.getDCAEServiceGroupByResults_PropertyName(); + + /** + * The meta object literal for the '<em><b>Property Values</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES = eINSTANCE.getDCAEServiceGroupByResults_PropertyValues(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl <em>DCAE Service Group By Results Property Values</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceGroupByResultsPropertyValues() + * @generated + */ + EClass DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES = eINSTANCE.getDCAEServiceGroupByResultsPropertyValues(); + + /** + * The meta object literal for the '<em><b>Count</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT = eINSTANCE.getDCAEServiceGroupByResultsPropertyValues_Count(); + + /** + * The meta object literal for the '<em><b>Property Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE = eINSTANCE.getDCAEServiceGroupByResultsPropertyValues_PropertyValue(); + + /** + * The meta object literal for the '<em><b>Dcae Service Query Link</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK = eINSTANCE.getDCAEServiceGroupByResultsPropertyValues_DcaeServiceQueryLink(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl <em>DCAE Service Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceRequest() + * @generated + */ + EClass DCAE_SERVICE_REQUEST = eINSTANCE.getDCAEServiceRequest(); + + /** + * The meta object literal for the '<em><b>Type Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__TYPE_ID = eINSTANCE.getDCAEServiceRequest_TypeId(); + + /** + * The meta object literal for the '<em><b>Vnf Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__VNF_ID = eINSTANCE.getDCAEServiceRequest_VnfId(); + + /** + * The meta object literal for the '<em><b>Vnf Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__VNF_TYPE = eINSTANCE.getDCAEServiceRequest_VnfType(); + + /** + * The meta object literal for the '<em><b>Vnf Location</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__VNF_LOCATION = eINSTANCE.getDCAEServiceRequest_VnfLocation(); + + /** + * The meta object literal for the '<em><b>Deployment Ref</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__DEPLOYMENT_REF = eINSTANCE.getDCAEServiceRequest_DeploymentRef(); + + /** + * The meta object literal for the '<em><b>Components</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_REQUEST__COMPONENTS = eINSTANCE.getDCAEServiceRequest_Components(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl <em>DCAE Service Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceType() + * @generated + */ + EClass DCAE_SERVICE_TYPE = eINSTANCE.getDCAEServiceType(); + + /** + * The meta object literal for the '<em><b>Owner</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__OWNER = eINSTANCE.getDCAEServiceType_Owner(); + + /** + * The meta object literal for the '<em><b>Type Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__TYPE_NAME = eINSTANCE.getDCAEServiceType_TypeName(); + + /** + * The meta object literal for the '<em><b>Type Version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__TYPE_VERSION = eINSTANCE.getDCAEServiceType_TypeVersion(); + + /** + * The meta object literal for the '<em><b>Blueprint Template</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE = eINSTANCE.getDCAEServiceType_BlueprintTemplate(); + + /** + * The meta object literal for the '<em><b>Service Ids</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__SERVICE_IDS = eINSTANCE.getDCAEServiceType_ServiceIds(); + + /** + * The meta object literal for the '<em><b>Vnf Types</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__VNF_TYPES = eINSTANCE.getDCAEServiceType_VnfTypes(); + + /** + * The meta object literal for the '<em><b>Service Locations</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__SERVICE_LOCATIONS = eINSTANCE.getDCAEServiceType_ServiceLocations(); + + /** + * The meta object literal for the '<em><b>Asdc Service Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__ASDC_SERVICE_ID = eINSTANCE.getDCAEServiceType_AsdcServiceId(); + + /** + * The meta object literal for the '<em><b>Asdc Resource Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID = eINSTANCE.getDCAEServiceType_AsdcResourceId(); + + /** + * The meta object literal for the '<em><b>Asdc Service URL</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__ASDC_SERVICE_URL = eINSTANCE.getDCAEServiceType_AsdcServiceURL(); + + /** + * The meta object literal for the '<em><b>Type Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__TYPE_ID = eINSTANCE.getDCAEServiceType_TypeId(); + + /** + * The meta object literal for the '<em><b>Self Link</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_TYPE__SELF_LINK = eINSTANCE.getDCAEServiceType_SelfLink(); + + /** + * The meta object literal for the '<em><b>Created1</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__CREATED1 = eINSTANCE.getDCAEServiceType_Created1(); + + /** + * The meta object literal for the '<em><b>Deactivated</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__DEACTIVATED = eINSTANCE.getDCAEServiceType_Deactivated(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl <em>DCAE Service Type Request</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDCAEServiceTypeRequest() + * @generated + */ + EClass DCAE_SERVICE_TYPE_REQUEST = eINSTANCE.getDCAEServiceTypeRequest(); + + /** + * The meta object literal for the '<em><b>Owner</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__OWNER = eINSTANCE.getDCAEServiceTypeRequest_Owner(); + + /** + * The meta object literal for the '<em><b>Type Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME = eINSTANCE.getDCAEServiceTypeRequest_TypeName(); + + /** + * The meta object literal for the '<em><b>Type Version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION = eINSTANCE.getDCAEServiceTypeRequest_TypeVersion(); + + /** + * The meta object literal for the '<em><b>Blueprint Template</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE = eINSTANCE.getDCAEServiceTypeRequest_BlueprintTemplate(); + + /** + * The meta object literal for the '<em><b>Service Ids</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS = eINSTANCE.getDCAEServiceTypeRequest_ServiceIds(); + + /** + * The meta object literal for the '<em><b>Vnf Types</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES = eINSTANCE.getDCAEServiceTypeRequest_VnfTypes(); + + /** + * The meta object literal for the '<em><b>Service Locations</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS = eINSTANCE.getDCAEServiceTypeRequest_ServiceLocations(); + + /** + * The meta object literal for the '<em><b>Asdc Service Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID = eINSTANCE.getDCAEServiceTypeRequest_AsdcServiceId(); + + /** + * The meta object literal for the '<em><b>Asdc Resource Id</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID = eINSTANCE.getDCAEServiceTypeRequest_AsdcResourceId(); + + /** + * The meta object literal for the '<em><b>Asdc Service URL</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL = eINSTANCE.getDCAEServiceTypeRequest_AsdcServiceURL(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl <em>Dcae Service Results</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDcaeServiceResults() + * @generated + */ + EClass DCAE_SERVICE_RESULTS = eINSTANCE.getDcaeServiceResults(); + + /** + * The meta object literal for the '<em><b>Links</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_RESULTS__LINKS = eINSTANCE.getDcaeServiceResults_Links(); + + /** + * The meta object literal for the '<em><b>Total Count</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_RESULTS__TOTAL_COUNT = eINSTANCE.getDcaeServiceResults_TotalCount(); + + /** + * The meta object literal for the '<em><b>Items</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_RESULTS__ITEMS = eINSTANCE.getDcaeServiceResults_Items(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl <em>Dcae Service Type Results</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getDcaeServiceTypeResults() + * @generated + */ + EClass DCAE_SERVICE_TYPE_RESULTS = eINSTANCE.getDcaeServiceTypeResults(); + + /** + * The meta object literal for the '<em><b>Links</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_TYPE_RESULTS__LINKS = eINSTANCE.getDcaeServiceTypeResults_Links(); + + /** + * The meta object literal for the '<em><b>Total Count</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT = eINSTANCE.getDcaeServiceTypeResults_TotalCount(); + + /** + * The meta object literal for the '<em><b>Items</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_SERVICE_TYPE_RESULTS__ITEMS = eINSTANCE.getDcaeServiceTypeResults_Items(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl <em>Link</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.LinkImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getLink() + * @generated + */ + EClass LINK = eINSTANCE.getLink(); + + /** + * The meta object literal for the '<em><b>Params</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference LINK__PARAMS = eINSTANCE.getLink_Params(); + + /** + * The meta object literal for the '<em><b>Title</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LINK__TITLE = eINSTANCE.getLink_Title(); + + /** + * The meta object literal for the '<em><b>Rel</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LINK__REL = eINSTANCE.getLink_Rel(); + + /** + * The meta object literal for the '<em><b>Href</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LINK__HREF = eINSTANCE.getLink_Href(); + + /** + * The meta object literal for the '<em><b>Uri</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LINK__URI = eINSTANCE.getLink_Uri(); + + /** + * The meta object literal for the '<em><b>Uri Builder</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference LINK__URI_BUILDER = eINSTANCE.getLink_UriBuilder(); + + /** + * The meta object literal for the '<em><b>Rels</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LINK__RELS = eINSTANCE.getLink_Rels(); + + /** + * The meta object literal for the '<em><b>Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute LINK__TYPE = eINSTANCE.getLink_Type(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.ParameterImpl <em>Parameter</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.ParameterImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getParameter() + * @generated + */ + EClass PARAMETER = eINSTANCE.getParameter(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PARAMETER__VALUE = eINSTANCE.getParameter_Value(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.UriBuilderImpl <em>Uri Builder</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.impl.UriBuilderImpl + * @see org.openecomp.dcae.controller.inventory.impl.InventoryPackageImpl#getUriBuilder() + * @generated + */ + EClass URI_BUILDER = eINSTANCE.getUriBuilder(); + + } + +} //InventoryPackage diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Link.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Link.java new file mode 100644 index 0000000..02095cc --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Link.java @@ -0,0 +1,220 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.common.util.EList; +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Link</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getParams <em>Params</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getRel <em>Rel</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getHref <em>Href</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getUri <em>Uri</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getUriBuilder <em>Uri Builder</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getRels <em>Rels</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.Link#getType <em>Type</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink() + * @model + * @generated + */ +public interface Link extends NamedEntity { + /** + * Returns the value of the '<em><b>Params</b></em>' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.Parameter}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Params</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Params</em>' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Params() + * @model containment="true" + * @generated + */ + EList<Parameter> getParams(); + + /** + * Returns the value of the '<em><b>Title</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Title</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Title</em>' attribute. + * @see #setTitle(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Title() + * @model unique="false" + * @generated + */ + String getTitle(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.Link#getTitle <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Title</em>' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the '<em><b>Rel</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rel</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rel</em>' attribute. + * @see #setRel(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Rel() + * @model unique="false" + * @generated + */ + String getRel(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.Link#getRel <em>Rel</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Rel</em>' attribute. + * @see #getRel() + * @generated + */ + void setRel(String value); + + /** + * Returns the value of the '<em><b>Href</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Href</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Href</em>' attribute. + * @see #setHref(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Href() + * @model unique="false" + * @generated + */ + String getHref(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.Link#getHref <em>Href</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Href</em>' attribute. + * @see #getHref() + * @generated + */ + void setHref(String value); + + /** + * Returns the value of the '<em><b>Uri</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Uri</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Uri</em>' attribute. + * @see #setUri(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Uri() + * @model unique="false" + * @generated + */ + String getUri(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.Link#getUri <em>Uri</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Uri</em>' attribute. + * @see #getUri() + * @generated + */ + void setUri(String value); + + /** + * Returns the value of the '<em><b>Uri Builder</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Uri Builder</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Uri Builder</em>' containment reference. + * @see #setUriBuilder(UriBuilder) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_UriBuilder() + * @model containment="true" + * @generated + */ + UriBuilder getUriBuilder(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.Link#getUriBuilder <em>Uri Builder</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Uri Builder</em>' containment reference. + * @see #getUriBuilder() + * @generated + */ + void setUriBuilder(UriBuilder value); + + /** + * Returns the value of the '<em><b>Rels</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Rels</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Rels</em>' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Rels() + * @model unique="false" + * @generated + */ + EList<String> getRels(); + + /** + * Returns the value of the '<em><b>Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Type</em>' attribute. + * @see #setType(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Type() + * @model unique="false" + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.Link#getType <em>Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Type</em>' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + +} // Link diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Parameter.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Parameter.java new file mode 100644 index 0000000..0fcec0e --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Parameter.java @@ -0,0 +1,50 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Parameter</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.Parameter#getValue <em>Value</em>}</li> + * </ul> + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getParameter() + * @model + * @generated + */ +public interface Parameter extends NamedEntity { + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' attribute. + * @see #setValue(String) + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getParameter_Value() + * @model unique="false" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.inventory.Parameter#getValue <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // Parameter diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/UriBuilder.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/UriBuilder.java new file mode 100644 index 0000000..d5a9557 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/UriBuilder.java @@ -0,0 +1,18 @@ +/** + */ +package org.openecomp.dcae.controller.inventory; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Uri Builder</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getUriBuilder() + * @model + * @generated + */ +public interface UriBuilder extends EObject { +} // UriBuilder diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ApiResponseMessageImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ApiResponseMessageImpl.java new file mode 100644 index 0000000..44027bf --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ApiResponseMessageImpl.java @@ -0,0 +1,271 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.ApiResponseMessage; +import org.openecomp.dcae.controller.inventory.InventoryPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Api Response Message</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl#getCode <em>Code</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl#getType <em>Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl#getMessage <em>Message</em>}</li> + * </ul> + * + * @generated + */ +public class ApiResponseMessageImpl extends MinimalEObjectImpl.Container implements ApiResponseMessage { + /** + * The default value of the '{@link #getCode() <em>Code</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCode() + * @generated + * @ordered + */ + protected static final Integer CODE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCode() <em>Code</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCode() + * @generated + * @ordered + */ + protected Integer code = CODE_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; + + /** + * 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; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ApiResponseMessageImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.API_RESPONSE_MESSAGE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getCode() { + return code; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCode(Integer newCode) { + Integer oldCode = code; + code = newCode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.API_RESPONSE_MESSAGE__CODE, oldCode, code)); + } + + /** + * <!-- 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, InventoryPackage.API_RESPONSE_MESSAGE__TYPE, oldType, type)); + } + + /** + * <!-- 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, InventoryPackage.API_RESPONSE_MESSAGE__MESSAGE, oldMessage, message)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case InventoryPackage.API_RESPONSE_MESSAGE__CODE: + return getCode(); + case InventoryPackage.API_RESPONSE_MESSAGE__TYPE: + return getType(); + case InventoryPackage.API_RESPONSE_MESSAGE__MESSAGE: + return getMessage(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.API_RESPONSE_MESSAGE__CODE: + setCode((Integer)newValue); + return; + case InventoryPackage.API_RESPONSE_MESSAGE__TYPE: + setType((String)newValue); + return; + case InventoryPackage.API_RESPONSE_MESSAGE__MESSAGE: + setMessage((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.API_RESPONSE_MESSAGE__CODE: + setCode(CODE_EDEFAULT); + return; + case InventoryPackage.API_RESPONSE_MESSAGE__TYPE: + setType(TYPE_EDEFAULT); + return; + case InventoryPackage.API_RESPONSE_MESSAGE__MESSAGE: + setMessage(MESSAGE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.API_RESPONSE_MESSAGE__CODE: + return CODE_EDEFAULT == null ? code != null : !CODE_EDEFAULT.equals(code); + case InventoryPackage.API_RESPONSE_MESSAGE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case InventoryPackage.API_RESPONSE_MESSAGE__MESSAGE: + return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); + } + 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(" (code: "); + result.append(code); + result.append(", type: "); + result.append(type); + result.append(", message: "); + result.append(message); + result.append(')'); + return result.toString(); + } + +} //ApiResponseMessageImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentImpl.java new file mode 100644 index 0000000..a8eb878 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentImpl.java @@ -0,0 +1,623 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +import java.util.Date; + +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.openecomp.dcae.controller.inventory.DCAEServiceComponent; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service Component</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentId <em>Component Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentLink <em>Component Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getCreated1 <em>Created1</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getModified <em>Modified</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentType <em>Component Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentSource <em>Component Source</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getStatus <em>Status</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getLocation <em>Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getShareable <em>Shareable</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceComponentImpl extends NamedEntityImpl implements DCAEServiceComponent { + /** + * The default value of the '{@link #getComponentId() <em>Component Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentId() + * @generated + * @ordered + */ + protected static final String COMPONENT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentId() <em>Component Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentId() + * @generated + * @ordered + */ + protected String componentId = COMPONENT_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getComponentLink() <em>Component Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentLink() + * @generated + * @ordered + */ + protected Link componentLink; + + /** + * The default value of the '{@link #getCreated1() <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated1() + * @generated + * @ordered + */ + protected static final Date CREATED1_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated1() <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated1() + * @generated + * @ordered + */ + protected Date created1 = CREATED1_EDEFAULT; + + /** + * The default value of the '{@link #getModified() <em>Modified</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModified() + * @generated + * @ordered + */ + protected static final Date MODIFIED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getModified() <em>Modified</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModified() + * @generated + * @ordered + */ + protected Date modified = MODIFIED_EDEFAULT; + + /** + * The default value of the '{@link #getComponentType() <em>Component Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentType() + * @generated + * @ordered + */ + protected static final String COMPONENT_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentType() <em>Component Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentType() + * @generated + * @ordered + */ + protected String componentType = COMPONENT_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getComponentSource() <em>Component Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentSource() + * @generated + * @ordered + */ + protected static final String COMPONENT_SOURCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentSource() <em>Component Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentSource() + * @generated + * @ordered + */ + protected String componentSource = COMPONENT_SOURCE_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 #getLocation() <em>Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLocation() + * @generated + * @ordered + */ + protected static final String LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLocation() + * @generated + * @ordered + */ + protected String location = LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getShareable() <em>Shareable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShareable() + * @generated + * @ordered + */ + protected static final Integer SHAREABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShareable() <em>Shareable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShareable() + * @generated + * @ordered + */ + protected Integer shareable = SHAREABLE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceComponentImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_COMPONENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getComponentId() { + return componentId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponentId(String newComponentId) { + String oldComponentId = componentId; + componentId = newComponentId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_ID, oldComponentId, componentId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link getComponentLink() { + return componentLink; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetComponentLink(Link newComponentLink, NotificationChain msgs) { + Link oldComponentLink = componentLink; + componentLink = newComponentLink; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK, oldComponentLink, newComponentLink); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponentLink(Link newComponentLink) { + if (newComponentLink != componentLink) { + NotificationChain msgs = null; + if (componentLink != null) + msgs = ((InternalEObject)componentLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK, null, msgs); + if (newComponentLink != null) + msgs = ((InternalEObject)newComponentLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK, null, msgs); + msgs = basicSetComponentLink(newComponentLink, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK, newComponentLink, newComponentLink)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getCreated1() { + return created1; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated1(Date newCreated1) { + Date oldCreated1 = created1; + created1 = newCreated1; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__CREATED1, oldCreated1, created1)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getModified() { + return modified; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setModified(Date newModified) { + Date oldModified = modified; + modified = newModified; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__MODIFIED, oldModified, modified)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getComponentType() { + return componentType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponentType(String newComponentType) { + String oldComponentType = componentType; + componentType = newComponentType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_TYPE, oldComponentType, componentType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getComponentSource() { + return componentSource; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponentSource(String newComponentSource) { + String oldComponentSource = componentSource; + componentSource = newComponentSource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE, oldComponentSource, componentSource)); + } + + /** + * <!-- 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, InventoryPackage.DCAE_SERVICE_COMPONENT__STATUS, oldStatus, status)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLocation() { + return location; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLocation(String newLocation) { + String oldLocation = location; + location = newLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__LOCATION, oldLocation, location)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getShareable() { + return shareable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setShareable(Integer newShareable) { + Integer oldShareable = shareable; + shareable = newShareable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT__SHAREABLE, oldShareable, shareable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK: + return basicSetComponentLink(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 InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_ID: + return getComponentId(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK: + return getComponentLink(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__CREATED1: + return getCreated1(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__MODIFIED: + return getModified(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_TYPE: + return getComponentType(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE: + return getComponentSource(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__STATUS: + return getStatus(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__LOCATION: + return getLocation(); + case InventoryPackage.DCAE_SERVICE_COMPONENT__SHAREABLE: + return getShareable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_ID: + setComponentId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK: + setComponentLink((Link)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__CREATED1: + setCreated1((Date)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__MODIFIED: + setModified((Date)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_TYPE: + setComponentType((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE: + setComponentSource((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__STATUS: + setStatus((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__LOCATION: + setLocation((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__SHAREABLE: + setShareable((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_ID: + setComponentId(COMPONENT_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK: + setComponentLink((Link)null); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__CREATED1: + setCreated1(CREATED1_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__MODIFIED: + setModified(MODIFIED_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_TYPE: + setComponentType(COMPONENT_TYPE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE: + setComponentSource(COMPONENT_SOURCE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__STATUS: + setStatus(STATUS_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__LOCATION: + setLocation(LOCATION_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT__SHAREABLE: + setShareable(SHAREABLE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_ID: + return COMPONENT_ID_EDEFAULT == null ? componentId != null : !COMPONENT_ID_EDEFAULT.equals(componentId); + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_LINK: + return componentLink != null; + case InventoryPackage.DCAE_SERVICE_COMPONENT__CREATED1: + return CREATED1_EDEFAULT == null ? created1 != null : !CREATED1_EDEFAULT.equals(created1); + case InventoryPackage.DCAE_SERVICE_COMPONENT__MODIFIED: + return MODIFIED_EDEFAULT == null ? modified != null : !MODIFIED_EDEFAULT.equals(modified); + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_TYPE: + return COMPONENT_TYPE_EDEFAULT == null ? componentType != null : !COMPONENT_TYPE_EDEFAULT.equals(componentType); + case InventoryPackage.DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE: + return COMPONENT_SOURCE_EDEFAULT == null ? componentSource != null : !COMPONENT_SOURCE_EDEFAULT.equals(componentSource); + case InventoryPackage.DCAE_SERVICE_COMPONENT__STATUS: + return STATUS_EDEFAULT == null ? status != null : !STATUS_EDEFAULT.equals(status); + case InventoryPackage.DCAE_SERVICE_COMPONENT__LOCATION: + return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); + case InventoryPackage.DCAE_SERVICE_COMPONENT__SHAREABLE: + return SHAREABLE_EDEFAULT == null ? shareable != null : !SHAREABLE_EDEFAULT.equals(shareable); + } + 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(" (componentId: "); + result.append(componentId); + result.append(", created1: "); + result.append(created1); + result.append(", modified: "); + result.append(modified); + result.append(", componentType: "); + result.append(componentType); + result.append(", componentSource: "); + result.append(componentSource); + result.append(", status: "); + result.append(status); + result.append(", location: "); + result.append(location); + result.append(", shareable: "); + result.append(shareable); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceComponentImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentRequestImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentRequestImpl.java new file mode 100644 index 0000000..a85b328 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentRequestImpl.java @@ -0,0 +1,325 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest; +import org.openecomp.dcae.controller.inventory.InventoryPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service Component Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getComponentId <em>Component Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getComponentType <em>Component Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getComponentSource <em>Component Source</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getShareable <em>Shareable</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceComponentRequestImpl extends MinimalEObjectImpl.Container implements DCAEServiceComponentRequest { + /** + * The default value of the '{@link #getComponentId() <em>Component Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentId() + * @generated + * @ordered + */ + protected static final String COMPONENT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentId() <em>Component Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentId() + * @generated + * @ordered + */ + protected String componentId = COMPONENT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getComponentType() <em>Component Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentType() + * @generated + * @ordered + */ + protected static final String COMPONENT_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentType() <em>Component Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentType() + * @generated + * @ordered + */ + protected String componentType = COMPONENT_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getComponentSource() <em>Component Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentSource() + * @generated + * @ordered + */ + protected static final String COMPONENT_SOURCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentSource() <em>Component Source</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponentSource() + * @generated + * @ordered + */ + protected String componentSource = COMPONENT_SOURCE_EDEFAULT; + + /** + * The default value of the '{@link #getShareable() <em>Shareable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShareable() + * @generated + * @ordered + */ + protected static final Integer SHAREABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShareable() <em>Shareable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getShareable() + * @generated + * @ordered + */ + protected Integer shareable = SHAREABLE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceComponentRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_COMPONENT_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getComponentId() { + return componentId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponentId(String newComponentId) { + String oldComponentId = componentId; + componentId = newComponentId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID, oldComponentId, componentId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getComponentType() { + return componentType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponentType(String newComponentType) { + String oldComponentType = componentType; + componentType = newComponentType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE, oldComponentType, componentType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getComponentSource() { + return componentSource; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setComponentSource(String newComponentSource) { + String oldComponentSource = componentSource; + componentSource = newComponentSource; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE, oldComponentSource, componentSource)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getShareable() { + return shareable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setShareable(Integer newShareable) { + Integer oldShareable = shareable; + shareable = newShareable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE, oldShareable, shareable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID: + return getComponentId(); + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE: + return getComponentType(); + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE: + return getComponentSource(); + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE: + return getShareable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID: + setComponentId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE: + setComponentType((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE: + setComponentSource((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE: + setShareable((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID: + setComponentId(COMPONENT_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE: + setComponentType(COMPONENT_TYPE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE: + setComponentSource(COMPONENT_SOURCE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE: + setShareable(SHAREABLE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID: + return COMPONENT_ID_EDEFAULT == null ? componentId != null : !COMPONENT_ID_EDEFAULT.equals(componentId); + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE: + return COMPONENT_TYPE_EDEFAULT == null ? componentType != null : !COMPONENT_TYPE_EDEFAULT.equals(componentType); + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE: + return COMPONENT_SOURCE_EDEFAULT == null ? componentSource != null : !COMPONENT_SOURCE_EDEFAULT.equals(componentSource); + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE: + return SHAREABLE_EDEFAULT == null ? shareable != null : !SHAREABLE_EDEFAULT.equals(shareable); + } + 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(" (componentId: "); + result.append(componentId); + result.append(", componentType: "); + result.append(componentType); + result.append(", componentSource: "); + result.append(componentSource); + result.append(", shareable: "); + result.append(shareable); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceComponentRequestImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsImpl.java new file mode 100644 index 0000000..6214103 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsImpl.java @@ -0,0 +1,222 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults; +import org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues; +import org.openecomp.dcae.controller.inventory.InventoryPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service Group By Results</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl#getPropertyName <em>Property Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl#getPropertyValues <em>Property Values</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceGroupByResultsImpl extends MinimalEObjectImpl.Container implements DCAEServiceGroupByResults { + /** + * The default value of the '{@link #getPropertyName() <em>Property Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropertyName() + * @generated + * @ordered + */ + protected static final String PROPERTY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPropertyName() <em>Property Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropertyName() + * @generated + * @ordered + */ + protected String propertyName = PROPERTY_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getPropertyValues() <em>Property Values</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropertyValues() + * @generated + * @ordered + */ + protected EList<DCAEServiceGroupByResultsPropertyValues> propertyValues; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceGroupByResultsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_GROUP_BY_RESULTS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPropertyName() { + return propertyName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPropertyName(String newPropertyName) { + String oldPropertyName = propertyName; + propertyName = newPropertyName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME, oldPropertyName, propertyName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DCAEServiceGroupByResultsPropertyValues> getPropertyValues() { + if (propertyValues == null) { + propertyValues = new EObjectContainmentEList<DCAEServiceGroupByResultsPropertyValues>(DCAEServiceGroupByResultsPropertyValues.class, this, InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES); + } + return propertyValues; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES: + return ((InternalEList<?>)getPropertyValues()).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 InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME: + return getPropertyName(); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES: + return getPropertyValues(); + } + 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 InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME: + setPropertyName((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES: + getPropertyValues().clear(); + getPropertyValues().addAll((Collection<? extends DCAEServiceGroupByResultsPropertyValues>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME: + setPropertyName(PROPERTY_NAME_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES: + getPropertyValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME: + return PROPERTY_NAME_EDEFAULT == null ? propertyName != null : !PROPERTY_NAME_EDEFAULT.equals(propertyName); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES: + return propertyValues != null && !propertyValues.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(" (propertyName: "); + result.append(propertyName); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceGroupByResultsImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsPropertyValuesImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsPropertyValuesImpl.java new file mode 100644 index 0000000..c0e31fe --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsPropertyValuesImpl.java @@ -0,0 +1,298 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service Group By Results Property Values</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl#getCount <em>Count</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl#getPropertyValue <em>Property Value</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl#getDcaeServiceQueryLink <em>Dcae Service Query Link</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceGroupByResultsPropertyValuesImpl extends MinimalEObjectImpl.Container implements DCAEServiceGroupByResultsPropertyValues { + /** + * The default value of the '{@link #getCount() <em>Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCount() + * @generated + * @ordered + */ + protected static final Integer COUNT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCount() <em>Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCount() + * @generated + * @ordered + */ + protected Integer count = COUNT_EDEFAULT; + + /** + * The default value of the '{@link #getPropertyValue() <em>Property Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropertyValue() + * @generated + * @ordered + */ + protected static final String PROPERTY_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPropertyValue() <em>Property Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPropertyValue() + * @generated + * @ordered + */ + protected String propertyValue = PROPERTY_VALUE_EDEFAULT; + + /** + * The cached value of the '{@link #getDcaeServiceQueryLink() <em>Dcae Service Query Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDcaeServiceQueryLink() + * @generated + * @ordered + */ + protected Link dcaeServiceQueryLink; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceGroupByResultsPropertyValuesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getCount() { + return count; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCount(Integer newCount) { + Integer oldCount = count; + count = newCount; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT, oldCount, count)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPropertyValue() { + return propertyValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPropertyValue(String newPropertyValue) { + String oldPropertyValue = propertyValue; + propertyValue = newPropertyValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE, oldPropertyValue, propertyValue)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link getDcaeServiceQueryLink() { + return dcaeServiceQueryLink; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetDcaeServiceQueryLink(Link newDcaeServiceQueryLink, NotificationChain msgs) { + Link oldDcaeServiceQueryLink = dcaeServiceQueryLink; + dcaeServiceQueryLink = newDcaeServiceQueryLink; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK, oldDcaeServiceQueryLink, newDcaeServiceQueryLink); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDcaeServiceQueryLink(Link newDcaeServiceQueryLink) { + if (newDcaeServiceQueryLink != dcaeServiceQueryLink) { + NotificationChain msgs = null; + if (dcaeServiceQueryLink != null) + msgs = ((InternalEObject)dcaeServiceQueryLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK, null, msgs); + if (newDcaeServiceQueryLink != null) + msgs = ((InternalEObject)newDcaeServiceQueryLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK, null, msgs); + msgs = basicSetDcaeServiceQueryLink(newDcaeServiceQueryLink, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK, newDcaeServiceQueryLink, newDcaeServiceQueryLink)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK: + return basicSetDcaeServiceQueryLink(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 InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT: + return getCount(); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE: + return getPropertyValue(); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK: + return getDcaeServiceQueryLink(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT: + setCount((Integer)newValue); + return; + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE: + setPropertyValue((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK: + setDcaeServiceQueryLink((Link)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT: + setCount(COUNT_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE: + setPropertyValue(PROPERTY_VALUE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK: + setDcaeServiceQueryLink((Link)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT: + return COUNT_EDEFAULT == null ? count != null : !COUNT_EDEFAULT.equals(count); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE: + return PROPERTY_VALUE_EDEFAULT == null ? propertyValue != null : !PROPERTY_VALUE_EDEFAULT.equals(propertyValue); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK: + return dcaeServiceQueryLink != 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(" (count: "); + result.append(count); + result.append(", propertyValue: "); + result.append(propertyValue); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceGroupByResultsPropertyValuesImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceImpl.java new file mode 100644 index 0000000..f877de1 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceImpl.java @@ -0,0 +1,745 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +import java.util.Collection; +import java.util.Date; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEService; +import org.openecomp.dcae.controller.inventory.DCAEServiceComponent; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getServiceId <em>Service Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getSelfLink <em>Self Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getCreated1 <em>Created1</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getModified <em>Modified</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getTypeLink <em>Type Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfId <em>Vnf Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfLink <em>Vnf Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfType <em>Vnf Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfLocation <em>Vnf Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getDeploymentRef <em>Deployment Ref</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getComponents <em>Components</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceImpl extends NamedEntityImpl implements DCAEService { + /** + * The default value of the '{@link #getServiceId() <em>Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceId() + * @generated + * @ordered + */ + protected static final String SERVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceId() <em>Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceId() + * @generated + * @ordered + */ + protected String serviceId = SERVICE_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getSelfLink() <em>Self Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSelfLink() + * @generated + * @ordered + */ + protected Link selfLink; + + /** + * The default value of the '{@link #getCreated1() <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated1() + * @generated + * @ordered + */ + protected static final Date CREATED1_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated1() <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated1() + * @generated + * @ordered + */ + protected Date created1 = CREATED1_EDEFAULT; + + /** + * The default value of the '{@link #getModified() <em>Modified</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModified() + * @generated + * @ordered + */ + protected static final Date MODIFIED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getModified() <em>Modified</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getModified() + * @generated + * @ordered + */ + protected Date modified = MODIFIED_EDEFAULT; + + /** + * The cached value of the '{@link #getTypeLink() <em>Type Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeLink() + * @generated + * @ordered + */ + protected Link typeLink; + + /** + * The default value of the '{@link #getVnfId() <em>Vnf Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfId() + * @generated + * @ordered + */ + protected static final String VNF_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfId() <em>Vnf Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfId() + * @generated + * @ordered + */ + protected String vnfId = VNF_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getVnfLink() <em>Vnf Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfLink() + * @generated + * @ordered + */ + protected Link vnfLink; + + /** + * The default value of the '{@link #getVnfType() <em>Vnf Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfType() + * @generated + * @ordered + */ + protected static final String VNF_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfType() <em>Vnf Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfType() + * @generated + * @ordered + */ + protected String vnfType = VNF_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getVnfLocation() <em>Vnf Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected static final String VNF_LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfLocation() <em>Vnf Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected String vnfLocation = VNF_LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getDeploymentRef() <em>Deployment Ref</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected static final String DEPLOYMENT_REF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeploymentRef() <em>Deployment Ref</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected String deploymentRef = DEPLOYMENT_REF_EDEFAULT; + + /** + * The cached value of the '{@link #getComponents() <em>Components</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponents() + * @generated + * @ordered + */ + protected EList<DCAEServiceComponent> components; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getServiceId() { + return serviceId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setServiceId(String newServiceId) { + String oldServiceId = serviceId; + serviceId = newServiceId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__SERVICE_ID, oldServiceId, serviceId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link getSelfLink() { + return selfLink; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSelfLink(Link newSelfLink, NotificationChain msgs) { + Link oldSelfLink = selfLink; + selfLink = newSelfLink; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__SELF_LINK, oldSelfLink, newSelfLink); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSelfLink(Link newSelfLink) { + if (newSelfLink != selfLink) { + NotificationChain msgs = null; + if (selfLink != null) + msgs = ((InternalEObject)selfLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE__SELF_LINK, null, msgs); + if (newSelfLink != null) + msgs = ((InternalEObject)newSelfLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE__SELF_LINK, null, msgs); + msgs = basicSetSelfLink(newSelfLink, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__SELF_LINK, newSelfLink, newSelfLink)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getCreated1() { + return created1; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated1(Date newCreated1) { + Date oldCreated1 = created1; + created1 = newCreated1; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__CREATED1, oldCreated1, created1)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getModified() { + return modified; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setModified(Date newModified) { + Date oldModified = modified; + modified = newModified; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__MODIFIED, oldModified, modified)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link getTypeLink() { + return typeLink; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTypeLink(Link newTypeLink, NotificationChain msgs) { + Link oldTypeLink = typeLink; + typeLink = newTypeLink; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__TYPE_LINK, oldTypeLink, newTypeLink); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTypeLink(Link newTypeLink) { + if (newTypeLink != typeLink) { + NotificationChain msgs = null; + if (typeLink != null) + msgs = ((InternalEObject)typeLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE__TYPE_LINK, null, msgs); + if (newTypeLink != null) + msgs = ((InternalEObject)newTypeLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE__TYPE_LINK, null, msgs); + msgs = basicSetTypeLink(newTypeLink, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__TYPE_LINK, newTypeLink, newTypeLink)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVnfId() { + return vnfId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVnfId(String newVnfId) { + String oldVnfId = vnfId; + vnfId = newVnfId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__VNF_ID, oldVnfId, vnfId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link getVnfLink() { + return vnfLink; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetVnfLink(Link newVnfLink, NotificationChain msgs) { + Link oldVnfLink = vnfLink; + vnfLink = newVnfLink; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__VNF_LINK, oldVnfLink, newVnfLink); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVnfLink(Link newVnfLink) { + if (newVnfLink != vnfLink) { + NotificationChain msgs = null; + if (vnfLink != null) + msgs = ((InternalEObject)vnfLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE__VNF_LINK, null, msgs); + if (newVnfLink != null) + msgs = ((InternalEObject)newVnfLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE__VNF_LINK, null, msgs); + msgs = basicSetVnfLink(newVnfLink, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__VNF_LINK, newVnfLink, newVnfLink)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVnfType() { + return vnfType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVnfType(String newVnfType) { + String oldVnfType = vnfType; + vnfType = newVnfType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__VNF_TYPE, oldVnfType, vnfType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVnfLocation() { + return vnfLocation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVnfLocation(String newVnfLocation) { + String oldVnfLocation = vnfLocation; + vnfLocation = newVnfLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__VNF_LOCATION, oldVnfLocation, vnfLocation)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDeploymentRef() { + return deploymentRef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDeploymentRef(String newDeploymentRef) { + String oldDeploymentRef = deploymentRef; + deploymentRef = newDeploymentRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE__DEPLOYMENT_REF, oldDeploymentRef, deploymentRef)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DCAEServiceComponent> getComponents() { + if (components == null) { + components = new EObjectContainmentEList<DCAEServiceComponent>(DCAEServiceComponent.class, this, InventoryPackage.DCAE_SERVICE__COMPONENTS); + } + return components; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE__SELF_LINK: + return basicSetSelfLink(null, msgs); + case InventoryPackage.DCAE_SERVICE__TYPE_LINK: + return basicSetTypeLink(null, msgs); + case InventoryPackage.DCAE_SERVICE__VNF_LINK: + return basicSetVnfLink(null, msgs); + case InventoryPackage.DCAE_SERVICE__COMPONENTS: + return ((InternalEList<?>)getComponents()).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 InventoryPackage.DCAE_SERVICE__SERVICE_ID: + return getServiceId(); + case InventoryPackage.DCAE_SERVICE__SELF_LINK: + return getSelfLink(); + case InventoryPackage.DCAE_SERVICE__CREATED1: + return getCreated1(); + case InventoryPackage.DCAE_SERVICE__MODIFIED: + return getModified(); + case InventoryPackage.DCAE_SERVICE__TYPE_LINK: + return getTypeLink(); + case InventoryPackage.DCAE_SERVICE__VNF_ID: + return getVnfId(); + case InventoryPackage.DCAE_SERVICE__VNF_LINK: + return getVnfLink(); + case InventoryPackage.DCAE_SERVICE__VNF_TYPE: + return getVnfType(); + case InventoryPackage.DCAE_SERVICE__VNF_LOCATION: + return getVnfLocation(); + case InventoryPackage.DCAE_SERVICE__DEPLOYMENT_REF: + return getDeploymentRef(); + case InventoryPackage.DCAE_SERVICE__COMPONENTS: + return getComponents(); + } + 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 InventoryPackage.DCAE_SERVICE__SERVICE_ID: + setServiceId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE__SELF_LINK: + setSelfLink((Link)newValue); + return; + case InventoryPackage.DCAE_SERVICE__CREATED1: + setCreated1((Date)newValue); + return; + case InventoryPackage.DCAE_SERVICE__MODIFIED: + setModified((Date)newValue); + return; + case InventoryPackage.DCAE_SERVICE__TYPE_LINK: + setTypeLink((Link)newValue); + return; + case InventoryPackage.DCAE_SERVICE__VNF_ID: + setVnfId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE__VNF_LINK: + setVnfLink((Link)newValue); + return; + case InventoryPackage.DCAE_SERVICE__VNF_TYPE: + setVnfType((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE__VNF_LOCATION: + setVnfLocation((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE__DEPLOYMENT_REF: + setDeploymentRef((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE__COMPONENTS: + getComponents().clear(); + getComponents().addAll((Collection<? extends DCAEServiceComponent>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE__SERVICE_ID: + setServiceId(SERVICE_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE__SELF_LINK: + setSelfLink((Link)null); + return; + case InventoryPackage.DCAE_SERVICE__CREATED1: + setCreated1(CREATED1_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE__MODIFIED: + setModified(MODIFIED_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE__TYPE_LINK: + setTypeLink((Link)null); + return; + case InventoryPackage.DCAE_SERVICE__VNF_ID: + setVnfId(VNF_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE__VNF_LINK: + setVnfLink((Link)null); + return; + case InventoryPackage.DCAE_SERVICE__VNF_TYPE: + setVnfType(VNF_TYPE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE__VNF_LOCATION: + setVnfLocation(VNF_LOCATION_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE__DEPLOYMENT_REF: + setDeploymentRef(DEPLOYMENT_REF_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE__COMPONENTS: + getComponents().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE__SERVICE_ID: + return SERVICE_ID_EDEFAULT == null ? serviceId != null : !SERVICE_ID_EDEFAULT.equals(serviceId); + case InventoryPackage.DCAE_SERVICE__SELF_LINK: + return selfLink != null; + case InventoryPackage.DCAE_SERVICE__CREATED1: + return CREATED1_EDEFAULT == null ? created1 != null : !CREATED1_EDEFAULT.equals(created1); + case InventoryPackage.DCAE_SERVICE__MODIFIED: + return MODIFIED_EDEFAULT == null ? modified != null : !MODIFIED_EDEFAULT.equals(modified); + case InventoryPackage.DCAE_SERVICE__TYPE_LINK: + return typeLink != null; + case InventoryPackage.DCAE_SERVICE__VNF_ID: + return VNF_ID_EDEFAULT == null ? vnfId != null : !VNF_ID_EDEFAULT.equals(vnfId); + case InventoryPackage.DCAE_SERVICE__VNF_LINK: + return vnfLink != null; + case InventoryPackage.DCAE_SERVICE__VNF_TYPE: + return VNF_TYPE_EDEFAULT == null ? vnfType != null : !VNF_TYPE_EDEFAULT.equals(vnfType); + case InventoryPackage.DCAE_SERVICE__VNF_LOCATION: + return VNF_LOCATION_EDEFAULT == null ? vnfLocation != null : !VNF_LOCATION_EDEFAULT.equals(vnfLocation); + case InventoryPackage.DCAE_SERVICE__DEPLOYMENT_REF: + return DEPLOYMENT_REF_EDEFAULT == null ? deploymentRef != null : !DEPLOYMENT_REF_EDEFAULT.equals(deploymentRef); + case InventoryPackage.DCAE_SERVICE__COMPONENTS: + return components != null && !components.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(" (serviceId: "); + result.append(serviceId); + result.append(", created1: "); + result.append(created1); + result.append(", modified: "); + result.append(modified); + result.append(", vnfId: "); + result.append(vnfId); + result.append(", vnfType: "); + result.append(vnfType); + result.append(", vnfLocation: "); + result.append(vnfLocation); + result.append(", deploymentRef: "); + result.append(deploymentRef); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceRequestImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceRequestImpl.java new file mode 100644 index 0000000..6f78215 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceRequestImpl.java @@ -0,0 +1,438 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest; +import org.openecomp.dcae.controller.inventory.DCAEServiceRequest; +import org.openecomp.dcae.controller.inventory.InventoryPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getTypeId <em>Type Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getVnfId <em>Vnf Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getVnfType <em>Vnf Type</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getVnfLocation <em>Vnf Location</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getDeploymentRef <em>Deployment Ref</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getComponents <em>Components</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceRequestImpl extends MinimalEObjectImpl.Container implements DCAEServiceRequest { + /** + * The default value of the '{@link #getTypeId() <em>Type Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeId() + * @generated + * @ordered + */ + protected static final String TYPE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeId() <em>Type Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeId() + * @generated + * @ordered + */ + protected String typeId = TYPE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getVnfId() <em>Vnf Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfId() + * @generated + * @ordered + */ + protected static final String VNF_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfId() <em>Vnf Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfId() + * @generated + * @ordered + */ + protected String vnfId = VNF_ID_EDEFAULT; + + /** + * The default value of the '{@link #getVnfType() <em>Vnf Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfType() + * @generated + * @ordered + */ + protected static final String VNF_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfType() <em>Vnf Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfType() + * @generated + * @ordered + */ + protected String vnfType = VNF_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getVnfLocation() <em>Vnf Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected static final String VNF_LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfLocation() <em>Vnf Location</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected String vnfLocation = VNF_LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getDeploymentRef() <em>Deployment Ref</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected static final String DEPLOYMENT_REF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeploymentRef() <em>Deployment Ref</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected String deploymentRef = DEPLOYMENT_REF_EDEFAULT; + + /** + * The cached value of the '{@link #getComponents() <em>Components</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getComponents() + * @generated + * @ordered + */ + protected EList<DCAEServiceComponentRequest> components; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTypeId() { + return typeId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTypeId(String newTypeId) { + String oldTypeId = typeId; + typeId = newTypeId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_REQUEST__TYPE_ID, oldTypeId, typeId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVnfId() { + return vnfId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVnfId(String newVnfId) { + String oldVnfId = vnfId; + vnfId = newVnfId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_REQUEST__VNF_ID, oldVnfId, vnfId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVnfType() { + return vnfType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVnfType(String newVnfType) { + String oldVnfType = vnfType; + vnfType = newVnfType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_REQUEST__VNF_TYPE, oldVnfType, vnfType)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVnfLocation() { + return vnfLocation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVnfLocation(String newVnfLocation) { + String oldVnfLocation = vnfLocation; + vnfLocation = newVnfLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_REQUEST__VNF_LOCATION, oldVnfLocation, vnfLocation)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDeploymentRef() { + return deploymentRef; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDeploymentRef(String newDeploymentRef) { + String oldDeploymentRef = deploymentRef; + deploymentRef = newDeploymentRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_REQUEST__DEPLOYMENT_REF, oldDeploymentRef, deploymentRef)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DCAEServiceComponentRequest> getComponents() { + if (components == null) { + components = new EObjectContainmentEList<DCAEServiceComponentRequest>(DCAEServiceComponentRequest.class, this, InventoryPackage.DCAE_SERVICE_REQUEST__COMPONENTS); + } + return components; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_REQUEST__COMPONENTS: + return ((InternalEList<?>)getComponents()).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 InventoryPackage.DCAE_SERVICE_REQUEST__TYPE_ID: + return getTypeId(); + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_ID: + return getVnfId(); + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_TYPE: + return getVnfType(); + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_LOCATION: + return getVnfLocation(); + case InventoryPackage.DCAE_SERVICE_REQUEST__DEPLOYMENT_REF: + return getDeploymentRef(); + case InventoryPackage.DCAE_SERVICE_REQUEST__COMPONENTS: + return getComponents(); + } + 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 InventoryPackage.DCAE_SERVICE_REQUEST__TYPE_ID: + setTypeId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_ID: + setVnfId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_TYPE: + setVnfType((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_LOCATION: + setVnfLocation((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__DEPLOYMENT_REF: + setDeploymentRef((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__COMPONENTS: + getComponents().clear(); + getComponents().addAll((Collection<? extends DCAEServiceComponentRequest>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_REQUEST__TYPE_ID: + setTypeId(TYPE_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_ID: + setVnfId(VNF_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_TYPE: + setVnfType(VNF_TYPE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_LOCATION: + setVnfLocation(VNF_LOCATION_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__DEPLOYMENT_REF: + setDeploymentRef(DEPLOYMENT_REF_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_REQUEST__COMPONENTS: + getComponents().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_REQUEST__TYPE_ID: + return TYPE_ID_EDEFAULT == null ? typeId != null : !TYPE_ID_EDEFAULT.equals(typeId); + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_ID: + return VNF_ID_EDEFAULT == null ? vnfId != null : !VNF_ID_EDEFAULT.equals(vnfId); + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_TYPE: + return VNF_TYPE_EDEFAULT == null ? vnfType != null : !VNF_TYPE_EDEFAULT.equals(vnfType); + case InventoryPackage.DCAE_SERVICE_REQUEST__VNF_LOCATION: + return VNF_LOCATION_EDEFAULT == null ? vnfLocation != null : !VNF_LOCATION_EDEFAULT.equals(vnfLocation); + case InventoryPackage.DCAE_SERVICE_REQUEST__DEPLOYMENT_REF: + return DEPLOYMENT_REF_EDEFAULT == null ? deploymentRef != null : !DEPLOYMENT_REF_EDEFAULT.equals(deploymentRef); + case InventoryPackage.DCAE_SERVICE_REQUEST__COMPONENTS: + return components != null && !components.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(" (typeId: "); + result.append(typeId); + result.append(", vnfId: "); + result.append(vnfId); + result.append(", vnfType: "); + result.append(vnfType); + result.append(", vnfLocation: "); + result.append(vnfLocation); + result.append(", deploymentRef: "); + result.append(deploymentRef); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceRequestImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeImpl.java new file mode 100644 index 0000000..5c24d54 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeImpl.java @@ -0,0 +1,845 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +import java.util.Collection; +import java.util.Date; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEServiceType; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getOwner <em>Owner</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getTypeName <em>Type Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getTypeVersion <em>Type Version</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getBlueprintTemplate <em>Blueprint Template</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getServiceIds <em>Service Ids</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getVnfTypes <em>Vnf Types</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getServiceLocations <em>Service Locations</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getAsdcServiceId <em>Asdc Service Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getAsdcResourceId <em>Asdc Resource Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getAsdcServiceURL <em>Asdc Service URL</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getTypeId <em>Type Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getSelfLink <em>Self Link</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getCreated1 <em>Created1</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getDeactivated <em>Deactivated</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceTypeImpl extends NamedEntityImpl implements DCAEServiceType { + /** + * The default value of the '{@link #getOwner() <em>Owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOwner() + * @generated + * @ordered + */ + protected static final String OWNER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOwner() <em>Owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOwner() + * @generated + * @ordered + */ + protected String owner = OWNER_EDEFAULT; + + /** + * The default value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeName() + * @generated + * @ordered + */ + protected static final String TYPE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeName() + * @generated + * @ordered + */ + protected String typeName = TYPE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTypeVersion() <em>Type Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected static final Integer TYPE_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeVersion() <em>Type Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected Integer typeVersion = TYPE_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getBlueprintTemplate() <em>Blueprint Template</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected static final String BLUEPRINT_TEMPLATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBlueprintTemplate() <em>Blueprint Template</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected String blueprintTemplate = BLUEPRINT_TEMPLATE_EDEFAULT; + + /** + * The cached value of the '{@link #getServiceIds() <em>Service Ids</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceIds() + * @generated + * @ordered + */ + protected EList<String> serviceIds; + + /** + * The cached value of the '{@link #getVnfTypes() <em>Vnf Types</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfTypes() + * @generated + * @ordered + */ + protected EList<String> vnfTypes; + + /** + * The cached value of the '{@link #getServiceLocations() <em>Service Locations</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceLocations() + * @generated + * @ordered + */ + protected EList<String> serviceLocations; + + /** + * The default value of the '{@link #getAsdcServiceId() <em>Asdc Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceId() <em>Asdc Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected String asdcServiceId = ASDC_SERVICE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcResourceId() <em>Asdc Resource Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected static final String ASDC_RESOURCE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcResourceId() <em>Asdc Resource Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected String asdcResourceId = ASDC_RESOURCE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcServiceURL() <em>Asdc Service URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceURL() <em>Asdc Service URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected String asdcServiceURL = ASDC_SERVICE_URL_EDEFAULT; + + /** + * The default value of the '{@link #getTypeId() <em>Type Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeId() + * @generated + * @ordered + */ + protected static final String TYPE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeId() <em>Type Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeId() + * @generated + * @ordered + */ + protected String typeId = TYPE_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getSelfLink() <em>Self Link</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSelfLink() + * @generated + * @ordered + */ + protected Link selfLink; + + /** + * The default value of the '{@link #getCreated1() <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated1() + * @generated + * @ordered + */ + protected static final Date CREATED1_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated1() <em>Created1</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCreated1() + * @generated + * @ordered + */ + protected Date created1 = CREATED1_EDEFAULT; + + /** + * The default value of the '{@link #getDeactivated() <em>Deactivated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeactivated() + * @generated + * @ordered + */ + protected static final Date DEACTIVATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeactivated() <em>Deactivated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDeactivated() + * @generated + * @ordered + */ + protected Date deactivated = DEACTIVATED_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOwner() { + return owner; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOwner(String newOwner) { + String oldOwner = owner; + owner = newOwner; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__OWNER, oldOwner, owner)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTypeName() { + return typeName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTypeName(String newTypeName) { + String oldTypeName = typeName; + typeName = newTypeName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__TYPE_NAME, oldTypeName, typeName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getTypeVersion() { + return typeVersion; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTypeVersion(Integer newTypeVersion) { + Integer oldTypeVersion = typeVersion; + typeVersion = newTypeVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__TYPE_VERSION, oldTypeVersion, typeVersion)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBlueprintTemplate() { + return blueprintTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBlueprintTemplate(String newBlueprintTemplate) { + String oldBlueprintTemplate = blueprintTemplate; + blueprintTemplate = newBlueprintTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE, oldBlueprintTemplate, blueprintTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getServiceIds() { + if (serviceIds == null) { + serviceIds = new EDataTypeEList<String>(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_IDS); + } + return serviceIds; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getVnfTypes() { + if (vnfTypes == null) { + vnfTypes = new EDataTypeEList<String>(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE__VNF_TYPES); + } + return vnfTypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getServiceLocations() { + if (serviceLocations == null) { + serviceLocations = new EDataTypeEList<String>(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_LOCATIONS); + } + return serviceLocations; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAsdcServiceId() { + return asdcServiceId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAsdcServiceId(String newAsdcServiceId) { + String oldAsdcServiceId = asdcServiceId; + asdcServiceId = newAsdcServiceId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_ID, oldAsdcServiceId, asdcServiceId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAsdcResourceId() { + return asdcResourceId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAsdcResourceId(String newAsdcResourceId) { + String oldAsdcResourceId = asdcResourceId; + asdcResourceId = newAsdcResourceId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID, oldAsdcResourceId, asdcResourceId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAsdcServiceURL() { + return asdcServiceURL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAsdcServiceURL(String newAsdcServiceURL) { + String oldAsdcServiceURL = asdcServiceURL; + asdcServiceURL = newAsdcServiceURL; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_URL, oldAsdcServiceURL, asdcServiceURL)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTypeId() { + return typeId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTypeId(String newTypeId) { + String oldTypeId = typeId; + typeId = newTypeId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__TYPE_ID, oldTypeId, typeId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link getSelfLink() { + return selfLink; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSelfLink(Link newSelfLink, NotificationChain msgs) { + Link oldSelfLink = selfLink; + selfLink = newSelfLink; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK, oldSelfLink, newSelfLink); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSelfLink(Link newSelfLink) { + if (newSelfLink != selfLink) { + NotificationChain msgs = null; + if (selfLink != null) + msgs = ((InternalEObject)selfLink).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK, null, msgs); + if (newSelfLink != null) + msgs = ((InternalEObject)newSelfLink).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK, null, msgs); + msgs = basicSetSelfLink(newSelfLink, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK, newSelfLink, newSelfLink)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getCreated1() { + return created1; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCreated1(Date newCreated1) { + Date oldCreated1 = created1; + created1 = newCreated1; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__CREATED1, oldCreated1, created1)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Date getDeactivated() { + return deactivated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDeactivated(Date newDeactivated) { + Date oldDeactivated = deactivated; + deactivated = newDeactivated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE__DEACTIVATED, oldDeactivated, deactivated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK: + return basicSetSelfLink(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 InventoryPackage.DCAE_SERVICE_TYPE__OWNER: + return getOwner(); + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_NAME: + return getTypeName(); + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_VERSION: + return getTypeVersion(); + case InventoryPackage.DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE: + return getBlueprintTemplate(); + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_IDS: + return getServiceIds(); + case InventoryPackage.DCAE_SERVICE_TYPE__VNF_TYPES: + return getVnfTypes(); + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_LOCATIONS: + return getServiceLocations(); + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_ID: + return getAsdcServiceId(); + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID: + return getAsdcResourceId(); + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_URL: + return getAsdcServiceURL(); + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_ID: + return getTypeId(); + case InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK: + return getSelfLink(); + case InventoryPackage.DCAE_SERVICE_TYPE__CREATED1: + return getCreated1(); + case InventoryPackage.DCAE_SERVICE_TYPE__DEACTIVATED: + return getDeactivated(); + } + 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 InventoryPackage.DCAE_SERVICE_TYPE__OWNER: + setOwner((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_NAME: + setTypeName((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_VERSION: + setTypeVersion((Integer)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE: + setBlueprintTemplate((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_IDS: + getServiceIds().clear(); + getServiceIds().addAll((Collection<? extends String>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__VNF_TYPES: + getVnfTypes().clear(); + getVnfTypes().addAll((Collection<? extends String>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_LOCATIONS: + getServiceLocations().clear(); + getServiceLocations().addAll((Collection<? extends String>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_ID: + setAsdcServiceId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID: + setAsdcResourceId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_URL: + setAsdcServiceURL((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_ID: + setTypeId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK: + setSelfLink((Link)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__CREATED1: + setCreated1((Date)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__DEACTIVATED: + setDeactivated((Date)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE__OWNER: + setOwner(OWNER_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_NAME: + setTypeName(TYPE_NAME_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_VERSION: + setTypeVersion(TYPE_VERSION_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE: + setBlueprintTemplate(BLUEPRINT_TEMPLATE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_IDS: + getServiceIds().clear(); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__VNF_TYPES: + getVnfTypes().clear(); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_LOCATIONS: + getServiceLocations().clear(); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_ID: + setAsdcServiceId(ASDC_SERVICE_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID: + setAsdcResourceId(ASDC_RESOURCE_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_URL: + setAsdcServiceURL(ASDC_SERVICE_URL_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_ID: + setTypeId(TYPE_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK: + setSelfLink((Link)null); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__CREATED1: + setCreated1(CREATED1_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__DEACTIVATED: + setDeactivated(DEACTIVATED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE__OWNER: + return OWNER_EDEFAULT == null ? owner != null : !OWNER_EDEFAULT.equals(owner); + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_NAME: + return TYPE_NAME_EDEFAULT == null ? typeName != null : !TYPE_NAME_EDEFAULT.equals(typeName); + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_VERSION: + return TYPE_VERSION_EDEFAULT == null ? typeVersion != null : !TYPE_VERSION_EDEFAULT.equals(typeVersion); + case InventoryPackage.DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE: + return BLUEPRINT_TEMPLATE_EDEFAULT == null ? blueprintTemplate != null : !BLUEPRINT_TEMPLATE_EDEFAULT.equals(blueprintTemplate); + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_IDS: + return serviceIds != null && !serviceIds.isEmpty(); + case InventoryPackage.DCAE_SERVICE_TYPE__VNF_TYPES: + return vnfTypes != null && !vnfTypes.isEmpty(); + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_LOCATIONS: + return serviceLocations != null && !serviceLocations.isEmpty(); + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_ID: + return ASDC_SERVICE_ID_EDEFAULT == null ? asdcServiceId != null : !ASDC_SERVICE_ID_EDEFAULT.equals(asdcServiceId); + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID: + return ASDC_RESOURCE_ID_EDEFAULT == null ? asdcResourceId != null : !ASDC_RESOURCE_ID_EDEFAULT.equals(asdcResourceId); + case InventoryPackage.DCAE_SERVICE_TYPE__ASDC_SERVICE_URL: + return ASDC_SERVICE_URL_EDEFAULT == null ? asdcServiceURL != null : !ASDC_SERVICE_URL_EDEFAULT.equals(asdcServiceURL); + case InventoryPackage.DCAE_SERVICE_TYPE__TYPE_ID: + return TYPE_ID_EDEFAULT == null ? typeId != null : !TYPE_ID_EDEFAULT.equals(typeId); + case InventoryPackage.DCAE_SERVICE_TYPE__SELF_LINK: + return selfLink != null; + case InventoryPackage.DCAE_SERVICE_TYPE__CREATED1: + return CREATED1_EDEFAULT == null ? created1 != null : !CREATED1_EDEFAULT.equals(created1); + case InventoryPackage.DCAE_SERVICE_TYPE__DEACTIVATED: + return DEACTIVATED_EDEFAULT == null ? deactivated != null : !DEACTIVATED_EDEFAULT.equals(deactivated); + } + 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(" (owner: "); + result.append(owner); + result.append(", typeName: "); + result.append(typeName); + result.append(", typeVersion: "); + result.append(typeVersion); + result.append(", blueprintTemplate: "); + result.append(blueprintTemplate); + result.append(", serviceIds: "); + result.append(serviceIds); + result.append(", vnfTypes: "); + result.append(vnfTypes); + result.append(", serviceLocations: "); + result.append(serviceLocations); + result.append(", asdcServiceId: "); + result.append(asdcServiceId); + result.append(", asdcResourceId: "); + result.append(asdcResourceId); + result.append(", asdcServiceURL: "); + result.append(asdcServiceURL); + result.append(", typeId: "); + result.append(typeId); + result.append(", created1: "); + result.append(created1); + result.append(", deactivated: "); + result.append(deactivated); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceTypeImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeRequestImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeRequestImpl.java new file mode 100644 index 0000000..bec4fac --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeRequestImpl.java @@ -0,0 +1,602 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +import org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest; +import org.openecomp.dcae.controller.inventory.InventoryPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>DCAE Service Type Request</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getOwner <em>Owner</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getTypeName <em>Type Name</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getTypeVersion <em>Type Version</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getBlueprintTemplate <em>Blueprint Template</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getServiceIds <em>Service Ids</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getVnfTypes <em>Vnf Types</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getServiceLocations <em>Service Locations</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getAsdcServiceId <em>Asdc Service Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getAsdcResourceId <em>Asdc Resource Id</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getAsdcServiceURL <em>Asdc Service URL</em>}</li> + * </ul> + * + * @generated + */ +public class DCAEServiceTypeRequestImpl extends MinimalEObjectImpl.Container implements DCAEServiceTypeRequest { + /** + * The default value of the '{@link #getOwner() <em>Owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOwner() + * @generated + * @ordered + */ + protected static final String OWNER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOwner() <em>Owner</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOwner() + * @generated + * @ordered + */ + protected String owner = OWNER_EDEFAULT; + + /** + * The default value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeName() + * @generated + * @ordered + */ + protected static final String TYPE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeName() + * @generated + * @ordered + */ + protected String typeName = TYPE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTypeVersion() <em>Type Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected static final Integer TYPE_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeVersion() <em>Type Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected Integer typeVersion = TYPE_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getBlueprintTemplate() <em>Blueprint Template</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected static final String BLUEPRINT_TEMPLATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBlueprintTemplate() <em>Blueprint Template</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected String blueprintTemplate = BLUEPRINT_TEMPLATE_EDEFAULT; + + /** + * The cached value of the '{@link #getServiceIds() <em>Service Ids</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceIds() + * @generated + * @ordered + */ + protected EList<String> serviceIds; + + /** + * The cached value of the '{@link #getVnfTypes() <em>Vnf Types</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVnfTypes() + * @generated + * @ordered + */ + protected EList<String> vnfTypes; + + /** + * The cached value of the '{@link #getServiceLocations() <em>Service Locations</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceLocations() + * @generated + * @ordered + */ + protected EList<String> serviceLocations; + + /** + * The default value of the '{@link #getAsdcServiceId() <em>Asdc Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceId() <em>Asdc Service Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected String asdcServiceId = ASDC_SERVICE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcResourceId() <em>Asdc Resource Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected static final String ASDC_RESOURCE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcResourceId() <em>Asdc Resource Id</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected String asdcResourceId = ASDC_RESOURCE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcServiceURL() <em>Asdc Service URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceURL() <em>Asdc Service URL</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected String asdcServiceURL = ASDC_SERVICE_URL_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DCAEServiceTypeRequestImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_TYPE_REQUEST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOwner() { + return owner; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOwner(String newOwner) { + String oldOwner = owner; + owner = newOwner; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__OWNER, oldOwner, owner)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTypeName() { + return typeName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTypeName(String newTypeName) { + String oldTypeName = typeName; + typeName = newTypeName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME, oldTypeName, typeName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getTypeVersion() { + return typeVersion; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTypeVersion(Integer newTypeVersion) { + Integer oldTypeVersion = typeVersion; + typeVersion = newTypeVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION, oldTypeVersion, typeVersion)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getBlueprintTemplate() { + return blueprintTemplate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setBlueprintTemplate(String newBlueprintTemplate) { + String oldBlueprintTemplate = blueprintTemplate; + blueprintTemplate = newBlueprintTemplate; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE, oldBlueprintTemplate, blueprintTemplate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getServiceIds() { + if (serviceIds == null) { + serviceIds = new EDataTypeEList<String>(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS); + } + return serviceIds; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getVnfTypes() { + if (vnfTypes == null) { + vnfTypes = new EDataTypeEList<String>(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES); + } + return vnfTypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getServiceLocations() { + if (serviceLocations == null) { + serviceLocations = new EDataTypeEList<String>(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS); + } + return serviceLocations; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAsdcServiceId() { + return asdcServiceId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAsdcServiceId(String newAsdcServiceId) { + String oldAsdcServiceId = asdcServiceId; + asdcServiceId = newAsdcServiceId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID, oldAsdcServiceId, asdcServiceId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAsdcResourceId() { + return asdcResourceId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAsdcResourceId(String newAsdcResourceId) { + String oldAsdcResourceId = asdcResourceId; + asdcResourceId = newAsdcResourceId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID, oldAsdcResourceId, asdcResourceId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getAsdcServiceURL() { + return asdcServiceURL; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAsdcServiceURL(String newAsdcServiceURL) { + String oldAsdcServiceURL = asdcServiceURL; + asdcServiceURL = newAsdcServiceURL; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL, oldAsdcServiceURL, asdcServiceURL)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__OWNER: + return getOwner(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME: + return getTypeName(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION: + return getTypeVersion(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE: + return getBlueprintTemplate(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS: + return getServiceIds(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES: + return getVnfTypes(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS: + return getServiceLocations(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID: + return getAsdcServiceId(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID: + return getAsdcResourceId(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL: + return getAsdcServiceURL(); + } + 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 InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__OWNER: + setOwner((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME: + setTypeName((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION: + setTypeVersion((Integer)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE: + setBlueprintTemplate((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS: + getServiceIds().clear(); + getServiceIds().addAll((Collection<? extends String>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES: + getVnfTypes().clear(); + getVnfTypes().addAll((Collection<? extends String>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS: + getServiceLocations().clear(); + getServiceLocations().addAll((Collection<? extends String>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID: + setAsdcServiceId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID: + setAsdcResourceId((String)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL: + setAsdcServiceURL((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__OWNER: + setOwner(OWNER_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME: + setTypeName(TYPE_NAME_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION: + setTypeVersion(TYPE_VERSION_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE: + setBlueprintTemplate(BLUEPRINT_TEMPLATE_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS: + getServiceIds().clear(); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES: + getVnfTypes().clear(); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS: + getServiceLocations().clear(); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID: + setAsdcServiceId(ASDC_SERVICE_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID: + setAsdcResourceId(ASDC_RESOURCE_ID_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL: + setAsdcServiceURL(ASDC_SERVICE_URL_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__OWNER: + return OWNER_EDEFAULT == null ? owner != null : !OWNER_EDEFAULT.equals(owner); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME: + return TYPE_NAME_EDEFAULT == null ? typeName != null : !TYPE_NAME_EDEFAULT.equals(typeName); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION: + return TYPE_VERSION_EDEFAULT == null ? typeVersion != null : !TYPE_VERSION_EDEFAULT.equals(typeVersion); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE: + return BLUEPRINT_TEMPLATE_EDEFAULT == null ? blueprintTemplate != null : !BLUEPRINT_TEMPLATE_EDEFAULT.equals(blueprintTemplate); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS: + return serviceIds != null && !serviceIds.isEmpty(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES: + return vnfTypes != null && !vnfTypes.isEmpty(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS: + return serviceLocations != null && !serviceLocations.isEmpty(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID: + return ASDC_SERVICE_ID_EDEFAULT == null ? asdcServiceId != null : !ASDC_SERVICE_ID_EDEFAULT.equals(asdcServiceId); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID: + return ASDC_RESOURCE_ID_EDEFAULT == null ? asdcResourceId != null : !ASDC_RESOURCE_ID_EDEFAULT.equals(asdcResourceId); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL: + return ASDC_SERVICE_URL_EDEFAULT == null ? asdcServiceURL != null : !ASDC_SERVICE_URL_EDEFAULT.equals(asdcServiceURL); + } + 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(" (owner: "); + result.append(owner); + result.append(", typeName: "); + result.append(typeName); + result.append(", typeVersion: "); + result.append(typeVersion); + result.append(", blueprintTemplate: "); + result.append(blueprintTemplate); + result.append(", serviceIds: "); + result.append(serviceIds); + result.append(", vnfTypes: "); + result.append(vnfTypes); + result.append(", serviceLocations: "); + result.append(serviceLocations); + result.append(", asdcServiceId: "); + result.append(asdcServiceId); + result.append(", asdcResourceId: "); + result.append(asdcResourceId); + result.append(", asdcServiceURL: "); + result.append(asdcServiceURL); + result.append(')'); + return result.toString(); + } + +} //DCAEServiceTypeRequestImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeInventoryImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeInventoryImpl.java new file mode 100644 index 0000000..5e92c3a --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeInventoryImpl.java @@ -0,0 +1,341 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +import java.lang.reflect.InvocationTargetException; + +import java.util.Collection; + +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.MinimalEObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.openecomp.dcae.controller.inventory.ApiResponseMessage; +import org.openecomp.dcae.controller.inventory.DCAEService; +import org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults; +import org.openecomp.dcae.controller.inventory.DCAEServiceRequest; +import org.openecomp.dcae.controller.inventory.DCAEServiceType; +import org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest; +import org.openecomp.dcae.controller.inventory.DcaeInventory; +import org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults; +import org.openecomp.dcae.controller.inventory.DcaeServiceResults; +import org.openecomp.dcae.controller.inventory.InventoryPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Dcae Inventory</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl#getServiceTypes <em>Service Types</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl#getServices <em>Services</em>}</li> + * </ul> + * + * @generated + */ +public class DcaeInventoryImpl extends MinimalEObjectImpl.Container implements DcaeInventory { + /** + * The cached value of the '{@link #getServiceTypes() <em>Service Types</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServiceTypes() + * @generated + * @ordered + */ + protected EList<DCAEServiceType> serviceTypes; + + /** + * The cached value of the '{@link #getServices() <em>Services</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getServices() + * @generated + * @ordered + */ + protected EList<DCAEService> services; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DcaeInventoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_INVENTORY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DCAEServiceType> getServiceTypes() { + if (serviceTypes == null) { + serviceTypes = new EObjectContainmentEList<DCAEServiceType>(DCAEServiceType.class, this, InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES); + } + return serviceTypes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DCAEService> getServices() { + if (services == null) { + services = new EObjectContainmentEList<DCAEService>(DCAEService.class, this, InventoryPackage.DCAE_INVENTORY__SERVICES); + } + return services; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DcaeServiceTypeResults getDcaeServiceTypes(String typeName, Boolean onlyLatest, Boolean onlyActive, String vnfType, String serviceId, String serviceLocation, String asdcServiceId, String asdcResourceId, Integer offset) { + // 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 ApiResponseMessage deleteDcaeServiceTypesType(String typeId) { + // 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 DCAEServiceType getDcaeServiceTypesType(String typeId) { + // 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 DCAEServiceType createDcaeServiceTypesTypeName(DCAEServiceTypeRequest body) { + // 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 DcaeServiceResults getDcaeServices(String typeId, String vnfId, String vnfType, String vnfLocation, String componentType, Boolean shareable, String created, Integer offset) { + // 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 DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(String propertyName) { + // 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 deleteDcaeServicesService(String serviceId) { + // 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 DCAEService getDcaeServicesService(String serviceId) { + // 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 DCAEService createDcaeServicesService(String serviceId, DCAEServiceRequest body) { + // 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 poll() { + // 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 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES: + return ((InternalEList<?>)getServiceTypes()).basicRemove(otherEnd, msgs); + case InventoryPackage.DCAE_INVENTORY__SERVICES: + return ((InternalEList<?>)getServices()).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 InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES: + return getServiceTypes(); + case InventoryPackage.DCAE_INVENTORY__SERVICES: + return getServices(); + } + 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 InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES: + getServiceTypes().clear(); + getServiceTypes().addAll((Collection<? extends DCAEServiceType>)newValue); + return; + case InventoryPackage.DCAE_INVENTORY__SERVICES: + getServices().clear(); + getServices().addAll((Collection<? extends DCAEService>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES: + getServiceTypes().clear(); + return; + case InventoryPackage.DCAE_INVENTORY__SERVICES: + getServices().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES: + return serviceTypes != null && !serviceTypes.isEmpty(); + case InventoryPackage.DCAE_INVENTORY__SERVICES: + return services != null && !services.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eInvoke(int operationID, EList<?> arguments) throws InvocationTargetException { + switch (operationID) { + case InventoryPackage.DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES__STRING_BOOLEAN_BOOLEAN_STRING_STRING_STRING_STRING_STRING_INTEGER: + return getDcaeServiceTypes((String)arguments.get(0), (Boolean)arguments.get(1), (Boolean)arguments.get(2), (String)arguments.get(3), (String)arguments.get(4), (String)arguments.get(5), (String)arguments.get(6), (String)arguments.get(7), (Integer)arguments.get(8)); + case InventoryPackage.DCAE_INVENTORY___DELETE_DCAE_SERVICE_TYPES_TYPE__STRING: + return deleteDcaeServiceTypesType((String)arguments.get(0)); + case InventoryPackage.DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES_TYPE__STRING: + return getDcaeServiceTypesType((String)arguments.get(0)); + case InventoryPackage.DCAE_INVENTORY___CREATE_DCAE_SERVICE_TYPES_TYPE_NAME__DCAESERVICETYPEREQUEST: + return createDcaeServiceTypesTypeName((DCAEServiceTypeRequest)arguments.get(0)); + case InventoryPackage.DCAE_INVENTORY___GET_DCAE_SERVICES__STRING_STRING_STRING_STRING_STRING_BOOLEAN_STRING_INTEGER: + return getDcaeServices((String)arguments.get(0), (String)arguments.get(1), (String)arguments.get(2), (String)arguments.get(3), (String)arguments.get(4), (Boolean)arguments.get(5), (String)arguments.get(6), (Integer)arguments.get(7)); + case InventoryPackage.DCAE_INVENTORY___GET_DCAE_SERVICES_GROUPBY_PROPERTY_NAME__STRING: + return getDcaeServicesGroupbyPropertyName((String)arguments.get(0)); + case InventoryPackage.DCAE_INVENTORY___DELETE_DCAE_SERVICES_SERVICE__STRING: + deleteDcaeServicesService((String)arguments.get(0)); + return null; + case InventoryPackage.DCAE_INVENTORY___GET_DCAE_SERVICES_SERVICE__STRING: + return getDcaeServicesService((String)arguments.get(0)); + case InventoryPackage.DCAE_INVENTORY___CREATE_DCAE_SERVICES_SERVICE__STRING_DCAESERVICEREQUEST: + return createDcaeServicesService((String)arguments.get(0), (DCAEServiceRequest)arguments.get(1)); + case InventoryPackage.DCAE_INVENTORY___POLL: + poll(); + return null; + } + return super.eInvoke(operationID, arguments); + } + +} //DcaeInventoryImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceResultsImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceResultsImpl.java new file mode 100644 index 0000000..aff1c8a --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceResultsImpl.java @@ -0,0 +1,259 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEService; +import org.openecomp.dcae.controller.inventory.DcaeServiceResults; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Inline Response2001</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl#getTotalCount <em>Total Count</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl#getItems <em>Items</em>}</li> + * </ul> + * + * @generated + */ +public class DcaeServiceResultsImpl extends MinimalEObjectImpl.Container implements DcaeServiceResults { + /** + * 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 default value of the '{@link #getTotalCount() <em>Total Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotalCount() + * @generated + * @ordered + */ + protected static final Integer TOTAL_COUNT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTotalCount() <em>Total Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotalCount() + * @generated + * @ordered + */ + protected Integer totalCount = TOTAL_COUNT_EDEFAULT; + + /** + * The cached value of the '{@link #getItems() <em>Items</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getItems() + * @generated + * @ordered + */ + protected EList<DCAEService> items; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DcaeServiceResultsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_RESULTS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Link> getLinks() { + if (links == null) { + links = new EObjectContainmentEList<Link>(Link.class, this, InventoryPackage.DCAE_SERVICE_RESULTS__LINKS); + } + return links; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getTotalCount() { + return totalCount; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotalCount(Integer newTotalCount) { + Integer oldTotalCount = totalCount; + totalCount = newTotalCount; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_RESULTS__TOTAL_COUNT, oldTotalCount, totalCount)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DCAEService> getItems() { + if (items == null) { + items = new EObjectContainmentEList<DCAEService>(DCAEService.class, this, InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS); + } + return items; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_RESULTS__LINKS: + return ((InternalEList<?>)getLinks()).basicRemove(otherEnd, msgs); + case InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS: + return ((InternalEList<?>)getItems()).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 InventoryPackage.DCAE_SERVICE_RESULTS__LINKS: + return getLinks(); + case InventoryPackage.DCAE_SERVICE_RESULTS__TOTAL_COUNT: + return getTotalCount(); + case InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS: + return getItems(); + } + 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 InventoryPackage.DCAE_SERVICE_RESULTS__LINKS: + getLinks().clear(); + getLinks().addAll((Collection<? extends Link>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_RESULTS__TOTAL_COUNT: + setTotalCount((Integer)newValue); + return; + case InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS: + getItems().clear(); + getItems().addAll((Collection<? extends DCAEService>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_RESULTS__LINKS: + getLinks().clear(); + return; + case InventoryPackage.DCAE_SERVICE_RESULTS__TOTAL_COUNT: + setTotalCount(TOTAL_COUNT_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS: + getItems().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_RESULTS__LINKS: + return links != null && !links.isEmpty(); + case InventoryPackage.DCAE_SERVICE_RESULTS__TOTAL_COUNT: + return TOTAL_COUNT_EDEFAULT == null ? totalCount != null : !TOTAL_COUNT_EDEFAULT.equals(totalCount); + case InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS: + return items != null && !items.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(" (totalCount: "); + result.append(totalCount); + result.append(')'); + return result.toString(); + } + +} //InlineResponse2001Impl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceTypeResultsImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceTypeResultsImpl.java new file mode 100644 index 0000000..1b848f3 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceTypeResultsImpl.java @@ -0,0 +1,259 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.DCAEServiceType; +import org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Inline Response200</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl#getLinks <em>Links</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl#getTotalCount <em>Total Count</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl#getItems <em>Items</em>}</li> + * </ul> + * + * @generated + */ +public class DcaeServiceTypeResultsImpl extends MinimalEObjectImpl.Container implements DcaeServiceTypeResults { + /** + * 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 default value of the '{@link #getTotalCount() <em>Total Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotalCount() + * @generated + * @ordered + */ + protected static final Integer TOTAL_COUNT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTotalCount() <em>Total Count</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTotalCount() + * @generated + * @ordered + */ + protected Integer totalCount = TOTAL_COUNT_EDEFAULT; + + /** + * The cached value of the '{@link #getItems() <em>Items</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getItems() + * @generated + * @ordered + */ + protected EList<DCAEServiceType> items; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DcaeServiceTypeResultsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_TYPE_RESULTS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Link> getLinks() { + if (links == null) { + links = new EObjectContainmentEList<Link>(Link.class, this, InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__LINKS); + } + return links; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Integer getTotalCount() { + return totalCount; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTotalCount(Integer newTotalCount) { + Integer oldTotalCount = totalCount; + totalCount = newTotalCount; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT, oldTotalCount, totalCount)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<DCAEServiceType> getItems() { + if (items == null) { + items = new EObjectContainmentEList<DCAEServiceType>(DCAEServiceType.class, this, InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__ITEMS); + } + return items; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__LINKS: + return ((InternalEList<?>)getLinks()).basicRemove(otherEnd, msgs); + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__ITEMS: + return ((InternalEList<?>)getItems()).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 InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__LINKS: + return getLinks(); + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT: + return getTotalCount(); + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__ITEMS: + return getItems(); + } + 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 InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__LINKS: + getLinks().clear(); + getLinks().addAll((Collection<? extends Link>)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT: + setTotalCount((Integer)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__ITEMS: + getItems().clear(); + getItems().addAll((Collection<? extends DCAEServiceType>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__LINKS: + getLinks().clear(); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT: + setTotalCount(TOTAL_COUNT_EDEFAULT); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__ITEMS: + getItems().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__LINKS: + return links != null && !links.isEmpty(); + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT: + return TOTAL_COUNT_EDEFAULT == null ? totalCount != null : !TOTAL_COUNT_EDEFAULT.equals(totalCount); + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__ITEMS: + return items != null && !items.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(" (totalCount: "); + result.append(totalCount); + result.append(')'); + return result.toString(); + } + +} //InlineResponse200Impl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryFactoryImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryFactoryImpl.java new file mode 100644 index 0000000..5a25e6a --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryFactoryImpl.java @@ -0,0 +1,249 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class InventoryFactoryImpl extends EFactoryImpl implements InventoryFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static InventoryFactory init() { + try { + InventoryFactory theInventoryFactory = (InventoryFactory)EPackage.Registry.INSTANCE.getEFactory(InventoryPackage.eNS_URI); + if (theInventoryFactory != null) { + return theInventoryFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new InventoryFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InventoryFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case InventoryPackage.DCAE_INVENTORY: return createDcaeInventory(); + case InventoryPackage.API_RESPONSE_MESSAGE: return createApiResponseMessage(); + case InventoryPackage.DCAE_SERVICE_COMPONENT: return createDCAEServiceComponent(); + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST: return createDCAEServiceComponentRequest(); + case InventoryPackage.DCAE_SERVICE: return createDCAEService(); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS: return createDCAEServiceGroupByResults(); + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES: return createDCAEServiceGroupByResultsPropertyValues(); + case InventoryPackage.DCAE_SERVICE_REQUEST: return createDCAEServiceRequest(); + case InventoryPackage.DCAE_SERVICE_TYPE: return createDCAEServiceType(); + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST: return createDCAEServiceTypeRequest(); + case InventoryPackage.DCAE_SERVICE_RESULTS: return createDcaeServiceResults(); + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS: return createDcaeServiceTypeResults(); + case InventoryPackage.LINK: return createLink(); + case InventoryPackage.PARAMETER: return createParameter(); + case InventoryPackage.URI_BUILDER: return createUriBuilder(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DcaeInventory createDcaeInventory() { + DcaeInventoryImpl dcaeInventory = new DcaeInventoryImpl(); + return dcaeInventory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ApiResponseMessage createApiResponseMessage() { + ApiResponseMessageImpl apiResponseMessage = new ApiResponseMessageImpl(); + return apiResponseMessage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEServiceComponent createDCAEServiceComponent() { + DCAEServiceComponentImpl dcaeServiceComponent = new DCAEServiceComponentImpl(); + return dcaeServiceComponent; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEServiceComponentRequest createDCAEServiceComponentRequest() { + DCAEServiceComponentRequestImpl dcaeServiceComponentRequest = new DCAEServiceComponentRequestImpl(); + return dcaeServiceComponentRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEService createDCAEService() { + DCAEServiceImpl dcaeService = new DCAEServiceImpl(); + return dcaeService; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEServiceGroupByResults createDCAEServiceGroupByResults() { + DCAEServiceGroupByResultsImpl dcaeServiceGroupByResults = new DCAEServiceGroupByResultsImpl(); + return dcaeServiceGroupByResults; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEServiceGroupByResultsPropertyValues createDCAEServiceGroupByResultsPropertyValues() { + DCAEServiceGroupByResultsPropertyValuesImpl dcaeServiceGroupByResultsPropertyValues = new DCAEServiceGroupByResultsPropertyValuesImpl(); + return dcaeServiceGroupByResultsPropertyValues; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEServiceRequest createDCAEServiceRequest() { + DCAEServiceRequestImpl dcaeServiceRequest = new DCAEServiceRequestImpl(); + return dcaeServiceRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEServiceType createDCAEServiceType() { + DCAEServiceTypeImpl dcaeServiceType = new DCAEServiceTypeImpl(); + return dcaeServiceType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DCAEServiceTypeRequest createDCAEServiceTypeRequest() { + DCAEServiceTypeRequestImpl dcaeServiceTypeRequest = new DCAEServiceTypeRequestImpl(); + return dcaeServiceTypeRequest; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DcaeServiceResults createDcaeServiceResults() { + DcaeServiceResultsImpl dcaeServiceResults = new DcaeServiceResultsImpl(); + return dcaeServiceResults; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DcaeServiceTypeResults createDcaeServiceTypeResults() { + DcaeServiceTypeResultsImpl dcaeServiceTypeResults = new DcaeServiceTypeResultsImpl(); + return dcaeServiceTypeResults; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Link createLink() { + LinkImpl link = new LinkImpl(); + return link; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Parameter createParameter() { + ParameterImpl parameter = new ParameterImpl(); + return parameter; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public UriBuilder createUriBuilder() { + UriBuilderImpl uriBuilder = new UriBuilderImpl(); + return uriBuilder; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InventoryPackage getInventoryPackage() { + return (InventoryPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static InventoryPackage getPackage() { + return InventoryPackage.eINSTANCE; + } + +} //InventoryFactoryImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryPackageImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryPackageImpl.java new file mode 100644 index 0000000..9cfd0a8 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryPackageImpl.java @@ -0,0 +1,1491 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; + +import org.openecomp.dcae.controller.inventory.ApiResponseMessage; +import org.openecomp.dcae.controller.inventory.DCAEService; +import org.openecomp.dcae.controller.inventory.DCAEServiceComponent; +import org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest; +import org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults; +import org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues; +import org.openecomp.dcae.controller.inventory.DCAEServiceRequest; +import org.openecomp.dcae.controller.inventory.DCAEServiceType; +import org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest; +import org.openecomp.dcae.controller.inventory.DcaeInventory; +import org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults; +import org.openecomp.dcae.controller.inventory.DcaeServiceResults; +import org.openecomp.dcae.controller.inventory.InventoryFactory; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; +import org.openecomp.dcae.controller.inventory.Parameter; +import org.openecomp.dcae.controller.inventory.UriBuilder; + +import org.openecomp.ncomp.core.CorePackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class InventoryPackageImpl extends EPackageImpl implements InventoryPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeInventoryEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass apiResponseMessageEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceComponentEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceComponentRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceGroupByResultsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceGroupByResultsPropertyValuesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceTypeRequestEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceResultsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass dcaeServiceTypeResultsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass linkEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass parameterEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass uriBuilderEClass = 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.dcae.controller.inventory.InventoryPackage#eNS_URI + * @see #init() + * @generated + */ + private InventoryPackageImpl() { + super(eNS_URI, InventoryFactory.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 InventoryPackage#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 InventoryPackage init() { + if (isInited) return (InventoryPackage)EPackage.Registry.INSTANCE.getEPackage(InventoryPackage.eNS_URI); + + // Obtain or create and register package + InventoryPackageImpl theInventoryPackage = (InventoryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InventoryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InventoryPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + CorePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theInventoryPackage.createPackageContents(); + + // Initialize created meta-data + theInventoryPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theInventoryPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(InventoryPackage.eNS_URI, theInventoryPackage); + return theInventoryPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDcaeInventory() { + return dcaeInventoryEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDcaeInventory_ServiceTypes() { + return (EReference)dcaeInventoryEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDcaeInventory_Services() { + return (EReference)dcaeInventoryEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServiceTypes__String_Boolean_Boolean_String_String_String_String_String_Integer() { + return dcaeInventoryEClass.getEOperations().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__DeleteDcaeServiceTypesType__String() { + return dcaeInventoryEClass.getEOperations().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServiceTypesType__String() { + return dcaeInventoryEClass.getEOperations().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__CreateDcaeServiceTypesTypeName__DCAEServiceTypeRequest() { + return dcaeInventoryEClass.getEOperations().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServices__String_String_String_String_String_Boolean_String_Integer() { + return dcaeInventoryEClass.getEOperations().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServicesGroupbyPropertyName__String() { + return dcaeInventoryEClass.getEOperations().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__DeleteDcaeServicesService__String() { + return dcaeInventoryEClass.getEOperations().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServicesService__String() { + return dcaeInventoryEClass.getEOperations().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__CreateDcaeServicesService__String_DCAEServiceRequest() { + return dcaeInventoryEClass.getEOperations().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EOperation getDcaeInventory__Poll() { + return dcaeInventoryEClass.getEOperations().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getApiResponseMessage() { + return apiResponseMessageEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getApiResponseMessage_Code() { + return (EAttribute)apiResponseMessageEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getApiResponseMessage_Type() { + return (EAttribute)apiResponseMessageEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getApiResponseMessage_Message() { + return (EAttribute)apiResponseMessageEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEServiceComponent() { + return dcaeServiceComponentEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_ComponentId() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEServiceComponent_ComponentLink() { + return (EReference)dcaeServiceComponentEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_Created1() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_Modified() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_ComponentType() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_ComponentSource() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_Status() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_Location() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponent_Shareable() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEServiceComponentRequest() { + return dcaeServiceComponentRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_ComponentId() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_ComponentType() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_ComponentSource() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_Shareable() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEService() { + return dcaeServiceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEService_ServiceId() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEService_SelfLink() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEService_Created1() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEService_Modified() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEService_TypeLink() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEService_VnfId() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEService_VnfLink() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEService_VnfType() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEService_VnfLocation() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEService_DeploymentRef() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEService_Components() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEServiceGroupByResults() { + return dcaeServiceGroupByResultsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceGroupByResults_PropertyName() { + return (EAttribute)dcaeServiceGroupByResultsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEServiceGroupByResults_PropertyValues() { + return (EReference)dcaeServiceGroupByResultsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEServiceGroupByResultsPropertyValues() { + return dcaeServiceGroupByResultsPropertyValuesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceGroupByResultsPropertyValues_Count() { + return (EAttribute)dcaeServiceGroupByResultsPropertyValuesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceGroupByResultsPropertyValues_PropertyValue() { + return (EAttribute)dcaeServiceGroupByResultsPropertyValuesEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEServiceGroupByResultsPropertyValues_DcaeServiceQueryLink() { + return (EReference)dcaeServiceGroupByResultsPropertyValuesEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEServiceRequest() { + return dcaeServiceRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceRequest_TypeId() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceRequest_VnfId() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceRequest_VnfType() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceRequest_VnfLocation() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceRequest_DeploymentRef() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEServiceRequest_Components() { + return (EReference)dcaeServiceRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEServiceType() { + return dcaeServiceTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_Owner() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_TypeName() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_TypeVersion() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_BlueprintTemplate() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_ServiceIds() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_VnfTypes() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_ServiceLocations() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_AsdcServiceId() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_AsdcResourceId() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_AsdcServiceURL() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_TypeId() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDCAEServiceType_SelfLink() { + return (EReference)dcaeServiceTypeEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_Created1() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceType_Deactivated() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDCAEServiceTypeRequest() { + return dcaeServiceTypeRequestEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_Owner() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_TypeName() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_TypeVersion() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_BlueprintTemplate() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_ServiceIds() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_VnfTypes() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_ServiceLocations() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_AsdcServiceId() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_AsdcResourceId() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_AsdcServiceURL() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDcaeServiceResults() { + return dcaeServiceResultsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDcaeServiceResults_Links() { + return (EReference)dcaeServiceResultsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDcaeServiceResults_TotalCount() { + return (EAttribute)dcaeServiceResultsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDcaeServiceResults_Items() { + return (EReference)dcaeServiceResultsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDcaeServiceTypeResults() { + return dcaeServiceTypeResultsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDcaeServiceTypeResults_Links() { + return (EReference)dcaeServiceTypeResultsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDcaeServiceTypeResults_TotalCount() { + return (EAttribute)dcaeServiceTypeResultsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDcaeServiceTypeResults_Items() { + return (EReference)dcaeServiceTypeResultsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getLink() { + return linkEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getLink_Params() { + return (EReference)linkEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Title() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Rel() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Href() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Uri() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getLink_UriBuilder() { + return (EReference)linkEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Rels() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getLink_Type() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getParameter() { + return parameterEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getParameter_Value() { + return (EAttribute)parameterEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getUriBuilder() { + return uriBuilderEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InventoryFactory getInventoryFactory() { + return (InventoryFactory)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 + dcaeInventoryEClass = createEClass(DCAE_INVENTORY); + createEReference(dcaeInventoryEClass, DCAE_INVENTORY__SERVICE_TYPES); + createEReference(dcaeInventoryEClass, DCAE_INVENTORY__SERVICES); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES__STRING_BOOLEAN_BOOLEAN_STRING_STRING_STRING_STRING_STRING_INTEGER); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___DELETE_DCAE_SERVICE_TYPES_TYPE__STRING); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES_TYPE__STRING); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___CREATE_DCAE_SERVICE_TYPES_TYPE_NAME__DCAESERVICETYPEREQUEST); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___GET_DCAE_SERVICES__STRING_STRING_STRING_STRING_STRING_BOOLEAN_STRING_INTEGER); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___GET_DCAE_SERVICES_GROUPBY_PROPERTY_NAME__STRING); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___DELETE_DCAE_SERVICES_SERVICE__STRING); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___GET_DCAE_SERVICES_SERVICE__STRING); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___CREATE_DCAE_SERVICES_SERVICE__STRING_DCAESERVICEREQUEST); + createEOperation(dcaeInventoryEClass, DCAE_INVENTORY___POLL); + + apiResponseMessageEClass = createEClass(API_RESPONSE_MESSAGE); + createEAttribute(apiResponseMessageEClass, API_RESPONSE_MESSAGE__CODE); + createEAttribute(apiResponseMessageEClass, API_RESPONSE_MESSAGE__TYPE); + createEAttribute(apiResponseMessageEClass, API_RESPONSE_MESSAGE__MESSAGE); + + dcaeServiceComponentEClass = createEClass(DCAE_SERVICE_COMPONENT); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__COMPONENT_ID); + createEReference(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__COMPONENT_LINK); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__CREATED1); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__MODIFIED); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__COMPONENT_TYPE); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__STATUS); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__LOCATION); + createEAttribute(dcaeServiceComponentEClass, DCAE_SERVICE_COMPONENT__SHAREABLE); + + dcaeServiceComponentRequestEClass = createEClass(DCAE_SERVICE_COMPONENT_REQUEST); + createEAttribute(dcaeServiceComponentRequestEClass, DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID); + createEAttribute(dcaeServiceComponentRequestEClass, DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE); + createEAttribute(dcaeServiceComponentRequestEClass, DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE); + createEAttribute(dcaeServiceComponentRequestEClass, DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE); + + dcaeServiceEClass = createEClass(DCAE_SERVICE); + createEAttribute(dcaeServiceEClass, DCAE_SERVICE__SERVICE_ID); + createEReference(dcaeServiceEClass, DCAE_SERVICE__SELF_LINK); + createEAttribute(dcaeServiceEClass, DCAE_SERVICE__CREATED1); + createEAttribute(dcaeServiceEClass, DCAE_SERVICE__MODIFIED); + createEReference(dcaeServiceEClass, DCAE_SERVICE__TYPE_LINK); + createEAttribute(dcaeServiceEClass, DCAE_SERVICE__VNF_ID); + createEReference(dcaeServiceEClass, DCAE_SERVICE__VNF_LINK); + createEAttribute(dcaeServiceEClass, DCAE_SERVICE__VNF_TYPE); + createEAttribute(dcaeServiceEClass, DCAE_SERVICE__VNF_LOCATION); + createEAttribute(dcaeServiceEClass, DCAE_SERVICE__DEPLOYMENT_REF); + createEReference(dcaeServiceEClass, DCAE_SERVICE__COMPONENTS); + + dcaeServiceGroupByResultsEClass = createEClass(DCAE_SERVICE_GROUP_BY_RESULTS); + createEAttribute(dcaeServiceGroupByResultsEClass, DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME); + createEReference(dcaeServiceGroupByResultsEClass, DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES); + + dcaeServiceGroupByResultsPropertyValuesEClass = createEClass(DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES); + createEAttribute(dcaeServiceGroupByResultsPropertyValuesEClass, DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT); + createEAttribute(dcaeServiceGroupByResultsPropertyValuesEClass, DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE); + createEReference(dcaeServiceGroupByResultsPropertyValuesEClass, DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK); + + dcaeServiceRequestEClass = createEClass(DCAE_SERVICE_REQUEST); + createEAttribute(dcaeServiceRequestEClass, DCAE_SERVICE_REQUEST__TYPE_ID); + createEAttribute(dcaeServiceRequestEClass, DCAE_SERVICE_REQUEST__VNF_ID); + createEAttribute(dcaeServiceRequestEClass, DCAE_SERVICE_REQUEST__VNF_TYPE); + createEAttribute(dcaeServiceRequestEClass, DCAE_SERVICE_REQUEST__VNF_LOCATION); + createEAttribute(dcaeServiceRequestEClass, DCAE_SERVICE_REQUEST__DEPLOYMENT_REF); + createEReference(dcaeServiceRequestEClass, DCAE_SERVICE_REQUEST__COMPONENTS); + + dcaeServiceTypeEClass = createEClass(DCAE_SERVICE_TYPE); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__OWNER); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__TYPE_NAME); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__TYPE_VERSION); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__SERVICE_IDS); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__VNF_TYPES); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__SERVICE_LOCATIONS); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__ASDC_SERVICE_ID); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__ASDC_SERVICE_URL); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__TYPE_ID); + createEReference(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__SELF_LINK); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__CREATED1); + createEAttribute(dcaeServiceTypeEClass, DCAE_SERVICE_TYPE__DEACTIVATED); + + dcaeServiceTypeRequestEClass = createEClass(DCAE_SERVICE_TYPE_REQUEST); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__OWNER); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID); + createEAttribute(dcaeServiceTypeRequestEClass, DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL); + + dcaeServiceResultsEClass = createEClass(DCAE_SERVICE_RESULTS); + createEReference(dcaeServiceResultsEClass, DCAE_SERVICE_RESULTS__LINKS); + createEAttribute(dcaeServiceResultsEClass, DCAE_SERVICE_RESULTS__TOTAL_COUNT); + createEReference(dcaeServiceResultsEClass, DCAE_SERVICE_RESULTS__ITEMS); + + dcaeServiceTypeResultsEClass = createEClass(DCAE_SERVICE_TYPE_RESULTS); + createEReference(dcaeServiceTypeResultsEClass, DCAE_SERVICE_TYPE_RESULTS__LINKS); + createEAttribute(dcaeServiceTypeResultsEClass, DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT); + createEReference(dcaeServiceTypeResultsEClass, DCAE_SERVICE_TYPE_RESULTS__ITEMS); + + linkEClass = createEClass(LINK); + createEReference(linkEClass, LINK__PARAMS); + createEAttribute(linkEClass, LINK__TITLE); + createEAttribute(linkEClass, LINK__REL); + createEAttribute(linkEClass, LINK__HREF); + createEAttribute(linkEClass, LINK__URI); + createEReference(linkEClass, LINK__URI_BUILDER); + createEAttribute(linkEClass, LINK__RELS); + createEAttribute(linkEClass, LINK__TYPE); + + parameterEClass = createEClass(PARAMETER); + createEAttribute(parameterEClass, PARAMETER__VALUE); + + uriBuilderEClass = createEClass(URI_BUILDER); + } + + /** + * <!-- 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); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + dcaeServiceComponentEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dcaeServiceEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + dcaeServiceTypeEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + linkEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + parameterEClass.getESuperTypes().add(theCorePackage.getNamedEntity()); + + // Initialize classes, features, and operations; add parameters + initEClass(dcaeInventoryEClass, DcaeInventory.class, "DcaeInventory", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDcaeInventory_ServiceTypes(), this.getDCAEServiceType(), null, "serviceTypes", null, 0, -1, DcaeInventory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDcaeInventory_Services(), this.getDCAEService(), null, "services", null, 0, -1, DcaeInventory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + EOperation op = initEOperation(getDcaeInventory__GetDcaeServiceTypes__String_Boolean_Boolean_String_String_String_String_String_Integer(), this.getDcaeServiceTypeResults(), "getDcaeServiceTypes", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "typeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBooleanObject(), "onlyLatest", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBooleanObject(), "onlyActive", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vnfType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "serviceId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "serviceLocation", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "asdcServiceId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "asdcResourceId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEIntegerObject(), "offset", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__DeleteDcaeServiceTypesType__String(), this.getApiResponseMessage(), "deleteDcaeServiceTypesType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "typeId", 1, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__GetDcaeServiceTypesType__String(), this.getDCAEServiceType(), "getDcaeServiceTypesType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "typeId", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__CreateDcaeServiceTypesTypeName__DCAEServiceTypeRequest(), this.getDCAEServiceType(), "createDcaeServiceTypesTypeName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getDCAEServiceTypeRequest(), "body", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__GetDcaeServices__String_String_String_String_String_Boolean_String_Integer(), this.getDcaeServiceResults(), "getDcaeServices", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "typeId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vnfId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vnfType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "vnfLocation", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "componentType", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEBooleanObject(), "shareable", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "created", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEIntegerObject(), "offset", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__GetDcaeServicesGroupbyPropertyName__String(), this.getDCAEServiceGroupByResults(), "getDcaeServicesGroupbyPropertyName", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "propertyName", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__DeleteDcaeServicesService__String(), null, "deleteDcaeServicesService", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "serviceId", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__GetDcaeServicesService__String(), this.getDCAEService(), "getDcaeServicesService", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "serviceId", 0, 1, !IS_UNIQUE, IS_ORDERED); + + op = initEOperation(getDcaeInventory__CreateDcaeServicesService__String_DCAEServiceRequest(), this.getDCAEService(), "createDcaeServicesService", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, theEcorePackage.getEString(), "serviceId", 0, 1, !IS_UNIQUE, IS_ORDERED); + addEParameter(op, this.getDCAEServiceRequest(), "body", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEOperation(getDcaeInventory__Poll(), null, "poll", 0, 1, !IS_UNIQUE, IS_ORDERED); + + initEClass(apiResponseMessageEClass, ApiResponseMessage.class, "ApiResponseMessage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getApiResponseMessage_Code(), theEcorePackage.getEIntegerObject(), "code", null, 0, 1, ApiResponseMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiResponseMessage_Type(), theEcorePackage.getEString(), "type", null, 0, 1, ApiResponseMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getApiResponseMessage_Message(), theEcorePackage.getEString(), "message", null, 0, 1, ApiResponseMessage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceComponentEClass, DCAEServiceComponent.class, "DCAEServiceComponent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEServiceComponent_ComponentId(), theEcorePackage.getEString(), "componentId", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEServiceComponent_ComponentLink(), this.getLink(), null, "componentLink", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponent_Created1(), theEcorePackage.getEDate(), "created1", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponent_Modified(), theEcorePackage.getEDate(), "modified", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponent_ComponentType(), theEcorePackage.getEString(), "componentType", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponent_ComponentSource(), theEcorePackage.getEString(), "componentSource", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponent_Status(), theEcorePackage.getEString(), "status", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponent_Location(), theEcorePackage.getEString(), "location", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponent_Shareable(), theEcorePackage.getEIntegerObject(), "shareable", null, 0, 1, DCAEServiceComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceComponentRequestEClass, DCAEServiceComponentRequest.class, "DCAEServiceComponentRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEServiceComponentRequest_ComponentId(), theEcorePackage.getEString(), "componentId", null, 0, 1, DCAEServiceComponentRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponentRequest_ComponentType(), theEcorePackage.getEString(), "componentType", null, 0, 1, DCAEServiceComponentRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponentRequest_ComponentSource(), theEcorePackage.getEString(), "componentSource", null, 0, 1, DCAEServiceComponentRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceComponentRequest_Shareable(), theEcorePackage.getEIntegerObject(), "shareable", null, 0, 1, DCAEServiceComponentRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceEClass, DCAEService.class, "DCAEService", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEService_ServiceId(), theEcorePackage.getEString(), "serviceId", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEService_SelfLink(), this.getLink(), null, "selfLink", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEService_Created1(), theEcorePackage.getEDate(), "created1", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEService_Modified(), theEcorePackage.getEDate(), "modified", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEService_TypeLink(), this.getLink(), null, "typeLink", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEService_VnfId(), theEcorePackage.getEString(), "vnfId", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEService_VnfLink(), this.getLink(), null, "vnfLink", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEService_VnfType(), theEcorePackage.getEString(), "vnfType", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEService_VnfLocation(), theEcorePackage.getEString(), "vnfLocation", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEService_DeploymentRef(), theEcorePackage.getEString(), "deploymentRef", null, 0, 1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEService_Components(), this.getDCAEServiceComponent(), null, "components", null, 0, -1, DCAEService.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceGroupByResultsEClass, DCAEServiceGroupByResults.class, "DCAEServiceGroupByResults", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEServiceGroupByResults_PropertyName(), theEcorePackage.getEString(), "propertyName", null, 0, 1, DCAEServiceGroupByResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEServiceGroupByResults_PropertyValues(), this.getDCAEServiceGroupByResultsPropertyValues(), null, "propertyValues", null, 0, -1, DCAEServiceGroupByResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceGroupByResultsPropertyValuesEClass, DCAEServiceGroupByResultsPropertyValues.class, "DCAEServiceGroupByResultsPropertyValues", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEServiceGroupByResultsPropertyValues_Count(), theEcorePackage.getEIntegerObject(), "count", null, 0, 1, DCAEServiceGroupByResultsPropertyValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceGroupByResultsPropertyValues_PropertyValue(), theEcorePackage.getEString(), "propertyValue", null, 0, 1, DCAEServiceGroupByResultsPropertyValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEServiceGroupByResultsPropertyValues_DcaeServiceQueryLink(), this.getLink(), null, "dcaeServiceQueryLink", null, 0, 1, DCAEServiceGroupByResultsPropertyValues.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceRequestEClass, DCAEServiceRequest.class, "DCAEServiceRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEServiceRequest_TypeId(), theEcorePackage.getEString(), "typeId", null, 0, 1, DCAEServiceRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceRequest_VnfId(), theEcorePackage.getEString(), "vnfId", null, 0, 1, DCAEServiceRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceRequest_VnfType(), theEcorePackage.getEString(), "vnfType", null, 0, 1, DCAEServiceRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceRequest_VnfLocation(), theEcorePackage.getEString(), "vnfLocation", null, 0, 1, DCAEServiceRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceRequest_DeploymentRef(), theEcorePackage.getEString(), "deploymentRef", null, 0, 1, DCAEServiceRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEServiceRequest_Components(), this.getDCAEServiceComponentRequest(), null, "components", null, 0, -1, DCAEServiceRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceTypeEClass, DCAEServiceType.class, "DCAEServiceType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEServiceType_Owner(), theEcorePackage.getEString(), "owner", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_TypeName(), theEcorePackage.getEString(), "typeName", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_TypeVersion(), theEcorePackage.getEIntegerObject(), "typeVersion", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_BlueprintTemplate(), theEcorePackage.getEString(), "blueprintTemplate", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_ServiceIds(), theEcorePackage.getEString(), "serviceIds", null, 0, -1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_VnfTypes(), theEcorePackage.getEString(), "vnfTypes", null, 0, -1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_ServiceLocations(), theEcorePackage.getEString(), "serviceLocations", null, 0, -1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_AsdcServiceId(), theEcorePackage.getEString(), "asdcServiceId", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_AsdcResourceId(), theEcorePackage.getEString(), "asdcResourceId", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_AsdcServiceURL(), theEcorePackage.getEString(), "asdcServiceURL", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_TypeId(), theEcorePackage.getEString(), "typeId", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDCAEServiceType_SelfLink(), this.getLink(), null, "selfLink", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_Created1(), theEcorePackage.getEDate(), "created1", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceType_Deactivated(), theEcorePackage.getEDate(), "deactivated", null, 0, 1, DCAEServiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceTypeRequestEClass, DCAEServiceTypeRequest.class, "DCAEServiceTypeRequest", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDCAEServiceTypeRequest_Owner(), theEcorePackage.getEString(), "owner", null, 0, 1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_TypeName(), theEcorePackage.getEString(), "typeName", null, 0, 1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_TypeVersion(), theEcorePackage.getEIntegerObject(), "typeVersion", null, 0, 1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_BlueprintTemplate(), theEcorePackage.getEString(), "blueprintTemplate", null, 0, 1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_ServiceIds(), theEcorePackage.getEString(), "serviceIds", null, 0, -1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_VnfTypes(), theEcorePackage.getEString(), "vnfTypes", null, 0, -1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_ServiceLocations(), theEcorePackage.getEString(), "serviceLocations", null, 0, -1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_AsdcServiceId(), theEcorePackage.getEString(), "asdcServiceId", null, 0, 1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_AsdcResourceId(), theEcorePackage.getEString(), "asdcResourceId", null, 0, 1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDCAEServiceTypeRequest_AsdcServiceURL(), theEcorePackage.getEString(), "asdcServiceURL", null, 0, 1, DCAEServiceTypeRequest.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceResultsEClass, DcaeServiceResults.class, "DcaeServiceResults", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDcaeServiceResults_Links(), this.getLink(), null, "links", null, 0, -1, DcaeServiceResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDcaeServiceResults_TotalCount(), theEcorePackage.getEIntegerObject(), "totalCount", null, 0, 1, DcaeServiceResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDcaeServiceResults_Items(), this.getDCAEService(), null, "items", null, 0, -1, DcaeServiceResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(dcaeServiceTypeResultsEClass, DcaeServiceTypeResults.class, "DcaeServiceTypeResults", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getDcaeServiceTypeResults_Links(), this.getLink(), null, "links", null, 0, -1, DcaeServiceTypeResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDcaeServiceTypeResults_TotalCount(), theEcorePackage.getEIntegerObject(), "totalCount", null, 0, 1, DcaeServiceTypeResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDcaeServiceTypeResults_Items(), this.getDCAEServiceType(), null, "items", null, 0, -1, DcaeServiceTypeResults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(linkEClass, Link.class, "Link", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getLink_Params(), this.getParameter(), null, "params", null, 0, -1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Title(), theEcorePackage.getEString(), "title", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + 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_Uri(), theEcorePackage.getEString(), "uri", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getLink_UriBuilder(), this.getUriBuilder(), null, "uriBuilder", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLink_Rels(), theEcorePackage.getEString(), "rels", 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(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getParameter_Value(), theEcorePackage.getEString(), "value", null, 0, 1, Parameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(uriBuilderEClass, UriBuilder.class, "UriBuilder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + } + +} //InventoryPackageImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/LinkImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/LinkImpl.java new file mode 100644 index 0000000..1d01b45 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/LinkImpl.java @@ -0,0 +1,541 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +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; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; +import org.openecomp.dcae.controller.inventory.Parameter; +import org.openecomp.dcae.controller.inventory.UriBuilder; +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Link</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getParams <em>Params</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getTitle <em>Title</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getRel <em>Rel</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getHref <em>Href</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getUri <em>Uri</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getUriBuilder <em>Uri Builder</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getRels <em>Rels</em>}</li> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getType <em>Type</em>}</li> + * </ul> + * + * @generated + */ +public class LinkImpl extends NamedEntityImpl implements Link { + /** + * The cached value of the '{@link #getParams() <em>Params</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getParams() + * @generated + * @ordered + */ + protected EList<Parameter> params; + + /** + * The default value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected static final String TITLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTitle() + * @generated + * @ordered + */ + protected String title = TITLE_EDEFAULT; + + /** + * 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 #getUri() <em>Uri</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUri() + * @generated + * @ordered + */ + protected static final String URI_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUri() <em>Uri</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUri() + * @generated + * @ordered + */ + protected String uri = URI_EDEFAULT; + + /** + * The cached value of the '{@link #getUriBuilder() <em>Uri Builder</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUriBuilder() + * @generated + * @ordered + */ + protected UriBuilder uriBuilder; + + /** + * The cached value of the '{@link #getRels() <em>Rels</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getRels() + * @generated + * @ordered + */ + protected EList<String> rels; + + /** + * 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 InventoryPackage.Literals.LINK; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Parameter> getParams() { + if (params == null) { + params = new EObjectContainmentEList<Parameter>(Parameter.class, this, InventoryPackage.LINK__PARAMS); + } + return params; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTitle() { + return title; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTitle(String newTitle) { + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__TITLE, oldTitle, title)); + } + + /** + * <!-- 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, InventoryPackage.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, InventoryPackage.LINK__HREF, oldHref, href)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getUri() { + return uri; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUri(String newUri) { + String oldUri = uri; + uri = newUri; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__URI, oldUri, uri)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public UriBuilder getUriBuilder() { + return uriBuilder; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetUriBuilder(UriBuilder newUriBuilder, NotificationChain msgs) { + UriBuilder oldUriBuilder = uriBuilder; + uriBuilder = newUriBuilder; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__URI_BUILDER, oldUriBuilder, newUriBuilder); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUriBuilder(UriBuilder newUriBuilder) { + if (newUriBuilder != uriBuilder) { + NotificationChain msgs = null; + if (uriBuilder != null) + msgs = ((InternalEObject)uriBuilder).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.LINK__URI_BUILDER, null, msgs); + if (newUriBuilder != null) + msgs = ((InternalEObject)newUriBuilder).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - InventoryPackage.LINK__URI_BUILDER, null, msgs); + msgs = basicSetUriBuilder(newUriBuilder, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__URI_BUILDER, newUriBuilder, newUriBuilder)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getRels() { + if (rels == null) { + rels = new EDataTypeEList<String>(String.class, this, InventoryPackage.LINK__RELS); + } + return rels; + } + + /** + * <!-- 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, InventoryPackage.LINK__TYPE, oldType, type)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case InventoryPackage.LINK__PARAMS: + return ((InternalEList<?>)getParams()).basicRemove(otherEnd, msgs); + case InventoryPackage.LINK__URI_BUILDER: + return basicSetUriBuilder(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 InventoryPackage.LINK__PARAMS: + return getParams(); + case InventoryPackage.LINK__TITLE: + return getTitle(); + case InventoryPackage.LINK__REL: + return getRel(); + case InventoryPackage.LINK__HREF: + return getHref(); + case InventoryPackage.LINK__URI: + return getUri(); + case InventoryPackage.LINK__URI_BUILDER: + return getUriBuilder(); + case InventoryPackage.LINK__RELS: + return getRels(); + case InventoryPackage.LINK__TYPE: + return getType(); + } + 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 InventoryPackage.LINK__PARAMS: + getParams().clear(); + getParams().addAll((Collection<? extends Parameter>)newValue); + return; + case InventoryPackage.LINK__TITLE: + setTitle((String)newValue); + return; + case InventoryPackage.LINK__REL: + setRel((String)newValue); + return; + case InventoryPackage.LINK__HREF: + setHref((String)newValue); + return; + case InventoryPackage.LINK__URI: + setUri((String)newValue); + return; + case InventoryPackage.LINK__URI_BUILDER: + setUriBuilder((UriBuilder)newValue); + return; + case InventoryPackage.LINK__RELS: + getRels().clear(); + getRels().addAll((Collection<? extends String>)newValue); + return; + case InventoryPackage.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 InventoryPackage.LINK__PARAMS: + getParams().clear(); + return; + case InventoryPackage.LINK__TITLE: + setTitle(TITLE_EDEFAULT); + return; + case InventoryPackage.LINK__REL: + setRel(REL_EDEFAULT); + return; + case InventoryPackage.LINK__HREF: + setHref(HREF_EDEFAULT); + return; + case InventoryPackage.LINK__URI: + setUri(URI_EDEFAULT); + return; + case InventoryPackage.LINK__URI_BUILDER: + setUriBuilder((UriBuilder)null); + return; + case InventoryPackage.LINK__RELS: + getRels().clear(); + return; + case InventoryPackage.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 InventoryPackage.LINK__PARAMS: + return params != null && !params.isEmpty(); + case InventoryPackage.LINK__TITLE: + return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title); + case InventoryPackage.LINK__REL: + return REL_EDEFAULT == null ? rel != null : !REL_EDEFAULT.equals(rel); + case InventoryPackage.LINK__HREF: + return HREF_EDEFAULT == null ? href != null : !HREF_EDEFAULT.equals(href); + case InventoryPackage.LINK__URI: + return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); + case InventoryPackage.LINK__URI_BUILDER: + return uriBuilder != null; + case InventoryPackage.LINK__RELS: + return rels != null && !rels.isEmpty(); + case InventoryPackage.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(" (title: "); + result.append(title); + result.append(", rel: "); + result.append(rel); + result.append(", href: "); + result.append(href); + result.append(", uri: "); + result.append(uri); + result.append(", rels: "); + result.append(rels); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} //LinkImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ParameterImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ParameterImpl.java new file mode 100644 index 0000000..f996e30 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ParameterImpl.java @@ -0,0 +1,164 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Parameter; + +import org.openecomp.ncomp.core.impl.NamedEntityImpl; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Parameter</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.openecomp.dcae.controller.inventory.impl.ParameterImpl#getValue <em>Value</em>}</li> + * </ul> + * + * @generated + */ +public class ParameterImpl extends NamedEntityImpl implements Parameter { + /** + * 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 ParameterImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.PARAMETER; + } + + /** + * <!-- 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, InventoryPackage.PARAMETER__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case InventoryPackage.PARAMETER__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 InventoryPackage.PARAMETER__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 InventoryPackage.PARAMETER__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case InventoryPackage.PARAMETER__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(" (value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //ParameterImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/UriBuilderImpl.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/UriBuilderImpl.java new file mode 100644 index 0000000..25a99a5 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/UriBuilderImpl.java @@ -0,0 +1,39 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.UriBuilder; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Uri Builder</b></em>'. + * <!-- end-user-doc --> + * + * @generated + */ +public class UriBuilderImpl extends MinimalEObjectImpl.Container implements UriBuilder { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected UriBuilderImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.URI_BUILDER; + } + +} //UriBuilderImpl diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventoryAdapterFactory.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventoryAdapterFactory.java new file mode 100644 index 0000000..a4ecd1f --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventoryAdapterFactory.java @@ -0,0 +1,392 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.util; + +import org.eclipse.emf.common.notify.Adapter; +import org.eclipse.emf.common.notify.Notifier; + +import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; + +import org.eclipse.emf.ecore.EObject; + +import org.openecomp.dcae.controller.inventory.*; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * The <b>Adapter Factory</b> for the model. + * It provides an adapter <code>createXXX</code> method for each class of the model. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.InventoryPackage + * @generated + */ +public class InventoryAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static InventoryPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InventoryAdapterFactory() { + if (modelPackage == null) { + modelPackage = InventoryPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> + * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. + * <!-- end-user-doc --> + * @return whether this factory is applicable for the type of the object. + * @generated + */ + @Override + public boolean isFactoryForType(Object object) { + if (object == modelPackage) { + return true; + } + if (object instanceof EObject) { + return ((EObject)object).eClass().getEPackage() == modelPackage; + } + return false; + } + + /** + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected InventorySwitch<Adapter> modelSwitch = + new InventorySwitch<Adapter>() { + @Override + public Adapter caseDcaeInventory(DcaeInventory object) { + return createDcaeInventoryAdapter(); + } + @Override + public Adapter caseApiResponseMessage(ApiResponseMessage object) { + return createApiResponseMessageAdapter(); + } + @Override + public Adapter caseDCAEServiceComponent(DCAEServiceComponent object) { + return createDCAEServiceComponentAdapter(); + } + @Override + public Adapter caseDCAEServiceComponentRequest(DCAEServiceComponentRequest object) { + return createDCAEServiceComponentRequestAdapter(); + } + @Override + public Adapter caseDCAEService(DCAEService object) { + return createDCAEServiceAdapter(); + } + @Override + public Adapter caseDCAEServiceGroupByResults(DCAEServiceGroupByResults object) { + return createDCAEServiceGroupByResultsAdapter(); + } + @Override + public Adapter caseDCAEServiceGroupByResultsPropertyValues(DCAEServiceGroupByResultsPropertyValues object) { + return createDCAEServiceGroupByResultsPropertyValuesAdapter(); + } + @Override + public Adapter caseDCAEServiceRequest(DCAEServiceRequest object) { + return createDCAEServiceRequestAdapter(); + } + @Override + public Adapter caseDCAEServiceType(DCAEServiceType object) { + return createDCAEServiceTypeAdapter(); + } + @Override + public Adapter caseDCAEServiceTypeRequest(DCAEServiceTypeRequest object) { + return createDCAEServiceTypeRequestAdapter(); + } + @Override + public Adapter caseDcaeServiceResults(DcaeServiceResults object) { + return createDcaeServiceResultsAdapter(); + } + @Override + public Adapter caseDcaeServiceTypeResults(DcaeServiceTypeResults object) { + return createDcaeServiceTypeResultsAdapter(); + } + @Override + public Adapter caseLink(Link object) { + return createLinkAdapter(); + } + @Override + public Adapter caseParameter(Parameter object) { + return createParameterAdapter(); + } + @Override + public Adapter caseUriBuilder(UriBuilder object) { + return createUriBuilderAdapter(); + } + @Override + public Adapter caseNamedEntity(NamedEntity object) { + return createNamedEntityAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param target the object to adapt. + * @return the adapter for the <code>target</code>. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject)target); + } + + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DcaeInventory <em>Dcae Inventory</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DcaeInventory + * @generated + */ + public Adapter createDcaeInventoryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.ApiResponseMessage <em>Api Response Message</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.ApiResponseMessage + * @generated + */ + public Adapter createApiResponseMessageAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent <em>DCAE Service Component</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponent + * @generated + */ + public Adapter createDCAEServiceComponentAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest <em>DCAE Service Component Request</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest + * @generated + */ + public Adapter createDCAEServiceComponentRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEService <em>DCAE Service</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEService + * @generated + */ + public Adapter createDCAEServiceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults <em>DCAE Service Group By Results</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults + * @generated + */ + public Adapter createDCAEServiceGroupByResultsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues <em>DCAE Service Group By Results Property Values</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues + * @generated + */ + public Adapter createDCAEServiceGroupByResultsPropertyValuesAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest <em>DCAE Service Request</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceRequest + * @generated + */ + public Adapter createDCAEServiceRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceType <em>DCAE Service Type</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceType + * @generated + */ + public Adapter createDCAEServiceTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest <em>DCAE Service Type Request</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest + * @generated + */ + public Adapter createDCAEServiceTypeRequestAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DcaeServiceResults <em>Dcae Service Results</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceResults + * @generated + */ + public Adapter createDcaeServiceResultsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults <em>Dcae Service Type Results</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults + * @generated + */ + public Adapter createDcaeServiceTypeResultsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.Link <em>Link</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.Link + * @generated + */ + public Adapter createLinkAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.Parameter <em>Parameter</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.Parameter + * @generated + */ + public Adapter createParameterAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.dcae.controller.inventory.UriBuilder <em>Uri Builder</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.dcae.controller.inventory.UriBuilder + * @generated + */ + public Adapter createUriBuilderAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.openecomp.ncomp.core.NamedEntity <em>Named Entity</em>}'. + * <!-- begin-user-doc --> + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * <!-- end-user-doc --> + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> + * This default implementation returns null. + * <!-- end-user-doc --> + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } + +} //InventoryAdapterFactory diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventorySwitch.java b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventorySwitch.java new file mode 100644 index 0000000..bb72107 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventorySwitch.java @@ -0,0 +1,426 @@ +/** + */ +package org.openecomp.dcae.controller.inventory.util; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.Switch; + +import org.openecomp.dcae.controller.inventory.*; + +import org.openecomp.ncomp.core.NamedEntity; + +/** + * <!-- begin-user-doc --> + * The <b>Switch</b> for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the <code>caseXXX</code> method for each class of the model, + * starting with the actual class of the object + * and proceeding up the inheritance hierarchy + * until a non-null result is returned, + * which is the result of the switch. + * <!-- end-user-doc --> + * @see org.openecomp.dcae.controller.inventory.InventoryPackage + * @generated + */ +public class InventorySwitch<T> extends Switch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static InventoryPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InventorySwitch() { + if (modelPackage == null) { + modelPackage = InventoryPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } + + /** + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the first non-null result returned by a <code>caseXXX</code> call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case InventoryPackage.DCAE_INVENTORY: { + DcaeInventory dcaeInventory = (DcaeInventory)theEObject; + T result = caseDcaeInventory(dcaeInventory); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.API_RESPONSE_MESSAGE: { + ApiResponseMessage apiResponseMessage = (ApiResponseMessage)theEObject; + T result = caseApiResponseMessage(apiResponseMessage); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_COMPONENT: { + DCAEServiceComponent dcaeServiceComponent = (DCAEServiceComponent)theEObject; + T result = caseDCAEServiceComponent(dcaeServiceComponent); + if (result == null) result = caseNamedEntity(dcaeServiceComponent); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_COMPONENT_REQUEST: { + DCAEServiceComponentRequest dcaeServiceComponentRequest = (DCAEServiceComponentRequest)theEObject; + T result = caseDCAEServiceComponentRequest(dcaeServiceComponentRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE: { + DCAEService dcaeService = (DCAEService)theEObject; + T result = caseDCAEService(dcaeService); + if (result == null) result = caseNamedEntity(dcaeService); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS: { + DCAEServiceGroupByResults dcaeServiceGroupByResults = (DCAEServiceGroupByResults)theEObject; + T result = caseDCAEServiceGroupByResults(dcaeServiceGroupByResults); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES: { + DCAEServiceGroupByResultsPropertyValues dcaeServiceGroupByResultsPropertyValues = (DCAEServiceGroupByResultsPropertyValues)theEObject; + T result = caseDCAEServiceGroupByResultsPropertyValues(dcaeServiceGroupByResultsPropertyValues); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_REQUEST: { + DCAEServiceRequest dcaeServiceRequest = (DCAEServiceRequest)theEObject; + T result = caseDCAEServiceRequest(dcaeServiceRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_TYPE: { + DCAEServiceType dcaeServiceType = (DCAEServiceType)theEObject; + T result = caseDCAEServiceType(dcaeServiceType); + if (result == null) result = caseNamedEntity(dcaeServiceType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST: { + DCAEServiceTypeRequest dcaeServiceTypeRequest = (DCAEServiceTypeRequest)theEObject; + T result = caseDCAEServiceTypeRequest(dcaeServiceTypeRequest); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_RESULTS: { + DcaeServiceResults dcaeServiceResults = (DcaeServiceResults)theEObject; + T result = caseDcaeServiceResults(dcaeServiceResults); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.DCAE_SERVICE_TYPE_RESULTS: { + DcaeServiceTypeResults dcaeServiceTypeResults = (DcaeServiceTypeResults)theEObject; + T result = caseDcaeServiceTypeResults(dcaeServiceTypeResults); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.LINK: { + Link link = (Link)theEObject; + T result = caseLink(link); + if (result == null) result = caseNamedEntity(link); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.PARAMETER: { + Parameter parameter = (Parameter)theEObject; + T result = caseParameter(parameter); + if (result == null) result = caseNamedEntity(parameter); + if (result == null) result = defaultCase(theEObject); + return result; + } + case InventoryPackage.URI_BUILDER: { + UriBuilder uriBuilder = (UriBuilder)theEObject; + T result = caseUriBuilder(uriBuilder); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Dcae Inventory</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Inventory</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeInventory(DcaeInventory object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Api Response Message</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Api Response Message</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseApiResponseMessage(ApiResponseMessage object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service Component</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service Component</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEServiceComponent(DCAEServiceComponent object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service Component Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service Component Request</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEServiceComponentRequest(DCAEServiceComponentRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEService(DCAEService object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service Group By Results</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service Group By Results</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEServiceGroupByResults(DCAEServiceGroupByResults object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service Group By Results Property Values</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service Group By Results Property Values</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEServiceGroupByResultsPropertyValues(DCAEServiceGroupByResultsPropertyValues object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service Request</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEServiceRequest(DCAEServiceRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service Type</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEServiceType(DCAEServiceType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>DCAE Service Type Request</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>DCAE Service Type Request</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDCAEServiceTypeRequest(DCAEServiceTypeRequest object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Dcae Service Results</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Service Results</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeServiceResults(DcaeServiceResults object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Dcae Service Type Results</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Dcae Service Type Results</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDcaeServiceTypeResults(DcaeServiceTypeResults object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Link</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Link</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLink(Link object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Parameter</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseParameter(Parameter object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Uri Builder</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Uri Builder</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUriBuilder(UriBuilder object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Named Entity</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Named Entity</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedEntity(NamedEntity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. + * <!-- begin-user-doc --> + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * <!-- end-user-doc --> + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>EObject</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } + +} //InventorySwitch diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore/inventory.xcore b/dcae-controller-core/dcae-controller-core-model/src/main/xcore/inventory.xcore new file mode 100644 index 0000000..911a108 --- /dev/null +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore/inventory.xcore @@ -0,0 +1,198 @@ +/*- + * ============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============================================ + */ +@GenModel(modelDirectory="/dcae-controller-core-model/src/main/xcore-gen") +package org.openecomp.dcae.controller.inventory + +import org.openecomp.ncomp.core.NamedEntity + +class DcaeInventory { + contains DCAEServiceType[] serviceTypes + contains DCAEService[] services + op DcaeServiceTypeResults getDcaeServiceTypes(String typeName, Boolean onlyLatest, Boolean onlyActive, String vnfType, String serviceId, String serviceLocation, String asdcServiceId, String asdcResourceId, Integer offset) + op ApiResponseMessage deleteDcaeServiceTypesType(String[1] typeId) + op DCAEServiceType getDcaeServiceTypesType(String typeId) + op DCAEServiceType createDcaeServiceTypesTypeName(DCAEServiceTypeRequest body) + op DcaeServiceResults getDcaeServices(String typeId, String vnfId, String vnfType, String vnfLocation, String componentType, Boolean shareable, String created, Integer offset) + op DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(String propertyName) + op void deleteDcaeServicesService(String serviceId) + op DCAEService getDcaeServicesService(String serviceId) + op DCAEService createDcaeServicesService(String serviceId, DCAEServiceRequest body) + op void poll() +} + +class ApiResponseMessage { + Integer code + String ^type + String message +} + +class DCAEServiceComponent extends NamedEntity { + /* The id format is unique to the source */ + String componentId + /* Link to the underlying resource of this component */ + contains Link componentLink + Date created1 + Date modified + String componentType + /* Specifies the name of the underying source service that is responsible for this components */ + String componentSource + String status + /* Location information of the component */ + String location + /* Used to determine if this component can be shared amongst different DCAE services */ + Integer shareable +} + +class DCAEServiceComponentRequest { + /* The id format is unique to the source */ + String componentId + String componentType + /* Specifies the name of the underying source service that is responsible for this components */ + String componentSource + /* Used to determine if this component can be shared amongst different DCAE services */ + Integer shareable +} + +class DCAEService extends NamedEntity { + String serviceId + /* Link.title is serviceId */ + contains Link selfLink + Date created1 + Date modified + /* Link.title is typeId */ + contains Link typeLink + String vnfId + /* Link.title is vnfId */ + contains Link vnfLink + String vnfType + /* Location information of the associated VNF */ + String vnfLocation + /* Reference to a Cloudify deployment */ + String deploymentRef + contains DCAEServiceComponent[] components +} + +class DCAEServiceGroupByResults { + /* Property name of DCAE service that the group by operation was performed on */ + String propertyName + contains DCAEServiceGroupByResultsPropertyValues[] propertyValues +} + +class DCAEServiceGroupByResultsPropertyValues { + Integer count + String propertyValue + /* Link.title is the DCAE service property value. Following this link will provide a list of DCAE services that all have this property value. */ + contains Link dcaeServiceQueryLink +} + +class DCAEServiceRequest { + /* Id of the associated DCAE service type */ + String typeId + /* Id of the associated VNF that this service is monitoring */ + String vnfId + /* The type of the associated VNF that this service is monitoring */ + String vnfType + /* Location identifier of the associated VNF that this service is monitoring */ + String vnfLocation + /* Reference to a Cloudify deployment */ + String deploymentRef + /* List of DCAE service components that this service is composed of */ + contains DCAEServiceComponentRequest[] components +} + +class DCAEServiceType extends NamedEntity { + String owner + /* Descriptive name for this DCAE service type */ + String typeName + /* Version number for this DCAE service type */ + Integer typeVersion + /* String representation of a Cloudify blueprint with unbound variables */ + String blueprintTemplate + /* List of service ids that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service id. */ + String[] serviceIds + String[] vnfTypes + /* List of service locations that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service location. */ + String[] serviceLocations + /* Id of service this DCAE service type is associated with. Value source is from ASDC's notification event's field `serviceInvariantUUID`. */ + String asdcServiceId + /* Id of vf/vnf instance this DCAE service type is associated with. Value source is from ASDC's notification event's field `resourceInvariantUUID`. */ + String asdcResourceId + /* URL to the ASDC service model */ + String asdcServiceURL + /* Unique identifier for this DCAE service type */ + String typeId + /* Link to self where the Link.title is typeName */ + contains Link selfLink + /* Created timestamp for this DCAE service type in epoch time */ + Date created1 + /* Deactivated timestamp for this DCAE service type in epoch time */ + Date deactivated +} + +class DCAEServiceTypeRequest { + String owner + /* Descriptive name for this DCAE service type */ + String typeName + /* Version number for this DCAE service type */ + Integer typeVersion + /* String representation of a Cloudify blueprint with unbound variables */ + String blueprintTemplate + /* List of service ids that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service id. */ + String[] serviceIds + String[] vnfTypes + /* List of service locations that are used to associate with DCAE service type. DCAE service types with this propery as null or empty means them apply for every service location. */ + String[] serviceLocations + /* Id of service this DCAE service type is associated with. Value source is from ASDC's notification event's field `serviceInvariantUUID`. */ + String asdcServiceId + /* Id of vf/vnf instance this DCAE service type is associated with. Value source is from ASDC's notification event's field `resourceInvariantUUID`. */ + String asdcResourceId + /* URL to the ASDC service model */ + String asdcServiceURL +} + +class DcaeServiceResults { + contains Link[] links + Integer totalCount + contains DCAEService[] items +} + +class DcaeServiceTypeResults { + contains Link[] links + Integer totalCount + contains DCAEServiceType[] items +} + +class Link extends NamedEntity { + contains Parameter[] params + String title + String rel + String href + String uri + contains UriBuilder uriBuilder + String[] rels + String ^type +} + +class Parameter extends NamedEntity { + String value +} + +class UriBuilder { +} diff --git a/dcae-controller-core/dcae-controller-core-model/src/main/xcore/stream.xcore b/dcae-controller-core/dcae-controller-core-model/src/main/xcore/stream.xcore index d6b0fcc..eb2189a 100644 --- a/dcae-controller-core/dcae-controller-core-model/src/main/xcore/stream.xcore +++ b/dcae-controller-core/dcae-controller-core-model/src/main/xcore/stream.xcore @@ -88,6 +88,8 @@ class DatabusStreamTopic extends DatabusStream { String publishURL String subscribeURL StreamAuthentication authenticationMethod + String replicationCase + String globalMrURL } class DatabusStreamTopicClient extends DatabusStream { diff --git a/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/dmaap_mr_prep.sh b/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/dmaap_mr_prep.sh index 24fbcb0..0c1a09e 100644 --- a/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/dmaap_mr_prep.sh +++ b/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/dmaap_mr_prep.sh @@ -4,7 +4,7 @@ GITREPO=$1 cd /opt/app -git -c http.sslVerify=false clone $GITREPO +git -c http.sslVerify=false clone $GITREPO message-router cd message-router/ ./deploy.sh diff --git a/dcae-controller-core/dcae-controller-platform-model/.classpath b/dcae-controller-core/dcae-controller-platform-model/.classpath index 69b19c6..d86c4cf 100644 --- a/dcae-controller-core/dcae-controller-platform-model/.classpath +++ b/dcae-controller-core/dcae-controller-platform-model/.classpath @@ -1,17 +1,33 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry kind="src" output="target/classes" path="src/main/xcore"> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/xcore"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/classes" path="src/main/xcore-gen"> <attributes> <attribute name="optional" value="true"/> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> - <classpathentry kind="src" path="src/main/xcore-gen"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> <attributes> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> <classpathentry kind="output" path="target/classes"/> </classpath> diff --git a/dcae-controller-core/dcae-controller-platform-model/.project b/dcae-controller-core/dcae-controller-platform-model/.project index 8a6051e..5d4882b 100644 --- a/dcae-controller-core/dcae-controller-platform-model/.project +++ b/dcae-controller-core/dcae-controller-platform-model/.project @@ -25,8 +25,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> + <nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.pde.PluginNature</nature> <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> diff --git a/dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.core.resources.prefs b/dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..447ff97 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +encoding//src/main/xcore=UTF-8 +encoding//src/main/xcore-gen=UTF-8 +encoding/<project>=UTF-8 diff --git a/dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.jdt.core.prefs b/dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.jdt.core.prefs index 4ede96d..ec4300d 100644 --- a/dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.jdt.core.prefs +++ b/dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.jdt.core.prefs @@ -1,2 +1,5 @@ eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/dcae-controller-core/dcae-controller-platform-model/META-INF/MANIFEST.MF b/dcae-controller-core/dcae-controller-platform-model/META-INF/MANIFEST.MF index 66d0365..d590dac 100644 --- a/dcae-controller-core/dcae-controller-platform-model/META-INF/MANIFEST.MF +++ b/dcae-controller-core/dcae-controller-platform-model/META-INF/MANIFEST.MF @@ -12,14 +12,6 @@ Export-Package: org.openecomp.dcae.controller.platform.controller, Require-Bundle: org.eclipse.core.runtime, org.eclipse.emf.ecore;visibility:=reexport, org.eclipse.xtext.xbase.lib, - org.eclipse.emf.ecore.xcore.lib, - ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-openstack-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-core-types;bundle-version="0.1.0", - ncomp-utils-java;bundle-version="0.1.0", - dcae-controller-core-model;bundle-version="0.1.0";visibility:=reexport, - ncomp-sirius-manager-agent-model;bundle-version="0.1.0";visibility:=reexport, - dcae-controller-service-vm-model;bundle-version="0.1.0";visibility:=reexport + org.eclipse.emf.ecore.xcore.lib Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerCluster.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerCluster.java index 4ff0aa6..5f6ff11 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerCluster.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerCluster.java @@ -35,6 +35,7 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getMyServerName <em>My Server Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getRole <em>Role</em>}</li> @@ -42,7 +43,6 @@ import org.eclipse.emf.ecore.EObject; * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getServers <em>Servers</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getRemoteServers <em>Remote Servers</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.platform.controller.ControllerPackage#getControllerCluster() * @model diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServer.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServer.java index cff1a76..7e9ca60 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServer.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServer.java @@ -34,12 +34,12 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServer#getRole <em>Role</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServer#getData <em>Data</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServer#getServer <em>Server</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.platform.controller.ControllerPackage#getControllerClusterServer() * @model diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServerData.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServerData.java index 9a547f0..225404d 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServerData.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerClusterServerData.java @@ -35,6 +35,7 @@ import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getPushInterval <em>Push Interval</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getLastPush <em>Last Push</em>}</li> @@ -44,7 +45,6 @@ import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getNumberDataReceived <em>Number Data Received</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getNumberDataReceivedErrors <em>Number Data Received Errors</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.platform.controller.ControllerPackage#getControllerClusterServerData() * @model diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerPackage.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerPackage.java index 2f0d0cb..7d11402 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerPackage.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ControllerPackage.java @@ -46,6 +46,24 @@ import org.eclipse.emf.ecore.EReference; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * - + * ============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============================================ + * <!-- end-model-doc --> * @see org.openecomp.dcae.controller.platform.controller.ControllerFactory * @model kind="package" * annotation="http://www.eclipse.org/emf/2002/GenModel modelDirectory='/dcae-controller-platform-model/src/main/xcore-gen' basePackage='org.openecomp.dcae.controller.platform'" @@ -149,13 +167,22 @@ public interface ControllerPackage extends EPackage { int DCAE_PLATFORM_CONTROLLER__DATABUS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 5; /** + * The feature id for the '<em><b>Inventory</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DCAE_PLATFORM_CONTROLLER__INVENTORY = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 6; + + /** * The feature id for the '<em><b>Descriptors</b></em>' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ - int DCAE_PLATFORM_CONTROLLER__DESCRIPTORS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 6; + int DCAE_PLATFORM_CONTROLLER__DESCRIPTORS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 7; /** * The feature id for the '<em><b>Services</b></em>' containment reference list. @@ -164,7 +191,7 @@ public interface ControllerPackage extends EPackage { * @generated * @ordered */ - int DCAE_PLATFORM_CONTROLLER__SERVICES = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 7; + int DCAE_PLATFORM_CONTROLLER__SERVICES = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 8; /** * The feature id for the '<em><b>Users</b></em>' containment reference list. @@ -173,7 +200,7 @@ public interface ControllerPackage extends EPackage { * @generated * @ordered */ - int DCAE_PLATFORM_CONTROLLER__USERS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 8; + int DCAE_PLATFORM_CONTROLLER__USERS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 9; /** * The feature id for the '<em><b>Admin Users</b></em>' reference list. @@ -182,7 +209,7 @@ public interface ControllerPackage extends EPackage { * @generated * @ordered */ - int DCAE_PLATFORM_CONTROLLER__ADMIN_USERS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 9; + int DCAE_PLATFORM_CONTROLLER__ADMIN_USERS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 10; /** * The number of structural features of the '<em>Dcae Platform Controller</em>' class. @@ -191,7 +218,7 @@ public interface ControllerPackage extends EPackage { * @generated * @ordered */ - int DCAE_PLATFORM_CONTROLLER_FEATURE_COUNT = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 10; + int DCAE_PLATFORM_CONTROLLER_FEATURE_COUNT = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 11; /** * The operation id for the '<em>Logs</em>' operation. @@ -943,6 +970,17 @@ public interface ControllerPackage extends EPackage { EReference getDcaePlatformController_Databus(); /** + * Returns the meta object for the containment reference '{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getInventory <em>Inventory</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Inventory</em>'. + * @see org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getInventory() + * @see #getDcaePlatformController() + * @generated + */ + EReference getDcaePlatformController_Inventory(); + + /** * Returns the meta object for the containment reference list '{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getServices <em>Services</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -1361,6 +1399,14 @@ public interface ControllerPackage extends EPackage { EReference DCAE_PLATFORM_CONTROLLER__DATABUS = eINSTANCE.getDcaePlatformController_Databus(); /** + * The meta object literal for the '<em><b>Inventory</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DCAE_PLATFORM_CONTROLLER__INVENTORY = eINSTANCE.getDcaePlatformController_Inventory(); + + /** * The meta object literal for the '<em><b>Services</b></em>' containment reference list feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaeDataBus.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaeDataBus.java index d104318..fcefd91 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaeDataBus.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaeDataBus.java @@ -37,13 +37,13 @@ import org.eclipse.emf.ecore.EObject; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getStreams <em>Streams</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getLocations <em>Locations</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getMrClusters <em>Mr Clusters</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getDrNodes <em>Dr Nodes</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.platform.controller.ControllerPackage#getDcaeDataBus() * @model diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaePlatformController.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaePlatformController.java index a3a9204..ef8e16d 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaePlatformController.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/DcaePlatformController.java @@ -26,6 +26,7 @@ package org.openecomp.dcae.controller.platform.controller; import org.openecomp.dcae.controller.core.service.DcaeLocation; import org.openecomp.dcae.controller.core.service.DcaeService; import org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor; +import org.openecomp.dcae.controller.inventory.DcaeInventory; import org.openecomp.ncomp.core.User; import org.openecomp.ncomp.openstack.OpenStackController; import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer; @@ -39,17 +40,18 @@ import org.eclipse.emf.common.util.EList; * * <p> * The following features are supported: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getCluster <em>Cluster</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getOpenstack <em>Openstack</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getLocations <em>Locations</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getDatabus <em>Databus</em>}</li> + * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getInventory <em>Inventory</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getDescriptors <em>Descriptors</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getServices <em>Services</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getUsers <em>Users</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getAdminUsers <em>Admin Users</em>}</li> * </ul> - * </p> * * @see org.openecomp.dcae.controller.platform.controller.ControllerPackage#getDcaePlatformController() * @model @@ -151,6 +153,32 @@ public interface DcaePlatformController extends SouthBoundApiWithProxy, Abstract void setDatabus(DcaeDataBus value); /** + * Returns the value of the '<em><b>Inventory</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Inventory</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Inventory</em>' containment reference. + * @see #setInventory(DcaeInventory) + * @see org.openecomp.dcae.controller.platform.controller.ControllerPackage#getDcaePlatformController_Inventory() + * @model containment="true" + * @generated + */ + DcaeInventory getInventory(); + + /** + * Sets the value of the '{@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getInventory <em>Inventory</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Inventory</em>' containment reference. + * @see #getInventory() + * @generated + */ + void setInventory(DcaeInventory value); + + /** * Returns the value of the '<em><b>Services</b></em>' containment reference list. * The list contents are of type {@link org.openecomp.dcae.controller.core.service.DcaeService}. * <!-- begin-user-doc --> diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ServerRole.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ServerRole.java index 0286a1b..29515f1 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ServerRole.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/ServerRole.java @@ -163,6 +163,8 @@ public enum ServerRole implements Enumerator { * Returns the '<em><b>Server Role</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param literal the literal. + * @return the matching enumerator or <code>null</code>. * @generated */ public static ServerRole get(String literal) { @@ -179,6 +181,8 @@ public enum ServerRole implements Enumerator { * Returns the '<em><b>Server Role</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param name the name. + * @return the matching enumerator or <code>null</code>. * @generated */ public static ServerRole getByName(String name) { @@ -195,6 +199,8 @@ public enum ServerRole implements Enumerator { * Returns the '<em><b>Server Role</b></em>' literal with the specified integer value. * <!-- begin-user-doc --> * <!-- end-user-doc --> + * @param value the integer value. + * @return the matching enumerator or <code>null</code>. * @generated */ public static ServerRole get(int value) { diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterImpl.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterImpl.java index 7c03e75..1ba7d0c 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterImpl.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterImpl.java @@ -50,6 +50,7 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getMyServerName <em>My Server Name</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getRole <em>Role</em>}</li> @@ -57,7 +58,6 @@ import org.eclipse.emf.ecore.util.InternalEList; * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getServers <em>Servers</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getRemoteServers <em>Remote Servers</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerDataImpl.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerDataImpl.java index 6aedded..4263c9d 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerDataImpl.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerDataImpl.java @@ -43,6 +43,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getPushInterval <em>Push Interval</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getLastPush <em>Last Push</em>}</li> @@ -52,7 +53,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getNumberDataReceived <em>Number Data Received</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getNumberDataReceivedErrors <em>Number Data Received Errors</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerImpl.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerImpl.java index 517f38e..a4c667c 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerImpl.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerClusterServerImpl.java @@ -45,12 +45,12 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerImpl#getRole <em>Role</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerImpl#getData <em>Data</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerImpl#getServer <em>Server</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerPackageImpl.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerPackageImpl.java index 8725d12..efb4cba 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerPackageImpl.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerPackageImpl.java @@ -25,6 +25,7 @@ package org.openecomp.dcae.controller.platform.controller.impl; import org.openecomp.dcae.controller.core.service.ServicePackage; import org.openecomp.dcae.controller.core.stream.StreamPackage; +import org.openecomp.dcae.controller.inventory.InventoryPackage; import org.openecomp.dcae.controller.platform.controller.ControllerCluster; import org.openecomp.dcae.controller.platform.controller.ControllerClusterServer; import org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData; @@ -150,9 +151,10 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac isInited = true; // Initialize simple dependencies - VmPackage.eINSTANCE.eClass(); ServerPackage.eINSTANCE.eClass(); OpenstackPackage.eINSTANCE.eClass(); + InventoryPackage.eINSTANCE.eClass(); + VmPackage.eINSTANCE.eClass(); // Create package meta-data objects theControllerPackage.createPackageContents(); @@ -219,8 +221,17 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac * <!-- end-user-doc --> * @generated */ + public EReference getDcaePlatformController_Inventory() { + return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public EReference getDcaePlatformController_Services() { - return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(5); + return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(6); } /** @@ -229,7 +240,7 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac * @generated */ public EReference getDcaePlatformController_Users() { - return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(6); + return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(7); } /** @@ -238,7 +249,7 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac * @generated */ public EReference getDcaePlatformController_Descriptors() { - return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(4); + return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(5); } /** @@ -247,7 +258,7 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac * @generated */ public EReference getDcaePlatformController_AdminUsers() { - return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(7); + return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(8); } /** @@ -544,6 +555,7 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac createEReference(dcaePlatformControllerEClass, DCAE_PLATFORM_CONTROLLER__OPENSTACK); createEReference(dcaePlatformControllerEClass, DCAE_PLATFORM_CONTROLLER__LOCATIONS); createEReference(dcaePlatformControllerEClass, DCAE_PLATFORM_CONTROLLER__DATABUS); + createEReference(dcaePlatformControllerEClass, DCAE_PLATFORM_CONTROLLER__INVENTORY); createEReference(dcaePlatformControllerEClass, DCAE_PLATFORM_CONTROLLER__DESCRIPTORS); createEReference(dcaePlatformControllerEClass, DCAE_PLATFORM_CONTROLLER__SERVICES); createEReference(dcaePlatformControllerEClass, DCAE_PLATFORM_CONTROLLER__USERS); @@ -613,6 +625,7 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac ServerPackage theServerPackage = (ServerPackage)EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI); OpenstackPackage theOpenstackPackage = (OpenstackPackage)EPackage.Registry.INSTANCE.getEPackage(OpenstackPackage.eNS_URI); ServicePackage theServicePackage = (ServicePackage)EPackage.Registry.INSTANCE.getEPackage(ServicePackage.eNS_URI); + InventoryPackage theInventoryPackage = (InventoryPackage)EPackage.Registry.INSTANCE.getEPackage(InventoryPackage.eNS_URI); CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); StreamPackage theStreamPackage = (StreamPackage)EPackage.Registry.INSTANCE.getEPackage(StreamPackage.eNS_URI); @@ -636,6 +649,7 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac initEReference(getDcaePlatformController_Openstack(), theOpenstackPackage.getOpenStackController(), null, "openstack", null, 0, 1, DcaePlatformController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDcaePlatformController_Locations(), theServicePackage.getDcaeLocation(), null, "locations", null, 0, -1, DcaePlatformController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getDcaePlatformController_Databus(), this.getDcaeDataBus(), null, "databus", null, 0, 1, DcaePlatformController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDcaePlatformController_Inventory(), theInventoryPackage.getDcaeInventory(), null, "inventory", null, 0, 1, DcaePlatformController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDcaePlatformController_Descriptors(), theServicePackage.getDcaeServiceDescriptor(), null, "descriptors", null, 0, -1, DcaePlatformController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getDcaePlatformController_Services(), theServicePackage.getDcaeService(), null, "services", null, 0, -1, DcaePlatformController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); initEReference(getDcaePlatformController_Users(), theCorePackage.getUser(), null, "users", null, 0, -1, DcaePlatformController.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerVirtualMachineServiceImpl.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerVirtualMachineServiceImpl.java index 9efe9bc..4bc0f5b 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerVirtualMachineServiceImpl.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/ControllerVirtualMachineServiceImpl.java @@ -34,8 +34,6 @@ import org.eclipse.emf.ecore.EClass; * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Virtual Machine Service</b></em>'. * <!-- end-user-doc --> - * <p> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaeDataBusImpl.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaeDataBusImpl.java index eb17eff..41cc1be 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaeDataBusImpl.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaeDataBusImpl.java @@ -44,13 +44,13 @@ import org.eclipse.emf.ecore.util.InternalEList; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getStreams <em>Streams</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getLocations <em>Locations</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getMrClusters <em>Mr Clusters</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getDrNodes <em>Dr Nodes</em>}</li> * </ul> - * </p> * * @generated */ diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaePlatformControllerImpl.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaePlatformControllerImpl.java index 6827e84..1ce55c0 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaePlatformControllerImpl.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/impl/DcaePlatformControllerImpl.java @@ -26,6 +26,7 @@ package org.openecomp.dcae.controller.platform.controller.impl; import org.openecomp.dcae.controller.core.service.DcaeLocation; import org.openecomp.dcae.controller.core.service.DcaeService; import org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor; +import org.openecomp.dcae.controller.inventory.DcaeInventory; import org.openecomp.dcae.controller.platform.controller.ControllerCluster; import org.openecomp.dcae.controller.platform.controller.ControllerPackage; import org.openecomp.dcae.controller.platform.controller.DcaeDataBus; @@ -62,6 +63,7 @@ import org.json.JSONObject; * <!-- end-user-doc --> * <p> * The following features are implemented: + * </p> * <ul> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getConfiguration <em>Configuration</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getComponent <em>Component</em>}</li> @@ -69,12 +71,12 @@ import org.json.JSONObject; * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getOpenstack <em>Openstack</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getLocations <em>Locations</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getDatabus <em>Databus</em>}</li> + * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getInventory <em>Inventory</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getDescriptors <em>Descriptors</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getServices <em>Services</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getUsers <em>Users</em>}</li> * <li>{@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getAdminUsers <em>Admin Users</em>}</li> * </ul> - * </p> * * @generated */ @@ -140,6 +142,16 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple protected DcaeDataBus databus; /** + * The cached value of the '{@link #getInventory() <em>Inventory</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInventory() + * @generated + * @ordered + */ + protected DcaeInventory inventory; + + /** * The cached value of the '{@link #getDescriptors() <em>Descriptors</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -430,6 +442,49 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple * <!-- end-user-doc --> * @generated */ + public DcaeInventory getInventory() { + return inventory; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetInventory(DcaeInventory newInventory, NotificationChain msgs) { + DcaeInventory oldInventory = inventory; + inventory = newInventory; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY, oldInventory, newInventory); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInventory(DcaeInventory newInventory) { + if (newInventory != inventory) { + NotificationChain msgs = null; + if (inventory != null) + msgs = ((InternalEObject)inventory).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY, null, msgs); + if (newInventory != null) + msgs = ((InternalEObject)newInventory).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY, null, msgs); + msgs = basicSetInventory(newInventory, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY, newInventory, newInventory)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public EList<DcaeService> getServices() { if (services == null) { services = new EObjectContainmentEList<DcaeService>(DcaeService.class, this, ControllerPackage.DCAE_PLATFORM_CONTROLLER__SERVICES); @@ -581,6 +636,8 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple return ((InternalEList<?>)getLocations()).basicRemove(otherEnd, msgs); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DATABUS: return basicSetDatabus(null, msgs); + case ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY: + return basicSetInventory(null, msgs); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DESCRIPTORS: return ((InternalEList<?>)getDescriptors()).basicRemove(otherEnd, msgs); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__SERVICES: @@ -611,6 +668,8 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple return getLocations(); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DATABUS: return getDatabus(); + case ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY: + return getInventory(); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DESCRIPTORS: return getDescriptors(); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__SERVICES: @@ -651,6 +710,9 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DATABUS: setDatabus((DcaeDataBus)newValue); return; + case ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY: + setInventory((DcaeInventory)newValue); + return; case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DESCRIPTORS: getDescriptors().clear(); getDescriptors().addAll((Collection<? extends DcaeServiceDescriptor>)newValue); @@ -697,6 +759,9 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DATABUS: setDatabus((DcaeDataBus)null); return; + case ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY: + setInventory((DcaeInventory)null); + return; case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DESCRIPTORS: getDescriptors().clear(); return; @@ -733,6 +798,8 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple return locations != null && !locations.isEmpty(); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DATABUS: return databus != null; + case ControllerPackage.DCAE_PLATFORM_CONTROLLER__INVENTORY: + return inventory != null; case ControllerPackage.DCAE_PLATFORM_CONTROLLER__DESCRIPTORS: return descriptors != null && !descriptors.isEmpty(); case ControllerPackage.DCAE_PLATFORM_CONTROLLER__SERVICES: diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/util/ControllerSwitch.java b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/util/ControllerSwitch.java index cb46d3c..8cc5859 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/util/ControllerSwitch.java +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore-gen/org/openecomp/dcae/controller/platform/controller/util/ControllerSwitch.java @@ -75,7 +75,7 @@ public class ControllerSwitch<T> extends Switch<T> { * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @parameter ePackage the package in question. + * @param ePackage the package in question. * @return whether this is a switch for the given package. * @generated */ diff --git a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore/controller.xcore b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore/controller.xcore index 7b243b0..be7cc35 100644 --- a/dcae-controller-core/dcae-controller-platform-model/src/main/xcore/controller.xcore +++ b/dcae-controller-core/dcae-controller-platform-model/src/main/xcore/controller.xcore @@ -38,13 +38,15 @@ import org.openecomp.dcae.controller.core.server.DcaeBasicServer import org.openecomp.dcae.controller.core.stream.DatabusLocation
import org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster
import org.openecomp.dcae.controller.core.stream.DatabusDataRouterNode
-import org.openecomp.dcae.controller.service.vm.VirtualMachineService
+import org.openecomp.dcae.controller.service.vm.VirtualMachineService
+import org.openecomp.dcae.controller.inventory.DcaeInventory
class DcaePlatformController extends SouthBoundApiWithProxy, AbstractManagementServer {
contains ControllerCluster cluster
contains OpenStackController openstack
contains unordered DcaeLocation[] locations
- contains DcaeDataBus databus
+ contains DcaeDataBus databus + contains DcaeInventory inventory
contains unordered DcaeServiceDescriptor[] descriptors
contains unordered DcaeService[] services
contains unordered User[] users
diff --git a/dcae-controller-core/dcae-controller-platform-server/.gitignore b/dcae-controller-core/dcae-controller-platform-server/.gitignore index eefdc10..eea9273 100644 --- a/dcae-controller-core/dcae-controller-platform-server/.gitignore +++ b/dcae-controller-core/dcae-controller-platform-server/.gitignore @@ -1,3 +1,6 @@ /target/ .*.sw? /config/ +/test-config/ +/debug-logs/ +/logs/ diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/server/tools/Generator.java b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/server/tools/Generator.java index 4cba375..7bd72b4 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/server/tools/Generator.java +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/server/tools/Generator.java @@ -27,10 +27,11 @@ import org.eclipse.emf.ecore.EPackage; import org.openecomp.ncomp.sirius.manager.controllermodel.ControllerModel;
import org.openecomp.ncomp.sirius.manager.controllermodel.ControllermodelFactory;
import org.openecomp.ncomp.sirius.manager.generator.ControllerGenerator;
-import org.openecomp.ncomp.gwt.siriusportal.model.*;
+import org.openecomp.ncomp.gwt.siriusportal.model.*; +import org.openecomp.dcae.controller.inventory.InventoryFactory; import org.openecomp.dcae.controller.platform.controller.ControllerFactory;
import org.openecomp.dcae.controller.service.vm.VmFactory;
-import org.openecomp.utils.YamlToJava;
+import org.openecomp.utils.YamlToJava;
public class Generator {
@@ -58,6 +59,8 @@ public class Generator { g.addApi("cluster", cluster, m, false, true);
EObject cont = ControllerFactory.eINSTANCE.createControllerVirtualMachineService();
g.addApi("cont", cont, m, false, true);
+ EObject inventory = InventoryFactory.eINSTANCE.createDcaeInventory(); + g.addObject("inventory",inventory,m); EObject gui = ModelFactory.eINSTANCE.createGuiClientApi();
g.addObject("gui",gui,m);
g.addAlias("/test");
@@ -74,6 +77,8 @@ public class Generator { YamlToJava.convert("src/main/sirius-gen/ControllerVirtualMachineService.yaml", dir + "/logging", pName);
String pName1 = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".gui.logging";
YamlToJava.convert("src/main/sirius-gen/GuiClientApi.yaml", dir + "/gui/logging", pName1);
+ String pName2 = p.getNsURI().replaceAll(p.getNsPrefix()+'$',"") + "servers." + p.getNsPrefix() +".inventory.logging"; + YamlToJava.convert("src/main/sirius-gen/DcaeInventory.yaml", dir + "/inventory/logging", pName2); }
diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerProvider.java b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerProvider.java index 24ce479..fe8a37f 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerProvider.java +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerProvider.java @@ -18,7 +18,7 @@ * limitations under the License. * ============LICENSE_END============================================ */ - + package org.openecomp.dcae.controller.platform.servers.controller; import java.io.BufferedReader; @@ -37,6 +37,7 @@ import java.util.Properties; import org.apache.log4j.Logger; import org.eclipse.emf.common.util.BasicEList; import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EAnnotation; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EReference; import org.json.JSONArray; @@ -62,10 +63,12 @@ import org.openecomp.dcae.controller.core.stream.DcaeStream; import org.openecomp.dcae.controller.core.stream.DmaapStream; import org.openecomp.dcae.controller.core.stream.StreamAuthentication; import org.openecomp.dcae.controller.core.stream.StreamFactory; +import org.openecomp.dcae.controller.inventory.DcaeInventory; import org.openecomp.dcae.controller.platform.controller.ControllerPackage; import org.openecomp.dcae.controller.platform.controller.DcaeDataBus; import org.openecomp.dcae.controller.platform.controller.DcaePlatformController; import org.openecomp.dcae.controller.platform.controller.ServerRole; +import org.openecomp.dcae.controller.platform.servers.controller.inventory.DcaeInventoryFactory; import org.openecomp.dcae.controller.platform.servers.controller.logging.DcaeControllerMessageEnum; import org.openecomp.dcae.controller.platform.servers.controller.logging.DcaeControllerOperationEnum; import org.openecomp.dcae.controller.service.cdap.CdapService; @@ -170,7 +173,8 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro System.out.println("PPPPPPPPPPP polling start"); for (DcaeService s : o.getServices()) { for (DcaeServiceInstance i : instances(s)) { - System.out.println("PPPPPPPPPPP updateObjectUsingPolicy list: " + s.getName() + "/" + i.getName()); + System.out.println("PPPPPPPPPPP updateObjectUsingPolicy list: " + s.getName() + "/" + + i.getName()); if (i.getStatus() != DeploymentStatus.DEPLOYED) continue; EList<DcaePolicyEntity> l = findPolicyEnabledObjects(i); @@ -249,6 +253,51 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro }; t3.start(); + Thread t4 = new Thread("inventory polling") { + @Override + public void run() { + while (true) { + try { + switch (o.getCluster().getRole()) { + case MASTER: + case UNKNOWN: + case STANDALONE: + ecomplogger.setOperation(DcaeControllerOperationEnum.INVENTORY_POLLING); + ecomplogger.newRequestId(); + ecomplogger.setInstanceId(controller, o); + ecomplogger.recordAuditEventStart(); + try { + DcaeInventory inv = o.getInventory(); + if (inv == null) { + inv = new DcaeInventoryFactory(controller).createDcaeInventory(); + o.setInventory(inv); + } + inv.poll(); + ecomplogger.recordAuditEventEnd(); + } catch (Exception e) { + ecomplogger.warn(DcaeControllerMessageEnum.INVENTORY_POLLING_FAILED, e.toString()); + ManagementServerUtils.printStackTrace(e); + ecomplogger.recordAuditEventEnd(StatusCodeEnum.ERROR); + } + break; + case SLAVE: + break; + } + Thread.sleep(1 * 60000); // sleep 1 minutes + } catch (Exception e) { + ManagementServerUtils.printStackTrace(e); + logger.fatal("health checks: " + e); + try { + Thread.sleep(30000); + } catch (InterruptedException e1) { + } + } + } + } + + }; + t4.start(); + } protected void updateDatabusInformation() { @@ -321,17 +370,17 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro if (i.getStatus() == DeploymentStatus.DEPLOYED && !before.equals(after)) { try { s.pushManagerConfiguration(i.getName()); - okay = true; + okay = true; } catch (Exception e) { logger.warn("Unable to push configuration: " + ManagementServer.object2ref(i)); e.printStackTrace(); } - } - else { + } else { okay = true; } - if (! okay && !before.equals(after)) { - // need to restore previous state so next attempt will be made. + if (!okay && !before.equals(after)) { + // need to restore previous state so next attempt will be + // made. i.getInputStreams().clear(); i.getInputStreams().addAll(in); i.getOutputStreams().clear(); @@ -375,7 +424,7 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro json2.put("dmaapName", client.props.get("databus.dmaapName")); json2.put("drProvUrl", client.props.get("databus.drProvUrl")); json2.put("version", "1"); - json2.put("topicNsRoot", client.props.getProperty("databus.topicNsRoot","org.openecomp.dcae.dmaap")); + json2.put("topicNsRoot", client.props.getProperty("databus.topicNsRoot", "org.openecomp.dcae.dmaap")); json2.put("bridgeAdminTopic", "DCAE_MM_AGENT"); try { client.httpJsonTransaction("/webapi/dmaap", "PUT", headers, json2); @@ -459,8 +508,9 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro if (!(s2 instanceof DatabusStreamFeed)) continue; DatabusStreamFeed feed2 = (DatabusStreamFeed) s2; - if (feed2.getPublishURL() == null) continue; - if (! feed2.getPublishURL().equals(sub.getDeliveryURL())) { + if (feed2.getPublishURL() == null) + continue; + if (!feed2.getPublishURL().equals(sub.getDeliveryURL())) { System.err.println("FEED: forward URL wrong: " + feed.getName() + " " + sub.getDeliveryURL() + " != " + feed2.getPublishURL()); o.refreshDataBus(feed.getName()); @@ -736,8 +786,7 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro if (topic.getFqtn() != null) { try { client.httpJsonTransaction("/webapi/topics/" + topic.getFqtn(), "DELETE", headers, null); - } - catch (Exception e) { + } catch (Exception e) { System.err.println("TOPIC0: delete existing topic: " + topicName + " " + e); } System.err.println("TOPIC0: delete existing topic: " + topicName); @@ -816,8 +865,7 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro public static void main(String[] args) throws IOException { server = new ManagementServer(); - JSONObject json = JsonUtils - .file2json("CONFIG/controller-gen/resources/databus.json"); + JSONObject json = JsonUtils.file2json("CONFIG/controller-gen/resources/databus.json"); DcaeDataBus d = (DcaeDataBus) server.json2ecore(ControllerPackage.eINSTANCE.getDcaeDataBus(), json); databusPoll(d); for (DatabusStream stream : d.getStreams()) { @@ -932,6 +980,10 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro logger.warn("No Policy Endpoint configured"); return; } + EAnnotation anno = o2.eClass().getEAnnotation("http://openecomp.org/policy"); + String matchingType = "policy-name"; + if (anno != null && anno.getDetails().get("matchingType") != null) + matchingType = anno.getDetails().get("matchingType"); HashMap<String, String> headers = new HashMap<String, String>(); JSONObject json = new JSONObject(); headers.put("ClientAuth", client.props.getProperty("policy.clientAuth")); @@ -941,59 +993,89 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro String uuid = ManagementServer.object2ref(o2).toLowerCase(); String pName = o2.getPolicyName(); String matchPolicyName = pName; - json2.put("uuid", uuid); - json.put("policyName", matchPolicyName); - JSONObject res = client.httpJsonTransaction("/getConfig", "POST", headers, json); - System.out.println("PPPPPPPPPPP 0: " + uuid); - JSONArray a = res.getJSONArray("$list"); + System.out.println("PPPPPPPPPPP 0: match type=" + matchingType); + JSONArray a = null; + switch (matchingType) { + case "policy-name": + json.put("policyName", matchPolicyName); + JSONObject res = client.httpJsonTransaction("/getConfig", "POST", headers, json); + a = res.getJSONArray("$list"); + break; + case "uuid-path": + // ONAP R1 + for (Object k : client.props.keySet()) { + String key = (String) k; + if (key.startsWith("policy.substitution.")) { + uuid = uuid.replace(key.substring(20), client.props.getProperty(key)); + } + } + json2.put("uuid", uuid); + json.put("policyName", ".*"); + JSONObject res1 = client.httpJsonTransaction("/PyPDPServer/getConfig", "POST", headers, json); + System.out.println("PPPPPPPPPPP 0: uuid=" + uuid); + JSONArray a1 = res1.getJSONArray("$list"); + a = new JSONArray(); + for (int j = 0; j < a1.length(); j++) { + JSONObject c1 = a1.getJSONObject(j); + JSONObject newConfig; + try { + newConfig = new JSONObject(c1.getString("config")); + } catch (Exception e) { + System.out.println("PPPPPPPPPPP 1.1: " + c1.toString(2)); + continue; + } + if (!uuid.equals(newConfig.getString("uuid").toLowerCase())) + continue; + a.put(c1); + } + } + switch (a.length()) { - case 0: + case 0: System.out.println("PPPPPPPPPPP 0 no policies: " + matchPolicyName + " " + uuid); return; - case 1: break; + case 1: + break; default: System.out.println("PPPPPPPPPPP 0 too many policies: " + matchPolicyName + " " + uuid + " " + a.length()); return; } - for (int j = 0; j < a.length(); j++) { - JSONObject c1 = a.getJSONObject(j); - JSONObject newConfig; - try { - newConfig = new JSONObject(c1.getString("config")); - } catch (Exception e) { - System.out.println("PPPPPPPPPPP 1: " + c1.toString(2)); - continue; - } - System.out.println("PPPPPPPPPPP 2: " + newConfig.toString(2) + " uuid:" + newConfig.get("uuid")); -// if (!uuid.equals(newConfig.getString("uuid").toLowerCase())) -// continue; - JSONObject content = new JSONObject(newConfig.getString("content")); - System.out.println("PPPPPPPPPPP 3: " + content.toString(2)); - content.put("policyDescription", newConfig.getString("description")); - content.put("policyConfigName", newConfig.getString("configName")); - content.put("policyTemplateVersion", newConfig.getString("templateVersion")); - content.put("policyVersion", newConfig.getString("version")); - content.put("policyPriority", newConfig.getString("priority")); - content.put("policyScope", newConfig.getString("policyScope")); - System.out.println("PPPPPPPPPPP 4: " + content.toString(2)); - ManagementServer server = controller.getServer(); - EObject oo = server.json2ecore(o2.eClass(), content); - // System.out.println("PPPPPPPPPPP 4_1: " + - // ManagementServer.ecore2json(oo, 1000, null, true).toString(2)); - JSONObject before = cleanJson(o2); - ManagementServer.merge(o2, oo, content, true, null); - o2.setPolicyName(pName); - JSONObject after = cleanJson(o2); - ManagementServer.ecore2json(o2, 1000, null, true); - if (!before.toString(2).equals(after.toString(2))) { - System.out.println("PPPPPPPPPPP configuration change 5: " + ManagementServer.object2ref(i) + " using: " + c1.getString("policyName")); - System.out.println("PPPPPPPPPPP before: " + before.toString(2)); - System.out.println("PPPPPPPPPPP after: " + after.toString(2)); - s.pushManagerConfiguration(i.getName()); - } + JSONObject c1 = a.getJSONObject(0); + JSONObject newConfig; + try { + newConfig = new JSONObject(c1.getString("config")); + } catch (Exception e) { + System.out.println("PPPPPPPPPPP 1: " + c1.toString(2)); return; } - System.out.println("PPPPPPPPPPP ERROR no policy found: " + uuid); + System.out.println("PPPPPPPPPPP 2: " + newConfig.toString(2) + " uuid:" + newConfig.get("uuid")); + // if (!uuid.equals(newConfig.getString("uuid").toLowerCase())) + // continue; + JSONObject content = new JSONObject(newConfig.getString("content")); + System.out.println("PPPPPPPPPPP 3: " + content.toString(2)); + content.put("policyDescription", newConfig.getString("description")); + content.put("policyConfigName", newConfig.getString("configName")); + content.put("policyTemplateVersion", newConfig.getString("templateVersion")); + content.put("policyVersion", newConfig.getString("version")); + content.put("policyPriority", newConfig.getString("priority")); + content.put("policyScope", newConfig.getString("policyScope")); + System.out.println("PPPPPPPPPPP 4: " + content.toString(2)); + ManagementServer server = controller.getServer(); + EObject oo = server.json2ecore(o2.eClass(), content); + // System.out.println("PPPPPPPPPPP 4_1: " + + // ManagementServer.ecore2json(oo, 1000, null, true).toString(2)); + JSONObject before = cleanJson(o2); + ManagementServer.merge(o2, oo, content, true, null); + o2.setPolicyName(pName); + JSONObject after = cleanJson(o2); + ManagementServer.ecore2json(o2, 1000, null, true); + if (!before.toString(2).equals(after.toString(2))) { + System.out.println("PPPPPPPPPPP configuration change 5: " + ManagementServer.object2ref(i) + " using: " + + c1.getString("policyName")); + System.out.println("PPPPPPPPPPP before: " + before.toString(2)); + System.out.println("PPPPPPPPPPP after: " + after.toString(2)); + s.pushManagerConfiguration(i.getName()); + } } private JSONObject cleanJson(EObject o2) { @@ -1115,7 +1197,8 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro } } - public Object handleJson(String userName, String action, String resourcePath, JSONObject json, JSONObject context, String clientVersion) { + public Object handleJson(String userName, String action, String resourcePath, JSONObject json, JSONObject context, + String clientVersion) { // System.err.println("XXXXXX handleJson: " + action + " " + // resourcePath + " " + context); switch ((String) context.get("path")) { @@ -1141,8 +1224,8 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro } public void refreshDataBus(String nameMatch) { - System.err.println("BBBBBBBBB: numberOfErrors=" + numberOfErrors + " tooMany=" + tooMany + " nameMatch=" - + nameMatch); + System.err.println( + "BBBBBBBBB: numberOfErrors=" + numberOfErrors + " tooMany=" + tooMany + " nameMatch=" + nameMatch); numberOfErrors = 0; for (DatabusStream s : o.getDatabus().getStreams()) { if (nameMatch != null && !s.getName().matches(nameMatch)) @@ -1151,8 +1234,8 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro DatabusStreamFeed f = (DatabusStreamFeed) s; if (f.getFeedName() == null) continue; - System.err.println("BBBBBBBBB: feed change to null " + ManagementServer.object2ref(s) + " " - + f.getFeedName()); + System.err.println( + "BBBBBBBBB: feed change to null " + ManagementServer.object2ref(s) + " " + f.getFeedName()); f.setFeedName(null); for (DatabusStreamFeedPublisher c : f.getPublishers()) { c.setFeedId(null); @@ -1170,8 +1253,8 @@ public class DcaeDcaePlatformControllerProvider extends BasicManagementServerPro DatabusStreamTopic t = (DatabusStreamTopic) s; if (t.getTopicName() == null) continue; - System.err.println("BBBBBBBBB: topic change to null " + ManagementServer.object2ref(s) + " " - + t.getTopicName()); + System.err.println( + "BBBBBBBBB: topic change to null " + ManagementServer.object2ref(s) + " " + t.getTopicName()); t.setTopicName(null); for (DatabusStreamTopicClient c : t.getClients()) { c.setTopicURL(null); diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProvider.java b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProvider.java new file mode 100644 index 0000000..ba6f379 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProvider.java @@ -0,0 +1,234 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + +package org.openecomp.dcae.controller.platform.servers.controller.inventory; + +import org.openecomp.ncomp.sirius.manager.ISiriusServer; +import org.openecomp.ncomp.sirius.manager.JavaHttpClient; +import org.openecomp.ncomp.sirius.manager.ManagementServer; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; + +import org.apache.log4j.Logger; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.json.JSONArray; +import org.json.JSONObject; +import org.mvel2.optimizers.impl.refl.nodes.ArrayLength; +import org.openecomp.ncomp.sirius.manager.BasicAdaptorProvider; + +import org.openecomp.dcae.controller.inventory.ApiResponseMessage; +import org.openecomp.dcae.controller.inventory.DCAEService; +import org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults; +import org.openecomp.dcae.controller.inventory.DCAEServiceRequest; +import org.openecomp.dcae.controller.inventory.DCAEServiceType; +import org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest; +import org.openecomp.dcae.controller.inventory.DcaeInventory; +import org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.Link; +import org.openecomp.dcae.controller.inventory.DcaeServiceResults; + +public class DcaeDcaeInventoryProvider extends BasicAdaptorProvider { + private static final Logger logger = Logger.getLogger(DcaeDcaeInventoryProvider.class); + DcaeInventory o; + DcaeInventoryFactory f; + + public DcaeDcaeInventoryProvider(ISiriusServer controller, DcaeInventory o) { + super(controller, o); + f = new DcaeInventoryFactory(controller); + this.o = o; + } + + public DcaeServiceTypeResults getDcaeServiceTypes(String typeName, Boolean onlyLatest, Boolean onlyActive, + String vnfType, String serviceId, String serviceLocation, String asdcServiceId, String asdcResourceId, + Integer offset) { + DcaeServiceTypeResults res = f.createDcaeServiceTypeResults(); + JavaHttpClient client = new JavaHttpClient("controller.properties", "inventory"); + HashMap<String, String> headers = new HashMap<String, String>(); + HashMap<String, String> query = new HashMap<String, String>(); + // TODO handle parameters, but for now only use is complete dump + addQuery(query,"offset", offset); + JSONObject json = client.httpJsonTransaction("/dcae-service-types" + queryUrl(query), "GET", headers, null); + System.err.println(json.toString(2)); + JSONArray items = json.getJSONArray("items"); + for (int i = 0; i < items.length(); i++) { + JSONObject item = items.getJSONObject(i); + item.put("name", item.getString("typeId")); + fixCreated(item); + } + nullClean(json); + EClass c = InventoryPackage.eINSTANCE.getDcaeServiceTypeResults(); + res = (DcaeServiceTypeResults) controller.getServer().json2ecore(c, json); + System.out.println(ManagementServer.ecore2json(res, 1000, null, true).toString(2)); + return res; + } + + public ApiResponseMessage deleteDcaeServiceTypesType(String typeId) { + ApiResponseMessage res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public DCAEServiceType getDcaeServiceTypesType(String typeId) { + DCAEServiceType res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public DCAEServiceType createDcaeServiceTypesTypeName(DCAEServiceTypeRequest body) { + DCAEServiceType res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public DcaeServiceResults getDcaeServices(String typeId, String vnfId, String vnfType, String vnfLocation, + String componentType, Boolean shareable, String created, Integer offset) { + DcaeServiceResults res = f.createDcaeServiceResults(); + JavaHttpClient client = new JavaHttpClient("controller.properties", "inventory"); + HashMap<String, String> headers = new HashMap<String, String>(); + HashMap<String, String> query = new HashMap<String, String>(); + // TODO handle parameters, but for now only use is complete dump + addQuery(query,"offset", offset); + JSONObject json = client.httpJsonTransaction("/dcae-services" + queryUrl(query), "GET", headers, null); + System.err.println(json.toString(2)); + JSONArray items = json.getJSONArray("items"); + for (int i = 0; i < items.length(); i++) { + JSONObject item = items.getJSONObject(i); + item.put("name", item.getString("serviceId")); + fixCreated(item); + JSONArray components = item.getJSONArray("components"); + for (int j = 0; j < components.length(); j++) { + JSONObject component = components.getJSONObject(j); + fixCreated(component); + component.put("name", component.getString("componentId")); + } + } + nullClean(json); + EClass c = InventoryPackage.eINSTANCE.getDcaeServiceResults(); + res = (DcaeServiceResults) controller.getServer().json2ecore(c, json); + System.out.println(ManagementServer.ecore2json(res, 1000, null, true).toString(2)); + return res; + } + + private String queryUrl(HashMap<String, String> query) { + if (query.size() == 0) return ""; + StringBuffer b = new StringBuffer(); + boolean first = true; + for (String k : query.keySet()) { + b.append(first ? "?" : "&"); + first = false; + b.append(k).append("=").append(query.get(k)); + } + return b.toString(); + } + + private void addQuery(HashMap<String, String> query, String k, Object v) { + if (v != null) query.put(k, v.toString()); + } + + private void nullClean(Object json) { + if (json instanceof JSONObject) { + JSONObject o = (JSONObject) json; + List<String> delete = new ArrayList<String>(); + for (Iterator<String> iterator = o.keys(); iterator.hasNext();) { + String key = (String) iterator.next(); + Object o1 = o.get(key); + if (o1.equals(null)) { + delete.add(key); + continue; + } + nullClean(o1); + } + for (String key : delete) { + o.remove(key); + } + } + if (json instanceof JSONArray) { + JSONArray a = (JSONArray) json; + for (int i = 0; i < a.length(); i++) { + Object o1 = a.get(i); + nullClean(o1); + } + } + } + + private void fixCreated(JSONObject j) { + if (j.has("created")) { + j.put("created1",j.get("created")); + j.remove("created"); + } + } + + public DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(String propertyName) { + DCAEServiceGroupByResults res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public void deleteDcaeServicesService(String serviceId) { + + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public DCAEService getDcaeServicesService(String serviceId) { + DCAEService res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public DCAEService createDcaeServicesService(String serviceId, DCAEServiceRequest body) { + DCAEService res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public void poll() { + o.getServices().clear(); + int offset = 0; + while (offset != -1) { + DcaeServiceResults s = o.getDcaeServices(null, null, null, null, null, null, null, offset); + o.getServices().addAll(s.getItems()); + offset = offset(s.getLinks()); + } + o.getServiceTypes().clear(); + offset = 0; + while (offset != -1) { + DcaeServiceTypeResults s = o.getDcaeServiceTypes(null, null, null, null, null, null, null, null, null); + o.getServiceTypes().addAll(s.getItems()); + offset = offset(s.getLinks()); + } + System.out.println(ManagementServer.ecore2json(o, 1000, null, true).toString(2)); + } + + private int offset(EList<Link> links) { + for (Link l : links) { + if ("nextLink".equals(l.getName())) { + return Integer.parseInt(l.getHref().split("=")[1]); + } + } + return -1; + } +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryTest.java b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryTest.java new file mode 100644 index 0000000..0ad21dd --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryTest.java @@ -0,0 +1,23 @@ +package org.openecomp.dcae.controller.platform.servers.controller.inventory; + +import org.openecomp.dcae.controller.inventory.DcaeInventory; +import org.openecomp.ncomp.sirius.manager.ISiriusServer; +import org.openecomp.ncomp.sirius.manager.ManagementServer; + +public class DcaeDcaeInventoryTest implements ISiriusServer { + + public static void main(String[] args) { + DcaeDcaeInventoryTest server = new DcaeDcaeInventoryTest(); + DcaeInventoryFactory f = new DcaeInventoryFactory(server); + DcaeInventory inv = f.createDcaeInventory(); + inv.poll(); + } + + private ManagementServer server = new ManagementServer(); + + @Override + public ManagementServer getServer() { + return server; + } + +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/resources/DcaeController.yaml b/dcae-controller-core/dcae-controller-platform-server/src/main/resources/DcaeController.yaml index 432a2a1..b88bd4d 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/resources/DcaeController.yaml +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/resources/DcaeController.yaml @@ -5,6 +5,8 @@ operations: description: Polling of new configuration from ECOMP Policy for all DCAE service instances. DATABUS_POLLING: description: Polling of new configuration from DCAE Data Bus Controller. + INVENTORY_POLLING: + description: Polling of new configuration from DCAE Inventory. CLUSTER_DATA_REPLICATION: description: Data replication from master to slave controllers. messages: @@ -26,6 +28,14 @@ messages: description: Exception that happened. resolution: Contact Tier 4. This is a software bug. description: Police Polling on the service level fails. + INVENTORY-POLLING-FAILED: + errorCode: 5001W + messageFormat: '{0}' + parameters: + exception: + description: Exception that happened. + resolution: Contact Tier 4. This is a software bug. + description: INVENTORY Polling on the service level fails. DATABUS-POLLING-FAILED: errorCode: 5001W messageFormat: '{0}' diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/server/scripts/rackspace-substitute.groovy b/dcae-controller-core/dcae-controller-platform-server/src/main/server/scripts/rackspace-substitute.groovy index dd545b8..855e151 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/server/scripts/rackspace-substitute.groovy +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/server/scripts/rackspace-substitute.groovy @@ -50,17 +50,6 @@ def m = yaml.load(f.text) if (m['POLICY-IP'] == null) m['POLICY-IP'] = "10.0.6.1" -def i = m["DCAE-VERSION"].lastIndexOf(".") - -if (m['DCAE-VERSION'].contains("SNAPSHOT")) { - m['DOCKER-VERSION'] = "${m["DCAE-VERSION"].substring(0,i)}-SNAPSHOT-latest" -} -else { - m['DOCKER-VERSION'] = "${m["DCAE-VERSION"].substring(0,i)}-STAGING-latest" -} - -println "m['DOCKER-VERSION'] = ${m['DOCKER-VERSION']}" - fromDir.eachFileRecurse (FileType.FILES) { file -> def ofile = new File(file.toString().replace(options.from, options.to)) switch (file.name) { diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/DcaeInventory.yaml b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/DcaeInventory.yaml new file mode 100644 index 0000000..6584d46 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/DcaeInventory.yaml @@ -0,0 +1,93 @@ +operations: + DcaeInventory@getDcaeServiceTypes: {} + DcaeInventory@deleteDcaeServiceTypesType: {} + DcaeInventory@getDcaeServiceTypesType: {} + DcaeInventory@createDcaeServiceTypesTypeName: {} + DcaeInventory@getDcaeServices: {} + DcaeInventory@getDcaeServicesGroupbyPropertyName: {} + DcaeInventory@deleteDcaeServicesService: {} + DcaeInventory@getDcaeServicesService: {} + DcaeInventory@createDcaeServicesService: {} + DcaeInventory@poll: {} +messages: + dummy: {} + REQUEST-FAILED-getDcaeServiceTypes: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-deleteDcaeServiceTypesType: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-getDcaeServiceTypesType: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-createDcaeServiceTypesTypeName: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-getDcaeServices: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-getDcaeServicesGroupbyPropertyName: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-deleteDcaeServicesService: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-getDcaeServicesService: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-createDcaeServicesService: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REQUEST-FAILED-poll: + errorCode: 4001W + messageFormat: '{0}' + description: Operation Failed with Exception + REMOTE-CALL-FAILED-getDcaeServiceTypes: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-deleteDcaeServiceTypesType: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-getDcaeServiceTypesType: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-createDcaeServiceTypesTypeName: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-getDcaeServices: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-getDcaeServicesGroupbyPropertyName: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-deleteDcaeServicesService: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-getDcaeServicesService: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-createDcaeServicesService: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception + REMOTE-CALL-FAILED-poll: + errorCode: 4001W + messageFormat: '{0}' + description: Remote Operation Failed with Exception diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerConsole.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerConsole.java index 0ad6540..6a838b2 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerConsole.java +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerConsole.java @@ -33,6 +33,8 @@ import org.openecomp.ncomp.sirius.manager.ManagementServerError; +import org.openecomp.dcae.controller.platform.servers.controller.inventory.DcaeDcaeInventoryConsole; + import org.openecomp.dcae.controller.platform.servers.controller.gui.DcaeGuiClientApiConsole; @@ -43,6 +45,7 @@ public class DcaeDcaePlatformControllerConsole extends Console { DcaeControllerClusterConsole cluster; DcaeControllerVirtualMachineServiceConsole cont; + DcaeDcaeInventoryConsole inventory; DcaeGuiClientApiConsole gui; @@ -53,6 +56,7 @@ public class DcaeDcaePlatformControllerConsole extends Console { cluster = new DcaeControllerClusterConsole(filename,name); cont = new DcaeControllerVirtualMachineServiceConsole(filename,name); + inventory = new DcaeDcaeInventoryConsole(filename,name); gui = new DcaeGuiClientApiConsole(filename,name); } diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerServer.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerServer.java index a8f99eb..e8f5040 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerServer.java +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/DcaeDcaePlatformControllerServer.java @@ -45,6 +45,8 @@ import org.openecomp.dcae.controller.platform.servers.controller.DcaeControllerF import org.openecomp.dcae.controller.platform.servers.controller.DcaeControllerFactory; +import org.openecomp.dcae.controller.platform.servers.controller.inventory.DcaeInventoryFactory; + import org.openecomp.dcae.controller.platform.servers.controller.gui.DcaeModelFactory; @@ -68,6 +70,9 @@ public class DcaeDcaePlatformControllerServer implements ISiriusServer, IRequest String contPath; ManagementServer contServer; + String inventoryPath; + ManagementServer inventoryServer; + String guiPath; ManagementServer guiServer; @@ -102,6 +107,12 @@ public class DcaeDcaePlatformControllerServer implements ISiriusServer, IRequest + EFactory inventoryFactory = new DcaeInventoryFactory(this); + inventoryPath = serverPath + "/inventory"; + inventoryServer = new ManagementServer(inventoryFactory, "DcaeInventory", inventoryPath, "inventory.properties"); + inventoryServer.start(); + webServer.add("/inventory",inventoryServer); + EFactory guiFactory = new DcaeModelFactory(this); guiPath = serverPath + "/gui"; guiServer = new ManagementServer(guiFactory, "GuiClientApi", guiPath, "gui.properties"); diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventory.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventory.java new file mode 100644 index 0000000..3d41661 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventory.java @@ -0,0 +1,368 @@ + +/*- + * ============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============================================ + */ + +// Autogenerated +// Do not edit. No need to extend this class. +package org.openecomp.dcae.controller.platform.servers.controller.inventory; + + + + + +import java.io.InputStream; + +import org.openecomp.ncomp.sirius.manager.IRequestHandler; +import org.openecomp.ncomp.sirius.manager.ISwaggerHandler; +import org.openecomp.ncomp.sirius.manager.ISiriusPlugin; +import org.openecomp.ncomp.sirius.manager.ISiriusServer; +import org.openecomp.ncomp.sirius.manager.ISiriusProvider; +import org.openecomp.ncomp.sirius.manager.ManagementServer; +import org.openecomp.ncomp.sirius.manager.SwaggerUtils; +import org.openecomp.ncomp.sirius.function.FunctionUtils; +import org.openecomp.ncomp.component.ApiRequestStatus; + +import org.apache.log4j.Logger; + +import org.openecomp.ncomp.sirius.manager.logging.NcompLogger; +import org.openecomp.logger.StatusCodeEnum; +import org.openecomp.logger.EcompException; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.json.JSONObject; + +import java.util.Date; + +import org.openecomp.dcae.controller.platform.servers.controller.inventory.logging.DcaeInventoryOperationEnum; +import org.openecomp.dcae.controller.platform.servers.controller.inventory.logging.DcaeInventoryMessageEnum; + + + + +import org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl; + + + +public class DcaeDcaeInventory extends DcaeInventoryImpl implements ISiriusProvider { + public static final Logger logger = Logger.getLogger(DcaeDcaeInventory.class); + static final NcompLogger ecomplogger = NcompLogger.getNcompLogger(); + public DcaeDcaeInventoryProvider controller; + ISiriusServer server; + + public DcaeDcaeInventory(ISiriusServer server) { + this.server = server; + this.controller = new DcaeDcaeInventoryProvider(server,this); + } + + public org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults getDcaeServiceTypes(java.lang.String typeName, java.lang.Boolean onlyLatest, java.lang.Boolean onlyActive, java.lang.String vnfType, java.lang.String serviceId, java.lang.String serviceLocation, java.lang.String asdcServiceId, java.lang.String asdcResourceId, java.lang.Integer offset) { + org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServiceTypes", ApiRequestStatus.START, duration_,typeName,onlyLatest,onlyActive,vnfType,serviceId,serviceLocation,asdcServiceId,asdcResourceId,offset); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServiceTypes,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServiceTypes,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.getDcaeServiceTypes(typeName,onlyLatest,onlyActive,vnfType,serviceId,serviceLocation,asdcServiceId,asdcResourceId,offset); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServiceTypes", ApiRequestStatus.ERROR, duration_,typeName,onlyLatest,onlyActive,vnfType,serviceId,serviceLocation,asdcServiceId,asdcResourceId,offset); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServiceTypes, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServiceTypes,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServiceTypes, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServiceTypes", ApiRequestStatus.OKAY, duration_,typeName,onlyLatest,onlyActive,vnfType,serviceId,serviceLocation,asdcServiceId,asdcResourceId,offset); + return res; + } + + public org.openecomp.dcae.controller.inventory.ApiResponseMessage deleteDcaeServiceTypesType(java.lang.String typeId) { + org.openecomp.dcae.controller.inventory.ApiResponseMessage res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "deleteDcaeServiceTypesType", ApiRequestStatus.START, duration_,typeId); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_deleteDcaeServiceTypesType,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_deleteDcaeServiceTypesType,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.deleteDcaeServiceTypesType(typeId); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "deleteDcaeServiceTypesType", ApiRequestStatus.ERROR, duration_,typeId); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_deleteDcaeServiceTypesType, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_deleteDcaeServiceTypesType,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_deleteDcaeServiceTypesType, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "deleteDcaeServiceTypesType", ApiRequestStatus.OKAY, duration_,typeId); + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceType getDcaeServiceTypesType(java.lang.String typeId) { + org.openecomp.dcae.controller.inventory.DCAEServiceType res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServiceTypesType", ApiRequestStatus.START, duration_,typeId); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServiceTypesType,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServiceTypesType,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.getDcaeServiceTypesType(typeId); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServiceTypesType", ApiRequestStatus.ERROR, duration_,typeId); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServiceTypesType, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServiceTypesType,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServiceTypesType, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServiceTypesType", ApiRequestStatus.OKAY, duration_,typeId); + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceType createDcaeServiceTypesTypeName(org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest body) { + org.openecomp.dcae.controller.inventory.DCAEServiceType res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "createDcaeServiceTypesTypeName", ApiRequestStatus.START, duration_,body); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_createDcaeServiceTypesTypeName,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_createDcaeServiceTypesTypeName,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.createDcaeServiceTypesTypeName(body); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "createDcaeServiceTypesTypeName", ApiRequestStatus.ERROR, duration_,body); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_createDcaeServiceTypesTypeName, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_createDcaeServiceTypesTypeName,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_createDcaeServiceTypesTypeName, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "createDcaeServiceTypesTypeName", ApiRequestStatus.OKAY, duration_,body); + return res; + } + + public org.openecomp.dcae.controller.inventory.DcaeServiceResults getDcaeServices(java.lang.String typeId, java.lang.String vnfId, java.lang.String vnfType, java.lang.String vnfLocation, java.lang.String componentType, java.lang.Boolean shareable, java.lang.String created, java.lang.Integer offset) { + org.openecomp.dcae.controller.inventory.DcaeServiceResults res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServices", ApiRequestStatus.START, duration_,typeId,vnfId,vnfType,vnfLocation,componentType,shareable,created,offset); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServices,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServices,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.getDcaeServices(typeId,vnfId,vnfType,vnfLocation,componentType,shareable,created,offset); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServices", ApiRequestStatus.ERROR, duration_,typeId,vnfId,vnfType,vnfLocation,componentType,shareable,created,offset); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServices, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServices,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServices, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServices", ApiRequestStatus.OKAY, duration_,typeId,vnfId,vnfType,vnfLocation,componentType,shareable,created,offset); + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(java.lang.String propertyName) { + org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServicesGroupbyPropertyName", ApiRequestStatus.START, duration_,propertyName); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServicesGroupbyPropertyName,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServicesGroupbyPropertyName,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.getDcaeServicesGroupbyPropertyName(propertyName); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServicesGroupbyPropertyName", ApiRequestStatus.ERROR, duration_,propertyName); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServicesGroupbyPropertyName, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServicesGroupbyPropertyName,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServicesGroupbyPropertyName, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServicesGroupbyPropertyName", ApiRequestStatus.OKAY, duration_,propertyName); + return res; + } + + public void deleteDcaeServicesService(java.lang.String serviceId) { + + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "deleteDcaeServicesService", ApiRequestStatus.START, duration_,serviceId); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_deleteDcaeServicesService,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_deleteDcaeServicesService,"self:" + ManagementServer.object2ref(this)); + try { + controller.deleteDcaeServicesService(serviceId); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "deleteDcaeServicesService", ApiRequestStatus.ERROR, duration_,serviceId); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_deleteDcaeServicesService, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_deleteDcaeServicesService,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_deleteDcaeServicesService, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "deleteDcaeServicesService", ApiRequestStatus.OKAY, duration_,serviceId); + + } + + public org.openecomp.dcae.controller.inventory.DCAEService getDcaeServicesService(java.lang.String serviceId) { + org.openecomp.dcae.controller.inventory.DCAEService res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServicesService", ApiRequestStatus.START, duration_,serviceId); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServicesService,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServicesService,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.getDcaeServicesService(serviceId); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServicesService", ApiRequestStatus.ERROR, duration_,serviceId); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServicesService, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServicesService,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_getDcaeServicesService, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "getDcaeServicesService", ApiRequestStatus.OKAY, duration_,serviceId); + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEService createDcaeServicesService(java.lang.String serviceId, org.openecomp.dcae.controller.inventory.DCAEServiceRequest body) { + org.openecomp.dcae.controller.inventory.DCAEService res = null; + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "createDcaeServicesService", ApiRequestStatus.START, duration_,serviceId,body); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_createDcaeServicesService,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_createDcaeServicesService,"self:" + ManagementServer.object2ref(this)); + try { + res = controller.createDcaeServicesService(serviceId,body); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "createDcaeServicesService", ApiRequestStatus.ERROR, duration_,serviceId,body); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_createDcaeServicesService, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_createDcaeServicesService,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_createDcaeServicesService, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "createDcaeServicesService", ApiRequestStatus.OKAY, duration_,serviceId,body); + return res; + } + + public void poll() { + + long duration_ = 0; + if (server != null) + server.getServer().recordApi(null, this, "poll", ApiRequestStatus.START, duration_); + Date now_ = new Date(); + ecomplogger.recordAuditEventStartIfNeeded(DcaeInventoryOperationEnum.DcaeInventory_poll,server,this); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_poll,"self:" + ManagementServer.object2ref(this)); + try { + controller.poll(); + } + catch (Exception e) { + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "poll", ApiRequestStatus.ERROR, duration_); + System.err.println("ERROR: " + e); + ecomplogger.warn(DcaeInventoryMessageEnum.REQUEST_FAILED_poll, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REQUEST_FAILED_poll,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR, DcaeInventoryMessageEnum.REQUEST_FAILED_poll, e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + duration_ = new Date().getTime()-now_.getTime(); + if (server != null) + server.getServer().recordApi(null, this, "poll", ApiRequestStatus.OKAY, duration_); + + } + + + + + + + + + public static void ecoreSetup() { + DcaeDcaeInventoryProvider.ecoreSetup(); + } + public DcaeDcaeInventoryProvider getSiriusProvider() { + return controller; + } +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryClient.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryClient.java new file mode 100644 index 0000000..7d39e55 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryClient.java @@ -0,0 +1,258 @@ + +/*- + * ============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============================================ + */ + +// Autogenerated +// Do not edit. No need to extend this class. +package org.openecomp.dcae.controller.platform.servers.controller.inventory; + +import org.openecomp.ncomp.sirius.manager.AbstractClient; +import org.openecomp.ncomp.sirius.manager.HighAvailabilityClient; +import org.openecomp.ncomp.sirius.manager.GenericHttpClient; + +import org.apache.log4j.Logger; + +import org.openecomp.logger.EcompLogger; +import org.openecomp.logger.StatusCodeEnum; +import org.openecomp.logger.EcompException; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; + +import org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.platform.servers.controller.inventory.logging.DcaeInventoryOperationEnum; +import org.openecomp.dcae.controller.platform.servers.controller.inventory.logging.DcaeInventoryMessageEnum; + + +import org.openecomp.dcae.controller.platform.servers.controller.DcaeDcaePlatformController; + + + + +@SuppressWarnings("unchecked") +public class DcaeDcaeInventoryClient extends DcaeInventoryImpl { + public static final Logger logger = Logger.getLogger(DcaeDcaeInventoryClient.class); + static final EcompLogger ecomplogger = EcompLogger.getEcompLogger(); + public AbstractClient client; + + public DcaeDcaeInventoryClient(String file, String name) { + DcaeDcaePlatformController.ecoreSetup(); + client = new GenericHttpClient(file,name); + client.add("/inventory", this); + client.setVersion("ONAP-R2"); + } + + public DcaeDcaeInventoryClient(String file, String name1, String name2) { + HighAvailabilityClient client1 = new HighAvailabilityClient(file,name1,name2); + client = client1.all; // requests should be forwarded to all. + client.add("/inventory", this); + client.setVersion("ONAP-R2"); + } + + public DcaeDcaeInventoryClient(AbstractClient c) { + client = c; + client.add("/resources", this); + client.setVersion("ONAP-R2"); + } + + + + @Override + public org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults getDcaeServiceTypes(java.lang.String typeName, java.lang.Boolean onlyLatest, java.lang.Boolean onlyActive, java.lang.String vnfType, java.lang.String serviceId, java.lang.String serviceLocation, java.lang.String asdcServiceId, java.lang.String asdcResourceId, java.lang.Integer offset) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServiceTypes,client.getRemote()); + org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults res; + try { + res = (org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults) client.operationPath("/inventory", c, "getDcaeServiceTypes", null, typeName,onlyLatest,onlyActive,vnfType,serviceId,serviceLocation,asdcServiceId,asdcResourceId,offset); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServiceTypes, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServiceTypes,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServiceTypes,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public org.openecomp.dcae.controller.inventory.ApiResponseMessage deleteDcaeServiceTypesType(java.lang.String typeId) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_deleteDcaeServiceTypesType,client.getRemote()); + org.openecomp.dcae.controller.inventory.ApiResponseMessage res; + try { + res = (org.openecomp.dcae.controller.inventory.ApiResponseMessage) client.operationPath("/inventory", c, "deleteDcaeServiceTypesType", null, typeId); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_deleteDcaeServiceTypesType, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_deleteDcaeServiceTypesType,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_deleteDcaeServiceTypesType,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public org.openecomp.dcae.controller.inventory.DCAEServiceType getDcaeServiceTypesType(java.lang.String typeId) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServiceTypesType,client.getRemote()); + org.openecomp.dcae.controller.inventory.DCAEServiceType res; + try { + res = (org.openecomp.dcae.controller.inventory.DCAEServiceType) client.operationPath("/inventory", c, "getDcaeServiceTypesType", null, typeId); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServiceTypesType, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServiceTypesType,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServiceTypesType,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public org.openecomp.dcae.controller.inventory.DCAEServiceType createDcaeServiceTypesTypeName(org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest body) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_createDcaeServiceTypesTypeName,client.getRemote()); + org.openecomp.dcae.controller.inventory.DCAEServiceType res; + try { + res = (org.openecomp.dcae.controller.inventory.DCAEServiceType) client.operationPath("/inventory", c, "createDcaeServiceTypesTypeName", null, body); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_createDcaeServiceTypesTypeName, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_createDcaeServiceTypesTypeName,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_createDcaeServiceTypesTypeName,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public org.openecomp.dcae.controller.inventory.DcaeServiceResults getDcaeServices(java.lang.String typeId, java.lang.String vnfId, java.lang.String vnfType, java.lang.String vnfLocation, java.lang.String componentType, java.lang.Boolean shareable, java.lang.String created, java.lang.Integer offset) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServices,client.getRemote()); + org.openecomp.dcae.controller.inventory.DcaeServiceResults res; + try { + res = (org.openecomp.dcae.controller.inventory.DcaeServiceResults) client.operationPath("/inventory", c, "getDcaeServices", null, typeId,vnfId,vnfType,vnfLocation,componentType,shareable,created,offset); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServices, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServices,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServices,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(java.lang.String propertyName) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServicesGroupbyPropertyName,client.getRemote()); + org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults res; + try { + res = (org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults) client.operationPath("/inventory", c, "getDcaeServicesGroupbyPropertyName", null, propertyName); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServicesGroupbyPropertyName, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServicesGroupbyPropertyName,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServicesGroupbyPropertyName,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public void deleteDcaeServicesService(java.lang.String serviceId) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_deleteDcaeServicesService,client.getRemote()); + + try { + client.operationPath("/inventory", c, "deleteDcaeServicesService", null, serviceId); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_deleteDcaeServicesService, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_deleteDcaeServicesService,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_deleteDcaeServicesService,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + + } + + @Override + public org.openecomp.dcae.controller.inventory.DCAEService getDcaeServicesService(java.lang.String serviceId) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_getDcaeServicesService,client.getRemote()); + org.openecomp.dcae.controller.inventory.DCAEService res; + try { + res = (org.openecomp.dcae.controller.inventory.DCAEService) client.operationPath("/inventory", c, "getDcaeServicesService", null, serviceId); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServicesService, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServicesService,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_getDcaeServicesService,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public org.openecomp.dcae.controller.inventory.DCAEService createDcaeServicesService(java.lang.String serviceId, org.openecomp.dcae.controller.inventory.DCAEServiceRequest body) { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_createDcaeServicesService,client.getRemote()); + org.openecomp.dcae.controller.inventory.DCAEService res; + try { + res = (org.openecomp.dcae.controller.inventory.DCAEService) client.operationPath("/inventory", c, "createDcaeServicesService", null, serviceId,body); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_createDcaeServicesService, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_createDcaeServicesService,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_createDcaeServicesService,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + return res; + } + + @Override + public void poll() { + EClass c = InventoryPackage.eINSTANCE.getDcaeInventory(); + ecomplogger.recordMetricEventStart(DcaeInventoryOperationEnum.DcaeInventory_poll,client.getRemote()); + + try { + client.operationPath("/inventory", c, "poll", null); + } + catch (Exception e) { + ecomplogger.warn(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_poll, e.toString()); + EcompException e1 = EcompException.create(DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_poll,e,e.getMessage()); + ecomplogger.recordMetricEventEnd(StatusCodeEnum.ERROR,DcaeInventoryMessageEnum.REMOTE_CALL_FAILED_poll,e.getMessage()); + throw e1; + } + ecomplogger.recordMetricEventEnd(); + + } + +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryConsole.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryConsole.java new file mode 100644 index 0000000..6ff8ba7 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryConsole.java @@ -0,0 +1,167 @@ + +/*- + * ============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============================================ + */ + +// Autogenerated +// Do not edit but extend this class as needed +package org.openecomp.dcae.controller.platform.servers.controller.inventory; + + +import org.apache.log4j.Logger; +import org.eclipse.emf.common.util.EList; + +import org.openecomp.ncomp.sirius.manager.console.Console; +import org.openecomp.ncomp.sirius.manager.AbstractClient; +import org.openecomp.ncomp.sirius.manager.ManagementServerError; + + + + +public class DcaeDcaeInventoryConsole extends Console { + public static final Logger logger = Logger.getLogger(DcaeDcaeInventoryConsole.class); + protected DcaeDcaeInventoryClient controller; + + + + + public DcaeDcaeInventoryConsole(String filename, String name) { + super(filename, name); + controller = new DcaeDcaeInventoryClient(filename,name); + client = controller.client; + + } + + public DcaeDcaeInventoryConsole(AbstractClient c) { + controller = new DcaeDcaeInventoryClient(c); + client = controller.client; + } + + + public org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults getDcaeServiceTypes(java.lang.String typeName, java.lang.Boolean onlyLatest, java.lang.Boolean onlyActive, java.lang.String vnfType, java.lang.String serviceId, java.lang.String serviceLocation, java.lang.String asdcServiceId, java.lang.String asdcResourceId, java.lang.Integer offset) { + org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults res = null; + try { + res = controller.getDcaeServiceTypes(typeName,onlyLatest,onlyActive,vnfType,serviceId,serviceLocation,asdcServiceId,asdcResourceId,offset); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public org.openecomp.dcae.controller.inventory.ApiResponseMessage deleteDcaeServiceTypesType(java.lang.String typeId) { + org.openecomp.dcae.controller.inventory.ApiResponseMessage res = null; + try { + res = controller.deleteDcaeServiceTypesType(typeId); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceType getDcaeServiceTypesType(java.lang.String typeId) { + org.openecomp.dcae.controller.inventory.DCAEServiceType res = null; + try { + res = controller.getDcaeServiceTypesType(typeId); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceType createDcaeServiceTypesTypeName(org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest body) { + org.openecomp.dcae.controller.inventory.DCAEServiceType res = null; + try { + res = controller.createDcaeServiceTypesTypeName(body); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public org.openecomp.dcae.controller.inventory.DcaeServiceResults getDcaeServices(java.lang.String typeId, java.lang.String vnfId, java.lang.String vnfType, java.lang.String vnfLocation, java.lang.String componentType, java.lang.Boolean shareable, java.lang.String created, java.lang.Integer offset) { + org.openecomp.dcae.controller.inventory.DcaeServiceResults res = null; + try { + res = controller.getDcaeServices(typeId,vnfId,vnfType,vnfLocation,componentType,shareable,created,offset); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(java.lang.String propertyName) { + org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults res = null; + try { + res = controller.getDcaeServicesGroupbyPropertyName(propertyName); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public void deleteDcaeServicesService(java.lang.String serviceId) { + + try { + controller.deleteDcaeServicesService(serviceId); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + + } + + public org.openecomp.dcae.controller.inventory.DCAEService getDcaeServicesService(java.lang.String serviceId) { + org.openecomp.dcae.controller.inventory.DCAEService res = null; + try { + res = controller.getDcaeServicesService(serviceId); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public org.openecomp.dcae.controller.inventory.DCAEService createDcaeServicesService(java.lang.String serviceId, org.openecomp.dcae.controller.inventory.DCAEServiceRequest body) { + org.openecomp.dcae.controller.inventory.DCAEService res = null; + try { + res = controller.createDcaeServicesService(serviceId,body); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + return res; + } + + public void poll() { + + try { + controller.poll(); + } + catch (ManagementServerError e) { + System.err.println("ERROR: " + e.getJson().toString(2)); + } + + } + +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProviderTemplate.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProviderTemplate.java new file mode 100644 index 0000000..bfdb66b --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProviderTemplate.java @@ -0,0 +1,123 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END============================================ + */ + + +package org.openecomp.dcae.controller.platform.servers.controller.inventory; + + + + + +import java.io.InputStream; + +import org.openecomp.ncomp.sirius.manager.IRequestHandler; +import org.openecomp.ncomp.sirius.manager.ISiriusPlugin; +import org.openecomp.ncomp.sirius.manager.ISiriusServer; +import org.openecomp.ncomp.sirius.function.FunctionUtils; + +import org.apache.log4j.Logger; +import org.eclipse.emf.common.util.EList; +import org.json.JSONObject; + + + +import org.openecomp.ncomp.sirius.manager.BasicAdaptorProvider; + + +import org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl; +import org.openecomp.dcae.controller.inventory.DcaeInventory; + + +public class DcaeDcaeInventoryProviderTemplate extends BasicAdaptorProvider { + private static final Logger logger = Logger.getLogger(DcaeDcaeInventoryProviderTemplate.class); + DcaeInventory o; + + public DcaeDcaeInventoryProviderTemplate(ISiriusServer controller, DcaeInventory o) { + super(controller, o); + this.o = o; + } + + public org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults getDcaeServiceTypes(java.lang.String typeName, java.lang.Boolean onlyLatest, java.lang.Boolean onlyActive, java.lang.String vnfType, java.lang.String serviceId, java.lang.String serviceLocation, java.lang.String asdcServiceId, java.lang.String asdcResourceId, java.lang.Integer offset) { + org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public org.openecomp.dcae.controller.inventory.ApiResponseMessage deleteDcaeServiceTypesType(java.lang.String typeId) { + org.openecomp.dcae.controller.inventory.ApiResponseMessage res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceType getDcaeServiceTypesType(java.lang.String typeId) { + org.openecomp.dcae.controller.inventory.DCAEServiceType res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceType createDcaeServiceTypesTypeName(org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest body) { + org.openecomp.dcae.controller.inventory.DCAEServiceType res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public org.openecomp.dcae.controller.inventory.DcaeServiceResults getDcaeServices(java.lang.String typeId, java.lang.String vnfId, java.lang.String vnfType, java.lang.String vnfLocation, java.lang.String componentType, java.lang.Boolean shareable, java.lang.String created, java.lang.Integer offset) { + org.openecomp.dcae.controller.inventory.DcaeServiceResults res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(java.lang.String propertyName) { + org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public void deleteDcaeServicesService(java.lang.String serviceId) { + + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public org.openecomp.dcae.controller.inventory.DCAEService getDcaeServicesService(java.lang.String serviceId) { + org.openecomp.dcae.controller.inventory.DCAEService res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public org.openecomp.dcae.controller.inventory.DCAEService createDcaeServicesService(java.lang.String serviceId, org.openecomp.dcae.controller.inventory.DCAEServiceRequest body) { + org.openecomp.dcae.controller.inventory.DCAEService res = null; + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + public void poll() { + + // TODO IMPLEMENT + throw new UnsupportedOperationException(); + } + + + + + + +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeInventoryFactory.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeInventoryFactory.java new file mode 100644 index 0000000..2967515 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeInventoryFactory.java @@ -0,0 +1,54 @@ + +/*- + * ============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============================================ + */ + +// Autogenerated +// Do not edit. No need to extend this class. +package org.openecomp.dcae.controller.platform.servers.controller.inventory; + +import org.eclipse.emf.ecore.EPackage; +import org.apache.log4j.Logger; + +import org.openecomp.ncomp.sirius.manager.ISiriusServer; + +import org.openecomp.dcae.controller.inventory.DcaeInventory; +import org.openecomp.dcae.controller.inventory.InventoryPackage; +import org.openecomp.dcae.controller.inventory.impl.InventoryFactoryImpl; + +import org.openecomp.dcae.controller.platform.servers.controller.DcaeDcaePlatformControllerServer; + + + +public class DcaeInventoryFactory extends InventoryFactoryImpl { + public static final Logger logger = Logger.getLogger(DcaeInventoryFactory.class); + ISiriusServer server = null; + @Override + public EPackage getEPackage() { return InventoryPackage.eINSTANCE; } + public DcaeInventoryFactory(ISiriusServer server) { + this.server = server; + } + @Override + public DcaeInventory createDcaeInventory() { + return new DcaeDcaeInventory(server); + } + + + +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventory.properties b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventory.properties new file mode 100644 index 0000000..911d8ac --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventory.properties @@ -0,0 +1,126 @@ + +dummy=\ + dummy-null|\ + null|\ + null|\ + null + +REQUEST_FAILED_getDcaeServiceTypes=\ + REQUEST-FAILED-getDcaeServiceTypes-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_deleteDcaeServiceTypesType=\ + REQUEST-FAILED-deleteDcaeServiceTypesType-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_getDcaeServiceTypesType=\ + REQUEST-FAILED-getDcaeServiceTypesType-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_createDcaeServiceTypesTypeName=\ + REQUEST-FAILED-createDcaeServiceTypesTypeName-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_getDcaeServices=\ + REQUEST-FAILED-getDcaeServices-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_getDcaeServicesGroupbyPropertyName=\ + REQUEST-FAILED-getDcaeServicesGroupbyPropertyName-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_deleteDcaeServicesService=\ + REQUEST-FAILED-deleteDcaeServicesService-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_getDcaeServicesService=\ + REQUEST-FAILED-getDcaeServicesService-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_createDcaeServicesService=\ + REQUEST-FAILED-createDcaeServicesService-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REQUEST_FAILED_poll=\ + REQUEST-FAILED-poll-4001W|\ + {0}|\ + null|\ + Operation Failed with Exception + +REMOTE_CALL_FAILED_getDcaeServiceTypes=\ + REMOTE-CALL-FAILED-getDcaeServiceTypes-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_deleteDcaeServiceTypesType=\ + REMOTE-CALL-FAILED-deleteDcaeServiceTypesType-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_getDcaeServiceTypesType=\ + REMOTE-CALL-FAILED-getDcaeServiceTypesType-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_createDcaeServiceTypesTypeName=\ + REMOTE-CALL-FAILED-createDcaeServiceTypesTypeName-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_getDcaeServices=\ + REMOTE-CALL-FAILED-getDcaeServices-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_getDcaeServicesGroupbyPropertyName=\ + REMOTE-CALL-FAILED-getDcaeServicesGroupbyPropertyName-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_deleteDcaeServicesService=\ + REMOTE-CALL-FAILED-deleteDcaeServicesService-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_getDcaeServicesService=\ + REMOTE-CALL-FAILED-getDcaeServicesService-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_createDcaeServicesService=\ + REMOTE-CALL-FAILED-createDcaeServicesService-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception + +REMOTE_CALL_FAILED_poll=\ + REMOTE-CALL-FAILED-poll-4001W|\ + {0}|\ + null|\ + Remote Operation Failed with Exception diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryMessageEnum.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryMessageEnum.java new file mode 100644 index 0000000..460ac99 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryMessageEnum.java @@ -0,0 +1,34 @@ + +package org.openecomp.dcae.controller.platform.servers.controller.inventory.logging; + +import com.att.eelf.i18n.EELFResourceManager; +import org.openecomp.logger.EcompMessageEnum; + +public enum DcaeInventoryMessageEnum implements EcompMessageEnum { + + dummy, + REQUEST_FAILED_getDcaeServiceTypes, + REQUEST_FAILED_deleteDcaeServiceTypesType, + REQUEST_FAILED_getDcaeServiceTypesType, + REQUEST_FAILED_createDcaeServiceTypesTypeName, + REQUEST_FAILED_getDcaeServices, + REQUEST_FAILED_getDcaeServicesGroupbyPropertyName, + REQUEST_FAILED_deleteDcaeServicesService, + REQUEST_FAILED_getDcaeServicesService, + REQUEST_FAILED_createDcaeServicesService, + REQUEST_FAILED_poll, + REMOTE_CALL_FAILED_getDcaeServiceTypes, + REMOTE_CALL_FAILED_deleteDcaeServiceTypesType, + REMOTE_CALL_FAILED_getDcaeServiceTypesType, + REMOTE_CALL_FAILED_createDcaeServiceTypesTypeName, + REMOTE_CALL_FAILED_getDcaeServices, + REMOTE_CALL_FAILED_getDcaeServicesGroupbyPropertyName, + REMOTE_CALL_FAILED_deleteDcaeServicesService, + REMOTE_CALL_FAILED_getDcaeServicesService, + REMOTE_CALL_FAILED_createDcaeServicesService, + REMOTE_CALL_FAILED_poll; + + static { + EELFResourceManager.loadMessageBundle("org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventory"); + } +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryOperationEnum.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryOperationEnum.java new file mode 100644 index 0000000..920dfb4 --- /dev/null +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryOperationEnum.java @@ -0,0 +1,31 @@ + +package org.openecomp.dcae.controller.platform.servers.controller.inventory.logging; + +import org.openecomp.entity.EcompOperationEnum; + +public enum DcaeInventoryOperationEnum implements EcompOperationEnum { + + DcaeInventory_getDcaeServiceTypes("DcaeInventory@getDcaeServiceTypes"), + DcaeInventory_deleteDcaeServiceTypesType("DcaeInventory@deleteDcaeServiceTypesType"), + DcaeInventory_getDcaeServiceTypesType("DcaeInventory@getDcaeServiceTypesType"), + DcaeInventory_createDcaeServiceTypesTypeName("DcaeInventory@createDcaeServiceTypesTypeName"), + DcaeInventory_getDcaeServices("DcaeInventory@getDcaeServices"), + DcaeInventory_getDcaeServicesGroupbyPropertyName("DcaeInventory@getDcaeServicesGroupbyPropertyName"), + DcaeInventory_deleteDcaeServicesService("DcaeInventory@deleteDcaeServicesService"), + DcaeInventory_getDcaeServicesService("DcaeInventory@getDcaeServicesService"), + DcaeInventory_createDcaeServicesService("DcaeInventory@createDcaeServicesService"), + DcaeInventory_poll("DcaeInventory@poll") ; + + + private String n; + + private DcaeInventoryOperationEnum(String n) { + this.n = n; + } + + @Override + public String toString() { + return n; + } + +} diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeController.properties b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeController.properties index 883027d..213a999 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeController.properties +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeController.properties @@ -11,6 +11,12 @@ POLICY_POLLING_FAILED=\ Contact Tier 4. This is a software bug.|\ Police Polling on the service level fails. +INVENTORY_POLLING_FAILED=\ + INVENTORY-POLLING-FAILED-5001W|\ + {0}|\ + Contact Tier 4. This is a software bug.|\ + INVENTORY Polling on the service level fails. + DATABUS_POLLING_FAILED=\ DATABUS-POLLING-FAILED-5001W|\ {0}|\ diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerMessageEnum.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerMessageEnum.java index 4233931..8abcc71 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerMessageEnum.java +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerMessageEnum.java @@ -8,6 +8,7 @@ public enum DcaeControllerMessageEnum implements EcompMessageEnum { HEALTHCHECK_SERVICE_FAILED, POLICY_POLLING_FAILED, + INVENTORY_POLLING_FAILED, DATABUS_POLLING_FAILED, DATABUS_UNABLE_TO_ADD_STREAM, CLUSTER_DATA_REPLICATION_FAILED; diff --git a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerOperationEnum.java b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerOperationEnum.java index 9285d2c..6604bc8 100644 --- a/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerOperationEnum.java +++ b/dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/logging/DcaeControllerOperationEnum.java @@ -8,6 +8,7 @@ public enum DcaeControllerOperationEnum implements EcompOperationEnum { HEALTHCHECK("HEALTHCHECK"), POLICY_POLLING("POLICY_POLLING"), DATABUS_POLLING("DATABUS_POLLING"), + INVENTORY_POLLING("INVENTORY_POLLING"), CLUSTER_DATA_REPLICATION("CLUSTER_DATA_REPLICATION") ; |