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