View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.doxia.site;
25  
26  /**
27   * A skin artifact declaration.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class Skin
33      implements java.io.Serializable, java.lang.Cloneable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * The skin group ID.
42       */
43      private String groupId;
44  
45      /**
46       * The skin artifact ID.
47       */
48      private String artifactId;
49  
50      /**
51       * The skin version.
52       */
53      private String version;
54  
55  
56        //-----------/
57       //- Methods -/
58      //-----------/
59  
60      /**
61       * Method clone.
62       * 
63       * @return Skin
64       */
65      public Skin clone()
66      {
67          try
68          {
69              Skin copy = (Skin) super.clone();
70  
71              return copy;
72          }
73          catch ( java.lang.Exception ex )
74          {
75              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
76                  + " does not support clone()" ).initCause( ex );
77          }
78      } //-- Skin clone()
79  
80      /**
81       * Method equals.
82       * 
83       * @param other a other object.
84       * @return boolean
85       */
86      public boolean equals( Object other )
87      {
88          if ( this == other )
89          {
90              return true;
91          }
92  
93          if ( !( other instanceof Skin ) )
94          {
95              return false;
96          }
97  
98          Skin that = (Skin) other;
99          boolean result = true;
100 
101         result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
102         result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
103         result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
104 
105         return result;
106     } //-- boolean equals( Object )
107 
108     /**
109      * Get the skin artifact ID.
110      * 
111      * @return String
112      */
113     public String getArtifactId()
114     {
115         return this.artifactId;
116     } //-- String getArtifactId()
117 
118     /**
119      * Get the skin group ID.
120      * 
121      * @return String
122      */
123     public String getGroupId()
124     {
125         return this.groupId;
126     } //-- String getGroupId()
127 
128     /**
129      * Get the skin version.
130      * 
131      * @return String
132      */
133     public String getVersion()
134     {
135         return this.version;
136     } //-- String getVersion()
137 
138     /**
139      * Method hashCode.
140      * 
141      * @return int
142      */
143     public int hashCode()
144     {
145         int result = 17;
146 
147         result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
148         result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
149         result = 37 * result + ( version != null ? version.hashCode() : 0 );
150 
151         return result;
152     } //-- int hashCode()
153 
154     /**
155      * Set the skin artifact ID.
156      * 
157      * @param artifactId a artifactId object.
158      */
159     public void setArtifactId( String artifactId )
160     {
161         this.artifactId = artifactId;
162     } //-- void setArtifactId( String )
163 
164     /**
165      * Set the skin group ID.
166      * 
167      * @param groupId a groupId object.
168      */
169     public void setGroupId( String groupId )
170     {
171         this.groupId = groupId;
172     } //-- void setGroupId( String )
173 
174     /**
175      * Set the skin version.
176      * 
177      * @param version a version object.
178      */
179     public void setVersion( String version )
180     {
181         this.version = version;
182     } //-- void setVersion( String )
183 
184     /**
185      * Method toString.
186      * 
187      * @return String
188      */
189     public java.lang.String toString()
190     {
191         StringBuilder buf = new StringBuilder( 128 );
192 
193         buf.append( "groupId = '" );
194         buf.append( getGroupId() );
195         buf.append( "'" );
196         buf.append( "\n" ); 
197         buf.append( "artifactId = '" );
198         buf.append( getArtifactId() );
199         buf.append( "'" );
200         buf.append( "\n" ); 
201         buf.append( "version = '" );
202         buf.append( getVersion() );
203         buf.append( "'" );
204 
205         return buf.toString();
206     } //-- java.lang.String toString()
207 
208 }