1
+ /*
2
+ * This file is part of Dependency-Track.
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
+ * SPDX-License-Identifier: Apache-2.0
17
+ * Copyright (c) Steve Springett. All Rights Reserved.
18
+ */
19
+ package org .dependencytrack .model ;
20
+
21
+ import com .fasterxml .jackson .annotation .JsonInclude ;
22
+
23
+ import java .io .Serializable ;
24
+ import java .util .UUID ;
25
+
26
+ /**
27
+ * Value object holding UUID and version for a project
28
+ */
29
+ @ JsonInclude (JsonInclude .Include .NON_NULL )
30
+ public class ProjectVersion implements Serializable {
31
+
32
+ private static final long serialVersionUID = 1L ;
33
+
34
+ private UUID uuid ;
35
+
36
+ private String version ;
37
+
38
+ public ProjectVersion () {
39
+ this .uuid = null ;
40
+ this .version = null ;
41
+ }
42
+
43
+ public ProjectVersion (UUID uuid , String version ) {
44
+ this .uuid = uuid ;
45
+ this .version = version ;
46
+
47
+ }
48
+
49
+ public void setUuid (UUID uuid ) {
50
+ this .uuid = uuid ;
51
+ }
52
+
53
+ public UUID getUuid () {
54
+ return uuid ;
55
+ }
56
+
57
+ public void setVersion (String version ) {
58
+ this .version = version ;
59
+ }
60
+
61
+ public String getVersion () {
62
+ return version ;
63
+ }
64
+ }
0 commit comments