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