Added oparent to sdc main
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / AnnotationTypeDataDefinition.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 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 AnnotationTypeDataDefinition extends ToscaDataDefinition {
26
27     protected String uniqueId;
28     protected String type; 
29     protected String description;
30
31     protected Long creationTime;
32     protected Long modificationTime;
33
34     protected String version;
35     protected boolean highestVersion;
36
37     public AnnotationTypeDataDefinition() {}
38
39     public AnnotationTypeDataDefinition(AnnotationTypeDataDefinition other) {
40         uniqueId = other.uniqueId;
41         type = other.type;
42         version = other.version;
43         description = other.description;
44         creationTime = other.creationTime;
45         modificationTime = other.modificationTime;
46         highestVersion = other.highestVersion;
47     }
48
49     public String getUniqueId() {
50         return uniqueId;
51     }
52
53     public void setUniqueId(String uniqueId) {
54         this.uniqueId = uniqueId;
55     }
56
57     @Override
58     public String getType() {
59         return type;
60     }
61
62     public void setType(String type) {
63         this.type = type;
64     }
65
66     public String getDescription() {
67         return description;
68     }
69
70     public void setDescription(String description) {
71         this.description = description;
72     }
73
74     public Long getCreationTime() {
75         return creationTime;
76     }
77
78     public void setCreationTime(Long creationTime) {
79         this.creationTime = creationTime;
80     }
81
82     public Long getModificationTime() {
83         return modificationTime;
84     }
85
86     public void setModificationTime(Long modificationTime) {
87         this.modificationTime = modificationTime;
88     }
89
90     @Override
91     public String getVersion() {
92         return version;
93     }
94
95     public void setVersion(String version) {
96         this.version = version;
97     }
98
99     public boolean isHighestVersion() {
100         return highestVersion;
101     }
102
103     public void setHighestVersion(boolean highestVersion) {
104         this.highestVersion = highestVersion;
105     }
106
107     @Override
108     public String toString() {
109         return getClass().getName() + ": [uniqueId=" + uniqueId + ", type=" + getType()
110                 + ", version=" + version + ", highestVersion=" + highestVersion
111                 + ", description=" + description
112                 + ", creationTime=" + creationTime + ", modificationTime=" + modificationTime + "]";
113     }
114
115
116 }