re base code
[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 public class DataTypeDataDefinition extends ToscaDataDefinition {
26
27         private String name;
28
29         private String uniqueId;
30
31         // "boolean", "string", "float", "integer", "version" })
32         private String derivedFromName;
33
34         private String description;
35
36         /**
37          * Timestamp of data type creation
38          */
39         private Long creationTime;
40
41         /**
42          * Timestamp of the data type last update
43          */
44         private Long modificationTime;
45
46         public DataTypeDataDefinition() {
47
48         }
49
50         public DataTypeDataDefinition(DataTypeDataDefinition p) {
51                 this.name = p.name;
52                 this.uniqueId = p.uniqueId;
53                 this.derivedFromName = p.derivedFromName;
54                 this.description = p.description;
55                 this.creationTime = p.creationTime;
56                 this.modificationTime = p.modificationTime;
57         }
58
59         public String getName() {
60                 return name;
61         }
62
63         public void setName(String name) {
64                 this.name = name;
65         }
66
67         public String getDerivedFromName() {
68                 return derivedFromName;
69         }
70
71         public void setDerivedFromName(String derivedFromName) {
72                 this.derivedFromName = derivedFromName;
73         }
74
75         public String getDescription() {
76                 return description;
77         }
78
79         public void setDescription(String description) {
80                 this.description = description;
81         }
82
83         public String getUniqueId() {
84                 return uniqueId;
85         }
86
87         public void setUniqueId(String uniqueId) {
88                 this.uniqueId = uniqueId;
89         }
90
91         public Long getCreationTime() {
92                 return creationTime;
93         }
94
95         public void setCreationTime(Long creationTime) {
96                 this.creationTime = creationTime;
97         }
98
99         public Long getModificationTime() {
100                 return modificationTime;
101         }
102
103         public void setModificationTime(Long modificationTime) {
104                 this.modificationTime = modificationTime;
105         }
106
107         @Override
108         public String toString() {
109                 return "DataTypeDataDefinition [name=" + name + ", uniqueId=" + uniqueId + ", derivedFromName="
110                                 + derivedFromName + ", description=" + description + ", creationTime=" + creationTime
111                                 + ", modificationTime=" + modificationTime + "]";
112         }
113
114 }