Change to enable SDC list type input
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / model / ToscaDataType.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
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.openecomp.sdc.be.tosca.model;
22
23 import java.util.Map;
24
25 /**
26  * Represents a data type (in data_types in TOSCA model).
27  */
28 public class ToscaDataType {
29
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;
36
37     /**
38      * Gets derived_from.
39      *
40      * @return Current derived_from value.
41      */
42     public String getDerived_from() {
43         return derived_from;
44     }
45
46     /**
47      * Sets derived_from.
48      *
49      * @param derived_from New derived_from value.
50      */
51     public void setDerived_from(String derived_from) {
52         this.derived_from = derived_from;
53     }
54
55     /**
56      * Gets version.
57      *
58      * @return Current version value.
59      */
60     public String getVersion() {
61         return version;
62     }
63
64     /**
65      * Sets version.
66      *
67      * @param version New version value.
68      */
69     public void setVersion(String version) {
70         this.version = version;
71     }
72
73     /**
74      * Gets metadata map.
75      *
76      * @return Current metadata map.
77      */
78     public Map<String, String> getMetadata() {
79         return metadata;
80     }
81
82     /**
83      * Sets metadata map.
84      *
85      * @param metadata New metadata map.
86      */
87     public void setMetadata(Map<String, String> metadata) {
88         this.metadata = metadata;
89     }
90
91     /**
92      * Gets description.
93      *
94      * @return Current description value.
95      */
96     public String getDescription() {
97         return description;
98     }
99
100     /**
101      * Sets description.
102      *
103      * @param description New description value.
104      */
105     public void setDescription(String description) {
106         this.description = description;
107     }
108
109     /**
110      * Gets properties map.
111      *
112      * @return Current properties map.
113      */
114     public Map<String, ToscaProperty> getProperties() {
115         return properties;
116     }
117
118     /**
119      * Sets properties map.
120      *
121      * @param properties New properties map.
122      */
123     public void setProperties(Map<String, ToscaProperty> properties) {
124         this.properties = properties;
125     }
126 }