ActivitySpec - Correcting logger messages
[sdc.git] / common / onap-tosca-datatype / src / main / java / org / onap / sdc / tosca / datatypes / model / NodeType.java
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.onap.sdc.tosca.datatypes.model;
22
23 import java.util.List;
24 import java.util.Map;
25
26 public class NodeType {
27
28   private String derived_from;
29   private String version;
30   private Map<String, String> metadata;
31   private String description;
32   private Map<String, PropertyDefinition> properties;
33   private Map<String, AttributeDefinition> attributes;
34   private List<Map<String, RequirementDefinition>> requirements;
35   private Map<String, CapabilityDefinition> capabilities;
36   private Map<String, Object> interfaces;
37   private Map<String, ArtifactDefinition> artifacts;
38
39
40   public String getDerived_from() {
41     return derived_from;
42   }
43
44   public void setDerived_from(String derived_from) {
45     this.derived_from = derived_from;
46   }
47
48   public String getVersion() {
49     return version;
50   }
51
52   public void setVersion(String version) {
53     this.version = version;
54   }
55
56   public Map<String, String> getMetadata() {
57     return metadata;
58   }
59
60   public void setMetadata(Map<String, String> metadata) {
61     this.metadata = metadata;
62   }
63
64   public String getDescription() {
65     return description;
66   }
67
68   public void setDescription(String description) {
69     this.description = description;
70   }
71
72   public Map<String, PropertyDefinition> getProperties() {
73     return properties;
74   }
75
76   public void setProperties(Map<String, PropertyDefinition> properties) {
77     this.properties = properties;
78   }
79
80   public Map<String, AttributeDefinition> getAttributes() {
81     return attributes;
82   }
83
84   public void setAttributes(Map<String, AttributeDefinition> attributes) {
85     this.attributes = attributes;
86   }
87
88   public List<Map<String, RequirementDefinition>> getRequirements() {
89     return requirements;
90   }
91
92   public void setRequirements(List<Map<String, RequirementDefinition>> requirements) {
93     this.requirements = requirements;
94   }
95
96   public Map<String, CapabilityDefinition> getCapabilities() {
97     return capabilities;
98   }
99
100   public void setCapabilities(Map<String, CapabilityDefinition> capabilities) {
101     this.capabilities = capabilities;
102   }
103
104   public Map<String, Object> getInterfaces() {
105     return interfaces;
106   }
107
108   public void setInterfaces(Map<String, Object> interfaces) {
109     this.interfaces = interfaces;
110   }
111
112   public Map<String, ArtifactDefinition> getArtifacts() {
113     return artifacts;
114   }
115
116   public void setArtifacts(Map<String, ArtifactDefinition> artifacts) {
117     this.artifacts = artifacts;
118   }
119
120   @Override
121   public NodeType clone() {
122     NodeType clone = new NodeType();
123     clone.setCapabilities(this.getCapabilities());
124     clone.setDerived_from(this.getDerived_from());
125     clone.setProperties(this.getProperties());
126     clone.setRequirements(this.getRequirements());
127     clone.setDescription(this.getDescription());
128     clone.setAttributes(this.getAttributes());
129     clone.setInterfaces(this.getInterfaces());
130     clone.setVersion(this.getVersion());
131     clone.setArtifacts(this.getArtifacts());
132     return clone;
133   }
134 }