View Javadoc
1   /*
2    * Copyright 2011 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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       * Constructs a localized string.
38       */
39      public Version() {
40          this(null, null);
41      }
42  
43      /**
44       * Constructs a localized string.
45       * @param versionName
46       *          the version name.
47       */
48      public Version(String versionName) {
49          this(versionName, null);
50      }
51  
52      /**
53       * Constructs a localized string.
54       * @param versionName
55       *          the version name.
56       * @param comment
57       *          the comment.
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