re base code
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / AnnotationTypeDataDefinition.java
1 package org.openecomp.sdc.be.datatypes.elements;
2
3 import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition;
4
5 public class AnnotationTypeDataDefinition extends ToscaDataDefinition {
6
7     protected String uniqueId;
8     protected String type; 
9     protected String description;
10
11     protected Long creationTime;
12     protected Long modificationTime;
13
14     protected String version;
15     protected boolean highestVersion;
16
17     public AnnotationTypeDataDefinition() {}
18
19     public AnnotationTypeDataDefinition(AnnotationTypeDataDefinition other) {
20         uniqueId = other.uniqueId;
21         type = other.type;
22         version = other.version;
23         description = other.description;
24         creationTime = other.creationTime;
25         modificationTime = other.modificationTime;
26         highestVersion = other.highestVersion;
27     }
28
29     public String getUniqueId() {
30         return uniqueId;
31     }
32
33     public void setUniqueId(String uniqueId) {
34         this.uniqueId = uniqueId;
35     }
36
37     @Override
38     public String getType() {
39         return type;
40     }
41
42     public void setType(String type) {
43         this.type = type;
44     }
45
46     public String getDescription() {
47         return description;
48     }
49
50     public void setDescription(String description) {
51         this.description = description;
52     }
53
54     public Long getCreationTime() {
55         return creationTime;
56     }
57
58     public void setCreationTime(Long creationTime) {
59         this.creationTime = creationTime;
60     }
61
62     public Long getModificationTime() {
63         return modificationTime;
64     }
65
66     public void setModificationTime(Long modificationTime) {
67         this.modificationTime = modificationTime;
68     }
69
70     @Override
71     public String getVersion() {
72         return version;
73     }
74
75     public void setVersion(String version) {
76         this.version = version;
77     }
78
79     public boolean isHighestVersion() {
80         return highestVersion;
81     }
82
83     public void setHighestVersion(boolean highestVersion) {
84         this.highestVersion = highestVersion;
85     }
86
87     @Override
88     public String toString() {
89         return getClass().getName() + ": [uniqueId=" + uniqueId + ", type=" + getType()
90                 + ", version=" + version + ", highestVersion=" + highestVersion
91                 + ", description=" + description
92                 + ", creationTime=" + creationTime + ", modificationTime=" + modificationTime + "]";
93     }
94
95
96 }