View Javadoc
1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    
4    Generated by Modello 2.4.0,
5    
6    any modifications will be overwritten.
7    
8    ==============================================================
9    */
10  
11  package org.apache.maven.doxia.site;
12  
13  /**
14   * A skin artifact declaration.
15   * 
16   * @version $Revision$ $Date$
17   */
18  @SuppressWarnings( "all" )
19  public class Skin
20      implements java.io.Serializable, java.lang.Cloneable
21  {
22  
23        //--------------------------/
24       //- Class/Member Variables -/
25      //--------------------------/
26  
27      /**
28       * The skin group ID.
29       */
30      private String groupId;
31  
32      /**
33       * The skin artifact ID.
34       */
35      private String artifactId;
36  
37      /**
38       * The skin version.
39       */
40      private String version;
41  
42  
43        //-----------/
44       //- Methods -/
45      //-----------/
46  
47      /**
48       * Method clone.
49       * 
50       * @return Skin
51       */
52      public Skin clone()
53      {
54          try
55          {
56              Skin copy = (Skin) super.clone();
57  
58              return copy;
59          }
60          catch ( java.lang.Exception ex )
61          {
62              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
63                  + " does not support clone()" ).initCause( ex );
64          }
65      } //-- Skin clone()
66  
67      /**
68       * Method equals.
69       * 
70       * @param other a other object.
71       * @return boolean
72       */
73      public boolean equals( Object other )
74      {
75          if ( this == other )
76          {
77              return true;
78          }
79  
80          if ( !( other instanceof Skin ) )
81          {
82              return false;
83          }
84  
85          Skin that = (Skin) other;
86          boolean result = true;
87  
88          result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
89          result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
90          result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
91  
92          return result;
93      } //-- boolean equals( Object )
94  
95      /**
96       * Get the skin artifact ID.
97       * 
98       * @return String
99       */
100     public String getArtifactId()
101     {
102         return this.artifactId;
103     } //-- String getArtifactId()
104 
105     /**
106      * Get the skin group ID.
107      * 
108      * @return String
109      */
110     public String getGroupId()
111     {
112         return this.groupId;
113     } //-- String getGroupId()
114 
115     /**
116      * Get the skin version.
117      * 
118      * @return String
119      */
120     public String getVersion()
121     {
122         return this.version;
123     } //-- String getVersion()
124 
125     /**
126      * Method hashCode.
127      * 
128      * @return int
129      */
130     public int hashCode()
131     {
132         int result = 17;
133 
134         result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
135         result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
136         result = 37 * result + ( version != null ? version.hashCode() : 0 );
137 
138         return result;
139     } //-- int hashCode()
140 
141     /**
142      * Set the skin artifact ID.
143      * 
144      * @param artifactId a artifactId object.
145      */
146     public void setArtifactId( String artifactId )
147     {
148         this.artifactId = artifactId;
149     } //-- void setArtifactId( String )
150 
151     /**
152      * Set the skin group ID.
153      * 
154      * @param groupId a groupId object.
155      */
156     public void setGroupId( String groupId )
157     {
158         this.groupId = groupId;
159     } //-- void setGroupId( String )
160 
161     /**
162      * Set the skin version.
163      * 
164      * @param version a version object.
165      */
166     public void setVersion( String version )
167     {
168         this.version = version;
169     } //-- void setVersion( String )
170 
171     /**
172      * Method toString.
173      * 
174      * @return String
175      */
176     public java.lang.String toString()
177     {
178         StringBuilder buf = new StringBuilder( 128 );
179 
180         buf.append( "groupId = '" );
181         buf.append( getGroupId() );
182         buf.append( "'" );
183         buf.append( "\n" ); 
184         buf.append( "artifactId = '" );
185         buf.append( getArtifactId() );
186         buf.append( "'" );
187         buf.append( "\n" ); 
188         buf.append( "version = '" );
189         buf.append( getVersion() );
190         buf.append( "'" );
191 
192         return buf.toString();
193     } //-- java.lang.String toString()
194 
195 }