1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.geronimo.genesis.util;
21
22 /**
23 * Represents a Maven-artifact.
24 *
25 * @version $Rev:385659 $ $Date: 2006-10-08 16:39:11 -0700 (Sun, 08 Oct 2006) $
26 */
27 public class ArtifactItem
28 {
29 /**
30 * Group Id of artifact.
31 *
32 * @parameter
33 * @required
34 */
35 private String groupId;
36
37 /**
38 * Name of artifact.
39 *
40 * @parameter
41 * @required
42 */
43 private String artifactId;
44
45 /**
46 * Version of artifact.
47 *
48 * @parameter
49 */
50 private String version = null;
51
52 /**
53 * Type of artifact.
54 *
55 * @parameter
56 * @required
57 */
58 private String type = "jar";
59
60 /**
61 * Classifier for artifact.
62 *
63 * @parameter
64 */
65 private String classifier;
66
67 public String toString() {
68 return groupId + ":" + artifactId + ":" + classifier + ":" + version + ":" + type;
69 }
70
71 /**
72 * @return Returns the artifactId.
73 */
74 public String getArtifactId() {
75 return artifactId;
76 }
77
78 /**
79 * @param artifactId The artifactId to set.
80 */
81 public void setArtifactId(final String artifactId) {
82 this.artifactId = artifactId;
83 }
84
85 /**
86 * @return Returns the groupId.
87 */
88 public String getGroupId() {
89 return groupId;
90 }
91
92 /**
93 * @param groupId The groupId to set.
94 */
95 public void setGroupId(final String groupId) {
96 this.groupId = groupId;
97 }
98
99 /**
100 * @return Returns the type.
101 */
102 public String getType() {
103 return type;
104 }
105
106 /**
107 * @param type The type to set.
108 */
109 public void setType(final String type) {
110 this.type = type;
111 }
112
113 /**
114 * @return Returns the version.
115 */
116 public String getVersion() {
117 return version;
118 }
119
120 /**
121 * @param version The version to set.
122 */
123 public void setVersion(final String version) {
124 this.version = version;
125 }
126
127 /**
128 * @return Classifier.
129 */
130 public String getClassifier() {
131 return classifier;
132 }
133
134 /**
135 * @param classifier Classifier.
136 */
137 public void setClassifier(final String classifier) {
138 this.classifier = classifier;
139 }
140 }