2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 Fujitsu Limited. 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.be.tosca.model;
26 * Represents a data type (in data_types in TOSCA model).
28 public class ToscaDataType {
30 private String derived_from;
31 private String version;
32 private Map<String, String> metadata;
33 private String description;
34 //private List<ToscaConstraint> constraints;
35 private Map<String, ToscaProperty> properties;
40 * @return Current derived_from value.
42 public String getDerived_from() {
49 * @param derived_from New derived_from value.
51 public void setDerived_from(String derived_from) {
52 this.derived_from = derived_from;
58 * @return Current version value.
60 public String getVersion() {
67 * @param version New version value.
69 public void setVersion(String version) {
70 this.version = version;
76 * @return Current metadata map.
78 public Map<String, String> getMetadata() {
85 * @param metadata New metadata map.
87 public void setMetadata(Map<String, String> metadata) {
88 this.metadata = metadata;
94 * @return Current description value.
96 public String getDescription() {
103 * @param description New description value.
105 public void setDescription(String description) {
106 this.description = description;
110 * Gets properties map.
112 * @return Current properties map.
114 public Map<String, ToscaProperty> getProperties() {
119 * Sets properties map.
121 * @param properties New properties map.
123 public void setProperties(Map<String, ToscaProperty> properties) {
124 this.properties = properties;