28210b2ec20db96546ce40b7037d5ff383b1c248
[vid.git] / vid-app-common / src / main / java / org / onap / vid / asdc / beans / tosca / NodeTemplate.java
1 /*-
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");
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.onap.vid.asdc.beans.tosca;
22
23 import java.util.Map;
24 import java.util.HashMap;
25
26 /**
27  * The Class NodeTemplate.
28  */
29 public class NodeTemplate {
30
31         /** The type. */
32         private String type;
33         
34         /** The metadata. */
35         private ToscaMetadata metadata;
36         
37         /** The properties. */
38         private Map<String, Object> properties; //HEAT?
39         
40         /** The requirements. */
41         private Object requirements;
42         
43         public NodeTemplate () {
44                 properties = new HashMap<String,Object>();
45         }
46         /**
47          * Gets the type.
48          *
49          * @return the type
50          */
51         public String getType() {
52                 return type;
53         }
54         
55         /**
56          * Sets the type.
57          *
58          * @param type the new type
59          */
60         public void setType(String type) {
61                 this.type = type;
62         }
63         
64         /**
65          * Gets the metadata.
66          *
67          * @return the metadata
68          */
69         public ToscaMetadata getMetadata() {
70                 return metadata;
71         }
72         
73         /**
74          * Sets the metadata.
75          *
76          * @param metadata the new metadata
77          */
78         public void setMetadata(ToscaMetadata metadata) {
79                 this.metadata = metadata;
80         }
81         
82         /**
83          * Gets the properties.
84          *
85          * @return the properties
86          */
87         public Map<String, Object> getProperties() {
88                 return properties;
89         }
90         
91         /**
92          * Sets the properties.
93          *
94          * @param properties the properties
95          */
96         public void setProperties(Map<String, Object> properties) {
97                 this.properties = properties;
98         }
99         
100         /**
101          * Gets the requirements.
102          *
103          * @return the requirements
104          */
105         public Object getRequirements() {
106                 return requirements;
107         }
108         
109         /**
110          * Sets the requirements.
111          *
112          * @param requirements the new requirements
113          */
114         public void setRequirements(Object requirements) {
115                 this.requirements = requirements;
116         }
117 }