View Javadoc

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