View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.9.1,
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        //-----------/
40       //- Methods -/
41      //-----------/
42  
43      /**
44       * Method equals.
45       * 
46       * @param other
47       * @return boolean
48       */
49      public boolean equals( Object other )
50      {
51          if ( this == other )
52          {
53              return true;
54          }
55  
56          if ( !( other instanceof JavadocPathArtifact ) )
57          {
58              return false;
59          }
60  
61          JavadocPathArtifact/../../org/apache/maven/plugins/javadoc/options/JavadocPathArtifact.html#JavadocPathArtifact">JavadocPathArtifact that = (JavadocPathArtifact) other;
62          boolean result = true;
63  
64          result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
65          result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
66          result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
67  
68          return result;
69      } //-- boolean equals( Object )
70  
71      /**
72       * Get the id of the artifact.
73       * 
74       * @return String
75       */
76      public String getArtifactId()
77      {
78          return this.artifactId;
79      } //-- String getArtifactId()
80  
81      /**
82       * Get the id of the group of the artifact.
83       * 
84       * @return String
85       */
86      public String getGroupId()
87      {
88          return this.groupId;
89      } //-- String getGroupId()
90  
91      /**
92       * Get the version of the artifact.
93       * 
94       * @return String
95       */
96      public String getVersion()
97      {
98          return this.version;
99      } //-- String getVersion()
100 
101     /**
102      * Method hashCode.
103      * 
104      * @return int
105      */
106     public int hashCode()
107     {
108         int result = 17;
109 
110         result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
111         result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
112         result = 37 * result + ( version != null ? version.hashCode() : 0 );
113 
114         return result;
115     } //-- int hashCode()
116 
117     /**
118      * Set the id of the artifact.
119      * 
120      * @param artifactId
121      */
122     public void setArtifactId( String artifactId )
123     {
124         this.artifactId = artifactId;
125     } //-- void setArtifactId( String )
126 
127     /**
128      * Set the id of the group of the artifact.
129      * 
130      * @param groupId
131      */
132     public void setGroupId( String groupId )
133     {
134         this.groupId = groupId;
135     } //-- void setGroupId( String )
136 
137     /**
138      * Set the version of the artifact.
139      * 
140      * @param version
141      */
142     public void setVersion( String version )
143     {
144         this.version = version;
145     } //-- void setVersion( String )
146 
147     /**
148      * Method toString.
149      * 
150      * @return String
151      */
152     public java.lang.String toString()
153     {
154         StringBuilder buf = new StringBuilder( 128 );
155 
156         buf.append( "groupId = '" );
157         buf.append( getGroupId() );
158         buf.append( "'" );
159         buf.append( "\n" ); 
160         buf.append( "artifactId = '" );
161         buf.append( getArtifactId() );
162         buf.append( "'" );
163         buf.append( "\n" ); 
164         buf.append( "version = '" );
165         buf.append( getVersion() );
166         buf.append( "'" );
167 
168         return buf.toString();
169     } //-- java.lang.String toString()
170 
171 }