2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
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
11 * http://www.apache.org/licenses/LICENSE-2.0
\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.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.vid.asdc.beans.tosca;
\r
23 import java.util.Map;
\r
24 import java.util.HashMap;
\r
27 * The Class NodeTemplate.
\r
29 public class NodeTemplate {
\r
32 private String type;
\r
34 /** The metadata. */
\r
35 private ToscaMetadata metadata;
\r
37 /** The properties. */
\r
38 private Map<String, Object> properties; //HEAT?
\r
40 /** The requirements. */
\r
41 private Object requirements;
\r
43 public NodeTemplate () {
\r
44 properties = new HashMap<String,Object>();
\r
51 public String getType() {
\r
58 * @param type the new type
\r
60 public void setType(String type) {
\r
65 * Gets the metadata.
\r
67 * @return the metadata
\r
69 public ToscaMetadata getMetadata() {
\r
74 * Sets the metadata.
\r
76 * @param metadata the new metadata
\r
78 public void setMetadata(ToscaMetadata metadata) {
\r
79 this.metadata = metadata;
\r
83 * Gets the properties.
\r
85 * @return the properties
\r
87 public Map<String, Object> getProperties() {
\r
92 * Sets the properties.
\r
94 * @param properties the properties
\r
96 public void setProperties(Map<String, Object> properties) {
\r
97 this.properties = properties;
\r
101 * Gets the requirements.
\r
103 * @return the requirements
\r
105 public Object getRequirements() {
\r
106 return requirements;
\r
110 * Sets the requirements.
\r
112 * @param requirements the new requirements
\r
114 public void setRequirements(Object requirements) {
\r
115 this.requirements = requirements;
\r