b9d200a2520bc94a6e90683591bf7663da19181c
[sdc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.tosca.datatypes;
22
23 import java.util.HashMap;
24 import java.util.Map;
25
26 // spec page 88
27 public class ToscaNodeTypesDefinition {
28
29         private String name;
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<>();
39         
40         public ToscaNodeTypesDefinition() {
41                 super();
42         }
43
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) {
46                 super();
47                 this.name = name;
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;
57         }
58
59         public String getName() {
60                 return name;
61         }
62
63         public void setName(String name) {
64                 this.name = name;
65         }
66
67         public String getDerived_from() {
68                 return derived_from;
69         }
70
71         public void setDerived_from(String derived_from) {
72                 this.derived_from = derived_from;
73         }
74
75         public String getVersion() {
76                 return version;
77         }
78
79         public void setVersion(String version) {
80                 this.version = version;
81         }
82
83         public String getDescription() {
84                 return description;
85         }
86
87         public void setDescription(String description) {
88                 this.description = description;
89         }
90
91         public Map<String, Object> getProperties() {
92                 return properties;
93         }
94
95         public void setProperties(Map<String, Object> properties) {
96                 this.properties = properties;
97         }
98
99         public Map<String, Object> getAttributes() {
100                 return attributes;
101         }
102
103         public void setAttributes(Map<String, Object> attributes) {
104                 this.attributes = attributes;
105         }
106
107         public Map<String, Object> getRequirements() {
108                 return requirements;
109         }
110
111         public void setRequirements(Map<String, Object> requirements) {
112                 this.requirements = requirements;
113         }
114
115         public Map<String, Object> getCapabilities() {
116                 return capabilities;
117         }
118
119         public void setCapabilities(Map<String, Object> capabilities) {
120                 this.capabilities = capabilities;
121         }
122
123         public Map<String, Object> getInterfaces() {
124                 return interfaces;
125         }
126
127         public void setInterfaces(Map<String, Object> interfaces) {
128                 this.interfaces = interfaces;
129         }
130
131         public Map<String, Object> getArtifacts() {
132                 return artifacts;
133         }
134
135         public void setArtifacts(Map<String, Object> artifacts) {
136                 this.artifacts = artifacts;
137         }
138
139         
140         
141
142 }