aboutsummaryrefslogtreecommitdiffstats
path: root/common/openecomp-tosca-datatype
diff options
context:
space:
mode:
authortalio <tali.orenbach@amdocs.com>2018-01-28 09:47:38 +0200
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-02-04 06:56:25 +0000
commitb43e8ebd9f3e7436a51c2a6b9fe71f254d92b833 (patch)
tree88ef13834fc4529c26bf325fb7188c90309f4e3e /common/openecomp-tosca-datatype
parent693a3f26aba6104fad1659d9b481cbdd0b75d6d8 (diff)
change capabilities datatype
change node template capabilities datatype from list of map to map Change-Id: Ie0fa71b8a41ec732ae5290a72c4d8e908701ce17 Issue-ID: SDC-968 Signed-off-by: talio <tali.orenbach@amdocs.com>
Diffstat (limited to 'common/openecomp-tosca-datatype')
-rw-r--r--common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java
index 9901ea3138..bfbf343e6d 100644
--- a/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java
+++ b/common/openecomp-tosca-datatype/src/main/java/org/openecomp/sdc/tosca/datatypes/model/NodeTemplate.java
@@ -34,7 +34,7 @@ public class NodeTemplate implements Template {
private Map<String, Object> properties;
private Map<String, Object> attributes;
private List<Map<String, RequirementAssignment>> requirements;
- private List<Map<String, CapabilityAssignment>> capabilities;
+ private Map<String, CapabilityAssignment> capabilities;
private Map<String, InterfaceDefinition> interfaces;
private Map<String, ArtifactDefinition> artifacts;
private NodeFilter node_filter;
@@ -88,11 +88,11 @@ public class NodeTemplate implements Template {
this.requirements = requirements;
}
- public List<Map<String, CapabilityAssignment>> getCapabilities() {
+ public Map<String, CapabilityAssignment> getCapabilities() {
return capabilities;
}
- public void setCapabilities(List<Map<String, CapabilityAssignment>> capabilities) {
+ public void setCapabilities(Map<String, CapabilityAssignment> capabilities) {
this.capabilities = capabilities;
}