1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.project;
17
18 import java.util.Properties;
19
20 public final class DefaultProject implements Project {
21
22 String groupId;
23 String artifactId;
24 String version;
25 Properties properties;
26
27 public DefaultProject() {
28 this(null, null, null, null);
29 }
30
31 public DefaultProject(String groupId, String artifactId, String version, Properties properties) {
32 super();
33 this.groupId = groupId;
34 this.artifactId = artifactId;
35 this.version = version;
36 this.properties = properties;
37 }
38
39 @Override
40 public String toString() {
41 return groupId + ":" + artifactId + ":" + version;
42 }
43
44 @Override
45 public String getGroupId() {
46 return groupId;
47 }
48
49 @Override
50 public String getArtifactId() {
51 return artifactId;
52 }
53
54 @Override
55 public String getVersion() {
56 return version;
57 }
58
59 @Override
60 public Properties getProperties() {
61 return properties;
62 }
63
64 public void setGroupId(String groupId) {
65 this.groupId = groupId;
66 }
67
68 public void setArtifactId(String artifactId) {
69 this.artifactId = artifactId;
70 }
71
72 public void setVersion(String version) {
73 this.version = version;
74 }
75
76 public void setProperties(Properties properties) {
77 this.properties = properties;
78 }
79
80 }