1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.repository.legacy.metadata;
20
21 import org.apache.maven.artifact.Artifact;
22
23
24
25
26
27
28 @Deprecated
29 public abstract class AbstractArtifactMetadata implements ArtifactMetadata {
30 private static final String LS = System.lineSeparator();
31
32 protected Artifact artifact;
33
34 protected AbstractArtifactMetadata(Artifact artifact) {
35 this.artifact = artifact;
36 }
37
38 public boolean storedInGroupDirectory() {
39 return false;
40 }
41
42 public String getGroupId() {
43 return artifact.getGroupId();
44 }
45
46 public String getArtifactId() {
47 return artifact.getArtifactId();
48 }
49
50 public String extendedToString() {
51 StringBuilder buffer = new StringBuilder(256);
52
53 buffer.append(LS).append("Artifact Metadata").append(LS).append("--------------------------");
54 buffer.append(LS).append("GroupId: ").append(getGroupId());
55 buffer.append(LS).append("ArtifactId: ").append(getArtifactId());
56 buffer.append(LS).append("Metadata Type: ").append(getClass().getName());
57
58 return buffer.toString();
59 }
60 }