2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.tosca.datatypes.model;
23 import java.util.List;
26 public class NodeType {
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;
40 public String getDerived_from() {
44 public void setDerived_from(String derived_from) {
45 this.derived_from = derived_from;
48 public String getVersion() {
52 public void setVersion(String version) {
53 this.version = version;
56 public Map<String, String> getMetadata() {
60 public void setMetadata(Map<String, String> metadata) {
61 this.metadata = metadata;
64 public String getDescription() {
68 public void setDescription(String description) {
69 this.description = description;
72 public Map<String, PropertyDefinition> getProperties() {
76 public void setProperties(Map<String, PropertyDefinition> properties) {
77 this.properties = properties;
80 public Map<String, AttributeDefinition> getAttributes() {
84 public void setAttributes(Map<String, AttributeDefinition> attributes) {
85 this.attributes = attributes;
88 public List<Map<String, RequirementDefinition>> getRequirements() {
92 public void setRequirements(List<Map<String, RequirementDefinition>> requirements) {
93 this.requirements = requirements;
96 public Map<String, CapabilityDefinition> getCapabilities() {
100 public void setCapabilities(Map<String, CapabilityDefinition> capabilities) {
101 this.capabilities = capabilities;
104 public Map<String, Object> getInterfaces() {
108 public void setInterfaces(Map<String, Object> interfaces) {
109 this.interfaces = interfaces;
112 public Map<String, ArtifactDefinition> getArtifacts() {
116 public void setArtifacts(Map<String, ArtifactDefinition> artifacts) {
117 this.artifacts = artifacts;
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());