From 8fc1dbd5956a1e20b8b576cee791271bc3e7c283 Mon Sep 17 00:00:00 2001 From: Carsten Lund Date: Tue, 2 May 2017 02:14:33 +0000 Subject: [DCAE-15] Changes related to version 1.1 (2) Change-Id: I52fefc397f789b56095f037acc517b364516b2cb Signed-off-by: Carsten Lund --- .../dcae-controller-core-model/.classpath | 26 +- .../dcae-controller-core-model/.project | 6 + .../.settings/org.eclipse.core.resources.prefs | 4 + .../.settings/org.eclipse.jdt.core.prefs | 6 +- .../META-INF/MANIFEST.MF | 8 +- .../dcae-controller-core-model/plugin.xml | 8 + .../core/hypervisor/HypervisorPackage.java | 18 + .../core/hypervisor/impl/HypervisorImpl.java | 2 - .../core/hypervisor/util/HypervisorSwitch.java | 2 +- .../dcae/controller/core/manager/DcaeManager.java | 2 +- .../controller/core/manager/ManagerPackage.java | 18 + .../core/manager/impl/DcaeManagerImpl.java | 2 +- .../core/manager/util/ManagerSwitch.java | 2 +- .../controller/core/server/DcaeBasicServer.java | 2 +- .../core/server/DcaeBasicServerNetwork.java | 2 +- .../dcae/controller/core/server/ServerPackage.java | 18 + .../core/server/impl/DcaeBasicServerImpl.java | 2 +- .../server/impl/DcaeBasicServerNetworkImpl.java | 2 +- .../core/server/impl/ServerPackageImpl.java | 4 +- .../controller/core/server/util/ServerSwitch.java | 2 +- .../dcae/controller/core/service/DcaeLocation.java | 2 +- .../controller/core/service/DcaePolicyEntity.java | 2 +- .../core/service/DcaeServiceContainer.java | 2 +- .../core/service/DcaeServiceDescriptor.java | 2 +- .../core/service/DcaeServiceInstance.java | 2 +- .../core/service/HealthTestResponse.java | 2 +- .../controller/core/service/HealthTestStatus.java | 6 + .../controller/core/service/ServicePackage.java | 18 + .../core/service/impl/DcaeLocationImpl.java | 2 +- .../core/service/impl/DcaePolicyEntityImpl.java | 2 +- .../service/impl/DcaeServiceContainerImpl.java | 2 +- .../service/impl/DcaeServiceDescriptorImpl.java | 2 +- .../core/service/impl/DcaeServiceImpl.java | 2 - .../core/service/impl/DcaeServiceInstanceImpl.java | 2 +- .../core/service/impl/HealthTestResponseImpl.java | 2 +- .../core/service/impl/ServicePackageImpl.java | 6 +- .../core/service/util/ServiceSwitch.java | 2 +- .../core/stream/DatabusDataRouterNode.java | 2 +- .../dcae/controller/core/stream/DatabusEntity.java | 2 +- .../controller/core/stream/DatabusLocation.java | 2 +- .../core/stream/DatabusMessageRouterCluster.java | 2 +- .../controller/core/stream/DatabusStreamFeed.java | 2 +- .../core/stream/DatabusStreamFeedPublisher.java | 2 +- .../core/stream/DatabusStreamFeedSubscriber.java | 2 +- .../controller/core/stream/DatabusStreamTopic.java | 56 +- .../core/stream/DatabusStreamTopicAction.java | 6 + .../core/stream/DatabusStreamTopicClient.java | 2 +- .../core/stream/DcaeStreamDefinition.java | 2 +- .../core/stream/DcaeStreamExternalEndPoint.java | 2 +- .../core/stream/DcaeStreamInternalEndPoint.java | 2 +- .../dcae/controller/core/stream/DmaapStream.java | 2 +- .../core/stream/StreamAuthentication.java | 6 + .../dcae/controller/core/stream/StreamPackage.java | 74 +- .../stream/impl/DatabusDataRouterNodeImpl.java | 2 +- .../core/stream/impl/DatabusEntityImpl.java | 2 +- .../core/stream/impl/DatabusLocationImpl.java | 2 +- .../impl/DatabusMessageRouterClusterImpl.java | 2 +- .../core/stream/impl/DatabusStreamFeedImpl.java | 2 +- .../impl/DatabusStreamFeedPublisherImpl.java | 2 +- .../impl/DatabusStreamFeedSubscriberImpl.java | 2 +- .../core/stream/impl/DatabusStreamImpl.java | 2 - .../stream/impl/DatabusStreamTopicClientImpl.java | 2 +- .../core/stream/impl/DatabusStreamTopicImpl.java | 107 +- .../core/stream/impl/DcaeStreamDefinitionImpl.java | 2 +- .../impl/DcaeStreamExternalEndPointImpl.java | 2 +- .../core/stream/impl/DcaeStreamImpl.java | 2 - .../impl/DcaeStreamInternalEndPointImpl.java | 2 +- .../impl/DcaeStreamPublisherExternalImpl.java | 2 +- .../core/stream/impl/DcaeStreamPublisherImpl.java | 2 - .../impl/DcaeStreamPublisherInternalImpl.java | 2 +- .../impl/DcaeStreamSubscriberExternalImpl.java | 2 +- .../core/stream/impl/DcaeStreamSubscriberImpl.java | 2 - .../impl/DcaeStreamSubscriberInternalImpl.java | 2 +- .../core/stream/impl/DmaapStreamImpl.java | 2 +- .../core/stream/impl/StreamPackageImpl.java | 22 + .../controller/core/stream/util/StreamSwitch.java | 2 +- .../controller/inventory/ApiResponseMessage.java | 104 + .../dcae/controller/inventory/DCAEService.java | 308 ++ .../controller/inventory/DCAEServiceComponent.java | 262 ++ .../inventory/DCAEServiceComponentRequest.java | 128 + .../inventory/DCAEServiceGroupByResults.java | 68 + .../DCAEServiceGroupByResultsPropertyValues.java | 103 + .../controller/inventory/DCAEServiceRequest.java | 171 + .../dcae/controller/inventory/DCAEServiceType.java | 362 ++ .../inventory/DCAEServiceTypeRequest.java | 257 ++ .../dcae/controller/inventory/DcaeInventory.java | 139 + .../controller/inventory/DcaeServiceResults.java | 86 + .../inventory/DcaeServiceTypeResultLinks.java | 77 + .../inventory/DcaeServiceTypeResults.java | 86 + .../controller/inventory/InventoryFactory.java | 168 + .../controller/inventory/InventoryPackage.java | 3489 ++++++++++++++++++++ .../openecomp/dcae/controller/inventory/Link.java | 220 ++ .../dcae/controller/inventory/Parameter.java | 50 + .../dcae/controller/inventory/UriBuilder.java | 18 + .../inventory/impl/ApiResponseMessageImpl.java | 271 ++ .../inventory/impl/DCAEServiceComponentImpl.java | 623 ++++ .../impl/DCAEServiceComponentRequestImpl.java | 325 ++ .../impl/DCAEServiceGroupByResultsImpl.java | 222 ++ ...CAEServiceGroupByResultsPropertyValuesImpl.java | 298 ++ .../controller/inventory/impl/DCAEServiceImpl.java | 745 +++++ .../inventory/impl/DCAEServiceRequestImpl.java | 438 +++ .../inventory/impl/DCAEServiceTypeImpl.java | 845 +++++ .../inventory/impl/DCAEServiceTypeRequestImpl.java | 602 ++++ .../inventory/impl/DcaeInventoryImpl.java | 341 ++ .../inventory/impl/DcaeServiceResultsImpl.java | 259 ++ .../inventory/impl/DcaeServiceTypeResultsImpl.java | 259 ++ .../inventory/impl/InventoryFactoryImpl.java | 249 ++ .../inventory/impl/InventoryPackageImpl.java | 1491 +++++++++ .../dcae/controller/inventory/impl/LinkImpl.java | 541 +++ .../controller/inventory/impl/ParameterImpl.java | 164 + .../controller/inventory/impl/UriBuilderImpl.java | 39 + .../inventory/util/InventoryAdapterFactory.java | 392 +++ .../controller/inventory/util/InventorySwitch.java | 426 +++ .../src/main/xcore/inventory.xcore | 198 ++ .../src/main/xcore/stream.xcore | 2 + .../src/main/server/bin/dmaap_mr_prep.sh | 2 +- .../dcae-controller-platform-model/.classpath | 20 +- .../dcae-controller-platform-model/.project | 6 + .../.settings/org.eclipse.core.resources.prefs | 4 + .../.settings/org.eclipse.jdt.core.prefs | 3 + .../META-INF/MANIFEST.MF | 10 +- .../platform/controller/ControllerCluster.java | 2 +- .../controller/ControllerClusterServer.java | 2 +- .../controller/ControllerClusterServerData.java | 2 +- .../platform/controller/ControllerPackage.java | 56 +- .../platform/controller/DcaeDataBus.java | 2 +- .../controller/DcaePlatformController.java | 30 +- .../controller/platform/controller/ServerRole.java | 6 + .../controller/impl/ControllerClusterImpl.java | 2 +- .../impl/ControllerClusterServerDataImpl.java | 2 +- .../impl/ControllerClusterServerImpl.java | 2 +- .../controller/impl/ControllerPackageImpl.java | 24 +- .../impl/ControllerVirtualMachineServiceImpl.java | 2 - .../platform/controller/impl/DcaeDataBusImpl.java | 2 +- .../impl/DcaePlatformControllerImpl.java | 69 +- .../platform/controller/util/ControllerSwitch.java | 2 +- .../src/main/xcore/controller.xcore | 6 +- .../dcae-controller-platform-server/.gitignore | 3 + .../platform/server/tools/Generator.java | 9 +- .../DcaeDcaePlatformControllerProvider.java | 213 +- .../inventory/DcaeDcaeInventoryProvider.java | 234 ++ .../inventory/DcaeDcaeInventoryTest.java | 23 + .../src/main/resources/DcaeController.yaml | 10 + .../server/scripts/rackspace-substitute.groovy | 11 - .../src/main/sirius-gen/DcaeInventory.yaml | 93 + .../DcaeDcaePlatformControllerConsole.java | 4 + .../DcaeDcaePlatformControllerServer.java | 11 + .../controller/inventory/DcaeDcaeInventory.java | 368 +++ .../inventory/DcaeDcaeInventoryClient.java | 258 ++ .../inventory/DcaeDcaeInventoryConsole.java | 167 + .../DcaeDcaeInventoryProviderTemplate.java | 123 + .../controller/inventory/DcaeInventoryFactory.java | 54 + .../inventory/logging/DcaeInventory.properties | 126 + .../logging/DcaeInventoryMessageEnum.java | 34 + .../logging/DcaeInventoryOperationEnum.java | 31 + .../controller/logging/DcaeController.properties | 6 + .../logging/DcaeControllerMessageEnum.java | 1 + .../logging/DcaeControllerOperationEnum.java | 1 + .../servers/cdap/DcaeCdapServiceProvider.java | 35 +- .../src/main/server/bin/manager.sh | 6 +- .../controller/service/cdap/CdapDeployAppStep.java | 22 +- .../service/cdap/CdapLoadArtifactStep.java | 22 +- .../dcae/controller/service/cdap/CdapPackage.java | 36 +- .../service/cdap/impl/CdapDeployAppStepImpl.java | 46 +- .../cdap/impl/CdapLoadArtifactStepImpl.java | 46 +- .../service/cdap/impl/CdapPackageImpl.java | 12 +- .../src/main/xcore/manager.xcore | 2 +- .../src/main/xcore/service.xcore | 4 +- .../src/main/server/bin/manager.sh | 1 + .../src/main/server/bin/manager.sh | 3 +- ...rviceStandardeventcollectorServiceProvider.java | 4 +- 171 files changed, 17322 insertions(+), 310 deletions(-) create mode 100644 dcae-controller-core/dcae-controller-core-model/.settings/org.eclipse.core.resources.prefs create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/ApiResponseMessage.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEService.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponent.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceComponentRequest.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResults.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceGroupByResultsPropertyValues.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceRequest.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceType.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DCAEServiceTypeRequest.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeInventory.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceResults.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResultLinks.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/DcaeServiceTypeResults.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryFactory.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/InventoryPackage.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Link.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/Parameter.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/UriBuilder.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ApiResponseMessageImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceComponentRequestImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceGroupByResultsPropertyValuesImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceRequestImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DCAEServiceTypeRequestImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeInventoryImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceResultsImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/DcaeServiceTypeResultsImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryFactoryImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/InventoryPackageImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/LinkImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/ParameterImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/impl/UriBuilderImpl.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventoryAdapterFactory.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore-gen/org/openecomp/dcae/controller/inventory/util/InventorySwitch.java create mode 100644 dcae-controller-core/dcae-controller-core-model/src/main/xcore/inventory.xcore create mode 100644 dcae-controller-core/dcae-controller-platform-model/.settings/org.eclipse.core.resources.prefs create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProvider.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/java/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryTest.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/DcaeInventory.yaml create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventory.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryClient.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryConsole.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeDcaeInventoryProviderTemplate.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/DcaeInventoryFactory.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventory.properties create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryMessageEnum.java create mode 100644 dcae-controller-core/dcae-controller-platform-server/src/main/sirius-gen/org/openecomp/dcae/controller/platform/servers/controller/inventory/logging/DcaeInventoryOperationEnum.java 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 @@ - + + + + + - + + + + + + + - + + + + + + + + + + + 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 @@ + + org.eclipse.m2e.core.maven2Builder + + + + org.eclipse.m2e.core.maven2Nature org.eclipse.jdt.core.javanature org.eclipse.pde.PluginNature org.eclipse.xtext.ui.shared.xtextNature 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/=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"/> + + + + + 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; *
  • and each data type
  • * * + * + * - + * ============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============================================ + * * @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; * * An implementation of the model object 'Hypervisor'. * - *

    - *

    * * @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 extends Switch { * Checks whether this is a switch for the given package. * * - * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.manager.DcaeManager#getInputStreams Input Streams}
    • *
    • {@link org.openecomp.dcae.controller.core.manager.DcaeManager#getOutputStreams Output Streams}
    • *
    - *

    * * @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; *
  • and each data type
  • * * + * + * - + * ============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============================================ + * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.manager.impl.DcaeManagerImpl#getInputStreams Input Streams}
    • *
    • {@link org.openecomp.dcae.controller.core.manager.impl.DcaeManagerImpl#getOutputStreams Output Streams}
    • *
    - *

    * * @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 extends Switch { * Checks whether this is a switch for the given package. * * - * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getPrivateIp Private Ip}
    • *
    • {@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getPublicIp Public Ip}
    • @@ -58,7 +59,6 @@ import org.eclipse.emf.common.util.EList; *
    • {@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getHealthTestStatus Health Test Status}
    • *
    • {@link org.openecomp.dcae.controller.core.server.DcaeBasicServer#getHealthTestMessageCode Health Test Message Code}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.server.DcaeBasicServerNetwork#getIp Ip}
    • *
    • {@link org.openecomp.dcae.controller.core.server.DcaeBasicServerNetwork#getDnsName Dns Name}
    • *
    - *

    * * @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; *
  • and each data type
  • * * + * + * - + * ============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============================================ + * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getOperationalState Operational State}
    • *
    • {@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getLogMessageConfiguration Log Message Configuration}
    • @@ -78,7 +79,6 @@ import org.eclipse.emf.ecore.util.InternalEList; *
    • {@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getHealthTestStatus Health Test Status}
    • *
    • {@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerImpl#getHealthTestMessageCode Health Test Message Code}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerNetworkImpl#getIp Ip}
    • *
    • {@link org.openecomp.dcae.controller.core.server.impl.DcaeBasicServerNetworkImpl#getDnsName Dns Name}
    • *
    - *

    * * @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 extends Switch { * Checks whether this is a switch for the given package. * * - * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.DcaeLocation#getLocationType Location Type}
    • *
    • {@link org.openecomp.dcae.controller.core.service.DcaeLocation#getOpenstackProject Openstack Project}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyName Policy Name}
    • *
    • {@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyDescription Policy Description}
    • @@ -41,7 +42,6 @@ import org.eclipse.emf.ecore.EObject; *
    • {@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyPriority Policy Priority}
    • *
    • {@link org.openecomp.dcae.controller.core.service.DcaePolicyEntity#getPolicyScope Policy Scope}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceContainer#getInstances Instances}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor#getGroupId Group Id}
    • *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor#getArtifact Artifact}
    • *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceDescriptor#getVersion Version}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getServiceContainer Service Container}
    • *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getStatus Status}
    • @@ -45,7 +46,6 @@ import org.eclipse.emf.common.util.EList; *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getHealthTestStatus Health Test Status}
    • *
    • {@link org.openecomp.dcae.controller.core.service.DcaeServiceInstance#getHealthTestMessageCode Health Test Message Code}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.HealthTestResponse#getStatus Status}
    • *
    • {@link org.openecomp.dcae.controller.core.service.HealthTestResponse#getMessageCode Message Code}
    • *
    - *

    * * @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 'Health Test Status' literal with the specified literal value. * * + * @param literal the literal. + * @return the matching enumerator or null. * @generated */ public static HealthTestStatus get(String literal) { @@ -155,6 +157,8 @@ public enum HealthTestStatus implements Enumerator { * Returns the 'Health Test Status' literal with the specified name. * * + * @param name the name. + * @return the matching enumerator or null. * @generated */ public static HealthTestStatus getByName(String name) { @@ -171,6 +175,8 @@ public enum HealthTestStatus implements Enumerator { * Returns the 'Health Test Status' literal with the specified integer value. * * + * @param value the integer value. + * @return the matching enumerator or null. * @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; *
  • and each data type
  • * * + * + * - + * ============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============================================ + * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeLocationImpl#getLocationType Location Type}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeLocationImpl#getOpenstackProject Openstack Project}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyName Policy Name}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyDescription Policy Description}
    • @@ -48,7 +49,6 @@ import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyPriority Policy Priority}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaePolicyEntityImpl#getPolicyScope Policy Scope}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceContainerImpl#getInstances Instances}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceDescriptorImpl#getGroupId Group Id}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceDescriptorImpl#getArtifact Artifact}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceDescriptorImpl#getVersion Version}
    • *
    - *

    * * @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; * * An implementation of the model object 'Dcae Service'. * - *

    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getServiceContainer Service Container}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getStatus Status}
    • @@ -56,7 +57,6 @@ import org.eclipse.emf.ecore.util.InternalEList; *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getHealthTestStatus Health Test Status}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.DcaeServiceInstanceImpl#getHealthTestMessageCode Health Test Message Code}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.service.impl.HealthTestResponseImpl#getStatus Status}
    • *
    • {@link org.openecomp.dcae.controller.core.service.impl.HealthTestResponseImpl#getMessageCode Message Code}
    • *
    - *

    * * @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 { * * @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 extends Switch { * Checks whether this is a switch for the given package. * * - * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusDataRouterNode#getDcaeLocationName Dcae Location Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusDataRouterNode#getHostFqdn Host Fqdn}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusDataRouterNode#getVersion Version}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusEntity#getStatus Status}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusEntity#getLastModified Last Modified}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusEntity#getType Type}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusLocation#getDcaeLayer Dcae Layer}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getDcaeLocationName Dcae Location Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getServiceFqdn Service Fqdn}
    • @@ -39,7 +40,6 @@ import org.eclipse.emf.common.util.EList; *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getTopicPort Topic Port}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusMessageRouterCluster#getTopicProtocol Topic Protocol}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getFeedName Feed Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getFeedVersion Feed Version}
    • @@ -48,7 +49,6 @@ import org.eclipse.emf.common.util.EList; *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getPublishers Publishers}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeed#getSubscribers Subscribers}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getLocalStreamId Local Stream Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getDcaeLocationName Dcae Location Name}
    • @@ -41,7 +42,6 @@ import org.openecomp.ncomp.core.NamedEntity; *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getUsername Username}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedPublisher#getUserpwd Userpwd}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getLocalStreamId Local Stream Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getDcaeLocationName Dcae Location Name}
    • @@ -46,7 +47,6 @@ import org.openecomp.ncomp.core.NamedEntity; *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getUserpwd Userpwd}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamFeedSubscriber#getDeliveryURL Delivery URL}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getTopicName Topic Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getTopicDescription Topic Description}
    • @@ -47,8 +48,9 @@ import org.eclipse.emf.common.util.EList; *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getPublishURL Publish URL}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getSubscribeURL Subscribe URL}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getAuthenticationMethod Authentication Method}
    • + *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getReplicationCase Replication Case}
    • + *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopic#getGlobalMrURL Global Mr URL}
    • *
    - *

    * * @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 'Replication Case' attribute. + * + *

    + * If the meaning of the 'Replication Case' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Replication Case' 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 Replication Case}' attribute. + * + * + * @param value the new value of the 'Replication Case' attribute. + * @see #getReplicationCase() + * @generated + */ + void setReplicationCase(String value); + + /** + * Returns the value of the 'Global Mr URL' attribute. + * + *

    + * If the meaning of the 'Global Mr URL' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Global Mr URL' 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 Global Mr URL}' attribute. + * + * + * @param value the new value of the 'Global Mr URL' 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 'Databus Stream Topic Action' literal with the specified literal value. * * + * @param literal the literal. + * @return the matching enumerator or null. * @generated */ public static DatabusStreamTopicAction get(String literal) { @@ -155,6 +157,8 @@ public enum DatabusStreamTopicAction implements Enumerator { * Returns the 'Databus Stream Topic Action' literal with the specified name. * * + * @param name the name. + * @return the matching enumerator or null. * @generated */ public static DatabusStreamTopicAction getByName(String name) { @@ -171,6 +175,8 @@ public enum DatabusStreamTopicAction implements Enumerator { * Returns the 'Databus Stream Topic Action' literal with the specified integer value. * * + * @param value the integer value. + * @return the matching enumerator or null. * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getLocalStreamId Local Stream Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getDcaeLocationName Dcae Location Name}
    • @@ -43,7 +44,6 @@ import org.eclipse.emf.common.util.EList; *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getMrClientId Mr Client Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DatabusStreamTopicClient#getTopicURL Topic URL}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getStreamType Stream Type}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getDatabusType Databus Type}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getPublishers Publishers}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamDefinition#getSubscribers Subscribers}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamExternalEndPoint#getUser User}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamExternalEndPoint#getPassword Password}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamExternalEndPoint#getUrl Url}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamInternalEndPoint#getLocalName Local Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DcaeStreamInternalEndPoint#getServiceName Service Name}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapDataType Dmaap Data Type}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapAction Dmaap Action}
    • @@ -39,7 +40,6 @@ package org.openecomp.dcae.controller.core.stream; *
    • {@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapPassword Dmaap Password}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.DmaapStream#getDmaapAuthMethod Dmaap Auth Method}
    • *
    - *

    * * @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 'Authentication' literal with the specified literal value. * * + * @param literal the literal. + * @return the matching enumerator or null. * @generated */ public static StreamAuthentication get(String literal) { @@ -155,6 +157,8 @@ public enum StreamAuthentication implements Enumerator { * Returns the 'Authentication' literal with the specified name. * * + * @param name the name. + * @return the matching enumerator or null. * @generated */ public static StreamAuthentication getByName(String name) { @@ -171,6 +175,8 @@ public enum StreamAuthentication implements Enumerator { * Returns the 'Authentication' literal with the specified integer value. * * + * @param value the integer value. + * @return the matching enumerator or null. * @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; *
  • and each data type
  • * * + * + * - + * ============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============================================ + * * @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'" @@ -1161,6 +1179,24 @@ public interface StreamPackage extends EPackage { */ int DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD = DATABUS_STREAM_FEATURE_COUNT + 11; + /** + * The feature id for the 'Replication Case' attribute. + * + * + * @generated + * @ordered + */ + int DATABUS_STREAM_TOPIC__REPLICATION_CASE = DATABUS_STREAM_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Global Mr URL' attribute. + * + * + * @generated + * @ordered + */ + int DATABUS_STREAM_TOPIC__GLOBAL_MR_URL = DATABUS_STREAM_FEATURE_COUNT + 13; + /** * The number of structural features of the 'Databus Stream Topic' class. * @@ -1168,7 +1204,7 @@ public interface StreamPackage extends EPackage { * @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 'Databus Stream Topic' class. @@ -2700,6 +2736,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 Replication Case}'. + * + * + * @return the meta object for the attribute 'Replication Case'. + * @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 Global Mr URL}'. + * + * + * @return the meta object for the attribute 'Global Mr URL'. + * @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 Databus Stream Topic Client}'. * @@ -3712,6 +3770,20 @@ public interface StreamPackage extends EPackage { * @generated */ EAttribute DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD = eINSTANCE.getDatabusStreamTopic_AuthenticationMethod(); + /** + * The meta object literal for the 'Replication Case' attribute feature. + * + * + * @generated + */ + EAttribute DATABUS_STREAM_TOPIC__REPLICATION_CASE = eINSTANCE.getDatabusStreamTopic_ReplicationCase(); + /** + * The meta object literal for the 'Global Mr URL' attribute feature. + * + * + * @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 Databus Stream Topic Client}' class. * 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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusDataRouterNodeImpl#getDcaeLocationName Dcae Location Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusDataRouterNodeImpl#getHostFqdn Host Fqdn}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusDataRouterNodeImpl#getVersion Version}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusEntityImpl#getStatus Status}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusEntityImpl#getLastModified Last Modified}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusEntityImpl#getType Type}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusLocationImpl#getDcaeLayer Dcae Layer}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getDcaeLocationName Dcae Location Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getServiceFqdn Service Fqdn}
    • @@ -45,7 +46,6 @@ import org.eclipse.emf.ecore.util.EDataTypeEList; *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getTopicPort Topic Port}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusMessageRouterClusterImpl#getTopicProtocol Topic Protocol}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getFeedName Feed Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getFeedVersion Feed Version}
    • @@ -59,7 +60,6 @@ import org.eclipse.emf.ecore.util.InternalEList; *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getPublishers Publishers}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedImpl#getSubscribers Subscribers}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getLocalStreamId Local Stream Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getDcaeLocationName Dcae Location Name}
    • @@ -45,7 +46,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getUsername Username}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedPublisherImpl#getUserpwd Userpwd}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getLocalStreamId Local Stream Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getDcaeLocationName Dcae Location Name}
    • @@ -50,7 +51,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getUserpwd Userpwd}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamFeedSubscriberImpl#getDeliveryURL Delivery URL}
    • *
    - *

    * * @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; * * An implementation of the model object 'Databus Stream'. * - *

    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getLocalStreamId Local Stream Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getDcaeLocationName Dcae Location Name}
    • @@ -56,7 +57,6 @@ import org.eclipse.emf.ecore.util.EDataTypeEList; *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getMrClientId Mr Client Id}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicClientImpl#getTopicURL Topic URL}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getTopicName Topic Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getTopicDescription Topic Description}
    • @@ -58,8 +59,9 @@ import org.eclipse.emf.ecore.util.InternalEList; *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getPublishURL Publish URL}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getSubscribeURL Subscribe URL}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getAuthenticationMethod Authentication Method}
    • + *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getReplicationCase Replication Case}
    • + *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DatabusStreamTopicImpl#getGlobalMrURL Global Mr URL}
    • *
    - *

    * * @generated */ @@ -275,6 +277,43 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus */ protected StreamAuthentication authenticationMethod = AUTHENTICATION_METHOD_EDEFAULT; + /** + * The default value of the '{@link #getReplicationCase() Replication Case}' attribute. + * + * + * @see #getReplicationCase() + * @generated + * @ordered + */ + protected static final String REPLICATION_CASE_EDEFAULT = null; + /** + * The cached value of the '{@link #getReplicationCase() Replication Case}' attribute. + * + * + * @see #getReplicationCase() + * @generated + * @ordered + */ + protected String replicationCase = REPLICATION_CASE_EDEFAULT; + /** + * The default value of the '{@link #getGlobalMrURL() Global Mr URL}' attribute. + * + * + * @see #getGlobalMrURL() + * @generated + * @ordered + */ + protected static final String GLOBAL_MR_URL_EDEFAULT = null; + /** + * The cached value of the '{@link #getGlobalMrURL() Global Mr URL}' attribute. + * + * + * @see #getGlobalMrURL() + * @generated + * @ordered + */ + protected String globalMrURL = GLOBAL_MR_URL_EDEFAULT; + /** * * @@ -537,6 +576,48 @@ public class DatabusStreamTopicImpl extends DatabusStreamImpl implements Databus eNotify(new ENotificationImpl(this, Notification.SET, StreamPackage.DATABUS_STREAM_TOPIC__AUTHENTICATION_METHOD, oldAuthenticationMethod, authenticationMethod)); } + /** + * + * + * @generated + */ + public String getReplicationCase() { + return replicationCase; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getGlobalMrURL() { + return globalMrURL; + } + + /** + * + * + * @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)); + } + /** * * @@ -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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getStreamType Stream Type}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getDatabusType Databus Type}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getPublishers Publishers}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamDefinitionImpl#getSubscribers Subscribers}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamExternalEndPointImpl#getUser User}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamExternalEndPointImpl#getPassword Password}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamExternalEndPointImpl#getUrl Url}
    • *
    - *

    * * @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; * * An implementation of the model object 'Dcae Stream'. * - *

    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamInternalEndPointImpl#getLocalName Local Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamInternalEndPointImpl#getServiceName Service Name}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherExternalImpl#getUser User}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherExternalImpl#getPassword Password}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherExternalImpl#getUrl Url}
    • *
    - *

    * * @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; * * An implementation of the model object 'Dcae Stream Publisher'. * - *

    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherInternalImpl#getLocalName Local Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamPublisherInternalImpl#getServiceName Service Name}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberExternalImpl#getUser User}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberExternalImpl#getPassword Password}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberExternalImpl#getUrl Url}
    • *
    - *

    * * @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; * * An implementation of the model object 'Dcae Stream Subscriber'. * - *

    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberInternalImpl#getLocalName Local Name}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DcaeStreamSubscriberInternalImpl#getServiceName Service Name}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapDataType Dmaap Data Type}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapAction Dmaap Action}
    • @@ -46,7 +47,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapPassword Dmaap Password}
    • *
    • {@link org.openecomp.dcae.controller.core.stream.impl.DmaapStreamImpl#getDmaapAuthMethod Dmaap Auth Method}
    • *
    - *

    * * @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 @@ -652,6 +652,24 @@ public class StreamPackageImpl extends EPackageImpl implements StreamPackage { return (EAttribute)databusStreamTopicEClass.getEStructuralFeatures().get(11); } + /** + * + * + * @generated + */ + public EAttribute getDatabusStreamTopic_ReplicationCase() { + return (EAttribute)databusStreamTopicEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getDatabusStreamTopic_GlobalMrURL() { + return (EAttribute)databusStreamTopicEClass.getEStructuralFeatures().get(13); + } + /** * * @@ -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 extends Switch { * Checks whether this is a switch for the given package. * * - * @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; + +/** + * + * A representation of the model object 'Api Response Message'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getCode Code}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getType Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.ApiResponseMessage#getMessage Message}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getApiResponseMessage() + * @model + * @generated + */ +public interface ApiResponseMessage extends EObject { + /** + * Returns the value of the 'Code' attribute. + * + *

    + * If the meaning of the 'Code' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Code' 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 Code}' attribute. + * + * + * @param value the new value of the 'Code' attribute. + * @see #getCode() + * @generated + */ + void setCode(Integer value); + + /** + * Returns the value of the 'Type' attribute. + * + *

    + * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Type' 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 Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + + /** + * Returns the value of the 'Message' attribute. + * + *

    + * If the meaning of the 'Message' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Message' 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 Message}' attribute. + * + * + * @param value the new value of the 'Message' 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; + +/** + * + * A representation of the model object 'DCAE Service'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getServiceId Service Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getSelfLink Self Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getCreated1 Created1}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getModified Modified}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getTypeLink Type Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfId Vnf Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLink Vnf Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfType Vnf Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getVnfLocation Vnf Location}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getDeploymentRef Deployment Ref}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEService#getComponents Components}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService() + * @model + * @generated + */ +public interface DCAEService extends NamedEntity { + /** + * Returns the value of the 'Service Id' attribute. + * + *

    + * If the meaning of the 'Service Id' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Service Id' 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 Service Id}' attribute. + * + * + * @param value the new value of the 'Service Id' attribute. + * @see #getServiceId() + * @generated + */ + void setServiceId(String value); + + /** + * Returns the value of the 'Self Link' containment reference. + * + * + * + * Link.title is serviceId + * + * @return the value of the 'Self Link' 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 Self Link}' containment reference. + * + * + * @param value the new value of the 'Self Link' containment reference. + * @see #getSelfLink() + * @generated + */ + void setSelfLink(Link value); + + /** + * Returns the value of the 'Created1' attribute. + * + *

    + * If the meaning of the 'Created1' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Created1' 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 Created1}' attribute. + * + * + * @param value the new value of the 'Created1' attribute. + * @see #getCreated1() + * @generated + */ + void setCreated1(Date value); + + /** + * Returns the value of the 'Modified' attribute. + * + *

    + * If the meaning of the 'Modified' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Modified' 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 Modified}' attribute. + * + * + * @param value the new value of the 'Modified' attribute. + * @see #getModified() + * @generated + */ + void setModified(Date value); + + /** + * Returns the value of the 'Type Link' containment reference. + * + * + * + * Link.title is typeId + * + * @return the value of the 'Type Link' 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 Type Link}' containment reference. + * + * + * @param value the new value of the 'Type Link' containment reference. + * @see #getTypeLink() + * @generated + */ + void setTypeLink(Link value); + + /** + * Returns the value of the 'Vnf Id' attribute. + * + *

    + * If the meaning of the 'Vnf Id' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Vnf Id' 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 Vnf Id}' attribute. + * + * + * @param value the new value of the 'Vnf Id' attribute. + * @see #getVnfId() + * @generated + */ + void setVnfId(String value); + + /** + * Returns the value of the 'Vnf Link' containment reference. + * + * + * + * Link.title is vnfId + * + * @return the value of the 'Vnf Link' 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 Vnf Link}' containment reference. + * + * + * @param value the new value of the 'Vnf Link' containment reference. + * @see #getVnfLink() + * @generated + */ + void setVnfLink(Link value); + + /** + * Returns the value of the 'Vnf Type' attribute. + * + *

    + * If the meaning of the 'Vnf Type' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Vnf Type' 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 Vnf Type}' attribute. + * + * + * @param value the new value of the 'Vnf Type' attribute. + * @see #getVnfType() + * @generated + */ + void setVnfType(String value); + + /** + * Returns the value of the 'Vnf Location' attribute. + * + * + * + * Location information of the associated VNF + * + * @return the value of the 'Vnf Location' 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 Vnf Location}' attribute. + * + * + * @param value the new value of the 'Vnf Location' attribute. + * @see #getVnfLocation() + * @generated + */ + void setVnfLocation(String value); + + /** + * Returns the value of the 'Deployment Ref' attribute. + * + * + * + * Reference to a Cloudify deployment + * + * @return the value of the 'Deployment Ref' 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 Deployment Ref}' attribute. + * + * + * @param value the new value of the 'Deployment Ref' attribute. + * @see #getDeploymentRef() + * @generated + */ + void setDeploymentRef(String value); + + /** + * Returns the value of the 'Components' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent}. + * + *

    + * If the meaning of the 'Components' containment reference list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Components' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEService_Components() + * @model containment="true" + * @generated + */ + EList 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; + +/** + * + * A representation of the model object 'DCAE Service Component'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentId Component Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentLink Component Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getCreated1 Created1}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getModified Modified}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentType Component Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getComponentSource Component Source}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getStatus Status}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getLocation Location}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponent#getShareable Shareable}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponent() + * @model + * @generated + */ +public interface DCAEServiceComponent extends NamedEntity { + /** + * Returns the value of the 'Component Id' attribute. + * + * + * + * The id format is unique to the source + * + * @return the value of the 'Component Id' 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 Component Id}' attribute. + * + * + * @param value the new value of the 'Component Id' attribute. + * @see #getComponentId() + * @generated + */ + void setComponentId(String value); + + /** + * Returns the value of the 'Component Link' containment reference. + * + * + * + * Link to the underlying resource of this component + * + * @return the value of the 'Component Link' 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 Component Link}' containment reference. + * + * + * @param value the new value of the 'Component Link' containment reference. + * @see #getComponentLink() + * @generated + */ + void setComponentLink(Link value); + + /** + * Returns the value of the 'Created1' attribute. + * + *

    + * If the meaning of the 'Created1' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Created1' 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 Created1}' attribute. + * + * + * @param value the new value of the 'Created1' attribute. + * @see #getCreated1() + * @generated + */ + void setCreated1(Date value); + + /** + * Returns the value of the 'Modified' attribute. + * + *

    + * If the meaning of the 'Modified' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Modified' 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 Modified}' attribute. + * + * + * @param value the new value of the 'Modified' attribute. + * @see #getModified() + * @generated + */ + void setModified(Date value); + + /** + * Returns the value of the 'Component Type' attribute. + * + *

    + * If the meaning of the 'Component Type' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Component Type' 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 Component Type}' attribute. + * + * + * @param value the new value of the 'Component Type' attribute. + * @see #getComponentType() + * @generated + */ + void setComponentType(String value); + + /** + * Returns the value of the 'Component Source' attribute. + * + * + * + * Specifies the name of the underying source service that is responsible for this components + * + * @return the value of the 'Component Source' 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 Component Source}' attribute. + * + * + * @param value the new value of the 'Component Source' attribute. + * @see #getComponentSource() + * @generated + */ + void setComponentSource(String value); + + /** + * Returns the value of the 'Status' attribute. + * + *

    + * If the meaning of the 'Status' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Status' 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 Status}' attribute. + * + * + * @param value the new value of the 'Status' attribute. + * @see #getStatus() + * @generated + */ + void setStatus(String value); + + /** + * Returns the value of the 'Location' attribute. + * + * + * + * Location information of the component + * + * @return the value of the 'Location' 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 Location}' attribute. + * + * + * @param value the new value of the 'Location' attribute. + * @see #getLocation() + * @generated + */ + void setLocation(String value); + + /** + * Returns the value of the 'Shareable' attribute. + * + * + * + * Used to determine if this component can be shared amongst different DCAE services + * + * @return the value of the 'Shareable' 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 Shareable}' attribute. + * + * + * @param value the new value of the 'Shareable' 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; + +/** + * + * A representation of the model object 'DCAE Service Component Request'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentId Component Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentType Component Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getComponentSource Component Source}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest#getShareable Shareable}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceComponentRequest() + * @model + * @generated + */ +public interface DCAEServiceComponentRequest extends EObject { + /** + * Returns the value of the 'Component Id' attribute. + * + * + * + * The id format is unique to the source + * + * @return the value of the 'Component Id' 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 Component Id}' attribute. + * + * + * @param value the new value of the 'Component Id' attribute. + * @see #getComponentId() + * @generated + */ + void setComponentId(String value); + + /** + * Returns the value of the 'Component Type' attribute. + * + *

    + * If the meaning of the 'Component Type' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Component Type' 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 Component Type}' attribute. + * + * + * @param value the new value of the 'Component Type' attribute. + * @see #getComponentType() + * @generated + */ + void setComponentType(String value); + + /** + * Returns the value of the 'Component Source' attribute. + * + * + * + * Specifies the name of the underying source service that is responsible for this components + * + * @return the value of the 'Component Source' 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 Component Source}' attribute. + * + * + * @param value the new value of the 'Component Source' attribute. + * @see #getComponentSource() + * @generated + */ + void setComponentSource(String value); + + /** + * Returns the value of the 'Shareable' attribute. + * + * + * + * Used to determine if this component can be shared amongst different DCAE services + * + * @return the value of the 'Shareable' 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 Shareable}' attribute. + * + * + * @param value the new value of the 'Shareable' 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; + +/** + * + * A representation of the model object 'DCAE Service Group By Results'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyName Property Name}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResults#getPropertyValues Property Values}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResults() + * @model + * @generated + */ +public interface DCAEServiceGroupByResults extends EObject { + /** + * Returns the value of the 'Property Name' attribute. + * + * + * + * Property name of DCAE service that the group by operation was performed on + * + * @return the value of the 'Property Name' 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 Property Name}' attribute. + * + * + * @param value the new value of the 'Property Name' attribute. + * @see #getPropertyName() + * @generated + */ + void setPropertyName(String value); + + /** + * Returns the value of the 'Property Values' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues}. + * + *

    + * If the meaning of the 'Property Values' containment reference list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Property Values' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResults_PropertyValues() + * @model containment="true" + * @generated + */ + EList 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; + +/** + * + * A representation of the model object 'DCAE Service Group By Results Property Values'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getCount Count}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getPropertyValue Property Value}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceGroupByResultsPropertyValues#getDcaeServiceQueryLink Dcae Service Query Link}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceGroupByResultsPropertyValues() + * @model + * @generated + */ +public interface DCAEServiceGroupByResultsPropertyValues extends EObject { + /** + * Returns the value of the 'Count' attribute. + * + *

    + * If the meaning of the 'Count' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Count' 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 Count}' attribute. + * + * + * @param value the new value of the 'Count' attribute. + * @see #getCount() + * @generated + */ + void setCount(Integer value); + + /** + * Returns the value of the 'Property Value' attribute. + * + *

    + * If the meaning of the 'Property Value' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Property Value' 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 Property Value}' attribute. + * + * + * @param value the new value of the 'Property Value' attribute. + * @see #getPropertyValue() + * @generated + */ + void setPropertyValue(String value); + + /** + * Returns the value of the 'Dcae Service Query Link' containment reference. + * + * + * + * Link.title is the DCAE service property value. Following this link will provide a list of DCAE services that all have this property value. + * + * @return the value of the 'Dcae Service Query Link' 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 Dcae Service Query Link}' containment reference. + * + * + * @param value the new value of the 'Dcae Service Query Link' 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; + +/** + * + * A representation of the model object 'DCAE Service Request'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getTypeId Type Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfId Vnf Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfType Vnf Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getVnfLocation Vnf Location}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getDeploymentRef Deployment Ref}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceRequest#getComponents Components}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest() + * @model + * @generated + */ +public interface DCAEServiceRequest extends EObject { + /** + * Returns the value of the 'Type Id' attribute. + * + * + * + * Id of the associated DCAE service type + * + * @return the value of the 'Type Id' 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 Type Id}' attribute. + * + * + * @param value the new value of the 'Type Id' attribute. + * @see #getTypeId() + * @generated + */ + void setTypeId(String value); + + /** + * Returns the value of the 'Vnf Id' attribute. + * + * + * + * Id of the associated VNF that this service is monitoring + * + * @return the value of the 'Vnf Id' 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 Vnf Id}' attribute. + * + * + * @param value the new value of the 'Vnf Id' attribute. + * @see #getVnfId() + * @generated + */ + void setVnfId(String value); + + /** + * Returns the value of the 'Vnf Type' attribute. + * + * + * + * The type of the associated VNF that this service is monitoring + * + * @return the value of the 'Vnf Type' 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 Vnf Type}' attribute. + * + * + * @param value the new value of the 'Vnf Type' attribute. + * @see #getVnfType() + * @generated + */ + void setVnfType(String value); + + /** + * Returns the value of the 'Vnf Location' attribute. + * + * + * + * Location identifier of the associated VNF that this service is monitoring + * + * @return the value of the 'Vnf Location' 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 Vnf Location}' attribute. + * + * + * @param value the new value of the 'Vnf Location' attribute. + * @see #getVnfLocation() + * @generated + */ + void setVnfLocation(String value); + + /** + * Returns the value of the 'Deployment Ref' attribute. + * + * + * + * Reference to a Cloudify deployment + * + * @return the value of the 'Deployment Ref' 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 Deployment Ref}' attribute. + * + * + * @param value the new value of the 'Deployment Ref' attribute. + * @see #getDeploymentRef() + * @generated + */ + void setDeploymentRef(String value); + + /** + * Returns the value of the 'Components' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceComponentRequest}. + * + * + * + * List of DCAE service components that this service is composed of + * + * @return the value of the 'Components' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceRequest_Components() + * @model containment="true" + * @generated + */ + EList 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; + +/** + * + * A representation of the model object 'DCAE Service Type'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getOwner Owner}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeName Type Name}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeVersion Type Version}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getBlueprintTemplate Blueprint Template}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceIds Service Ids}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getVnfTypes Vnf Types}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getServiceLocations Service Locations}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceId Asdc Service Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcResourceId Asdc Resource Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getAsdcServiceURL Asdc Service URL}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getTypeId Type Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getSelfLink Self Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getCreated1 Created1}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceType#getDeactivated Deactivated}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType() + * @model + * @generated + */ +public interface DCAEServiceType extends NamedEntity { + /** + * Returns the value of the 'Owner' attribute. + * + *

    + * If the meaning of the 'Owner' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Owner' 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 Owner}' attribute. + * + * + * @param value the new value of the 'Owner' attribute. + * @see #getOwner() + * @generated + */ + void setOwner(String value); + + /** + * Returns the value of the 'Type Name' attribute. + * + * + * + * Descriptive name for this DCAE service type + * + * @return the value of the 'Type Name' 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 Type Name}' attribute. + * + * + * @param value the new value of the 'Type Name' attribute. + * @see #getTypeName() + * @generated + */ + void setTypeName(String value); + + /** + * Returns the value of the 'Type Version' attribute. + * + * + * + * Version number for this DCAE service type + * + * @return the value of the 'Type Version' 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 Type Version}' attribute. + * + * + * @param value the new value of the 'Type Version' attribute. + * @see #getTypeVersion() + * @generated + */ + void setTypeVersion(Integer value); + + /** + * Returns the value of the 'Blueprint Template' attribute. + * + * + * + * String representation of a Cloudify blueprint with unbound variables + * + * @return the value of the 'Blueprint Template' 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 Blueprint Template}' attribute. + * + * + * @param value the new value of the 'Blueprint Template' attribute. + * @see #getBlueprintTemplate() + * @generated + */ + void setBlueprintTemplate(String value); + + /** + * Returns the value of the 'Service Ids' attribute list. + * The list contents are of type {@link java.lang.String}. + * + * + * + * 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. + * + * @return the value of the 'Service Ids' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_ServiceIds() + * @model unique="false" + * @generated + */ + EList getServiceIds(); + + /** + * Returns the value of the 'Vnf Types' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

    + * If the meaning of the 'Vnf Types' attribute list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Vnf Types' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_VnfTypes() + * @model unique="false" + * @generated + */ + EList getVnfTypes(); + + /** + * Returns the value of the 'Service Locations' attribute list. + * The list contents are of type {@link java.lang.String}. + * + * + * + * 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. + * + * @return the value of the 'Service Locations' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceType_ServiceLocations() + * @model unique="false" + * @generated + */ + EList getServiceLocations(); + + /** + * Returns the value of the 'Asdc Service Id' attribute. + * + * + * + * Id of service this DCAE service type is associated with. Value source is from ASDC's notification event's field `serviceInvariantUUID`. + * + * @return the value of the 'Asdc Service Id' 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 Asdc Service Id}' attribute. + * + * + * @param value the new value of the 'Asdc Service Id' attribute. + * @see #getAsdcServiceId() + * @generated + */ + void setAsdcServiceId(String value); + + /** + * Returns the value of the 'Asdc Resource Id' attribute. + * + * + * + * Id of vf/vnf instance this DCAE service type is associated with. Value source is from ASDC's notification event's field `resourceInvariantUUID`. + * + * @return the value of the 'Asdc Resource Id' 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 Asdc Resource Id}' attribute. + * + * + * @param value the new value of the 'Asdc Resource Id' attribute. + * @see #getAsdcResourceId() + * @generated + */ + void setAsdcResourceId(String value); + + /** + * Returns the value of the 'Asdc Service URL' attribute. + * + * + * + * URL to the ASDC service model + * + * @return the value of the 'Asdc Service URL' 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 Asdc Service URL}' attribute. + * + * + * @param value the new value of the 'Asdc Service URL' attribute. + * @see #getAsdcServiceURL() + * @generated + */ + void setAsdcServiceURL(String value); + + /** + * Returns the value of the 'Type Id' attribute. + * + * + * + * Unique identifier for this DCAE service type + * + * @return the value of the 'Type Id' 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 Type Id}' attribute. + * + * + * @param value the new value of the 'Type Id' attribute. + * @see #getTypeId() + * @generated + */ + void setTypeId(String value); + + /** + * Returns the value of the 'Self Link' containment reference. + * + * + * + * Link to self where the Link.title is typeName + * + * @return the value of the 'Self Link' 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 Self Link}' containment reference. + * + * + * @param value the new value of the 'Self Link' containment reference. + * @see #getSelfLink() + * @generated + */ + void setSelfLink(Link value); + + /** + * Returns the value of the 'Created1' attribute. + * + * + * + * Created timestamp for this DCAE service type in epoch time + * + * @return the value of the 'Created1' 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 Created1}' attribute. + * + * + * @param value the new value of the 'Created1' attribute. + * @see #getCreated1() + * @generated + */ + void setCreated1(Date value); + + /** + * Returns the value of the 'Deactivated' attribute. + * + * + * + * Deactivated timestamp for this DCAE service type in epoch time + * + * @return the value of the 'Deactivated' 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 Deactivated}' attribute. + * + * + * @param value the new value of the 'Deactivated' 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; + +/** + * + * A representation of the model object 'DCAE Service Type Request'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getOwner Owner}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeName Type Name}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getTypeVersion Type Version}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getBlueprintTemplate Blueprint Template}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceIds Service Ids}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getVnfTypes Vnf Types}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getServiceLocations Service Locations}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceId Asdc Service Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcResourceId Asdc Resource Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DCAEServiceTypeRequest#getAsdcServiceURL Asdc Service URL}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest() + * @model + * @generated + */ +public interface DCAEServiceTypeRequest extends EObject { + /** + * Returns the value of the 'Owner' attribute. + * + *

    + * If the meaning of the 'Owner' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Owner' 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 Owner}' attribute. + * + * + * @param value the new value of the 'Owner' attribute. + * @see #getOwner() + * @generated + */ + void setOwner(String value); + + /** + * Returns the value of the 'Type Name' attribute. + * + * + * + * Descriptive name for this DCAE service type + * + * @return the value of the 'Type Name' 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 Type Name}' attribute. + * + * + * @param value the new value of the 'Type Name' attribute. + * @see #getTypeName() + * @generated + */ + void setTypeName(String value); + + /** + * Returns the value of the 'Type Version' attribute. + * + * + * + * Version number for this DCAE service type + * + * @return the value of the 'Type Version' 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 Type Version}' attribute. + * + * + * @param value the new value of the 'Type Version' attribute. + * @see #getTypeVersion() + * @generated + */ + void setTypeVersion(Integer value); + + /** + * Returns the value of the 'Blueprint Template' attribute. + * + * + * + * String representation of a Cloudify blueprint with unbound variables + * + * @return the value of the 'Blueprint Template' 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 Blueprint Template}' attribute. + * + * + * @param value the new value of the 'Blueprint Template' attribute. + * @see #getBlueprintTemplate() + * @generated + */ + void setBlueprintTemplate(String value); + + /** + * Returns the value of the 'Service Ids' attribute list. + * The list contents are of type {@link java.lang.String}. + * + * + * + * 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. + * + * @return the value of the 'Service Ids' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_ServiceIds() + * @model unique="false" + * @generated + */ + EList getServiceIds(); + + /** + * Returns the value of the 'Vnf Types' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

    + * If the meaning of the 'Vnf Types' attribute list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Vnf Types' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_VnfTypes() + * @model unique="false" + * @generated + */ + EList getVnfTypes(); + + /** + * Returns the value of the 'Service Locations' attribute list. + * The list contents are of type {@link java.lang.String}. + * + * + * + * 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. + * + * @return the value of the 'Service Locations' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDCAEServiceTypeRequest_ServiceLocations() + * @model unique="false" + * @generated + */ + EList getServiceLocations(); + + /** + * Returns the value of the 'Asdc Service Id' attribute. + * + * + * + * Id of service this DCAE service type is associated with. Value source is from ASDC's notification event's field `serviceInvariantUUID`. + * + * @return the value of the 'Asdc Service Id' 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 Asdc Service Id}' attribute. + * + * + * @param value the new value of the 'Asdc Service Id' attribute. + * @see #getAsdcServiceId() + * @generated + */ + void setAsdcServiceId(String value); + + /** + * Returns the value of the 'Asdc Resource Id' attribute. + * + * + * + * Id of vf/vnf instance this DCAE service type is associated with. Value source is from ASDC's notification event's field `resourceInvariantUUID`. + * + * @return the value of the 'Asdc Resource Id' 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 Asdc Resource Id}' attribute. + * + * + * @param value the new value of the 'Asdc Resource Id' attribute. + * @see #getAsdcResourceId() + * @generated + */ + void setAsdcResourceId(String value); + + /** + * Returns the value of the 'Asdc Service URL' attribute. + * + * + * + * URL to the ASDC service model + * + * @return the value of the 'Asdc Service URL' 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 Asdc Service URL}' attribute. + * + * + * @param value the new value of the 'Asdc Service URL' 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; + +/** + * + * A representation of the model object 'Dcae Inventory'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeInventory#getServiceTypes Service Types}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeInventory#getServices Services}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeInventory() + * @model + * @generated + */ +public interface DcaeInventory extends EObject { + /** + * Returns the value of the 'Service Types' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceType}. + * + *

    + * If the meaning of the 'Service Types' containment reference list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Service Types' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeInventory_ServiceTypes() + * @model containment="true" + * @generated + */ + EList getServiceTypes(); + + /** + * Returns the value of the 'Services' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEService}. + * + *

    + * If the meaning of the 'Services' containment reference list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Services' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeInventory_Services() + * @model containment="true" + * @generated + */ + EList getServices(); + + /** + * + * + * @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); + + /** + * + * + * @model unique="false" typeIdUnique="false" typeIdRequired="true" + * @generated + */ + ApiResponseMessage deleteDcaeServiceTypesType(String typeId); + + /** + * + * + * @model unique="false" typeIdUnique="false" + * @generated + */ + DCAEServiceType getDcaeServiceTypesType(String typeId); + + /** + * + * + * @model unique="false" bodyUnique="false" + * @generated + */ + DCAEServiceType createDcaeServiceTypesTypeName(DCAEServiceTypeRequest body); + + /** + * + * + * @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); + + /** + * + * + * @model unique="false" propertyNameUnique="false" + * @generated + */ + DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(String propertyName); + + /** + * + * + * @model serviceIdUnique="false" + * @generated + */ + void deleteDcaeServicesService(String serviceId); + + /** + * + * + * @model unique="false" serviceIdUnique="false" + * @generated + */ + DCAEService getDcaeServicesService(String serviceId); + + /** + * + * + * @model unique="false" serviceIdUnique="false" bodyUnique="false" + * @generated + */ + DCAEService createDcaeServicesService(String serviceId, DCAEServiceRequest body); + + /** + * + * + * @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; + +/** + * + * A representation of the model object 'Inline Response2001'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getLinks Links}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getTotalCount Total Count}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceResults#getItems Items}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceResults() + * @model + * @generated + */ +public interface DcaeServiceResults extends EObject { + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.Link}. + * + *

    + * If the meaning of the 'Links' containment reference isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceResults_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Total Count' attribute. + * + *

    + * If the meaning of the 'Total Count' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Total Count' 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 Total Count}' attribute. + * + * + * @param value the new value of the 'Total Count' attribute. + * @see #getTotalCount() + * @generated + */ + void setTotalCount(Integer value); + + /** + * Returns the value of the 'Items' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEService}. + * + *

    + * If the meaning of the 'Items' containment reference list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Items' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceResults_Items() + * @model containment="true" + * @generated + */ + EList 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; + +/** + * + * A representation of the model object 'Inline Response200 Links'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResultLinks#getPreviousLink Previous Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResultLinks#getNextLink Next Link}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResultLinks() + * @model + * @generated + */ +public interface DcaeServiceTypeResultLinks extends EObject { + /** + * Returns the value of the 'Previous Link' containment reference. + * + *

    + * If the meaning of the 'Previous Link' containment reference isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Previous Link' 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 Previous Link}' containment reference. + * + * + * @param value the new value of the 'Previous Link' containment reference. + * @see #getPreviousLink() + * @generated + */ + void setPreviousLink(Link value); + + /** + * Returns the value of the 'Next Link' containment reference. + * + *

    + * If the meaning of the 'Next Link' containment reference isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Next Link' 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 Next Link}' containment reference. + * + * + * @param value the new value of the 'Next Link' 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; + +/** + * + * A representation of the model object 'Inline Response200'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getLinks Links}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getTotalCount Total Count}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.DcaeServiceTypeResults#getItems Items}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResults() + * @model + * @generated + */ +public interface DcaeServiceTypeResults extends EObject { + /** + * Returns the value of the 'Links' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.Link}. + * + *

    + * If the meaning of the 'Links' containment reference isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Links' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResults_Links() + * @model containment="true" + * @generated + */ + EList getLinks(); + + /** + * Returns the value of the 'Total Count' attribute. + * + *

    + * If the meaning of the 'Total Count' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Total Count' 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 Total Count}' attribute. + * + * + * @param value the new value of the 'Total Count' attribute. + * @see #getTotalCount() + * @generated + */ + void setTotalCount(Integer value); + + /** + * Returns the value of the 'Items' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.DCAEServiceType}. + * + *

    + * If the meaning of the 'Items' containment reference list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Items' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getDcaeServiceTypeResults_Items() + * @model containment="true" + * @generated + */ + EList 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; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage + * @generated + */ +public interface InventoryFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * + * @generated + */ + InventoryFactory eINSTANCE = org.openecomp.dcae.controller.inventory.impl.InventoryFactoryImpl.init(); + + /** + * Returns a new object of class 'Dcae Inventory'. + * + * + * @return a new object of class 'Dcae Inventory'. + * @generated + */ + DcaeInventory createDcaeInventory(); + + /** + * Returns a new object of class 'Api Response Message'. + * + * + * @return a new object of class 'Api Response Message'. + * @generated + */ + ApiResponseMessage createApiResponseMessage(); + + /** + * Returns a new object of class 'DCAE Service Component'. + * + * + * @return a new object of class 'DCAE Service Component'. + * @generated + */ + DCAEServiceComponent createDCAEServiceComponent(); + + /** + * Returns a new object of class 'DCAE Service Component Request'. + * + * + * @return a new object of class 'DCAE Service Component Request'. + * @generated + */ + DCAEServiceComponentRequest createDCAEServiceComponentRequest(); + + /** + * Returns a new object of class 'DCAE Service'. + * + * + * @return a new object of class 'DCAE Service'. + * @generated + */ + DCAEService createDCAEService(); + + /** + * Returns a new object of class 'DCAE Service Group By Results'. + * + * + * @return a new object of class 'DCAE Service Group By Results'. + * @generated + */ + DCAEServiceGroupByResults createDCAEServiceGroupByResults(); + + /** + * Returns a new object of class 'DCAE Service Group By Results Property Values'. + * + * + * @return a new object of class 'DCAE Service Group By Results Property Values'. + * @generated + */ + DCAEServiceGroupByResultsPropertyValues createDCAEServiceGroupByResultsPropertyValues(); + + /** + * Returns a new object of class 'DCAE Service Request'. + * + * + * @return a new object of class 'DCAE Service Request'. + * @generated + */ + DCAEServiceRequest createDCAEServiceRequest(); + + /** + * Returns a new object of class 'DCAE Service Type'. + * + * + * @return a new object of class 'DCAE Service Type'. + * @generated + */ + DCAEServiceType createDCAEServiceType(); + + /** + * Returns a new object of class 'DCAE Service Type Request'. + * + * + * @return a new object of class 'DCAE Service Type Request'. + * @generated + */ + DCAEServiceTypeRequest createDCAEServiceTypeRequest(); + + /** + * Returns a new object of class 'Dcae Service Results'. + * + * + * @return a new object of class 'Dcae Service Results'. + * @generated + */ + DcaeServiceResults createDcaeServiceResults(); + + /** + * Returns a new object of class 'Dcae Service Type Results'. + * + * + * @return a new object of class 'Dcae Service Type Results'. + * @generated + */ + DcaeServiceTypeResults createDcaeServiceTypeResults(); + + /** + * Returns a new object of class 'Link'. + * + * + * @return a new object of class 'Link'. + * @generated + */ + Link createLink(); + + /** + * Returns a new object of class 'Parameter'. + * + * + * @return a new object of class 'Parameter'. + * @generated + */ + Parameter createParameter(); + + /** + * Returns a new object of class 'Uri Builder'. + * + * + * @return a new object of class 'Uri Builder'. + * @generated + */ + UriBuilder createUriBuilder(); + + /** + * Returns the package supported by this factory. + * + * + * @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; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
      + *
    • each class,
    • + *
    • each feature of each class,
    • + *
    • each operation of each class,
    • + *
    • each enum,
    • + *
    • and each data type
    • + *
    + * + * + * - + * ============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============================================ + * + * @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. + * + * + * @generated + */ + String eNAME = "inventory"; + + /** + * The package namespace URI. + * + * + * @generated + */ + String eNS_URI = "org.openecomp.dcae.controller.inventory"; + + /** + * The package namespace name. + * + * + * @generated + */ + String eNS_PREFIX = "inventory"; + + /** + * The singleton instance of the package. + * + * + * @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 Dcae Inventory}' class. + * + * + * @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 'Service Types' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY__SERVICE_TYPES = 0; + + /** + * The feature id for the 'Services' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY__SERVICES = 1; + + /** + * The number of structural features of the 'Dcae Inventory' class. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY_FEATURE_COUNT = 2; + + /** + * The operation id for the 'Get Dcae Service Types' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES__STRING_BOOLEAN_BOOLEAN_STRING_STRING_STRING_STRING_STRING_INTEGER = 0; + + /** + * The operation id for the 'Delete Dcae Service Types Type' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___DELETE_DCAE_SERVICE_TYPES_TYPE__STRING = 1; + + /** + * The operation id for the 'Get Dcae Service Types Type' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES_TYPE__STRING = 2; + + /** + * The operation id for the 'Create Dcae Service Types Type Name' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___CREATE_DCAE_SERVICE_TYPES_TYPE_NAME__DCAESERVICETYPEREQUEST = 3; + + /** + * The operation id for the 'Get Dcae Services' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICES__STRING_STRING_STRING_STRING_STRING_BOOLEAN_STRING_INTEGER = 4; + + /** + * The operation id for the 'Get Dcae Services Groupby Property Name' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICES_GROUPBY_PROPERTY_NAME__STRING = 5; + + /** + * The operation id for the 'Delete Dcae Services Service' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___DELETE_DCAE_SERVICES_SERVICE__STRING = 6; + + /** + * The operation id for the 'Get Dcae Services Service' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___GET_DCAE_SERVICES_SERVICE__STRING = 7; + + /** + * The operation id for the 'Create Dcae Services Service' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___CREATE_DCAE_SERVICES_SERVICE__STRING_DCAESERVICEREQUEST = 8; + + /** + * The operation id for the 'Poll' operation. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY___POLL = 9; + + /** + * The number of operations of the 'Dcae Inventory' class. + * + * + * @generated + * @ordered + */ + int DCAE_INVENTORY_OPERATION_COUNT = 10; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl Api Response Message}' class. + * + * + * @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 'Code' attribute. + * + * + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE__CODE = 0; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE__TYPE = 1; + + /** + * The feature id for the 'Message' attribute. + * + * + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE__MESSAGE = 2; + + /** + * The number of structural features of the 'Api Response Message' class. + * + * + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Api Response Message' class. + * + * + * @generated + * @ordered + */ + int API_RESPONSE_MESSAGE_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl DCAE Service Component}' class. + * + * + * @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 'Name' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Component Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Component Link' containment reference. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Created1' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__CREATED1 = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Modified' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__MODIFIED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Component Type' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Component Source' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Status' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__STATUS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Location' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__LOCATION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Shareable' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT__SHAREABLE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of structural features of the 'DCAE Service Component' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The number of operations of the 'DCAE Service Component' class. + * + * + * @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 DCAE Service Component Request}' class. + * + * + * @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 'Component Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID = 0; + + /** + * The feature id for the 'Component Type' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE = 1; + + /** + * The feature id for the 'Component Source' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE = 2; + + /** + * The feature id for the 'Shareable' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE = 3; + + /** + * The number of structural features of the 'DCAE Service Component Request' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST_FEATURE_COUNT = 4; + + /** + * The number of operations of the 'DCAE Service Component Request' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_COMPONENT_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl DCAE Service}' class. + * + * + * @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 'Name' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Service Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__SERVICE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Self Link' containment reference. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__SELF_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Created1' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__CREATED1 = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Modified' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__MODIFIED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Type Link' containment reference. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__TYPE_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Vnf Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Vnf Link' containment reference. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Vnf Type' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Vnf Location' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__VNF_LOCATION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Deployment Ref' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__DEPLOYMENT_REF = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Components' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE__COMPONENTS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The number of structural features of the 'DCAE Service' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The number of operations of the 'DCAE Service' class. + * + * + * @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 DCAE Service Group By Results}' class. + * + * + * @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 'Property Name' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME = 0; + + /** + * The feature id for the 'Property Values' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES = 1; + + /** + * The number of structural features of the 'DCAE Service Group By Results' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_FEATURE_COUNT = 2; + + /** + * The number of operations of the 'DCAE Service Group By Results' class. + * + * + * @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 DCAE Service Group By Results Property Values}' class. + * + * + * @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 'Count' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT = 0; + + /** + * The feature id for the 'Property Value' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE = 1; + + /** + * The feature id for the 'Dcae Service Query Link' containment reference. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__DCAE_SERVICE_QUERY_LINK = 2; + + /** + * The number of structural features of the 'DCAE Service Group By Results Property Values' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'DCAE Service Group By Results Property Values' class. + * + * + * @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 DCAE Service Request}' class. + * + * + * @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 'Type Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__TYPE_ID = 0; + + /** + * The feature id for the 'Vnf Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__VNF_ID = 1; + + /** + * The feature id for the 'Vnf Type' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__VNF_TYPE = 2; + + /** + * The feature id for the 'Vnf Location' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__VNF_LOCATION = 3; + + /** + * The feature id for the 'Deployment Ref' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__DEPLOYMENT_REF = 4; + + /** + * The feature id for the 'Components' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST__COMPONENTS = 5; + + /** + * The number of structural features of the 'DCAE Service Request' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST_FEATURE_COUNT = 6; + + /** + * The number of operations of the 'DCAE Service Request' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl DCAE Service Type}' class. + * + * + * @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 'Name' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Owner' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__OWNER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Type Name' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__TYPE_NAME = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Type Version' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__TYPE_VERSION = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Blueprint Template' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Service Ids' attribute list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__SERVICE_IDS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Vnf Types' attribute list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__VNF_TYPES = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Service Locations' attribute list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__SERVICE_LOCATIONS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Asdc Service Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__ASDC_SERVICE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Asdc Resource Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Asdc Service URL' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__ASDC_SERVICE_URL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Type Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__TYPE_ID = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Self Link' containment reference. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__SELF_LINK = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Created1' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__CREATED1 = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Deactivated' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE__DEACTIVATED = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 13; + + /** + * The number of structural features of the 'DCAE Service Type' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 14; + + /** + * The number of operations of the 'DCAE Service Type' class. + * + * + * @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 DCAE Service Type Request}' class. + * + * + * @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 'Owner' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__OWNER = 0; + + /** + * The feature id for the 'Type Name' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME = 1; + + /** + * The feature id for the 'Type Version' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION = 2; + + /** + * The feature id for the 'Blueprint Template' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE = 3; + + /** + * The feature id for the 'Service Ids' attribute list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS = 4; + + /** + * The feature id for the 'Vnf Types' attribute list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES = 5; + + /** + * The feature id for the 'Service Locations' attribute list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS = 6; + + /** + * The feature id for the 'Asdc Service Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID = 7; + + /** + * The feature id for the 'Asdc Resource Id' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID = 8; + + /** + * The feature id for the 'Asdc Service URL' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_URL = 9; + + /** + * The number of structural features of the 'DCAE Service Type Request' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST_FEATURE_COUNT = 10; + + /** + * The number of operations of the 'DCAE Service Type Request' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_REQUEST_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl Dcae Service Results}' class. + * + * + * @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 'Links' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS__LINKS = 0; + + /** + * The feature id for the 'Total Count' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS__TOTAL_COUNT = 1; + + /** + * The feature id for the 'Items' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS__ITEMS = 2; + + /** + * The number of structural features of the 'Dcae Service Results' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Dcae Service Results' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_RESULTS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl Dcae Service Type Results}' class. + * + * + * @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 'Links' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS__LINKS = 0; + + /** + * The feature id for the 'Total Count' attribute. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT = 1; + + /** + * The feature id for the 'Items' containment reference list. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS__ITEMS = 2; + + /** + * The number of structural features of the 'Dcae Service Type Results' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS_FEATURE_COUNT = 3; + + /** + * The number of operations of the 'Dcae Service Type Results' class. + * + * + * @generated + * @ordered + */ + int DCAE_SERVICE_TYPE_RESULTS_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl Link}' class. + * + * + * @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 'Name' attribute. + * + * + * @generated + * @ordered + */ + int LINK__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int LINK__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int LINK__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int LINK__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Params' containment reference list. + * + * + * @generated + * @ordered + */ + int LINK__PARAMS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Title' attribute. + * + * + * @generated + * @ordered + */ + int LINK__TITLE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Rel' attribute. + * + * + * @generated + * @ordered + */ + int LINK__REL = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Href' attribute. + * + * + * @generated + * @ordered + */ + int LINK__HREF = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Uri' attribute. + * + * + * @generated + * @ordered + */ + int LINK__URI = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Uri Builder' containment reference. + * + * + * @generated + * @ordered + */ + int LINK__URI_BUILDER = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Rels' attribute list. + * + * + * @generated + * @ordered + */ + int LINK__RELS = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + int LINK__TYPE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'Link' class. + * + * + * @generated + * @ordered + */ + int LINK_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 8; + + /** + * The number of operations of the 'Link' class. + * + * + * @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 Parameter}' class. + * + * + * @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 'Name' attribute. + * + * + * @generated + * @ordered + */ + int PARAMETER__NAME = CorePackage.NAMED_ENTITY__NAME; + + /** + * The feature id for the 'Last Polled' attribute. + * + * + * @generated + * @ordered + */ + int PARAMETER__LAST_POLLED = CorePackage.NAMED_ENTITY__LAST_POLLED; + + /** + * The feature id for the 'Last Changed' attribute. + * + * + * @generated + * @ordered + */ + int PARAMETER__LAST_CHANGED = CorePackage.NAMED_ENTITY__LAST_CHANGED; + + /** + * The feature id for the 'Created' attribute. + * + * + * @generated + * @ordered + */ + int PARAMETER__CREATED = CorePackage.NAMED_ENTITY__CREATED; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + int PARAMETER__VALUE = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Parameter' class. + * + * + * @generated + * @ordered + */ + int PARAMETER_FEATURE_COUNT = CorePackage.NAMED_ENTITY_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Parameter' class. + * + * + * @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 Uri Builder}' class. + * + * + * @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 'Uri Builder' class. + * + * + * @generated + * @ordered + */ + int URI_BUILDER_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Uri Builder' class. + * + * + * @generated + * @ordered + */ + int URI_BUILDER_OPERATION_COUNT = 0; + + + /** + * Returns the meta object for class '{@link org.openecomp.dcae.controller.inventory.DcaeInventory Dcae Inventory}'. + * + * + * @return the meta object for class 'Dcae Inventory'. + * @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 Service Types}'. + * + * + * @return the meta object for the containment reference list 'Service Types'. + * @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 Services}'. + * + * + * @return the meta object for the containment reference list 'Services'. + * @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) Get Dcae Service Types}' operation. + * + * + * @return the meta object for the 'Get Dcae Service Types' 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) Delete Dcae Service Types Type}' operation. + * + * + * @return the meta object for the 'Delete Dcae Service Types Type' 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) Get Dcae Service Types Type}' operation. + * + * + * @return the meta object for the 'Get Dcae Service Types Type' 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) Create Dcae Service Types Type Name}' operation. + * + * + * @return the meta object for the 'Create Dcae Service Types Type Name' 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) Get Dcae Services}' operation. + * + * + * @return the meta object for the 'Get Dcae Services' 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) Get Dcae Services Groupby Property Name}' operation. + * + * + * @return the meta object for the 'Get Dcae Services Groupby Property Name' 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) Delete Dcae Services Service}' operation. + * + * + * @return the meta object for the 'Delete Dcae Services Service' 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) Get Dcae Services Service}' operation. + * + * + * @return the meta object for the 'Get Dcae Services Service' 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) Create Dcae Services Service}' operation. + * + * + * @return the meta object for the 'Create Dcae Services Service' 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() Poll}' operation. + * + * + * @return the meta object for the 'Poll' 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 Api Response Message}'. + * + * + * @return the meta object for class 'Api Response Message'. + * @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 Code}'. + * + * + * @return the meta object for the attribute 'Code'. + * @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 Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @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 Message}'. + * + * + * @return the meta object for the attribute 'Message'. + * @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 DCAE Service Component}'. + * + * + * @return the meta object for class 'DCAE Service Component'. + * @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 Component Id}'. + * + * + * @return the meta object for the attribute 'Component Id'. + * @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 Component Link}'. + * + * + * @return the meta object for the containment reference 'Component Link'. + * @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 Created1}'. + * + * + * @return the meta object for the attribute 'Created1'. + * @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 Modified}'. + * + * + * @return the meta object for the attribute 'Modified'. + * @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 Component Type}'. + * + * + * @return the meta object for the attribute 'Component Type'. + * @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 Component Source}'. + * + * + * @return the meta object for the attribute 'Component Source'. + * @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 Status}'. + * + * + * @return the meta object for the attribute 'Status'. + * @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 Location}'. + * + * + * @return the meta object for the attribute 'Location'. + * @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 Shareable}'. + * + * + * @return the meta object for the attribute 'Shareable'. + * @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 DCAE Service Component Request}'. + * + * + * @return the meta object for class 'DCAE Service Component Request'. + * @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 Component Id}'. + * + * + * @return the meta object for the attribute 'Component Id'. + * @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 Component Type}'. + * + * + * @return the meta object for the attribute 'Component Type'. + * @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 Component Source}'. + * + * + * @return the meta object for the attribute 'Component Source'. + * @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 Shareable}'. + * + * + * @return the meta object for the attribute 'Shareable'. + * @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 DCAE Service}'. + * + * + * @return the meta object for class 'DCAE Service'. + * @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 Service Id}'. + * + * + * @return the meta object for the attribute 'Service Id'. + * @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 Self Link}'. + * + * + * @return the meta object for the containment reference 'Self Link'. + * @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 Created1}'. + * + * + * @return the meta object for the attribute 'Created1'. + * @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 Modified}'. + * + * + * @return the meta object for the attribute 'Modified'. + * @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 Type Link}'. + * + * + * @return the meta object for the containment reference 'Type Link'. + * @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 Vnf Id}'. + * + * + * @return the meta object for the attribute 'Vnf Id'. + * @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 Vnf Link}'. + * + * + * @return the meta object for the containment reference 'Vnf Link'. + * @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 Vnf Type}'. + * + * + * @return the meta object for the attribute 'Vnf Type'. + * @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 Vnf Location}'. + * + * + * @return the meta object for the attribute 'Vnf Location'. + * @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 Deployment Ref}'. + * + * + * @return the meta object for the attribute 'Deployment Ref'. + * @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 Components}'. + * + * + * @return the meta object for the containment reference list 'Components'. + * @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 DCAE Service Group By Results}'. + * + * + * @return the meta object for class 'DCAE Service Group By Results'. + * @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 Property Name}'. + * + * + * @return the meta object for the attribute 'Property Name'. + * @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 Property Values}'. + * + * + * @return the meta object for the containment reference list 'Property Values'. + * @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 DCAE Service Group By Results Property Values}'. + * + * + * @return the meta object for class 'DCAE Service Group By Results Property Values'. + * @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 Count}'. + * + * + * @return the meta object for the attribute 'Count'. + * @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 Property Value}'. + * + * + * @return the meta object for the attribute 'Property Value'. + * @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 Dcae Service Query Link}'. + * + * + * @return the meta object for the containment reference 'Dcae Service Query Link'. + * @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 DCAE Service Request}'. + * + * + * @return the meta object for class 'DCAE Service Request'. + * @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 Type Id}'. + * + * + * @return the meta object for the attribute 'Type Id'. + * @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 Vnf Id}'. + * + * + * @return the meta object for the attribute 'Vnf Id'. + * @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 Vnf Type}'. + * + * + * @return the meta object for the attribute 'Vnf Type'. + * @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 Vnf Location}'. + * + * + * @return the meta object for the attribute 'Vnf Location'. + * @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 Deployment Ref}'. + * + * + * @return the meta object for the attribute 'Deployment Ref'. + * @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 Components}'. + * + * + * @return the meta object for the containment reference list 'Components'. + * @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 DCAE Service Type}'. + * + * + * @return the meta object for class 'DCAE Service Type'. + * @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 Owner}'. + * + * + * @return the meta object for the attribute 'Owner'. + * @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 Type Name}'. + * + * + * @return the meta object for the attribute 'Type Name'. + * @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 Type Version}'. + * + * + * @return the meta object for the attribute 'Type Version'. + * @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 Blueprint Template}'. + * + * + * @return the meta object for the attribute 'Blueprint Template'. + * @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 Service Ids}'. + * + * + * @return the meta object for the attribute list 'Service Ids'. + * @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 Vnf Types}'. + * + * + * @return the meta object for the attribute list 'Vnf Types'. + * @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 Service Locations}'. + * + * + * @return the meta object for the attribute list 'Service Locations'. + * @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 Asdc Service Id}'. + * + * + * @return the meta object for the attribute 'Asdc Service Id'. + * @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 Asdc Resource Id}'. + * + * + * @return the meta object for the attribute 'Asdc Resource Id'. + * @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 Asdc Service URL}'. + * + * + * @return the meta object for the attribute 'Asdc Service URL'. + * @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 Type Id}'. + * + * + * @return the meta object for the attribute 'Type Id'. + * @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 Self Link}'. + * + * + * @return the meta object for the containment reference 'Self Link'. + * @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 Created1}'. + * + * + * @return the meta object for the attribute 'Created1'. + * @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 Deactivated}'. + * + * + * @return the meta object for the attribute 'Deactivated'. + * @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 DCAE Service Type Request}'. + * + * + * @return the meta object for class 'DCAE Service Type Request'. + * @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 Owner}'. + * + * + * @return the meta object for the attribute 'Owner'. + * @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 Type Name}'. + * + * + * @return the meta object for the attribute 'Type Name'. + * @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 Type Version}'. + * + * + * @return the meta object for the attribute 'Type Version'. + * @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 Blueprint Template}'. + * + * + * @return the meta object for the attribute 'Blueprint Template'. + * @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 Service Ids}'. + * + * + * @return the meta object for the attribute list 'Service Ids'. + * @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 Vnf Types}'. + * + * + * @return the meta object for the attribute list 'Vnf Types'. + * @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 Service Locations}'. + * + * + * @return the meta object for the attribute list 'Service Locations'. + * @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 Asdc Service Id}'. + * + * + * @return the meta object for the attribute 'Asdc Service Id'. + * @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 Asdc Resource Id}'. + * + * + * @return the meta object for the attribute 'Asdc Resource Id'. + * @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 Asdc Service URL}'. + * + * + * @return the meta object for the attribute 'Asdc Service URL'. + * @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 Dcae Service Results}'. + * + * + * @return the meta object for class 'Dcae Service Results'. + * @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 Links}'. + * + * + * @return the meta object for the containment reference list 'Links'. + * @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 Total Count}'. + * + * + * @return the meta object for the attribute 'Total Count'. + * @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 Items}'. + * + * + * @return the meta object for the containment reference list 'Items'. + * @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 Dcae Service Type Results}'. + * + * + * @return the meta object for class 'Dcae Service Type Results'. + * @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 Links}'. + * + * + * @return the meta object for the containment reference list 'Links'. + * @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 Total Count}'. + * + * + * @return the meta object for the attribute 'Total Count'. + * @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 Items}'. + * + * + * @return the meta object for the containment reference list 'Items'. + * @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 Link}'. + * + * + * @return the meta object for class 'Link'. + * @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 Params}'. + * + * + * @return the meta object for the containment reference list 'Params'. + * @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 Title}'. + * + * + * @return the meta object for the attribute 'Title'. + * @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 Rel}'. + * + * + * @return the meta object for the attribute 'Rel'. + * @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 Href}'. + * + * + * @return the meta object for the attribute 'Href'. + * @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 Uri}'. + * + * + * @return the meta object for the attribute 'Uri'. + * @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 Uri Builder}'. + * + * + * @return the meta object for the containment reference 'Uri Builder'. + * @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 Rels}'. + * + * + * @return the meta object for the attribute list 'Rels'. + * @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 Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @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 Parameter}'. + * + * + * @return the meta object for class 'Parameter'. + * @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 Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @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 Uri Builder}'. + * + * + * @return the meta object for class 'Uri Builder'. + * @see org.openecomp.dcae.controller.inventory.UriBuilder + * @generated + */ + EClass getUriBuilder(); + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + InventoryFactory getInventoryFactory(); + + /** + * + * Defines literals for the meta objects that represent + *
      + *
    • each class,
    • + *
    • each feature of each class,
    • + *
    • each operation of each class,
    • + *
    • each enum,
    • + *
    • and each data type
    • + *
    + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl Dcae Inventory}' class. + * + * + * @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 'Service Types' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_INVENTORY__SERVICE_TYPES = eINSTANCE.getDcaeInventory_ServiceTypes(); + + /** + * The meta object literal for the 'Services' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_INVENTORY__SERVICES = eINSTANCE.getDcaeInventory_Services(); + + /** + * The meta object literal for the 'Get Dcae Service Types' operation. + * + * + * @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 'Delete Dcae Service Types Type' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___DELETE_DCAE_SERVICE_TYPES_TYPE__STRING = eINSTANCE.getDcaeInventory__DeleteDcaeServiceTypesType__String(); + + /** + * The meta object literal for the 'Get Dcae Service Types Type' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICE_TYPES_TYPE__STRING = eINSTANCE.getDcaeInventory__GetDcaeServiceTypesType__String(); + + /** + * The meta object literal for the 'Create Dcae Service Types Type Name' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___CREATE_DCAE_SERVICE_TYPES_TYPE_NAME__DCAESERVICETYPEREQUEST = eINSTANCE.getDcaeInventory__CreateDcaeServiceTypesTypeName__DCAEServiceTypeRequest(); + + /** + * The meta object literal for the 'Get Dcae Services' operation. + * + * + * @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 'Get Dcae Services Groupby Property Name' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICES_GROUPBY_PROPERTY_NAME__STRING = eINSTANCE.getDcaeInventory__GetDcaeServicesGroupbyPropertyName__String(); + + /** + * The meta object literal for the 'Delete Dcae Services Service' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___DELETE_DCAE_SERVICES_SERVICE__STRING = eINSTANCE.getDcaeInventory__DeleteDcaeServicesService__String(); + + /** + * The meta object literal for the 'Get Dcae Services Service' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___GET_DCAE_SERVICES_SERVICE__STRING = eINSTANCE.getDcaeInventory__GetDcaeServicesService__String(); + + /** + * The meta object literal for the 'Create Dcae Services Service' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___CREATE_DCAE_SERVICES_SERVICE__STRING_DCAESERVICEREQUEST = eINSTANCE.getDcaeInventory__CreateDcaeServicesService__String_DCAEServiceRequest(); + + /** + * The meta object literal for the 'Poll' operation. + * + * + * @generated + */ + EOperation DCAE_INVENTORY___POLL = eINSTANCE.getDcaeInventory__Poll(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl Api Response Message}' class. + * + * + * @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 'Code' attribute feature. + * + * + * @generated + */ + EAttribute API_RESPONSE_MESSAGE__CODE = eINSTANCE.getApiResponseMessage_Code(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute API_RESPONSE_MESSAGE__TYPE = eINSTANCE.getApiResponseMessage_Type(); + + /** + * The meta object literal for the 'Message' attribute feature. + * + * + * @generated + */ + EAttribute API_RESPONSE_MESSAGE__MESSAGE = eINSTANCE.getApiResponseMessage_Message(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl DCAE Service Component}' class. + * + * + * @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 'Component Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__COMPONENT_ID = eINSTANCE.getDCAEServiceComponent_ComponentId(); + + /** + * The meta object literal for the 'Component Link' containment reference feature. + * + * + * @generated + */ + EReference DCAE_SERVICE_COMPONENT__COMPONENT_LINK = eINSTANCE.getDCAEServiceComponent_ComponentLink(); + + /** + * The meta object literal for the 'Created1' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__CREATED1 = eINSTANCE.getDCAEServiceComponent_Created1(); + + /** + * The meta object literal for the 'Modified' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__MODIFIED = eINSTANCE.getDCAEServiceComponent_Modified(); + + /** + * The meta object literal for the 'Component Type' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__COMPONENT_TYPE = eINSTANCE.getDCAEServiceComponent_ComponentType(); + + /** + * The meta object literal for the 'Component Source' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__COMPONENT_SOURCE = eINSTANCE.getDCAEServiceComponent_ComponentSource(); + + /** + * The meta object literal for the 'Status' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__STATUS = eINSTANCE.getDCAEServiceComponent_Status(); + + /** + * The meta object literal for the 'Location' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__LOCATION = eINSTANCE.getDCAEServiceComponent_Location(); + + /** + * The meta object literal for the 'Shareable' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT__SHAREABLE = eINSTANCE.getDCAEServiceComponent_Shareable(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl DCAE Service Component Request}' class. + * + * + * @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 'Component Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_ID = eINSTANCE.getDCAEServiceComponentRequest_ComponentId(); + + /** + * The meta object literal for the 'Component Type' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_TYPE = eINSTANCE.getDCAEServiceComponentRequest_ComponentType(); + + /** + * The meta object literal for the 'Component Source' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__COMPONENT_SOURCE = eINSTANCE.getDCAEServiceComponentRequest_ComponentSource(); + + /** + * The meta object literal for the 'Shareable' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_COMPONENT_REQUEST__SHAREABLE = eINSTANCE.getDCAEServiceComponentRequest_Shareable(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl DCAE Service}' class. + * + * + * @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 'Service Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE__SERVICE_ID = eINSTANCE.getDCAEService_ServiceId(); + + /** + * The meta object literal for the 'Self Link' containment reference feature. + * + * + * @generated + */ + EReference DCAE_SERVICE__SELF_LINK = eINSTANCE.getDCAEService_SelfLink(); + + /** + * The meta object literal for the 'Created1' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE__CREATED1 = eINSTANCE.getDCAEService_Created1(); + + /** + * The meta object literal for the 'Modified' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE__MODIFIED = eINSTANCE.getDCAEService_Modified(); + + /** + * The meta object literal for the 'Type Link' containment reference feature. + * + * + * @generated + */ + EReference DCAE_SERVICE__TYPE_LINK = eINSTANCE.getDCAEService_TypeLink(); + + /** + * The meta object literal for the 'Vnf Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE__VNF_ID = eINSTANCE.getDCAEService_VnfId(); + + /** + * The meta object literal for the 'Vnf Link' containment reference feature. + * + * + * @generated + */ + EReference DCAE_SERVICE__VNF_LINK = eINSTANCE.getDCAEService_VnfLink(); + + /** + * The meta object literal for the 'Vnf Type' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE__VNF_TYPE = eINSTANCE.getDCAEService_VnfType(); + + /** + * The meta object literal for the 'Vnf Location' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE__VNF_LOCATION = eINSTANCE.getDCAEService_VnfLocation(); + + /** + * The meta object literal for the 'Deployment Ref' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE__DEPLOYMENT_REF = eINSTANCE.getDCAEService_DeploymentRef(); + + /** + * The meta object literal for the 'Components' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_SERVICE__COMPONENTS = eINSTANCE.getDCAEService_Components(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl DCAE Service Group By Results}' class. + * + * + * @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 'Property Name' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_NAME = eINSTANCE.getDCAEServiceGroupByResults_PropertyName(); + + /** + * The meta object literal for the 'Property Values' containment reference list feature. + * + * + * @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 DCAE Service Group By Results Property Values}' class. + * + * + * @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 'Count' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__COUNT = eINSTANCE.getDCAEServiceGroupByResultsPropertyValues_Count(); + + /** + * The meta object literal for the 'Property Value' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES__PROPERTY_VALUE = eINSTANCE.getDCAEServiceGroupByResultsPropertyValues_PropertyValue(); + + /** + * The meta object literal for the 'Dcae Service Query Link' containment reference feature. + * + * + * @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 DCAE Service Request}' class. + * + * + * @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 'Type Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__TYPE_ID = eINSTANCE.getDCAEServiceRequest_TypeId(); + + /** + * The meta object literal for the 'Vnf Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__VNF_ID = eINSTANCE.getDCAEServiceRequest_VnfId(); + + /** + * The meta object literal for the 'Vnf Type' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__VNF_TYPE = eINSTANCE.getDCAEServiceRequest_VnfType(); + + /** + * The meta object literal for the 'Vnf Location' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__VNF_LOCATION = eINSTANCE.getDCAEServiceRequest_VnfLocation(); + + /** + * The meta object literal for the 'Deployment Ref' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_REQUEST__DEPLOYMENT_REF = eINSTANCE.getDCAEServiceRequest_DeploymentRef(); + + /** + * The meta object literal for the 'Components' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_SERVICE_REQUEST__COMPONENTS = eINSTANCE.getDCAEServiceRequest_Components(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl DCAE Service Type}' class. + * + * + * @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 'Owner' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__OWNER = eINSTANCE.getDCAEServiceType_Owner(); + + /** + * The meta object literal for the 'Type Name' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__TYPE_NAME = eINSTANCE.getDCAEServiceType_TypeName(); + + /** + * The meta object literal for the 'Type Version' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__TYPE_VERSION = eINSTANCE.getDCAEServiceType_TypeVersion(); + + /** + * The meta object literal for the 'Blueprint Template' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__BLUEPRINT_TEMPLATE = eINSTANCE.getDCAEServiceType_BlueprintTemplate(); + + /** + * The meta object literal for the 'Service Ids' attribute list feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__SERVICE_IDS = eINSTANCE.getDCAEServiceType_ServiceIds(); + + /** + * The meta object literal for the 'Vnf Types' attribute list feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__VNF_TYPES = eINSTANCE.getDCAEServiceType_VnfTypes(); + + /** + * The meta object literal for the 'Service Locations' attribute list feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__SERVICE_LOCATIONS = eINSTANCE.getDCAEServiceType_ServiceLocations(); + + /** + * The meta object literal for the 'Asdc Service Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__ASDC_SERVICE_ID = eINSTANCE.getDCAEServiceType_AsdcServiceId(); + + /** + * The meta object literal for the 'Asdc Resource Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__ASDC_RESOURCE_ID = eINSTANCE.getDCAEServiceType_AsdcResourceId(); + + /** + * The meta object literal for the 'Asdc Service URL' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__ASDC_SERVICE_URL = eINSTANCE.getDCAEServiceType_AsdcServiceURL(); + + /** + * The meta object literal for the 'Type Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__TYPE_ID = eINSTANCE.getDCAEServiceType_TypeId(); + + /** + * The meta object literal for the 'Self Link' containment reference feature. + * + * + * @generated + */ + EReference DCAE_SERVICE_TYPE__SELF_LINK = eINSTANCE.getDCAEServiceType_SelfLink(); + + /** + * The meta object literal for the 'Created1' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__CREATED1 = eINSTANCE.getDCAEServiceType_Created1(); + + /** + * The meta object literal for the 'Deactivated' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE__DEACTIVATED = eINSTANCE.getDCAEServiceType_Deactivated(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl DCAE Service Type Request}' class. + * + * + * @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 'Owner' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__OWNER = eINSTANCE.getDCAEServiceTypeRequest_Owner(); + + /** + * The meta object literal for the 'Type Name' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__TYPE_NAME = eINSTANCE.getDCAEServiceTypeRequest_TypeName(); + + /** + * The meta object literal for the 'Type Version' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__TYPE_VERSION = eINSTANCE.getDCAEServiceTypeRequest_TypeVersion(); + + /** + * The meta object literal for the 'Blueprint Template' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__BLUEPRINT_TEMPLATE = eINSTANCE.getDCAEServiceTypeRequest_BlueprintTemplate(); + + /** + * The meta object literal for the 'Service Ids' attribute list feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS = eINSTANCE.getDCAEServiceTypeRequest_ServiceIds(); + + /** + * The meta object literal for the 'Vnf Types' attribute list feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES = eINSTANCE.getDCAEServiceTypeRequest_VnfTypes(); + + /** + * The meta object literal for the 'Service Locations' attribute list feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS = eINSTANCE.getDCAEServiceTypeRequest_ServiceLocations(); + + /** + * The meta object literal for the 'Asdc Service Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__ASDC_SERVICE_ID = eINSTANCE.getDCAEServiceTypeRequest_AsdcServiceId(); + + /** + * The meta object literal for the 'Asdc Resource Id' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_REQUEST__ASDC_RESOURCE_ID = eINSTANCE.getDCAEServiceTypeRequest_AsdcResourceId(); + + /** + * The meta object literal for the 'Asdc Service URL' attribute feature. + * + * + * @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 Dcae Service Results}' class. + * + * + * @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 'Links' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_SERVICE_RESULTS__LINKS = eINSTANCE.getDcaeServiceResults_Links(); + + /** + * The meta object literal for the 'Total Count' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_RESULTS__TOTAL_COUNT = eINSTANCE.getDcaeServiceResults_TotalCount(); + + /** + * The meta object literal for the 'Items' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_SERVICE_RESULTS__ITEMS = eINSTANCE.getDcaeServiceResults_Items(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl Dcae Service Type Results}' class. + * + * + * @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 'Links' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_SERVICE_TYPE_RESULTS__LINKS = eINSTANCE.getDcaeServiceTypeResults_Links(); + + /** + * The meta object literal for the 'Total Count' attribute feature. + * + * + * @generated + */ + EAttribute DCAE_SERVICE_TYPE_RESULTS__TOTAL_COUNT = eINSTANCE.getDcaeServiceTypeResults_TotalCount(); + + /** + * The meta object literal for the 'Items' containment reference list feature. + * + * + * @generated + */ + EReference DCAE_SERVICE_TYPE_RESULTS__ITEMS = eINSTANCE.getDcaeServiceTypeResults_Items(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.LinkImpl Link}' class. + * + * + * @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 'Params' containment reference list feature. + * + * + * @generated + */ + EReference LINK__PARAMS = eINSTANCE.getLink_Params(); + + /** + * The meta object literal for the 'Title' attribute feature. + * + * + * @generated + */ + EAttribute LINK__TITLE = eINSTANCE.getLink_Title(); + + /** + * The meta object literal for the 'Rel' attribute feature. + * + * + * @generated + */ + EAttribute LINK__REL = eINSTANCE.getLink_Rel(); + + /** + * The meta object literal for the 'Href' attribute feature. + * + * + * @generated + */ + EAttribute LINK__HREF = eINSTANCE.getLink_Href(); + + /** + * The meta object literal for the 'Uri' attribute feature. + * + * + * @generated + */ + EAttribute LINK__URI = eINSTANCE.getLink_Uri(); + + /** + * The meta object literal for the 'Uri Builder' containment reference feature. + * + * + * @generated + */ + EReference LINK__URI_BUILDER = eINSTANCE.getLink_UriBuilder(); + + /** + * The meta object literal for the 'Rels' attribute list feature. + * + * + * @generated + */ + EAttribute LINK__RELS = eINSTANCE.getLink_Rels(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + EAttribute LINK__TYPE = eINSTANCE.getLink_Type(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.ParameterImpl Parameter}' class. + * + * + * @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 'Value' attribute feature. + * + * + * @generated + */ + EAttribute PARAMETER__VALUE = eINSTANCE.getParameter_Value(); + + /** + * The meta object literal for the '{@link org.openecomp.dcae.controller.inventory.impl.UriBuilderImpl Uri Builder}' class. + * + * + * @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; + +/** + * + * A representation of the model object 'Link'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getParams Params}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getTitle Title}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getRel Rel}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getHref Href}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getUri Uri}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getUriBuilder Uri Builder}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getRels Rels}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.Link#getType Type}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink() + * @model + * @generated + */ +public interface Link extends NamedEntity { + /** + * Returns the value of the 'Params' containment reference list. + * The list contents are of type {@link org.openecomp.dcae.controller.inventory.Parameter}. + * + *

    + * If the meaning of the 'Params' containment reference list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Params' containment reference list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Params() + * @model containment="true" + * @generated + */ + EList getParams(); + + /** + * Returns the value of the 'Title' attribute. + * + *

    + * If the meaning of the 'Title' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Title' 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 Title}' attribute. + * + * + * @param value the new value of the 'Title' attribute. + * @see #getTitle() + * @generated + */ + void setTitle(String value); + + /** + * Returns the value of the 'Rel' attribute. + * + *

    + * If the meaning of the 'Rel' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Rel' 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 Rel}' attribute. + * + * + * @param value the new value of the 'Rel' attribute. + * @see #getRel() + * @generated + */ + void setRel(String value); + + /** + * Returns the value of the 'Href' attribute. + * + *

    + * If the meaning of the 'Href' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Href' 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 Href}' attribute. + * + * + * @param value the new value of the 'Href' attribute. + * @see #getHref() + * @generated + */ + void setHref(String value); + + /** + * Returns the value of the 'Uri' attribute. + * + *

    + * If the meaning of the 'Uri' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Uri' 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 Uri}' attribute. + * + * + * @param value the new value of the 'Uri' attribute. + * @see #getUri() + * @generated + */ + void setUri(String value); + + /** + * Returns the value of the 'Uri Builder' containment reference. + * + *

    + * If the meaning of the 'Uri Builder' containment reference isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Uri Builder' 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 Uri Builder}' containment reference. + * + * + * @param value the new value of the 'Uri Builder' containment reference. + * @see #getUriBuilder() + * @generated + */ + void setUriBuilder(UriBuilder value); + + /** + * Returns the value of the 'Rels' attribute list. + * The list contents are of type {@link java.lang.String}. + * + *

    + * If the meaning of the 'Rels' attribute list isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Rels' attribute list. + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getLink_Rels() + * @model unique="false" + * @generated + */ + EList getRels(); + + /** + * Returns the value of the 'Type' attribute. + * + *

    + * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Type' 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 Type}' attribute. + * + * + * @param value the new value of the 'Type' 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; + +/** + * + * A representation of the model object 'Parameter'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.Parameter#getValue Value}
    • + *
    + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage#getParameter() + * @model + * @generated + */ +public interface Parameter extends NamedEntity { + /** + * Returns the value of the 'Value' attribute. + * + *

    + * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Value' 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 Value}' attribute. + * + * + * @param value the new value of the 'Value' 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; + +/** + * + * A representation of the model object 'Uri Builder'. + * + * + * + * @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; + +/** + * + * An implementation of the model object 'Api Response Message'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl#getCode Code}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl#getType Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.ApiResponseMessageImpl#getMessage Message}
    • + *
    + * + * @generated + */ +public class ApiResponseMessageImpl extends MinimalEObjectImpl.Container implements ApiResponseMessage { + /** + * The default value of the '{@link #getCode() Code}' attribute. + * + * + * @see #getCode() + * @generated + * @ordered + */ + protected static final Integer CODE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCode() Code}' attribute. + * + * + * @see #getCode() + * @generated + * @ordered + */ + protected Integer code = CODE_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getMessage() Message}' attribute. + * + * + * @see #getMessage() + * @generated + * @ordered + */ + protected static final String MESSAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMessage() Message}' attribute. + * + * + * @see #getMessage() + * @generated + * @ordered + */ + protected String message = MESSAGE_EDEFAULT; + + /** + * + * + * @generated + */ + protected ApiResponseMessageImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.API_RESPONSE_MESSAGE; + } + + /** + * + * + * @generated + */ + public Integer getCode() { + return code; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getType() { + return type; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getMessage() { + return message; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service Component'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentId Component Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentLink Component Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getCreated1 Created1}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getModified Modified}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentType Component Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getComponentSource Component Source}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getStatus Status}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getLocation Location}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentImpl#getShareable Shareable}
    • + *
    + * + * @generated + */ +public class DCAEServiceComponentImpl extends NamedEntityImpl implements DCAEServiceComponent { + /** + * The default value of the '{@link #getComponentId() Component Id}' attribute. + * + * + * @see #getComponentId() + * @generated + * @ordered + */ + protected static final String COMPONENT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentId() Component Id}' attribute. + * + * + * @see #getComponentId() + * @generated + * @ordered + */ + protected String componentId = COMPONENT_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getComponentLink() Component Link}' containment reference. + * + * + * @see #getComponentLink() + * @generated + * @ordered + */ + protected Link componentLink; + + /** + * The default value of the '{@link #getCreated1() Created1}' attribute. + * + * + * @see #getCreated1() + * @generated + * @ordered + */ + protected static final Date CREATED1_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated1() Created1}' attribute. + * + * + * @see #getCreated1() + * @generated + * @ordered + */ + protected Date created1 = CREATED1_EDEFAULT; + + /** + * The default value of the '{@link #getModified() Modified}' attribute. + * + * + * @see #getModified() + * @generated + * @ordered + */ + protected static final Date MODIFIED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getModified() Modified}' attribute. + * + * + * @see #getModified() + * @generated + * @ordered + */ + protected Date modified = MODIFIED_EDEFAULT; + + /** + * The default value of the '{@link #getComponentType() Component Type}' attribute. + * + * + * @see #getComponentType() + * @generated + * @ordered + */ + protected static final String COMPONENT_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentType() Component Type}' attribute. + * + * + * @see #getComponentType() + * @generated + * @ordered + */ + protected String componentType = COMPONENT_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getComponentSource() Component Source}' attribute. + * + * + * @see #getComponentSource() + * @generated + * @ordered + */ + protected static final String COMPONENT_SOURCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentSource() Component Source}' attribute. + * + * + * @see #getComponentSource() + * @generated + * @ordered + */ + protected String componentSource = COMPONENT_SOURCE_EDEFAULT; + + /** + * The default value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected static final String STATUS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStatus() Status}' attribute. + * + * + * @see #getStatus() + * @generated + * @ordered + */ + protected String status = STATUS_EDEFAULT; + + /** + * The default value of the '{@link #getLocation() Location}' attribute. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected static final String LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLocation() Location}' attribute. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected String location = LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getShareable() Shareable}' attribute. + * + * + * @see #getShareable() + * @generated + * @ordered + */ + protected static final Integer SHAREABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShareable() Shareable}' attribute. + * + * + * @see #getShareable() + * @generated + * @ordered + */ + protected Integer shareable = SHAREABLE_EDEFAULT; + + /** + * + * + * @generated + */ + protected DCAEServiceComponentImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_COMPONENT; + } + + /** + * + * + * @generated + */ + public String getComponentId() { + return componentId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Link getComponentLink() { + return componentLink; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Date getCreated1() { + return created1; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Date getModified() { + return modified; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getComponentType() { + return componentType; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getComponentSource() { + return componentSource; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getStatus() { + return status; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getLocation() { + return location; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Integer getShareable() { + return shareable; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service Component Request'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getComponentId Component Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getComponentType Component Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getComponentSource Component Source}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceComponentRequestImpl#getShareable Shareable}
    • + *
    + * + * @generated + */ +public class DCAEServiceComponentRequestImpl extends MinimalEObjectImpl.Container implements DCAEServiceComponentRequest { + /** + * The default value of the '{@link #getComponentId() Component Id}' attribute. + * + * + * @see #getComponentId() + * @generated + * @ordered + */ + protected static final String COMPONENT_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentId() Component Id}' attribute. + * + * + * @see #getComponentId() + * @generated + * @ordered + */ + protected String componentId = COMPONENT_ID_EDEFAULT; + + /** + * The default value of the '{@link #getComponentType() Component Type}' attribute. + * + * + * @see #getComponentType() + * @generated + * @ordered + */ + protected static final String COMPONENT_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentType() Component Type}' attribute. + * + * + * @see #getComponentType() + * @generated + * @ordered + */ + protected String componentType = COMPONENT_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getComponentSource() Component Source}' attribute. + * + * + * @see #getComponentSource() + * @generated + * @ordered + */ + protected static final String COMPONENT_SOURCE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getComponentSource() Component Source}' attribute. + * + * + * @see #getComponentSource() + * @generated + * @ordered + */ + protected String componentSource = COMPONENT_SOURCE_EDEFAULT; + + /** + * The default value of the '{@link #getShareable() Shareable}' attribute. + * + * + * @see #getShareable() + * @generated + * @ordered + */ + protected static final Integer SHAREABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getShareable() Shareable}' attribute. + * + * + * @see #getShareable() + * @generated + * @ordered + */ + protected Integer shareable = SHAREABLE_EDEFAULT; + + /** + * + * + * @generated + */ + protected DCAEServiceComponentRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_COMPONENT_REQUEST; + } + + /** + * + * + * @generated + */ + public String getComponentId() { + return componentId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getComponentType() { + return componentType; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getComponentSource() { + return componentSource; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Integer getShareable() { + return shareable; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service Group By Results'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl#getPropertyName Property Name}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsImpl#getPropertyValues Property Values}
    • + *
    + * + * @generated + */ +public class DCAEServiceGroupByResultsImpl extends MinimalEObjectImpl.Container implements DCAEServiceGroupByResults { + /** + * The default value of the '{@link #getPropertyName() Property Name}' attribute. + * + * + * @see #getPropertyName() + * @generated + * @ordered + */ + protected static final String PROPERTY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPropertyName() Property Name}' attribute. + * + * + * @see #getPropertyName() + * @generated + * @ordered + */ + protected String propertyName = PROPERTY_NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getPropertyValues() Property Values}' containment reference list. + * + * + * @see #getPropertyValues() + * @generated + * @ordered + */ + protected EList propertyValues; + + /** + * + * + * @generated + */ + protected DCAEServiceGroupByResultsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_GROUP_BY_RESULTS; + } + + /** + * + * + * @generated + */ + public String getPropertyName() { + return propertyName; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getPropertyValues() { + if (propertyValues == null) { + propertyValues = new EObjectContainmentEList(DCAEServiceGroupByResultsPropertyValues.class, this, InventoryPackage.DCAE_SERVICE_GROUP_BY_RESULTS__PROPERTY_VALUES); + } + return propertyValues; + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service Group By Results Property Values'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl#getCount Count}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl#getPropertyValue Property Value}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceGroupByResultsPropertyValuesImpl#getDcaeServiceQueryLink Dcae Service Query Link}
    • + *
    + * + * @generated + */ +public class DCAEServiceGroupByResultsPropertyValuesImpl extends MinimalEObjectImpl.Container implements DCAEServiceGroupByResultsPropertyValues { + /** + * The default value of the '{@link #getCount() Count}' attribute. + * + * + * @see #getCount() + * @generated + * @ordered + */ + protected static final Integer COUNT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCount() Count}' attribute. + * + * + * @see #getCount() + * @generated + * @ordered + */ + protected Integer count = COUNT_EDEFAULT; + + /** + * The default value of the '{@link #getPropertyValue() Property Value}' attribute. + * + * + * @see #getPropertyValue() + * @generated + * @ordered + */ + protected static final String PROPERTY_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPropertyValue() Property Value}' attribute. + * + * + * @see #getPropertyValue() + * @generated + * @ordered + */ + protected String propertyValue = PROPERTY_VALUE_EDEFAULT; + + /** + * The cached value of the '{@link #getDcaeServiceQueryLink() Dcae Service Query Link}' containment reference. + * + * + * @see #getDcaeServiceQueryLink() + * @generated + * @ordered + */ + protected Link dcaeServiceQueryLink; + + /** + * + * + * @generated + */ + protected DCAEServiceGroupByResultsPropertyValuesImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_GROUP_BY_RESULTS_PROPERTY_VALUES; + } + + /** + * + * + * @generated + */ + public Integer getCount() { + return count; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getPropertyValue() { + return propertyValue; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Link getDcaeServiceQueryLink() { + return dcaeServiceQueryLink; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getServiceId Service Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getSelfLink Self Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getCreated1 Created1}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getModified Modified}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getTypeLink Type Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfId Vnf Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfLink Vnf Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfType Vnf Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getVnfLocation Vnf Location}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getDeploymentRef Deployment Ref}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceImpl#getComponents Components}
    • + *
    + * + * @generated + */ +public class DCAEServiceImpl extends NamedEntityImpl implements DCAEService { + /** + * The default value of the '{@link #getServiceId() Service Id}' attribute. + * + * + * @see #getServiceId() + * @generated + * @ordered + */ + protected static final String SERVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServiceId() Service Id}' attribute. + * + * + * @see #getServiceId() + * @generated + * @ordered + */ + protected String serviceId = SERVICE_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getSelfLink() Self Link}' containment reference. + * + * + * @see #getSelfLink() + * @generated + * @ordered + */ + protected Link selfLink; + + /** + * The default value of the '{@link #getCreated1() Created1}' attribute. + * + * + * @see #getCreated1() + * @generated + * @ordered + */ + protected static final Date CREATED1_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated1() Created1}' attribute. + * + * + * @see #getCreated1() + * @generated + * @ordered + */ + protected Date created1 = CREATED1_EDEFAULT; + + /** + * The default value of the '{@link #getModified() Modified}' attribute. + * + * + * @see #getModified() + * @generated + * @ordered + */ + protected static final Date MODIFIED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getModified() Modified}' attribute. + * + * + * @see #getModified() + * @generated + * @ordered + */ + protected Date modified = MODIFIED_EDEFAULT; + + /** + * The cached value of the '{@link #getTypeLink() Type Link}' containment reference. + * + * + * @see #getTypeLink() + * @generated + * @ordered + */ + protected Link typeLink; + + /** + * The default value of the '{@link #getVnfId() Vnf Id}' attribute. + * + * + * @see #getVnfId() + * @generated + * @ordered + */ + protected static final String VNF_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfId() Vnf Id}' attribute. + * + * + * @see #getVnfId() + * @generated + * @ordered + */ + protected String vnfId = VNF_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getVnfLink() Vnf Link}' containment reference. + * + * + * @see #getVnfLink() + * @generated + * @ordered + */ + protected Link vnfLink; + + /** + * The default value of the '{@link #getVnfType() Vnf Type}' attribute. + * + * + * @see #getVnfType() + * @generated + * @ordered + */ + protected static final String VNF_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfType() Vnf Type}' attribute. + * + * + * @see #getVnfType() + * @generated + * @ordered + */ + protected String vnfType = VNF_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getVnfLocation() Vnf Location}' attribute. + * + * + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected static final String VNF_LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfLocation() Vnf Location}' attribute. + * + * + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected String vnfLocation = VNF_LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getDeploymentRef() Deployment Ref}' attribute. + * + * + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected static final String DEPLOYMENT_REF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeploymentRef() Deployment Ref}' attribute. + * + * + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected String deploymentRef = DEPLOYMENT_REF_EDEFAULT; + + /** + * The cached value of the '{@link #getComponents() Components}' containment reference list. + * + * + * @see #getComponents() + * @generated + * @ordered + */ + protected EList components; + + /** + * + * + * @generated + */ + protected DCAEServiceImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE; + } + + /** + * + * + * @generated + */ + public String getServiceId() { + return serviceId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Link getSelfLink() { + return selfLink; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Date getCreated1() { + return created1; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Date getModified() { + return modified; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Link getTypeLink() { + return typeLink; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getVnfId() { + return vnfId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Link getVnfLink() { + return vnfLink; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getVnfType() { + return vnfType; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getVnfLocation() { + return vnfLocation; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getDeploymentRef() { + return deploymentRef; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getComponents() { + if (components == null) { + components = new EObjectContainmentEList(DCAEServiceComponent.class, this, InventoryPackage.DCAE_SERVICE__COMPONENTS); + } + return components; + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service Request'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getTypeId Type Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getVnfId Vnf Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getVnfType Vnf Type}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getVnfLocation Vnf Location}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getDeploymentRef Deployment Ref}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceRequestImpl#getComponents Components}
    • + *
    + * + * @generated + */ +public class DCAEServiceRequestImpl extends MinimalEObjectImpl.Container implements DCAEServiceRequest { + /** + * The default value of the '{@link #getTypeId() Type Id}' attribute. + * + * + * @see #getTypeId() + * @generated + * @ordered + */ + protected static final String TYPE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeId() Type Id}' attribute. + * + * + * @see #getTypeId() + * @generated + * @ordered + */ + protected String typeId = TYPE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getVnfId() Vnf Id}' attribute. + * + * + * @see #getVnfId() + * @generated + * @ordered + */ + protected static final String VNF_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfId() Vnf Id}' attribute. + * + * + * @see #getVnfId() + * @generated + * @ordered + */ + protected String vnfId = VNF_ID_EDEFAULT; + + /** + * The default value of the '{@link #getVnfType() Vnf Type}' attribute. + * + * + * @see #getVnfType() + * @generated + * @ordered + */ + protected static final String VNF_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfType() Vnf Type}' attribute. + * + * + * @see #getVnfType() + * @generated + * @ordered + */ + protected String vnfType = VNF_TYPE_EDEFAULT; + + /** + * The default value of the '{@link #getVnfLocation() Vnf Location}' attribute. + * + * + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected static final String VNF_LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getVnfLocation() Vnf Location}' attribute. + * + * + * @see #getVnfLocation() + * @generated + * @ordered + */ + protected String vnfLocation = VNF_LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getDeploymentRef() Deployment Ref}' attribute. + * + * + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected static final String DEPLOYMENT_REF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeploymentRef() Deployment Ref}' attribute. + * + * + * @see #getDeploymentRef() + * @generated + * @ordered + */ + protected String deploymentRef = DEPLOYMENT_REF_EDEFAULT; + + /** + * The cached value of the '{@link #getComponents() Components}' containment reference list. + * + * + * @see #getComponents() + * @generated + * @ordered + */ + protected EList components; + + /** + * + * + * @generated + */ + protected DCAEServiceRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_REQUEST; + } + + /** + * + * + * @generated + */ + public String getTypeId() { + return typeId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getVnfId() { + return vnfId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getVnfType() { + return vnfType; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getVnfLocation() { + return vnfLocation; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getDeploymentRef() { + return deploymentRef; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getComponents() { + if (components == null) { + components = new EObjectContainmentEList(DCAEServiceComponentRequest.class, this, InventoryPackage.DCAE_SERVICE_REQUEST__COMPONENTS); + } + return components; + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service Type'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getOwner Owner}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getTypeName Type Name}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getTypeVersion Type Version}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getBlueprintTemplate Blueprint Template}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getServiceIds Service Ids}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getVnfTypes Vnf Types}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getServiceLocations Service Locations}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getAsdcServiceId Asdc Service Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getAsdcResourceId Asdc Resource Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getAsdcServiceURL Asdc Service URL}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getTypeId Type Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getSelfLink Self Link}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getCreated1 Created1}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeImpl#getDeactivated Deactivated}
    • + *
    + * + * @generated + */ +public class DCAEServiceTypeImpl extends NamedEntityImpl implements DCAEServiceType { + /** + * The default value of the '{@link #getOwner() Owner}' attribute. + * + * + * @see #getOwner() + * @generated + * @ordered + */ + protected static final String OWNER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOwner() Owner}' attribute. + * + * + * @see #getOwner() + * @generated + * @ordered + */ + protected String owner = OWNER_EDEFAULT; + + /** + * The default value of the '{@link #getTypeName() Type Name}' attribute. + * + * + * @see #getTypeName() + * @generated + * @ordered + */ + protected static final String TYPE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeName() Type Name}' attribute. + * + * + * @see #getTypeName() + * @generated + * @ordered + */ + protected String typeName = TYPE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTypeVersion() Type Version}' attribute. + * + * + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected static final Integer TYPE_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeVersion() Type Version}' attribute. + * + * + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected Integer typeVersion = TYPE_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getBlueprintTemplate() Blueprint Template}' attribute. + * + * + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected static final String BLUEPRINT_TEMPLATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBlueprintTemplate() Blueprint Template}' attribute. + * + * + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected String blueprintTemplate = BLUEPRINT_TEMPLATE_EDEFAULT; + + /** + * The cached value of the '{@link #getServiceIds() Service Ids}' attribute list. + * + * + * @see #getServiceIds() + * @generated + * @ordered + */ + protected EList serviceIds; + + /** + * The cached value of the '{@link #getVnfTypes() Vnf Types}' attribute list. + * + * + * @see #getVnfTypes() + * @generated + * @ordered + */ + protected EList vnfTypes; + + /** + * The cached value of the '{@link #getServiceLocations() Service Locations}' attribute list. + * + * + * @see #getServiceLocations() + * @generated + * @ordered + */ + protected EList serviceLocations; + + /** + * The default value of the '{@link #getAsdcServiceId() Asdc Service Id}' attribute. + * + * + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceId() Asdc Service Id}' attribute. + * + * + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected String asdcServiceId = ASDC_SERVICE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcResourceId() Asdc Resource Id}' attribute. + * + * + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected static final String ASDC_RESOURCE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcResourceId() Asdc Resource Id}' attribute. + * + * + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected String asdcResourceId = ASDC_RESOURCE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcServiceURL() Asdc Service URL}' attribute. + * + * + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceURL() Asdc Service URL}' attribute. + * + * + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected String asdcServiceURL = ASDC_SERVICE_URL_EDEFAULT; + + /** + * The default value of the '{@link #getTypeId() Type Id}' attribute. + * + * + * @see #getTypeId() + * @generated + * @ordered + */ + protected static final String TYPE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeId() Type Id}' attribute. + * + * + * @see #getTypeId() + * @generated + * @ordered + */ + protected String typeId = TYPE_ID_EDEFAULT; + + /** + * The cached value of the '{@link #getSelfLink() Self Link}' containment reference. + * + * + * @see #getSelfLink() + * @generated + * @ordered + */ + protected Link selfLink; + + /** + * The default value of the '{@link #getCreated1() Created1}' attribute. + * + * + * @see #getCreated1() + * @generated + * @ordered + */ + protected static final Date CREATED1_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCreated1() Created1}' attribute. + * + * + * @see #getCreated1() + * @generated + * @ordered + */ + protected Date created1 = CREATED1_EDEFAULT; + + /** + * The default value of the '{@link #getDeactivated() Deactivated}' attribute. + * + * + * @see #getDeactivated() + * @generated + * @ordered + */ + protected static final Date DEACTIVATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDeactivated() Deactivated}' attribute. + * + * + * @see #getDeactivated() + * @generated + * @ordered + */ + protected Date deactivated = DEACTIVATED_EDEFAULT; + + /** + * + * + * @generated + */ + protected DCAEServiceTypeImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_TYPE; + } + + /** + * + * + * @generated + */ + public String getOwner() { + return owner; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getTypeName() { + return typeName; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Integer getTypeVersion() { + return typeVersion; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getBlueprintTemplate() { + return blueprintTemplate; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getServiceIds() { + if (serviceIds == null) { + serviceIds = new EDataTypeEList(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_IDS); + } + return serviceIds; + } + + /** + * + * + * @generated + */ + public EList getVnfTypes() { + if (vnfTypes == null) { + vnfTypes = new EDataTypeEList(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE__VNF_TYPES); + } + return vnfTypes; + } + + /** + * + * + * @generated + */ + public EList getServiceLocations() { + if (serviceLocations == null) { + serviceLocations = new EDataTypeEList(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_LOCATIONS); + } + return serviceLocations; + } + + /** + * + * + * @generated + */ + public String getAsdcServiceId() { + return asdcServiceId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getAsdcResourceId() { + return asdcResourceId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getAsdcServiceURL() { + return asdcServiceURL; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getTypeId() { + return typeId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Link getSelfLink() { + return selfLink; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Date getCreated1() { + return created1; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Date getDeactivated() { + return deactivated; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__VNF_TYPES: + getVnfTypes().clear(); + getVnfTypes().addAll((Collection)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE__SERVICE_LOCATIONS: + getServiceLocations().clear(); + getServiceLocations().addAll((Collection)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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'DCAE Service Type Request'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getOwner Owner}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getTypeName Type Name}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getTypeVersion Type Version}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getBlueprintTemplate Blueprint Template}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getServiceIds Service Ids}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getVnfTypes Vnf Types}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getServiceLocations Service Locations}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getAsdcServiceId Asdc Service Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getAsdcResourceId Asdc Resource Id}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DCAEServiceTypeRequestImpl#getAsdcServiceURL Asdc Service URL}
    • + *
    + * + * @generated + */ +public class DCAEServiceTypeRequestImpl extends MinimalEObjectImpl.Container implements DCAEServiceTypeRequest { + /** + * The default value of the '{@link #getOwner() Owner}' attribute. + * + * + * @see #getOwner() + * @generated + * @ordered + */ + protected static final String OWNER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOwner() Owner}' attribute. + * + * + * @see #getOwner() + * @generated + * @ordered + */ + protected String owner = OWNER_EDEFAULT; + + /** + * The default value of the '{@link #getTypeName() Type Name}' attribute. + * + * + * @see #getTypeName() + * @generated + * @ordered + */ + protected static final String TYPE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeName() Type Name}' attribute. + * + * + * @see #getTypeName() + * @generated + * @ordered + */ + protected String typeName = TYPE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTypeVersion() Type Version}' attribute. + * + * + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected static final Integer TYPE_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTypeVersion() Type Version}' attribute. + * + * + * @see #getTypeVersion() + * @generated + * @ordered + */ + protected Integer typeVersion = TYPE_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getBlueprintTemplate() Blueprint Template}' attribute. + * + * + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected static final String BLUEPRINT_TEMPLATE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBlueprintTemplate() Blueprint Template}' attribute. + * + * + * @see #getBlueprintTemplate() + * @generated + * @ordered + */ + protected String blueprintTemplate = BLUEPRINT_TEMPLATE_EDEFAULT; + + /** + * The cached value of the '{@link #getServiceIds() Service Ids}' attribute list. + * + * + * @see #getServiceIds() + * @generated + * @ordered + */ + protected EList serviceIds; + + /** + * The cached value of the '{@link #getVnfTypes() Vnf Types}' attribute list. + * + * + * @see #getVnfTypes() + * @generated + * @ordered + */ + protected EList vnfTypes; + + /** + * The cached value of the '{@link #getServiceLocations() Service Locations}' attribute list. + * + * + * @see #getServiceLocations() + * @generated + * @ordered + */ + protected EList serviceLocations; + + /** + * The default value of the '{@link #getAsdcServiceId() Asdc Service Id}' attribute. + * + * + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceId() Asdc Service Id}' attribute. + * + * + * @see #getAsdcServiceId() + * @generated + * @ordered + */ + protected String asdcServiceId = ASDC_SERVICE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcResourceId() Asdc Resource Id}' attribute. + * + * + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected static final String ASDC_RESOURCE_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcResourceId() Asdc Resource Id}' attribute. + * + * + * @see #getAsdcResourceId() + * @generated + * @ordered + */ + protected String asdcResourceId = ASDC_RESOURCE_ID_EDEFAULT; + + /** + * The default value of the '{@link #getAsdcServiceURL() Asdc Service URL}' attribute. + * + * + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected static final String ASDC_SERVICE_URL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getAsdcServiceURL() Asdc Service URL}' attribute. + * + * + * @see #getAsdcServiceURL() + * @generated + * @ordered + */ + protected String asdcServiceURL = ASDC_SERVICE_URL_EDEFAULT; + + /** + * + * + * @generated + */ + protected DCAEServiceTypeRequestImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_TYPE_REQUEST; + } + + /** + * + * + * @generated + */ + public String getOwner() { + return owner; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getTypeName() { + return typeName; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public Integer getTypeVersion() { + return typeVersion; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getBlueprintTemplate() { + return blueprintTemplate; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getServiceIds() { + if (serviceIds == null) { + serviceIds = new EDataTypeEList(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_IDS); + } + return serviceIds; + } + + /** + * + * + * @generated + */ + public EList getVnfTypes() { + if (vnfTypes == null) { + vnfTypes = new EDataTypeEList(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES); + } + return vnfTypes; + } + + /** + * + * + * @generated + */ + public EList getServiceLocations() { + if (serviceLocations == null) { + serviceLocations = new EDataTypeEList(String.class, this, InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS); + } + return serviceLocations; + } + + /** + * + * + * @generated + */ + public String getAsdcServiceId() { + return asdcServiceId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getAsdcResourceId() { + return asdcResourceId; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public String getAsdcServiceURL() { + return asdcServiceURL; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__VNF_TYPES: + getVnfTypes().clear(); + getVnfTypes().addAll((Collection)newValue); + return; + case InventoryPackage.DCAE_SERVICE_TYPE_REQUEST__SERVICE_LOCATIONS: + getServiceLocations().clear(); + getServiceLocations().addAll((Collection)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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'Dcae Inventory'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl#getServiceTypes Service Types}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeInventoryImpl#getServices Services}
    • + *
    + * + * @generated + */ +public class DcaeInventoryImpl extends MinimalEObjectImpl.Container implements DcaeInventory { + /** + * The cached value of the '{@link #getServiceTypes() Service Types}' containment reference list. + * + * + * @see #getServiceTypes() + * @generated + * @ordered + */ + protected EList serviceTypes; + + /** + * The cached value of the '{@link #getServices() Services}' containment reference list. + * + * + * @see #getServices() + * @generated + * @ordered + */ + protected EList services; + + /** + * + * + * @generated + */ + protected DcaeInventoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_INVENTORY; + } + + /** + * + * + * @generated + */ + public EList getServiceTypes() { + if (serviceTypes == null) { + serviceTypes = new EObjectContainmentEList(DCAEServiceType.class, this, InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES); + } + return serviceTypes; + } + + /** + * + * + * @generated + */ + public EList getServices() { + if (services == null) { + services = new EObjectContainmentEList(DCAEService.class, this, InventoryPackage.DCAE_INVENTORY__SERVICES); + } + return services; + } + + /** + * + * + * @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(); + } + + /** + * + * + * @generated + */ + public ApiResponseMessage deleteDcaeServiceTypesType(String typeId) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public DCAEServiceType getDcaeServiceTypesType(String typeId) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public DCAEServiceType createDcaeServiceTypesTypeName(DCAEServiceTypeRequest body) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @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(); + } + + /** + * + * + * @generated + */ + public DCAEServiceGroupByResults getDcaeServicesGroupbyPropertyName(String propertyName) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public void deleteDcaeServicesService(String serviceId) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + public DCAEService getDcaeServicesService(String serviceId) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @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(); + } + + /** + * + * + * @generated + */ + public void poll() { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.DCAE_INVENTORY__SERVICE_TYPES: + getServiceTypes().clear(); + getServiceTypes().addAll((Collection)newValue); + return; + case InventoryPackage.DCAE_INVENTORY__SERVICES: + getServices().clear(); + getServices().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'Inline Response2001'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl#getLinks Links}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl#getTotalCount Total Count}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceResultsImpl#getItems Items}
    • + *
    + * + * @generated + */ +public class DcaeServiceResultsImpl extends MinimalEObjectImpl.Container implements DcaeServiceResults { + /** + * The cached value of the '{@link #getLinks() Links}' containment reference list. + * + * + * @see #getLinks() + * @generated + * @ordered + */ + protected EList links; + + /** + * The default value of the '{@link #getTotalCount() Total Count}' attribute. + * + * + * @see #getTotalCount() + * @generated + * @ordered + */ + protected static final Integer TOTAL_COUNT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTotalCount() Total Count}' attribute. + * + * + * @see #getTotalCount() + * @generated + * @ordered + */ + protected Integer totalCount = TOTAL_COUNT_EDEFAULT; + + /** + * The cached value of the '{@link #getItems() Items}' containment reference list. + * + * + * @see #getItems() + * @generated + * @ordered + */ + protected EList items; + + /** + * + * + * @generated + */ + protected DcaeServiceResultsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_RESULTS; + } + + /** + * + * + * @generated + */ + public EList getLinks() { + if (links == null) { + links = new EObjectContainmentEList(Link.class, this, InventoryPackage.DCAE_SERVICE_RESULTS__LINKS); + } + return links; + } + + /** + * + * + * @generated + */ + public Integer getTotalCount() { + return totalCount; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getItems() { + if (items == null) { + items = new EObjectContainmentEList(DCAEService.class, this, InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS); + } + return items; + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.DCAE_SERVICE_RESULTS__LINKS: + getLinks().clear(); + getLinks().addAll((Collection)newValue); + return; + case InventoryPackage.DCAE_SERVICE_RESULTS__TOTAL_COUNT: + setTotalCount((Integer)newValue); + return; + case InventoryPackage.DCAE_SERVICE_RESULTS__ITEMS: + getItems().clear(); + getItems().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'Inline Response200'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl#getLinks Links}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl#getTotalCount Total Count}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.DcaeServiceTypeResultsImpl#getItems Items}
    • + *
    + * + * @generated + */ +public class DcaeServiceTypeResultsImpl extends MinimalEObjectImpl.Container implements DcaeServiceTypeResults { + /** + * The cached value of the '{@link #getLinks() Links}' containment reference list. + * + * + * @see #getLinks() + * @generated + * @ordered + */ + protected EList links; + + /** + * The default value of the '{@link #getTotalCount() Total Count}' attribute. + * + * + * @see #getTotalCount() + * @generated + * @ordered + */ + protected static final Integer TOTAL_COUNT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTotalCount() Total Count}' attribute. + * + * + * @see #getTotalCount() + * @generated + * @ordered + */ + protected Integer totalCount = TOTAL_COUNT_EDEFAULT; + + /** + * The cached value of the '{@link #getItems() Items}' containment reference list. + * + * + * @see #getItems() + * @generated + * @ordered + */ + protected EList items; + + /** + * + * + * @generated + */ + protected DcaeServiceTypeResultsImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.DCAE_SERVICE_TYPE_RESULTS; + } + + /** + * + * + * @generated + */ + public EList getLinks() { + if (links == null) { + links = new EObjectContainmentEList(Link.class, this, InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__LINKS); + } + return links; + } + + /** + * + * + * @generated + */ + public Integer getTotalCount() { + return totalCount; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getItems() { + if (items == null) { + items = new EObjectContainmentEList(DCAEServiceType.class, this, InventoryPackage.DCAE_SERVICE_TYPE_RESULTS__ITEMS); + } + return items; + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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)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)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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.*; + +/** + * + * An implementation of the model Factory. + * + * @generated + */ +public class InventoryFactoryImpl extends EFactoryImpl implements InventoryFactory { + /** + * Creates the default factory implementation. + * + * + * @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. + * + * + * @generated + */ + public InventoryFactoryImpl() { + super(); + } + + /** + * + * + * @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"); + } + } + + /** + * + * + * @generated + */ + public DcaeInventory createDcaeInventory() { + DcaeInventoryImpl dcaeInventory = new DcaeInventoryImpl(); + return dcaeInventory; + } + + /** + * + * + * @generated + */ + public ApiResponseMessage createApiResponseMessage() { + ApiResponseMessageImpl apiResponseMessage = new ApiResponseMessageImpl(); + return apiResponseMessage; + } + + /** + * + * + * @generated + */ + public DCAEServiceComponent createDCAEServiceComponent() { + DCAEServiceComponentImpl dcaeServiceComponent = new DCAEServiceComponentImpl(); + return dcaeServiceComponent; + } + + /** + * + * + * @generated + */ + public DCAEServiceComponentRequest createDCAEServiceComponentRequest() { + DCAEServiceComponentRequestImpl dcaeServiceComponentRequest = new DCAEServiceComponentRequestImpl(); + return dcaeServiceComponentRequest; + } + + /** + * + * + * @generated + */ + public DCAEService createDCAEService() { + DCAEServiceImpl dcaeService = new DCAEServiceImpl(); + return dcaeService; + } + + /** + * + * + * @generated + */ + public DCAEServiceGroupByResults createDCAEServiceGroupByResults() { + DCAEServiceGroupByResultsImpl dcaeServiceGroupByResults = new DCAEServiceGroupByResultsImpl(); + return dcaeServiceGroupByResults; + } + + /** + * + * + * @generated + */ + public DCAEServiceGroupByResultsPropertyValues createDCAEServiceGroupByResultsPropertyValues() { + DCAEServiceGroupByResultsPropertyValuesImpl dcaeServiceGroupByResultsPropertyValues = new DCAEServiceGroupByResultsPropertyValuesImpl(); + return dcaeServiceGroupByResultsPropertyValues; + } + + /** + * + * + * @generated + */ + public DCAEServiceRequest createDCAEServiceRequest() { + DCAEServiceRequestImpl dcaeServiceRequest = new DCAEServiceRequestImpl(); + return dcaeServiceRequest; + } + + /** + * + * + * @generated + */ + public DCAEServiceType createDCAEServiceType() { + DCAEServiceTypeImpl dcaeServiceType = new DCAEServiceTypeImpl(); + return dcaeServiceType; + } + + /** + * + * + * @generated + */ + public DCAEServiceTypeRequest createDCAEServiceTypeRequest() { + DCAEServiceTypeRequestImpl dcaeServiceTypeRequest = new DCAEServiceTypeRequestImpl(); + return dcaeServiceTypeRequest; + } + + /** + * + * + * @generated + */ + public DcaeServiceResults createDcaeServiceResults() { + DcaeServiceResultsImpl dcaeServiceResults = new DcaeServiceResultsImpl(); + return dcaeServiceResults; + } + + /** + * + * + * @generated + */ + public DcaeServiceTypeResults createDcaeServiceTypeResults() { + DcaeServiceTypeResultsImpl dcaeServiceTypeResults = new DcaeServiceTypeResultsImpl(); + return dcaeServiceTypeResults; + } + + /** + * + * + * @generated + */ + public Link createLink() { + LinkImpl link = new LinkImpl(); + return link; + } + + /** + * + * + * @generated + */ + public Parameter createParameter() { + ParameterImpl parameter = new ParameterImpl(); + return parameter; + } + + /** + * + * + * @generated + */ + public UriBuilder createUriBuilder() { + UriBuilderImpl uriBuilder = new UriBuilderImpl(); + return uriBuilder; + } + + /** + * + * + * @generated + */ + public InventoryPackage getInventoryPackage() { + return (InventoryPackage)getEPackage(); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model Package. + * + * @generated + */ +public class InventoryPackageImpl extends EPackageImpl implements InventoryPackage { + /** + * + * + * @generated + */ + private EClass dcaeInventoryEClass = null; + + /** + * + * + * @generated + */ + private EClass apiResponseMessageEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceComponentEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceComponentRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceGroupByResultsEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceGroupByResultsPropertyValuesEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceTypeRequestEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceResultsEClass = null; + + /** + * + * + * @generated + */ + private EClass dcaeServiceTypeResultsEClass = null; + + /** + * + * + * @generated + */ + private EClass linkEClass = null; + + /** + * + * + * @generated + */ + private EClass parameterEClass = null; + + /** + * + * + * @generated + */ + private EClass uriBuilderEClass = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

    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. + * + * + * @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); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

    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. + * + * + * @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; + } + + /** + * + * + * @generated + */ + public EClass getDcaeInventory() { + return dcaeInventoryEClass; + } + + /** + * + * + * @generated + */ + public EReference getDcaeInventory_ServiceTypes() { + return (EReference)dcaeInventoryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDcaeInventory_Services() { + return (EReference)dcaeInventoryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServiceTypes__String_Boolean_Boolean_String_String_String_String_String_Integer() { + return dcaeInventoryEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__DeleteDcaeServiceTypesType__String() { + return dcaeInventoryEClass.getEOperations().get(1); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServiceTypesType__String() { + return dcaeInventoryEClass.getEOperations().get(2); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__CreateDcaeServiceTypesTypeName__DCAEServiceTypeRequest() { + return dcaeInventoryEClass.getEOperations().get(3); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServices__String_String_String_String_String_Boolean_String_Integer() { + return dcaeInventoryEClass.getEOperations().get(4); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServicesGroupbyPropertyName__String() { + return dcaeInventoryEClass.getEOperations().get(5); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__DeleteDcaeServicesService__String() { + return dcaeInventoryEClass.getEOperations().get(6); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__GetDcaeServicesService__String() { + return dcaeInventoryEClass.getEOperations().get(7); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__CreateDcaeServicesService__String_DCAEServiceRequest() { + return dcaeInventoryEClass.getEOperations().get(8); + } + + /** + * + * + * @generated + */ + public EOperation getDcaeInventory__Poll() { + return dcaeInventoryEClass.getEOperations().get(9); + } + + /** + * + * + * @generated + */ + public EClass getApiResponseMessage() { + return apiResponseMessageEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getApiResponseMessage_Code() { + return (EAttribute)apiResponseMessageEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getApiResponseMessage_Type() { + return (EAttribute)apiResponseMessageEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getApiResponseMessage_Message() { + return (EAttribute)apiResponseMessageEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getDCAEServiceComponent() { + return dcaeServiceComponentEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_ComponentId() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDCAEServiceComponent_ComponentLink() { + return (EReference)dcaeServiceComponentEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_Created1() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_Modified() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_ComponentType() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_ComponentSource() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_Status() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_Location() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponent_Shareable() { + return (EAttribute)dcaeServiceComponentEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EClass getDCAEServiceComponentRequest() { + return dcaeServiceComponentRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_ComponentId() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_ComponentType() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_ComponentSource() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceComponentRequest_Shareable() { + return (EAttribute)dcaeServiceComponentRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getDCAEService() { + return dcaeServiceEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEService_ServiceId() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDCAEService_SelfLink() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEService_Created1() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEService_Modified() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EReference getDCAEService_TypeLink() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEService_VnfId() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EReference getDCAEService_VnfLink() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEService_VnfType() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEService_VnfLocation() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEService_DeploymentRef() { + return (EAttribute)dcaeServiceEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EReference getDCAEService_Components() { + return (EReference)dcaeServiceEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EClass getDCAEServiceGroupByResults() { + return dcaeServiceGroupByResultsEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceGroupByResults_PropertyName() { + return (EAttribute)dcaeServiceGroupByResultsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getDCAEServiceGroupByResults_PropertyValues() { + return (EReference)dcaeServiceGroupByResultsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getDCAEServiceGroupByResultsPropertyValues() { + return dcaeServiceGroupByResultsPropertyValuesEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceGroupByResultsPropertyValues_Count() { + return (EAttribute)dcaeServiceGroupByResultsPropertyValuesEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceGroupByResultsPropertyValues_PropertyValue() { + return (EAttribute)dcaeServiceGroupByResultsPropertyValuesEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDCAEServiceGroupByResultsPropertyValues_DcaeServiceQueryLink() { + return (EReference)dcaeServiceGroupByResultsPropertyValuesEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getDCAEServiceRequest() { + return dcaeServiceRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceRequest_TypeId() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceRequest_VnfId() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceRequest_VnfType() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceRequest_VnfLocation() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceRequest_DeploymentRef() { + return (EAttribute)dcaeServiceRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getDCAEServiceRequest_Components() { + return (EReference)dcaeServiceRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EClass getDCAEServiceType() { + return dcaeServiceTypeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_Owner() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_TypeName() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_TypeVersion() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_BlueprintTemplate() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_ServiceIds() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_VnfTypes() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_ServiceLocations() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_AsdcServiceId() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_AsdcResourceId() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_AsdcServiceURL() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_TypeId() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + public EReference getDCAEServiceType_SelfLink() { + return (EReference)dcaeServiceTypeEClass.getEStructuralFeatures().get(11); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_Created1() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(12); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceType_Deactivated() { + return (EAttribute)dcaeServiceTypeEClass.getEStructuralFeatures().get(13); + } + + /** + * + * + * @generated + */ + public EClass getDCAEServiceTypeRequest() { + return dcaeServiceTypeRequestEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_Owner() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_TypeName() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_TypeVersion() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_BlueprintTemplate() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_ServiceIds() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_VnfTypes() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_ServiceLocations() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_AsdcServiceId() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_AsdcResourceId() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + public EAttribute getDCAEServiceTypeRequest_AsdcServiceURL() { + return (EAttribute)dcaeServiceTypeRequestEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + public EClass getDcaeServiceResults() { + return dcaeServiceResultsEClass; + } + + /** + * + * + * @generated + */ + public EReference getDcaeServiceResults_Links() { + return (EReference)dcaeServiceResultsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDcaeServiceResults_TotalCount() { + return (EAttribute)dcaeServiceResultsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDcaeServiceResults_Items() { + return (EReference)dcaeServiceResultsEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getDcaeServiceTypeResults() { + return dcaeServiceTypeResultsEClass; + } + + /** + * + * + * @generated + */ + public EReference getDcaeServiceTypeResults_Links() { + return (EReference)dcaeServiceTypeResultsEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getDcaeServiceTypeResults_TotalCount() { + return (EAttribute)dcaeServiceTypeResultsEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getDcaeServiceTypeResults_Items() { + return (EReference)dcaeServiceTypeResultsEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getLink() { + return linkEClass; + } + + /** + * + * + * @generated + */ + public EReference getLink_Params() { + return (EReference)linkEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Title() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Rel() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Href() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Uri() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + public EReference getLink_UriBuilder() { + return (EReference)linkEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Rels() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + public EAttribute getLink_Type() { + return (EAttribute)linkEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + public EClass getParameter() { + return parameterEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getParameter_Value() { + return (EAttribute)parameterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getUriBuilder() { + return uriBuilderEClass; + } + + /** + * + * + * @generated + */ + public InventoryFactory getInventoryFactory() { + return (InventoryFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @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); + } + + /** + * + * + * @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. + * + * + * @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; + +/** + * + * An implementation of the model object 'Link'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getParams Params}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getTitle Title}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getRel Rel}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getHref Href}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getUri Uri}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getUriBuilder Uri Builder}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getRels Rels}
    • + *
    • {@link org.openecomp.dcae.controller.inventory.impl.LinkImpl#getType Type}
    • + *
    + * + * @generated + */ +public class LinkImpl extends NamedEntityImpl implements Link { + /** + * The cached value of the '{@link #getParams() Params}' containment reference list. + * + * + * @see #getParams() + * @generated + * @ordered + */ + protected EList params; + + /** + * The default value of the '{@link #getTitle() Title}' attribute. + * + * + * @see #getTitle() + * @generated + * @ordered + */ + protected static final String TITLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTitle() Title}' attribute. + * + * + * @see #getTitle() + * @generated + * @ordered + */ + protected String title = TITLE_EDEFAULT; + + /** + * The default value of the '{@link #getRel() Rel}' attribute. + * + * + * @see #getRel() + * @generated + * @ordered + */ + protected static final String REL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRel() Rel}' attribute. + * + * + * @see #getRel() + * @generated + * @ordered + */ + protected String rel = REL_EDEFAULT; + + /** + * The default value of the '{@link #getHref() Href}' attribute. + * + * + * @see #getHref() + * @generated + * @ordered + */ + protected static final String HREF_EDEFAULT = null; + + /** + * The cached value of the '{@link #getHref() Href}' attribute. + * + * + * @see #getHref() + * @generated + * @ordered + */ + protected String href = HREF_EDEFAULT; + + /** + * The default value of the '{@link #getUri() Uri}' attribute. + * + * + * @see #getUri() + * @generated + * @ordered + */ + protected static final String URI_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUri() Uri}' attribute. + * + * + * @see #getUri() + * @generated + * @ordered + */ + protected String uri = URI_EDEFAULT; + + /** + * The cached value of the '{@link #getUriBuilder() Uri Builder}' containment reference. + * + * + * @see #getUriBuilder() + * @generated + * @ordered + */ + protected UriBuilder uriBuilder; + + /** + * The cached value of the '{@link #getRels() Rels}' attribute list. + * + * + * @see #getRels() + * @generated + * @ordered + */ + protected EList rels; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected LinkImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.LINK; + } + + /** + * + * + * @generated + */ + public EList getParams() { + if (params == null) { + params = new EObjectContainmentEList(Parameter.class, this, InventoryPackage.LINK__PARAMS); + } + return params; + } + + /** + * + * + * @generated + */ + public String getTitle() { + return title; + } + + /** + * + * + * @generated + */ + public void setTitle(String newTitle) { + String oldTitle = title; + title = newTitle; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__TITLE, oldTitle, title)); + } + + /** + * + * + * @generated + */ + public String getRel() { + return rel; + } + + /** + * + * + * @generated + */ + public void setRel(String newRel) { + String oldRel = rel; + rel = newRel; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__REL, oldRel, rel)); + } + + /** + * + * + * @generated + */ + public String getHref() { + return href; + } + + /** + * + * + * @generated + */ + public void setHref(String newHref) { + String oldHref = href; + href = newHref; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__HREF, oldHref, href)); + } + + /** + * + * + * @generated + */ + public String getUri() { + return uri; + } + + /** + * + * + * @generated + */ + public void setUri(String newUri) { + String oldUri = uri; + uri = newUri; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__URI, oldUri, uri)); + } + + /** + * + * + * @generated + */ + public UriBuilder getUriBuilder() { + return uriBuilder; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + + /** + * + * + * @generated + */ + public EList getRels() { + if (rels == null) { + rels = new EDataTypeEList(String.class, this, InventoryPackage.LINK__RELS); + } + return rels; + } + + /** + * + * + * @generated + */ + public String getType() { + return type; + } + + /** + * + * + * @generated + */ + public void setType(String newType) { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.LINK__TYPE, oldType, type)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.LINK__PARAMS: + getParams().clear(); + getParams().addAll((Collection)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)newValue); + return; + case InventoryPackage.LINK__TYPE: + setType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'Parameter'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link org.openecomp.dcae.controller.inventory.impl.ParameterImpl#getValue Value}
    • + *
    + * + * @generated + */ +public class ParameterImpl extends NamedEntityImpl implements Parameter { + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected ParameterImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return InventoryPackage.Literals.PARAMETER; + } + + /** + * + * + * @generated + */ + public String getValue() { + return value; + } + + /** + * + * + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, InventoryPackage.PARAMETER__VALUE, oldValue, value)); + } + + /** + * + * + * @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); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case InventoryPackage.PARAMETER__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case InventoryPackage.PARAMETER__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @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); + } + + /** + * + * + * @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; + +/** + * + * An implementation of the model object 'Uri Builder'. + * + * + * @generated + */ +public class UriBuilderImpl extends MinimalEObjectImpl.Container implements UriBuilder { + /** + * + * + * @generated + */ + protected UriBuilderImpl() { + super(); + } + + /** + * + * + * @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; + +/** + * + * The Adapter Factory for the model. + * It provides an adapter createXXX method for each class of the model. + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage + * @generated + */ +public class InventoryAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * + * @generated + */ + protected static InventoryPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * + * @generated + */ + public InventoryAdapterFactory() { + if (modelPackage == null) { + modelPackage = InventoryPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. + * + * This implementation returns true if the object is either the model's package or is an instance object of the model. + * + * @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 createXXX methods. + * + * + * @generated + */ + protected InventorySwitch modelSwitch = + new InventorySwitch() { + @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 target. + * + * + * @param target the object to adapt. + * @return the adapter for the target. + * @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 Dcae Inventory}'. + * + * 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. + * + * @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 Api Response Message}'. + * + * 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. + * + * @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 DCAE Service Component}'. + * + * 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. + * + * @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 DCAE Service Component Request}'. + * + * 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. + * + * @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 DCAE Service}'. + * + * 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. + * + * @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 DCAE Service Group By Results}'. + * + * 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. + * + * @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 DCAE Service Group By Results Property Values}'. + * + * 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. + * + * @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 DCAE Service Request}'. + * + * 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. + * + * @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 DCAE Service Type}'. + * + * 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. + * + * @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 DCAE Service Type Request}'. + * + * 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. + * + * @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 Dcae Service Results}'. + * + * 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. + * + * @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 Dcae Service Type Results}'. + * + * 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. + * + * @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 Link}'. + * + * 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. + * + * @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 Parameter}'. + * + * 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. + * + * @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 Uri Builder}'. + * + * 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. + * + * @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 Named Entity}'. + * + * 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. + * + * @return the new adapter. + * @see org.openecomp.ncomp.core.NamedEntity + * @generated + */ + public Adapter createNamedEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. + * + * This default implementation returns null. + * + * @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; + +/** + * + * The Switch for the model's inheritance hierarchy. + * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * to invoke the caseXXX 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. + * + * @see org.openecomp.dcae.controller.inventory.InventoryPackage + * @generated + */ +public class InventorySwitch extends Switch { + /** + * The cached model package + * + * + * @generated + */ + protected static InventoryPackage modelPackage; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public InventorySwitch() { + if (modelPackage == null) { + modelPackage = InventoryPackage.eINSTANCE; + } + } + + /** + * Checks whether this is a switch for the given package. + * + * + * @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 caseXXX for each class of the model until one returns a non null result; it yields that result. + * + * + * @return the first non-null result returned by a caseXXX 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 'Dcae Inventory'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Inventory'. + * @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 'Api Response Message'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Api Response Message'. + * @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 'DCAE Service Component'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service Component'. + * @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 'DCAE Service Component Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service Component Request'. + * @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 'DCAE Service'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service'. + * @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 'DCAE Service Group By Results'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service Group By Results'. + * @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 'DCAE Service Group By Results Property Values'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service Group By Results Property Values'. + * @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 'DCAE Service Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service Request'. + * @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 'DCAE Service Type'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service Type'. + * @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 'DCAE Service Type Request'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'DCAE Service Type Request'. + * @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 'Dcae Service Results'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Service Results'. + * @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 'Dcae Service Type Results'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Dcae Service Type Results'. + * @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 'Link'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Link'. + * @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 'Parameter'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Parameter'. + * @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 'Uri Builder'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Uri Builder'. + * @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 'Named Entity'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Named Entity'. + * @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 'EObject'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'EObject'. + * @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 @@ - + + + + + + + - + + + + + + + + + + + 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 @@ + + org.eclipse.m2e.core.maven2Builder + + + + org.eclipse.m2e.core.maven2Nature org.eclipse.jdt.core.javanature org.eclipse.pde.PluginNature org.eclipse.xtext.ui.shared.xtextNature 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/=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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getMyServerName My Server Name}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getRole Role}
    • @@ -42,7 +43,6 @@ import org.eclipse.emf.ecore.EObject; *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getServers Servers}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerCluster#getRemoteServers Remote Servers}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServer#getRole Role}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServer#getData Data}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServer#getServer Server}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getPushInterval Push Interval}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getLastPush Last Push}
    • @@ -44,7 +45,6 @@ import org.openecomp.ncomp.core.types.metrics.IncreasingULongMetricAttribute; *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getNumberDataReceived Number Data Received}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.ControllerClusterServerData#getNumberDataReceivedErrors Number Data Received Errors}
    • *
    - *

    * * @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; *
  • and each data type
  • * * + * + * - + * ============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============================================ + * * @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'" @@ -148,6 +166,15 @@ public interface ControllerPackage extends EPackage { */ int DCAE_PLATFORM_CONTROLLER__DATABUS = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 5; + /** + * The feature id for the 'Inventory' containment reference. + * + * + * @generated + * @ordered + */ + int DCAE_PLATFORM_CONTROLLER__INVENTORY = ServerPackage.SOUTH_BOUND_API_WITH_PROXY_FEATURE_COUNT + 6; + /** * The feature id for the 'Descriptors' containment reference list. * @@ -155,7 +182,7 @@ public interface ControllerPackage extends EPackage { * @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 'Services' 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 'Users' 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 'Admin Users' 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 'Dcae Platform Controller' 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 'Logs' operation. @@ -942,6 +969,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 Inventory}'. + * + * + * @return the meta object for the containment reference 'Inventory'. + * @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 Services}'. * @@ -1360,6 +1398,14 @@ public interface ControllerPackage extends EPackage { */ EReference DCAE_PLATFORM_CONTROLLER__DATABUS = eINSTANCE.getDcaePlatformController_Databus(); + /** + * The meta object literal for the 'Inventory' containment reference feature. + * + * + * @generated + */ + EReference DCAE_PLATFORM_CONTROLLER__INVENTORY = eINSTANCE.getDcaePlatformController_Inventory(); + /** * The meta object literal for the 'Services' containment reference list feature. * 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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getStreams Streams}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getLocations Locations}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getMrClusters Mr Clusters}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaeDataBus#getDrNodes Dr Nodes}
    • *
    - *

    * * @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; * *

    * The following features are supported: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getCluster Cluster}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getOpenstack Openstack}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getLocations Locations}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getDatabus Databus}
    • + *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getInventory Inventory}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getDescriptors Descriptors}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getServices Services}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getUsers Users}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.DcaePlatformController#getAdminUsers Admin Users}
    • *
    - *

    * * @see org.openecomp.dcae.controller.platform.controller.ControllerPackage#getDcaePlatformController() * @model @@ -150,6 +152,32 @@ public interface DcaePlatformController extends SouthBoundApiWithProxy, Abstract */ void setDatabus(DcaeDataBus value); + /** + * Returns the value of the 'Inventory' containment reference. + * + *

    + * If the meaning of the 'Inventory' containment reference isn't clear, + * there really should be more of a description here... + *

    + * + * @return the value of the 'Inventory' 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 Inventory}' containment reference. + * + * + * @param value the new value of the 'Inventory' containment reference. + * @see #getInventory() + * @generated + */ + void setInventory(DcaeInventory value); + /** * Returns the value of the 'Services' containment reference list. * The list contents are of type {@link org.openecomp.dcae.controller.core.service.DcaeService}. 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 'Server Role' literal with the specified literal value. * * + * @param literal the literal. + * @return the matching enumerator or null. * @generated */ public static ServerRole get(String literal) { @@ -179,6 +181,8 @@ public enum ServerRole implements Enumerator { * Returns the 'Server Role' literal with the specified name. * * + * @param name the name. + * @return the matching enumerator or null. * @generated */ public static ServerRole getByName(String name) { @@ -195,6 +199,8 @@ public enum ServerRole implements Enumerator { * Returns the 'Server Role' literal with the specified integer value. * * + * @param value the integer value. + * @return the matching enumerator or null. * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getMyServerName My Server Name}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getRole Role}
    • @@ -57,7 +58,6 @@ import org.eclipse.emf.ecore.util.InternalEList; *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getServers Servers}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterImpl#getRemoteServers Remote Servers}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getPushInterval Push Interval}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getLastPush Last Push}
    • @@ -52,7 +53,6 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getNumberDataReceived Number Data Received}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerDataImpl#getNumberDataReceivedErrors Number Data Received Errors}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerImpl#getRole Role}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerImpl#getData Data}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.ControllerClusterServerImpl#getServer Server}
    • *
    - *

    * * @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(); @@ -214,13 +216,22 @@ public class ControllerPackageImpl extends EPackageImpl implements ControllerPac return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(3); } + /** + * + * + * @generated + */ + public EReference getDcaePlatformController_Inventory() { + return (EReference)dcaePlatformControllerEClass.getEStructuralFeatures().get(4); + } + /** * * * @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; * * An implementation of the model object 'Virtual Machine Service'. * - *

    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getStreams Streams}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getLocations Locations}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getMrClusters Mr Clusters}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaeDataBusImpl#getDrNodes Dr Nodes}
    • *
    - *

    * * @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; * *

    * The following features are implemented: + *

    *
      *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getConfiguration Configuration}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getComponent Component}
    • @@ -69,12 +71,12 @@ import org.json.JSONObject; *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getOpenstack Openstack}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getLocations Locations}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getDatabus Databus}
    • + *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getInventory Inventory}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getDescriptors Descriptors}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getServices Services}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getUsers Users}
    • *
    • {@link org.openecomp.dcae.controller.platform.controller.impl.DcaePlatformControllerImpl#getAdminUsers Admin Users}
    • *
    - *

    * * @generated */ @@ -139,6 +141,16 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple */ protected DcaeDataBus databus; + /** + * The cached value of the '{@link #getInventory() Inventory}' containment reference. + * + * + * @see #getInventory() + * @generated + * @ordered + */ + protected DcaeInventory inventory; + /** * The cached value of the '{@link #getDescriptors() Descriptors}' containment reference list. * @@ -425,6 +437,49 @@ public class DcaePlatformControllerImpl extends SouthBoundApiWithProxyImpl imple eNotify(new ENotificationImpl(this, Notification.SET, ControllerPackage.DCAE_PLATFORM_CONTROLLER__DATABUS, newDatabus, newDatabus)); } + /** + * + * + * @generated + */ + public DcaeInventory getInventory() { + return inventory; + } + + /** + * + * + * @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; + } + + /** + * + * + * @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)); + } + /** * * @@ -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)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 extends Switch { * Checks whether this is a switch for the given package. * * - * @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 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 headers = new HashMap(); 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 headers = new HashMap(); + HashMap query = new HashMap(); + // 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 headers = new HashMap(); + HashMap query = new HashMap(); + // 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 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 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 delete = new ArrayList(); + for (Iterator 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 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") ; diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java index e89de5c..aa0ad80 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-adaptor/src/main/java/org/openecomp/dcae/controller/service/servers/cdap/DcaeCdapServiceProvider.java @@ -141,64 +141,77 @@ public class DcaeCdapServiceProvider extends BasicAdaptorProvider { private void doSteps(DcaeCdapClusterManagerConsole console, CdapServiceInstance i, EList steps) { for (CdapStep s : steps) { - if (s instanceof CdapLoadArtifactStep) { - CdapLoadArtifactStep s1 = (CdapLoadArtifactStep) s; - console.loadArtifact(i.getCdapName(), s1.getArtifactName(), s1.getJarfile(), s1.getVersion()); - } if (s instanceof CdapLoadArtifactWithConfigStep) { CdapLoadArtifactWithConfigStep s1 = (CdapLoadArtifactWithConfigStep) s; - console.loadArtifactWithConfig(i.getCdapName(), s1.getArtifactName(), s1.getJarfile(), s1.getVersion(), + console.loadArtifactWithConfig(i.getCdapName(), s1.getArtifactName(), s1.getJarFile(), s1.getVersion(), s1.getConfig()); + continue; + } + if (s instanceof CdapLoadArtifactStep) { + CdapLoadArtifactStep s1 = (CdapLoadArtifactStep) s; + console.loadArtifact(i.getCdapName(), s1.getArtifactName(), s1.getJarFile(), s1.getVersion()); + continue; } if (s instanceof CdapDeployAppStep) { CdapDeployAppStep s1 = (CdapDeployAppStep) s; - console.deployApp(i.getCdapName(), s1.getJarfile()); - } - if (s instanceof CdapCreateAppStep) { - CdapCreateAppStep s1 = (CdapCreateAppStep) s; - console.createApp(i.getCdapName(), s1.getAppId(), s1.getArtifactName(), s1.getVersion(), s1.getScope()); + console.deployApp(i.getCdapName(), s1.getJarFile()); + continue; } if (s instanceof CdapCreateAppWithConfigStep) { CdapCreateAppWithConfigStep s1 = (CdapCreateAppWithConfigStep) s; console.createAppWithConfig(i.getCdapName(), s1.getAppId(), s1.getArtifactName(), s1.getVersion(), s1.getScope(), s1.getAppConfig()); + continue; + } + if (s instanceof CdapCreateAppStep) { + CdapCreateAppStep s1 = (CdapCreateAppStep) s; + console.createApp(i.getCdapName(), s1.getAppId(), s1.getArtifactName(), s1.getVersion(), s1.getScope()); + continue; } if (s instanceof CdapStartAppStep) { CdapStartAppStep s1 = (CdapStartAppStep) s; console.startApp(i.getCdapName(), s1.getAppId()); + continue; } if (s instanceof CdapStartFlowStep) { CdapStartFlowStep s1 = (CdapStartFlowStep) s; console.startFlow(i.getCdapName(), s1.getAppId(), s1.getFlowId(), s1.getExtraArgs()); + continue; } if (s instanceof CdapStartWorkerStep) { CdapStartWorkerStep s1 = (CdapStartWorkerStep) s; console.startWorker(i.getCdapName(), s1.getAppId(), s1.getWorkerId(), s1.getExtraArgs()); + continue; } if (s instanceof CdapStartServiceStep) { CdapStartServiceStep s1 = (CdapStartServiceStep) s; console.startService(i.getCdapName(), s1.getAppId(), s1.getServiceId(), s1.getExtraArgs()); + continue; } if (s instanceof CdapStopAppStep) { CdapStopAppStep s1 = (CdapStopAppStep) s; console.stopApp(i.getCdapName(), s1.getAppId()); + continue; } if (s instanceof CdapStopFlowStep) { CdapStopFlowStep s1 = (CdapStopFlowStep) s; console.stopFlow(i.getCdapName(), s1.getAppId(), s1.getFlowId()); + continue; } if (s instanceof CdapStopWorkerStep) { CdapStopWorkerStep s1 = (CdapStopWorkerStep) s; console.stopWorker(i.getCdapName(), s1.getAppId(), s1.getWorkerId()); + continue; } if (s instanceof CdapStopServiceStep) { CdapStopServiceStep s1 = (CdapStopServiceStep) s; console.stopService(i.getCdapName(), s1.getAppId(), s1.getServiceId()); + continue; } if (s instanceof CdapResumeScheduleStep) { CdapResumeScheduleStep s1 = (CdapResumeScheduleStep) s; console.resumeSchedule(i.getCdapName(), s1.getAppId(), s1.getScheduleId()); - + continue; } } } diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/manager.sh b/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/manager.sh index 4bf41b1..f20ffd9 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/manager.sh +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-cluster/dcae-controller-service-cdap-cluster-manager/src/main/server/bin/manager.sh @@ -22,9 +22,13 @@ VMTYPE=$(ls /tmp/vm-*manager.properties | sed s/-manager.properties// | sed sx/t case $CMD1 in start) CLUSTER_FILE=data/resources/cluster.json + if [ -e config/version.json ]; then + rm -rf data/resources/configuration/version* + cp config/version.json data/resources/configuration/ + fi if [ ! -e $CLUSTER_FILE ]; then mkdir -p $(dirname $CLUSTER_FILE) - echo '{ "baseUrl": "http://localhost:10000/v3", "pollingFrequency": "30000" }' > $CLUSTER_FILE + echo '{ "baseUrl": "http://localhost:10000/v3", "pollingFrequency": "30000", "$version": "ONAP-R2" }' > $CLUSTER_FILE fi JVMARGS=$(cat config/manager.properties | grep JVMARGS | sed 's/[^=]*=//') $CMD $CMD1 $JVMARGS diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapDeployAppStep.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapDeployAppStep.java index e4a884e..f0a4705 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapDeployAppStep.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapDeployAppStep.java @@ -12,7 +12,7 @@ package org.openecomp.dcae.controller.service.cdap; * The following features are supported: *

    *
      - *
    • {@link org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarfile Jarfile}
    • + *
    • {@link org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarFile Jar File}
    • *
    * * @see org.openecomp.dcae.controller.service.cdap.CdapPackage#getCdapDeployAppStep() @@ -21,29 +21,29 @@ package org.openecomp.dcae.controller.service.cdap; */ public interface CdapDeployAppStep extends CdapStep { /** - * Returns the value of the 'Jarfile' attribute. + * Returns the value of the 'Jar File' attribute. * *

    - * If the meaning of the 'Jarfile' attribute isn't clear, + * If the meaning of the 'Jar File' attribute isn't clear, * there really should be more of a description here... *

    * - * @return the value of the 'Jarfile' attribute. - * @see #setJarfile(String) - * @see org.openecomp.dcae.controller.service.cdap.CdapPackage#getCdapDeployAppStep_Jarfile() + * @return the value of the 'Jar File' attribute. + * @see #setJarFile(String) + * @see org.openecomp.dcae.controller.service.cdap.CdapPackage#getCdapDeployAppStep_JarFile() * @model unique="false" * @generated */ - String getJarfile(); + String getJarFile(); /** - * Sets the value of the '{@link org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarfile Jarfile}' attribute. + * Sets the value of the '{@link org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarFile Jar File}' attribute. * * - * @param value the new value of the 'Jarfile' attribute. - * @see #getJarfile() + * @param value the new value of the 'Jar File' attribute. + * @see #getJarFile() * @generated */ - void setJarfile(String value); + void setJarFile(String value); } // CdapDeployAppStep diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapLoadArtifactStep.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapLoadArtifactStep.java index 9826779..3c8ebf6 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapLoadArtifactStep.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapLoadArtifactStep.java @@ -13,7 +13,7 @@ package org.openecomp.dcae.controller.service.cdap; *

    *
      *
    • {@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getArtifactName Artifact Name}
    • - *
    • {@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarfile Jarfile}
    • + *
    • {@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarFile Jar File}
    • *
    • {@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getVersion Version}
    • *
    * @@ -50,30 +50,30 @@ public interface CdapLoadArtifactStep extends CdapStep { void setArtifactName(String value); /** - * Returns the value of the 'Jarfile' attribute. + * Returns the value of the 'Jar File' attribute. * *

    - * If the meaning of the 'Jarfile' attribute isn't clear, + * If the meaning of the 'Jar File' attribute isn't clear, * there really should be more of a description here... *

    * - * @return the value of the 'Jarfile' attribute. - * @see #setJarfile(String) - * @see org.openecomp.dcae.controller.service.cdap.CdapPackage#getCdapLoadArtifactStep_Jarfile() + * @return the value of the 'Jar File' attribute. + * @see #setJarFile(String) + * @see org.openecomp.dcae.controller.service.cdap.CdapPackage#getCdapLoadArtifactStep_JarFile() * @model unique="false" * @generated */ - String getJarfile(); + String getJarFile(); /** - * Sets the value of the '{@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarfile Jarfile}' attribute. + * Sets the value of the '{@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarFile Jar File}' attribute. * * - * @param value the new value of the 'Jarfile' attribute. - * @see #getJarfile() + * @param value the new value of the 'Jar File' attribute. + * @see #getJarFile() * @generated */ - void setJarfile(String value); + void setJarFile(String value); /** * Returns the value of the 'Version' attribute. diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapPackage.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapPackage.java index d0f18c1..7582421 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapPackage.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/CdapPackage.java @@ -1122,13 +1122,13 @@ public interface CdapPackage extends EPackage { int CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME = CDAP_STEP_FEATURE_COUNT + 0; /** - * The feature id for the 'Jarfile' attribute. + * The feature id for the 'Jar File' attribute. * * * @generated * @ordered */ - int CDAP_LOAD_ARTIFACT_STEP__JARFILE = CDAP_STEP_FEATURE_COUNT + 1; + int CDAP_LOAD_ARTIFACT_STEP__JAR_FILE = CDAP_STEP_FEATURE_COUNT + 1; /** * The feature id for the 'Version' attribute. @@ -1213,13 +1213,13 @@ public interface CdapPackage extends EPackage { int CDAP_LOAD_ARTIFACT_WITH_CONFIG_STEP__ARTIFACT_NAME = CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME; /** - * The feature id for the 'Jarfile' attribute. + * The feature id for the 'Jar File' attribute. * * * @generated * @ordered */ - int CDAP_LOAD_ARTIFACT_WITH_CONFIG_STEP__JARFILE = CDAP_LOAD_ARTIFACT_STEP__JARFILE; + int CDAP_LOAD_ARTIFACT_WITH_CONFIG_STEP__JAR_FILE = CDAP_LOAD_ARTIFACT_STEP__JAR_FILE; /** * The feature id for the 'Version' attribute. @@ -1513,13 +1513,13 @@ public interface CdapPackage extends EPackage { int CDAP_DEPLOY_APP_STEP__CREATED = CDAP_STEP__CREATED; /** - * The feature id for the 'Jarfile' attribute. + * The feature id for the 'Jar File' attribute. * * * @generated * @ordered */ - int CDAP_DEPLOY_APP_STEP__JARFILE = CDAP_STEP_FEATURE_COUNT + 0; + int CDAP_DEPLOY_APP_STEP__JAR_FILE = CDAP_STEP_FEATURE_COUNT + 0; /** * The number of structural features of the 'Deploy App Step' class. @@ -3031,15 +3031,15 @@ public interface CdapPackage extends EPackage { EAttribute getCdapLoadArtifactStep_ArtifactName(); /** - * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarfile Jarfile}'. + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarFile Jar File}'. * * - * @return the meta object for the attribute 'Jarfile'. - * @see org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarfile() + * @return the meta object for the attribute 'Jar File'. + * @see org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getJarFile() * @see #getCdapLoadArtifactStep() * @generated */ - EAttribute getCdapLoadArtifactStep_Jarfile(); + EAttribute getCdapLoadArtifactStep_JarFile(); /** * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.cdap.CdapLoadArtifactStep#getVersion Version}'. @@ -3159,15 +3159,15 @@ public interface CdapPackage extends EPackage { EClass getCdapDeployAppStep(); /** - * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarfile Jarfile}'. + * Returns the meta object for the attribute '{@link org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarFile Jar File}'. * * - * @return the meta object for the attribute 'Jarfile'. - * @see org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarfile() + * @return the meta object for the attribute 'Jar File'. + * @see org.openecomp.dcae.controller.service.cdap.CdapDeployAppStep#getJarFile() * @see #getCdapDeployAppStep() * @generated */ - EAttribute getCdapDeployAppStep_Jarfile(); + EAttribute getCdapDeployAppStep_JarFile(); /** * Returns the meta object for class '{@link org.openecomp.dcae.controller.service.cdap.CdapStopFlowStep Stop Flow Step}'. @@ -3924,12 +3924,12 @@ public interface CdapPackage extends EPackage { */ EAttribute CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME = eINSTANCE.getCdapLoadArtifactStep_ArtifactName(); /** - * The meta object literal for the 'Jarfile' attribute feature. + * The meta object literal for the 'Jar File' attribute feature. * * * @generated */ - EAttribute CDAP_LOAD_ARTIFACT_STEP__JARFILE = eINSTANCE.getCdapLoadArtifactStep_Jarfile(); + EAttribute CDAP_LOAD_ARTIFACT_STEP__JAR_FILE = eINSTANCE.getCdapLoadArtifactStep_JarFile(); /** * The meta object literal for the 'Version' attribute feature. * @@ -4016,12 +4016,12 @@ public interface CdapPackage extends EPackage { */ EClass CDAP_DEPLOY_APP_STEP = eINSTANCE.getCdapDeployAppStep(); /** - * The meta object literal for the 'Jarfile' attribute feature. + * The meta object literal for the 'Jar File' attribute feature. * * * @generated */ - EAttribute CDAP_DEPLOY_APP_STEP__JARFILE = eINSTANCE.getCdapDeployAppStep_Jarfile(); + EAttribute CDAP_DEPLOY_APP_STEP__JAR_FILE = eINSTANCE.getCdapDeployAppStep_JarFile(); /** * The meta object literal for the '{@link org.openecomp.dcae.controller.service.cdap.impl.CdapStopFlowStepImpl Stop Flow Step}' class. * diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapDeployAppStepImpl.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapDeployAppStepImpl.java index 507a60e..40350c5 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapDeployAppStepImpl.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapDeployAppStepImpl.java @@ -19,31 +19,31 @@ import org.openecomp.dcae.controller.service.cdap.CdapPackage; * The following features are implemented: *

    *
      - *
    • {@link org.openecomp.dcae.controller.service.cdap.impl.CdapDeployAppStepImpl#getJarfile Jarfile}
    • + *
    • {@link org.openecomp.dcae.controller.service.cdap.impl.CdapDeployAppStepImpl#getJarFile Jar File}
    • *
    * * @generated */ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployAppStep { /** - * The default value of the '{@link #getJarfile() Jarfile}' attribute. + * The default value of the '{@link #getJarFile() Jar File}' attribute. * * - * @see #getJarfile() + * @see #getJarFile() * @generated * @ordered */ - protected static final String JARFILE_EDEFAULT = null; + protected static final String JAR_FILE_EDEFAULT = null; /** - * The cached value of the '{@link #getJarfile() Jarfile}' attribute. + * The cached value of the '{@link #getJarFile() Jar File}' attribute. * * - * @see #getJarfile() + * @see #getJarFile() * @generated * @ordered */ - protected String jarfile = JARFILE_EDEFAULT; + protected String jarFile = JAR_FILE_EDEFAULT; /** * @@ -69,8 +69,8 @@ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployApp * * @generated */ - public String getJarfile() { - return jarfile; + public String getJarFile() { + return jarFile; } /** @@ -78,11 +78,11 @@ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployApp * * @generated */ - public void setJarfile(String newJarfile) { - String oldJarfile = jarfile; - jarfile = newJarfile; + public void setJarFile(String newJarFile) { + String oldJarFile = jarFile; + jarFile = newJarFile; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CdapPackage.CDAP_DEPLOY_APP_STEP__JARFILE, oldJarfile, jarfile)); + eNotify(new ENotificationImpl(this, Notification.SET, CdapPackage.CDAP_DEPLOY_APP_STEP__JAR_FILE, oldJarFile, jarFile)); } /** @@ -93,8 +93,8 @@ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployApp @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case CdapPackage.CDAP_DEPLOY_APP_STEP__JARFILE: - return getJarfile(); + case CdapPackage.CDAP_DEPLOY_APP_STEP__JAR_FILE: + return getJarFile(); } return super.eGet(featureID, resolve, coreType); } @@ -107,8 +107,8 @@ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployApp @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case CdapPackage.CDAP_DEPLOY_APP_STEP__JARFILE: - setJarfile((String)newValue); + case CdapPackage.CDAP_DEPLOY_APP_STEP__JAR_FILE: + setJarFile((String)newValue); return; } super.eSet(featureID, newValue); @@ -122,8 +122,8 @@ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployApp @Override public void eUnset(int featureID) { switch (featureID) { - case CdapPackage.CDAP_DEPLOY_APP_STEP__JARFILE: - setJarfile(JARFILE_EDEFAULT); + case CdapPackage.CDAP_DEPLOY_APP_STEP__JAR_FILE: + setJarFile(JAR_FILE_EDEFAULT); return; } super.eUnset(featureID); @@ -137,8 +137,8 @@ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployApp @Override public boolean eIsSet(int featureID) { switch (featureID) { - case CdapPackage.CDAP_DEPLOY_APP_STEP__JARFILE: - return JARFILE_EDEFAULT == null ? jarfile != null : !JARFILE_EDEFAULT.equals(jarfile); + case CdapPackage.CDAP_DEPLOY_APP_STEP__JAR_FILE: + return JAR_FILE_EDEFAULT == null ? jarFile != null : !JAR_FILE_EDEFAULT.equals(jarFile); } return super.eIsSet(featureID); } @@ -153,8 +153,8 @@ public class CdapDeployAppStepImpl extends CdapStepImpl implements CdapDeployApp if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); - result.append(" (jarfile: "); - result.append(jarfile); + result.append(" (jarFile: "); + result.append(jarFile); result.append(')'); return result.toString(); } diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapLoadArtifactStepImpl.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapLoadArtifactStepImpl.java index c9c3ccc..19168c1 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapLoadArtifactStepImpl.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapLoadArtifactStepImpl.java @@ -18,7 +18,7 @@ import org.openecomp.dcae.controller.service.cdap.CdapPackage; *

    *
      *
    • {@link org.openecomp.dcae.controller.service.cdap.impl.CdapLoadArtifactStepImpl#getArtifactName Artifact Name}
    • - *
    • {@link org.openecomp.dcae.controller.service.cdap.impl.CdapLoadArtifactStepImpl#getJarfile Jarfile}
    • + *
    • {@link org.openecomp.dcae.controller.service.cdap.impl.CdapLoadArtifactStepImpl#getJarFile Jar File}
    • *
    • {@link org.openecomp.dcae.controller.service.cdap.impl.CdapLoadArtifactStepImpl#getVersion Version}
    • *
    * @@ -44,23 +44,23 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr */ protected String artifactName = ARTIFACT_NAME_EDEFAULT; /** - * The default value of the '{@link #getJarfile() Jarfile}' attribute. + * The default value of the '{@link #getJarFile() Jar File}' attribute. * * - * @see #getJarfile() + * @see #getJarFile() * @generated * @ordered */ - protected static final String JARFILE_EDEFAULT = null; + protected static final String JAR_FILE_EDEFAULT = null; /** - * The cached value of the '{@link #getJarfile() Jarfile}' attribute. + * The cached value of the '{@link #getJarFile() Jar File}' attribute. * * - * @see #getJarfile() + * @see #getJarFile() * @generated * @ordered */ - protected String jarfile = JARFILE_EDEFAULT; + protected String jarFile = JAR_FILE_EDEFAULT; /** * The default value of the '{@link #getVersion() Version}' attribute. * @@ -125,8 +125,8 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr * * @generated */ - public String getJarfile() { - return jarfile; + public String getJarFile() { + return jarFile; } /** @@ -134,11 +134,11 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr * * @generated */ - public void setJarfile(String newJarfile) { - String oldJarfile = jarfile; - jarfile = newJarfile; + public void setJarFile(String newJarFile) { + String oldJarFile = jarFile; + jarFile = newJarFile; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JARFILE, oldJarfile, jarfile)); + eNotify(new ENotificationImpl(this, Notification.SET, CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JAR_FILE, oldJarFile, jarFile)); } /** @@ -172,8 +172,8 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr switch (featureID) { case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME: return getArtifactName(); - case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JARFILE: - return getJarfile(); + case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JAR_FILE: + return getJarFile(); case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__VERSION: return getVersion(); } @@ -191,8 +191,8 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME: setArtifactName((String)newValue); return; - case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JARFILE: - setJarfile((String)newValue); + case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JAR_FILE: + setJarFile((String)newValue); return; case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__VERSION: setVersion((String)newValue); @@ -212,8 +212,8 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME: setArtifactName(ARTIFACT_NAME_EDEFAULT); return; - case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JARFILE: - setJarfile(JARFILE_EDEFAULT); + case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JAR_FILE: + setJarFile(JAR_FILE_EDEFAULT); return; case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__VERSION: setVersion(VERSION_EDEFAULT); @@ -232,8 +232,8 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr switch (featureID) { case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME: return ARTIFACT_NAME_EDEFAULT == null ? artifactName != null : !ARTIFACT_NAME_EDEFAULT.equals(artifactName); - case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JARFILE: - return JARFILE_EDEFAULT == null ? jarfile != null : !JARFILE_EDEFAULT.equals(jarfile); + case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__JAR_FILE: + return JAR_FILE_EDEFAULT == null ? jarFile != null : !JAR_FILE_EDEFAULT.equals(jarFile); case CdapPackage.CDAP_LOAD_ARTIFACT_STEP__VERSION: return VERSION_EDEFAULT == null ? version != null : !VERSION_EDEFAULT.equals(version); } @@ -252,8 +252,8 @@ public class CdapLoadArtifactStepImpl extends CdapStepImpl implements CdapLoadAr StringBuffer result = new StringBuffer(super.toString()); result.append(" (artifactName: "); result.append(artifactName); - result.append(", jarfile: "); - result.append(jarfile); + result.append(", jarFile: "); + result.append(jarFile); result.append(", version: "); result.append(version); result.append(')'); diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapPackageImpl.java b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapPackageImpl.java index 1f60df4..d2df369 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapPackageImpl.java +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore-gen/org/openecomp/dcae/controller/service/cdap/impl/CdapPackageImpl.java @@ -734,7 +734,7 @@ public class CdapPackageImpl extends EPackageImpl implements CdapPackage { * * @generated */ - public EAttribute getCdapLoadArtifactStep_Jarfile() { + public EAttribute getCdapLoadArtifactStep_JarFile() { return (EAttribute)cdapLoadArtifactStepEClass.getEStructuralFeatures().get(1); } @@ -842,7 +842,7 @@ public class CdapPackageImpl extends EPackageImpl implements CdapPackage { * * @generated */ - public EAttribute getCdapDeployAppStep_Jarfile() { + public EAttribute getCdapDeployAppStep_JarFile() { return (EAttribute)cdapDeployAppStepEClass.getEStructuralFeatures().get(0); } @@ -1253,7 +1253,7 @@ public class CdapPackageImpl extends EPackageImpl implements CdapPackage { cdapLoadArtifactStepEClass = createEClass(CDAP_LOAD_ARTIFACT_STEP); createEAttribute(cdapLoadArtifactStepEClass, CDAP_LOAD_ARTIFACT_STEP__ARTIFACT_NAME); - createEAttribute(cdapLoadArtifactStepEClass, CDAP_LOAD_ARTIFACT_STEP__JARFILE); + createEAttribute(cdapLoadArtifactStepEClass, CDAP_LOAD_ARTIFACT_STEP__JAR_FILE); createEAttribute(cdapLoadArtifactStepEClass, CDAP_LOAD_ARTIFACT_STEP__VERSION); cdapLoadArtifactWithConfigStepEClass = createEClass(CDAP_LOAD_ARTIFACT_WITH_CONFIG_STEP); @@ -1269,7 +1269,7 @@ public class CdapPackageImpl extends EPackageImpl implements CdapPackage { createEAttribute(cdapCreateAppWithConfigStepEClass, CDAP_CREATE_APP_WITH_CONFIG_STEP__APP_CONFIG); cdapDeployAppStepEClass = createEClass(CDAP_DEPLOY_APP_STEP); - createEAttribute(cdapDeployAppStepEClass, CDAP_DEPLOY_APP_STEP__JARFILE); + createEAttribute(cdapDeployAppStepEClass, CDAP_DEPLOY_APP_STEP__JAR_FILE); cdapStopFlowStepEClass = createEClass(CDAP_STOP_FLOW_STEP); createEAttribute(cdapStopFlowStepEClass, CDAP_STOP_FLOW_STEP__APP_ID); @@ -1437,7 +1437,7 @@ public class CdapPackageImpl extends EPackageImpl implements CdapPackage { initEClass(cdapLoadArtifactStepEClass, CdapLoadArtifactStep.class, "CdapLoadArtifactStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCdapLoadArtifactStep_ArtifactName(), theEcorePackage.getEString(), "artifactName", null, 0, 1, CdapLoadArtifactStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCdapLoadArtifactStep_Jarfile(), theEcorePackage.getEString(), "jarfile", null, 0, 1, CdapLoadArtifactStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCdapLoadArtifactStep_JarFile(), theEcorePackage.getEString(), "jarFile", null, 0, 1, CdapLoadArtifactStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getCdapLoadArtifactStep_Version(), theEcorePackage.getEString(), "version", null, 0, 1, CdapLoadArtifactStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(cdapLoadArtifactWithConfigStepEClass, CdapLoadArtifactWithConfigStep.class, "CdapLoadArtifactWithConfigStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); @@ -1453,7 +1453,7 @@ public class CdapPackageImpl extends EPackageImpl implements CdapPackage { initEAttribute(getCdapCreateAppWithConfigStep_AppConfig(), theEcorePackage.getEString(), "appConfig", null, 0, 1, CdapCreateAppWithConfigStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(cdapDeployAppStepEClass, CdapDeployAppStep.class, "CdapDeployAppStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getCdapDeployAppStep_Jarfile(), theEcorePackage.getEString(), "jarfile", null, 0, 1, CdapDeployAppStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCdapDeployAppStep_JarFile(), theEcorePackage.getEString(), "jarFile", null, 0, 1, CdapDeployAppStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(cdapStopFlowStepEClass, CdapStopFlowStep.class, "CdapStopFlowStep", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getCdapStopFlowStep_AppId(), theEcorePackage.getEString(), "appId", null, 0, 1, CdapStopFlowStep.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/manager.xcore b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/manager.xcore index eed0293..aa057a3 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/manager.xcore +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/manager.xcore @@ -17,7 +17,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END============================================ - */ + */ @GenModel(modelDirectory="/dcae-controller-service-cdap-model/src/main/xcore-gen") diff --git a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/service.xcore b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/service.xcore index 71dceb7..4dd1bb3 100644 --- a/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/service.xcore +++ b/dcae-controller-service-cdap/dcae-controller-service-cdap-model/src/main/xcore/service.xcore @@ -109,7 +109,7 @@ abstract class CdapStep extends NamedEntity { class CdapLoadArtifactStep extends CdapStep { String artifactName - String jarfile + String jarFile String version } @@ -129,7 +129,7 @@ class CdapCreateAppWithConfigStep extends CdapCreateAppStep { } class CdapDeployAppStep extends CdapStep { - String jarfile + String jarFile } class CdapStopFlowStep extends CdapStep { diff --git a/dcae-controller-service-docker/dcae-controller-service-docker-host/dcae-controller-service-docker-host-manager/src/main/server/bin/manager.sh b/dcae-controller-service-docker/dcae-controller-service-docker-host/dcae-controller-service-docker-host-manager/src/main/server/bin/manager.sh index 99e8d07..92f6a2b 100644 --- a/dcae-controller-service-docker/dcae-controller-service-docker-host/dcae-controller-service-docker-host-manager/src/main/server/bin/manager.sh +++ b/dcae-controller-service-docker/dcae-controller-service-docker-host/dcae-controller-service-docker-host-manager/src/main/server/bin/manager.sh @@ -25,6 +25,7 @@ case $CMD1 in fi if [ -e config/version.json ]; then rm -rf data/resources/configuration/version* + echo '{}' > data/resources/configuration.json cp config/version.json data/resources/configuration/ fi sed -i s/FQDN/$(hostname -f)/ config/docker.properties diff --git a/dcae-controller-service-vm/dcae-controller-service-common-vm/dcae-controller-service-common-vm-manager/src/main/server/bin/manager.sh b/dcae-controller-service-vm/dcae-controller-service-common-vm/dcae-controller-service-common-vm-manager/src/main/server/bin/manager.sh index 1d2f31a..0f1cf2d 100644 --- a/dcae-controller-service-vm/dcae-controller-service-common-vm/dcae-controller-service-common-vm-manager/src/main/server/bin/manager.sh +++ b/dcae-controller-service-vm/dcae-controller-service-common-vm/dcae-controller-service-common-vm-manager/src/main/server/bin/manager.sh @@ -18,7 +18,8 @@ CMD1=$1 VMTYPE=$(ls /tmp/vm-*manager.properties | sed s/-manager.properties// | sed sx/tmp/xx) case $CMD1 in - start) +start) + umask 022 for jar in /opt/app/{ncomp,dcae}-*-model/lib/*jar; do cp -p $jar lib/; done JVMARGS=$(cat config/manager.properties | grep JVMARGS | sed 's/[^=]*=//') $CMD $CMD1 $JVMARGS diff --git a/dcae-controller-service/dcae-controller-service-standardeventcollector/dcae-controller-service-standardeventcollector-manager/src/main/java/org/openecomp/dcae/controller/service/standardeventcollector/servers/service/DcaeControllerServiceStandardeventcollectorServiceProvider.java b/dcae-controller-service/dcae-controller-service-standardeventcollector/dcae-controller-service-standardeventcollector-manager/src/main/java/org/openecomp/dcae/controller/service/standardeventcollector/servers/service/DcaeControllerServiceStandardeventcollectorServiceProvider.java index 1dd8b09..1f1098a 100644 --- a/dcae-controller-service/dcae-controller-service-standardeventcollector/dcae-controller-service-standardeventcollector-manager/src/main/java/org/openecomp/dcae/controller/service/standardeventcollector/servers/service/DcaeControllerServiceStandardeventcollectorServiceProvider.java +++ b/dcae-controller-service/dcae-controller-service-standardeventcollector/dcae-controller-service-standardeventcollector-manager/src/main/java/org/openecomp/dcae/controller/service/standardeventcollector/servers/service/DcaeControllerServiceStandardeventcollectorServiceProvider.java @@ -58,11 +58,9 @@ public class DcaeControllerServiceStandardeventcollectorServiceProvider extends @Override public EObject managerConfiguration(String instanceName) { - //EObject o1 = ManagerFactory.eINSTANCE.createControllerServiceStandardeventcollectorManager(); ControllerServiceStandardeventcollectorManager o1 = ManagerFactory.eINSTANCE.createControllerServiceStandardeventcollectorManager(); ManagementServer.copy(findInstance(instanceName),o1); - //o1.setKeystorepwd(JavaHttpClient.decryptPassword(o1.getKeystorepwd())); - + o1.setAuthlist(JavaHttpClient.decryptEmbeddedPassword(o1.getAuthlist())); return o1; } -- cgit 1.2.3-korg