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