1 package org.apache.archiva.metadata.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import javax.xml.bind.annotation.XmlRootElement;
23 import java.io.Serializable;
24
25
26
27
28
29
30 @XmlRootElement(name = "dependency")
31 public class Dependency
32 implements Serializable
33 {
34
35
36
37 private String classifier;
38
39
40
41
42 private boolean optional;
43
44
45
46
47 private String scope;
48
49
50
51
52 private String systemPath;
53
54
55
56
57 private String type;
58
59
60
61
62 private String artifactId;
63
64
65
66
67 private String groupId;
68
69
70
71
72
73 private String version;
74
75 public void setClassifier( String classifier )
76 {
77 this.classifier = classifier;
78 }
79
80 public String getClassifier()
81 {
82 return classifier;
83 }
84
85 public void setOptional( boolean optional )
86 {
87 this.optional = optional;
88 }
89
90 public boolean isOptional()
91 {
92 return optional;
93 }
94
95 public void setScope( String scope )
96 {
97 this.scope = scope;
98 }
99
100 public String getScope()
101 {
102 return scope;
103 }
104
105 public void setSystemPath( String systemPath )
106 {
107 this.systemPath = systemPath;
108 }
109
110 public String getSystemPath()
111 {
112 return systemPath;
113 }
114
115 public void setType( String type )
116 {
117 this.type = type;
118 }
119
120 public String getType()
121 {
122 return type;
123 }
124
125 public void setArtifactId( String artifactId )
126 {
127 this.artifactId = artifactId;
128 }
129
130 public void setGroupId( String groupId )
131 {
132 this.groupId = groupId;
133 }
134
135 public void setVersion( String version )
136 {
137 this.version = version;
138 }
139
140 public String getVersion()
141 {
142 return version;
143 }
144
145 public String getArtifactId()
146 {
147 return artifactId;
148 }
149
150 public String getGroupId()
151 {
152 return groupId;
153 }
154
155 @Override
156 public String toString()
157 {
158 final StringBuilder sb = new StringBuilder();
159 sb.append( "Dependency" );
160 sb.append( "{classifier='" ).append( classifier ).append( '\'' );
161 sb.append( ", optional=" ).append( optional );
162 sb.append( ", scope='" ).append( scope ).append( '\'' );
163 sb.append( ", systemPath='" ).append( systemPath ).append( '\'' );
164 sb.append( ", type='" ).append( type ).append( '\'' );
165 sb.append( ", artifactId='" ).append( artifactId ).append( '\'' );
166 sb.append( ", groupId='" ).append( groupId ).append( '\'' );
167 sb.append( ", version='" ).append( version ).append( '\'' );
168 sb.append( '}' );
169 return sb.toString();
170 }
171 }