[VID-6] Initial rebase push
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / asdc / beans / tosca / NodeTemplate.java
1 /*-\r
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.vid.asdc.beans.tosca;\r
22 \r
23 import java.util.Map;\r
24 import java.util.HashMap;\r
25 \r
26 /**\r
27  * The Class NodeTemplate.\r
28  */\r
29 public class NodeTemplate {\r
30 \r
31         /** The type. */\r
32         private String type;\r
33         \r
34         /** The metadata. */\r
35         private ToscaMetadata metadata;\r
36         \r
37         /** The properties. */\r
38         private Map<String, Object> properties; //HEAT?\r
39         \r
40         /** The requirements. */\r
41         private Object requirements;\r
42         \r
43         public NodeTemplate () {\r
44                 properties = new HashMap<String,Object>();\r
45         }\r
46         /**\r
47          * Gets the type.\r
48          *\r
49          * @return the type\r
50          */\r
51         public String getType() {\r
52                 return type;\r
53         }\r
54         \r
55         /**\r
56          * Sets the type.\r
57          *\r
58          * @param type the new type\r
59          */\r
60         public void setType(String type) {\r
61                 this.type = type;\r
62         }\r
63         \r
64         /**\r
65          * Gets the metadata.\r
66          *\r
67          * @return the metadata\r
68          */\r
69         public ToscaMetadata getMetadata() {\r
70                 return metadata;\r
71         }\r
72         \r
73         /**\r
74          * Sets the metadata.\r
75          *\r
76          * @param metadata the new metadata\r
77          */\r
78         public void setMetadata(ToscaMetadata metadata) {\r
79                 this.metadata = metadata;\r
80         }\r
81         \r
82         /**\r
83          * Gets the properties.\r
84          *\r
85          * @return the properties\r
86          */\r
87         public Map<String, Object> getProperties() {\r
88                 return properties;\r
89         }\r
90         \r
91         /**\r
92          * Sets the properties.\r
93          *\r
94          * @param properties the properties\r
95          */\r
96         public void setProperties(Map<String, Object> properties) {\r
97                 this.properties = properties;\r
98         }\r
99         \r
100         /**\r
101          * Gets the requirements.\r
102          *\r
103          * @return the requirements\r
104          */\r
105         public Object getRequirements() {\r
106                 return requirements;\r
107         }\r
108         \r
109         /**\r
110          * Sets the requirements.\r
111          *\r
112          * @param requirements the new requirements\r
113          */\r
114         public void setRequirements(Object requirements) {\r
115                 this.requirements = requirements;\r
116         }\r
117 }\r