2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.ci.tests.tosca.datatypes;
23 import java.util.HashMap;
27 public class ToscaNodeTypesDefinition {
30 private String derived_from;
31 private String version;
32 private String description;
33 private Map<String, Object> properties = new HashMap<>();
34 private Map<String, Object> attributes = new HashMap<>();
35 private Map<String, Object> requirements = new HashMap<>();
36 private Map<String, Object> capabilities = new HashMap<>();
37 private Map<String, Object> interfaces = new HashMap<>();
38 private Map<String, Object> artifacts = new HashMap<>();
40 public ToscaNodeTypesDefinition() {
44 public ToscaNodeTypesDefinition(String name, String derived_from, String version, String description, Map<String, Object> properties, Map<String, Object> attributes, Map<String, Object> requirements, Map<String, Object> capabilities,
45 Map<String, Object> interfaces, Map<String, Object> artifacts) {
48 this.derived_from = derived_from;
49 this.version = version;
50 this.description = description;
51 this.properties = properties;
52 this.attributes = attributes;
53 this.requirements = requirements;
54 this.capabilities = capabilities;
55 this.interfaces = interfaces;
56 this.artifacts = artifacts;
59 public String getName() {
63 public void setName(String name) {
67 public String getDerived_from() {
71 public void setDerived_from(String derived_from) {
72 this.derived_from = derived_from;
75 public String getVersion() {
79 public void setVersion(String version) {
80 this.version = version;
83 public String getDescription() {
87 public void setDescription(String description) {
88 this.description = description;
91 public Map<String, Object> getProperties() {
95 public void setProperties(Map<String, Object> properties) {
96 this.properties = properties;
99 public Map<String, Object> getAttributes() {
103 public void setAttributes(Map<String, Object> attributes) {
104 this.attributes = attributes;
107 public Map<String, Object> getRequirements() {
111 public void setRequirements(Map<String, Object> requirements) {
112 this.requirements = requirements;
115 public Map<String, Object> getCapabilities() {
119 public void setCapabilities(Map<String, Object> capabilities) {
120 this.capabilities = capabilities;
123 public Map<String, Object> getInterfaces() {
127 public void setInterfaces(Map<String, Object> interfaces) {
128 this.interfaces = interfaces;
131 public Map<String, Object> getArtifacts() {
135 public void setArtifacts(Map<String, Object> artifacts) {
136 this.artifacts = artifacts;