1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.repository;
20
21
22
23
24
25
26
27 public class MavenArtifactMetadata {
28 public static final String DEFAULT_TYPE = "jar";
29
30 String groupId;
31 String artifactId;
32 String version;
33 String classifier;
34 String type;
35 String scope;
36
37 transient Object datum;
38
39 public String getGroupId() {
40 return groupId;
41 }
42
43 public void setGroupId(String groupId) {
44 this.groupId = groupId;
45 }
46
47 public String getArtifactId() {
48 return artifactId;
49 }
50
51 public void setArtifactId(String artifactId) {
52 this.artifactId = artifactId;
53 }
54
55 public String getVersion() {
56 return version;
57 }
58
59 public void setVersion(String version) {
60 this.version = version;
61 }
62
63 public String getClassifier() {
64 return classifier;
65 }
66
67 public void setClassifier(String classifier) {
68 this.classifier = classifier;
69 }
70
71 public String getType() {
72 return type;
73 }
74
75 public void setType(String type) {
76 this.type = type;
77 }
78
79 public Object getDatum() {
80 return datum;
81 }
82
83 public void setDatum(Object datum) {
84 this.datum = datum;
85 }
86
87 public String getScope() {
88 return scope;
89 }
90
91 public void setScope(String scope) {
92 this.scope = scope;
93 }
94
95 @Override
96 public String toString() {
97 return getGroupId() + ":" + getArtifactId() + ":" + getVersion() + ":"
98 + (getClassifier() == null ? "" : getClassifier()) + ":"
99 + (getType() == null ? DEFAULT_TYPE : getType());
100 }
101 }