1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.apache.maven.doxia.site;
25
26
27
28
29
30
31 @SuppressWarnings( "all" )
32 public class Skin
33 implements java.io.Serializable, java.lang.Cloneable
34 {
35
36
37
38
39
40
41
42
43 private String groupId;
44
45
46
47
48 private String artifactId;
49
50
51
52
53 private String version;
54
55
56
57
58
59
60
61
62
63
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 }
79
80
81
82
83
84
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 }
107
108
109
110
111
112
113 public String getArtifactId()
114 {
115 return this.artifactId;
116 }
117
118
119
120
121
122
123 public String getGroupId()
124 {
125 return this.groupId;
126 }
127
128
129
130
131
132
133 public String getVersion()
134 {
135 return this.version;
136 }
137
138
139
140
141
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 }
153
154
155
156
157
158
159 public void setArtifactId( String artifactId )
160 {
161 this.artifactId = artifactId;
162 }
163
164
165
166
167
168
169 public void setGroupId( String groupId )
170 {
171 this.groupId = groupId;
172 }
173
174
175
176
177
178
179 public void setVersion( String version )
180 {
181 this.version = version;
182 }
183
184
185
186
187
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 }
207
208 }