1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.commons.ihe.xds.core.metadata;
17
18 import lombok.EqualsAndHashCode;
19 import lombok.ToString;
20
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlType;
24 import java.io.Serializable;
25
26 @XmlAccessorType(XmlAccessType.FIELD)
27 @XmlType(name = "Version")
28 @EqualsAndHashCode(doNotUseGetters = true)
29 @ToString(doNotUseGetters = true)
30 public class Version implements Serializable {
31 private static final long serialVersionUID = 4876325465142352011L;
32
33 protected String versionName;
34 protected String comment;
35
36
37
38
39 public Version() {
40 this(null, null);
41 }
42
43
44
45
46
47
48 public Version(String versionName) {
49 this(versionName, null);
50 }
51
52
53
54
55
56
57
58
59 public Version(String versionName, String comment) {
60 this.versionName = versionName;
61 this.comment = comment;
62 }
63
64 public String getComment() {
65 return comment;
66 }
67
68 public void setComment(String comment) {
69 this.comment = comment;
70 }
71
72 public String getVersionName() {
73 return versionName;
74 }
75
76 public void setVersionName(String versionName) {
77 this.versionName = versionName;
78 }
79
80 }
81