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