View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.1.2,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.plugins.javadoc.options;
7   
8   /**
9    * An artifact object used by Javadoc path options like -docletpath
10   * or -tagletpath.
11   * 
12   * @version $Revision$ $Date$
13   */
14  @SuppressWarnings( "all" )
15  public class JavadocPathArtifact
16      implements java.io.Serializable
17  {
18  
19        //--------------------------/
20       //- Class/Member Variables -/
21      //--------------------------/
22  
23      /**
24       * The id of the group of the artifact.
25       */
26      private String groupId;
27  
28      /**
29       * The id of the artifact.
30       */
31      private String artifactId;
32  
33      /**
34       * The version of the artifact.
35       */
36      private String version;
37  
38      /**
39       * The classifier of the artifact.
40       */
41      private String classifier;
42  
43  
44        //-----------/
45       //- Methods -/
46      //-----------/
47  
48      /**
49       * Method equals.
50       * 
51       * @param other a other object.
52       * @return boolean
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      } //-- boolean equals( Object )
76  
77      /**
78       * Get the id of the artifact.
79       * 
80       * @return String
81       */
82      public String getArtifactId()
83      {
84          return this.artifactId;
85      } //-- String getArtifactId()
86  
87      /**
88       * Get the classifier of the artifact.
89       * 
90       * @return String
91       */
92      public String getClassifier()
93      {
94          return this.classifier;
95      } //-- String getClassifier()
96  
97      /**
98       * Get the id of the group of the artifact.
99       * 
100      * @return String
101      */
102     public String getGroupId()
103     {
104         return this.groupId;
105     } //-- String getGroupId()
106 
107     /**
108      * Get the version of the artifact.
109      * 
110      * @return String
111      */
112     public String getVersion()
113     {
114         return this.version;
115     } //-- String getVersion()
116 
117     /**
118      * Method hashCode.
119      * 
120      * @return int
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     } //-- int hashCode()
133 
134     /**
135      * Set the id of the artifact.
136      * 
137      * @param artifactId a artifactId object.
138      */
139     public void setArtifactId( String artifactId )
140     {
141         this.artifactId = artifactId;
142     } //-- void setArtifactId( String )
143 
144     /**
145      * Set the classifier of the artifact.
146      * 
147      * @param classifier a classifier object.
148      */
149     public void setClassifier( String classifier )
150     {
151         this.classifier = classifier;
152     } //-- void setClassifier( String )
153 
154     /**
155      * Set the id of the group of the artifact.
156      * 
157      * @param groupId a groupId object.
158      */
159     public void setGroupId( String groupId )
160     {
161         this.groupId = groupId;
162     } //-- void setGroupId( String )
163 
164     /**
165      * Set the version of the artifact.
166      * 
167      * @param version a version object.
168      */
169     public void setVersion( String version )
170     {
171         this.version = version;
172     } //-- void setVersion( String )
173 
174     /**
175      * Method toString.
176      * 
177      * @return String
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     } //-- java.lang.String toString()
201 
202 }