1
2
3
4
5
6 package org.apache.maven.plugins.javadoc.options;
7
8
9
10
11
12
13
14 @SuppressWarnings( "all" )
15 public class JavadocPathArtifact
16 implements java.io.Serializable
17 {
18
19
20
21
22
23
24
25
26 private String groupId;
27
28
29
30
31 private String artifactId;
32
33
34
35
36 private String version;
37
38
39
40
41 private String classifier;
42
43
44
45
46
47
48
49
50
51
52
53
54 public boolean equals( Object other )
55 {
56 if ( this == other )
57 {
58 return true;
59 }
60
61 if ( !( other instanceof JavadocPathArtifact ) )
62 {
63 return false;
64 }
65
66 JavadocPathArtifact that = (JavadocPathArtifact) other;
67 boolean result = true;
68
69 result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
70 result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
71 result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
72 result = result && ( getClassifier() == null ? that.getClassifier() == null : getClassifier().equals( that.getClassifier() ) );
73
74 return result;
75 }
76
77
78
79
80
81
82 public String getArtifactId()
83 {
84 return this.artifactId;
85 }
86
87
88
89
90
91
92 public String getClassifier()
93 {
94 return this.classifier;
95 }
96
97
98
99
100
101
102 public String getGroupId()
103 {
104 return this.groupId;
105 }
106
107
108
109
110
111
112 public String getVersion()
113 {
114 return this.version;
115 }
116
117
118
119
120
121
122 public int hashCode()
123 {
124 int result = 17;
125
126 result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
127 result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
128 result = 37 * result + ( version != null ? version.hashCode() : 0 );
129 result = 37 * result + ( classifier != null ? classifier.hashCode() : 0 );
130
131 return result;
132 }
133
134
135
136
137
138
139 public void setArtifactId( String artifactId )
140 {
141 this.artifactId = artifactId;
142 }
143
144
145
146
147
148
149 public void setClassifier( String classifier )
150 {
151 this.classifier = classifier;
152 }
153
154
155
156
157
158
159 public void setGroupId( String groupId )
160 {
161 this.groupId = groupId;
162 }
163
164
165
166
167
168
169 public void setVersion( String version )
170 {
171 this.version = version;
172 }
173
174
175
176
177
178
179 public java.lang.String toString()
180 {
181 StringBuilder buf = new StringBuilder( 128 );
182
183 buf.append( "groupId = '" );
184 buf.append( getGroupId() );
185 buf.append( "'" );
186 buf.append( "\n" );
187 buf.append( "artifactId = '" );
188 buf.append( getArtifactId() );
189 buf.append( "'" );
190 buf.append( "\n" );
191 buf.append( "version = '" );
192 buf.append( getVersion() );
193 buf.append( "'" );
194 buf.append( "\n" );
195 buf.append( "classifier = '" );
196 buf.append( getClassifier() );
197 buf.append( "'" );
198
199 return buf.toString();
200 }
201
202 }