Change to enable SDC list type input
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / DataTypeDataDefinition.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.openecomp.sdc.be.datatypes.elements;
22
23 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
24
25 import java.util.List;
26
27 public class DataTypeDataDefinition extends ToscaDataDefinition {
28
29         private String name;
30
31         private String uniqueId;
32
33         // "boolean", "string", "float", "integer", "version" })
34         private String derivedFromName;
35
36         private String description;
37
38         /**
39          * Timestamp of data type creation
40          */
41         private Long creationTime;
42
43         /**
44          * Timestamp of the data type last update
45          */
46         private Long modificationTime;
47
48         private List<PropertyDataDefinition> propertiesData;
49
50         public DataTypeDataDefinition() {
51
52         }
53
54         public DataTypeDataDefinition(DataTypeDataDefinition p) {
55                 this.name = p.name;
56                 this.uniqueId = p.uniqueId;
57                 this.derivedFromName = p.derivedFromName;
58                 this.description = p.description;
59                 this.creationTime = p.creationTime;
60                 this.modificationTime = p.modificationTime;
61         }
62
63         public String getName() {
64                 return name;
65         }
66
67         public void setName(String name) {
68                 this.name = name;
69         }
70
71         public String getDerivedFromName() {
72                 return derivedFromName;
73         }
74
75         public void setDerivedFromName(String derivedFromName) {
76                 this.derivedFromName = derivedFromName;
77         }
78
79         public String getDescription() {
80                 return description;
81         }
82
83         public void setDescription(String description) {
84                 this.description = description;
85         }
86
87         public String getUniqueId() {
88                 return uniqueId;
89         }
90
91         public void setUniqueId(String uniqueId) {
92                 this.uniqueId = uniqueId;
93         }
94
95         public Long getCreationTime() {
96                 return creationTime;
97         }
98
99         public void setCreationTime(Long creationTime) {
100                 this.creationTime = creationTime;
101         }
102
103         public Long getModificationTime() {
104                 return modificationTime;
105         }
106
107         public void setModificationTime(Long modificationTime) {
108                 this.modificationTime = modificationTime;
109         }
110
111         public List<PropertyDataDefinition> getPropertiesData() {
112                 return propertiesData;
113         }
114
115         public void setPropertiesData(List<PropertyDataDefinition> propertiesData) {
116                 this.propertiesData = propertiesData;
117         }
118
119         @Override
120         public String toString() {
121                 return "DataTypeDataDefinition [name=" + name + ", uniqueId=" + uniqueId + ", derivedFromName="
122                                 + derivedFromName + ", description=" + description + ", creationTime=" + creationTime
123                                 + ", modificationTime=" + modificationTime + ", propertiesData=" + propertiesData + "]";
124         }
125
126 }