1
2
3
4
5
6 package org.apache.maven.doxia.site.decoration;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class Skin
15 implements java.io.Serializable, java.lang.Cloneable
16 {
17
18
19
20
21
22
23
24
25 private String groupId;
26
27
28
29
30 private String artifactId;
31
32
33
34
35 private String version;
36
37
38
39
40
41
42
43
44
45
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 }
61
62
63
64
65
66
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 }
89
90
91
92
93
94
95 public String getArtifactId()
96 {
97 return this.artifactId;
98 }
99
100
101
102
103
104
105 public String getGroupId()
106 {
107 return this.groupId;
108 }
109
110
111
112
113
114
115 public String getVersion()
116 {
117 return this.version;
118 }
119
120
121
122
123
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 }
135
136
137
138
139
140
141 public void setArtifactId( String artifactId )
142 {
143 this.artifactId = artifactId;
144 }
145
146
147
148
149
150
151 public void setGroupId( String groupId )
152 {
153 this.groupId = groupId;
154 }
155
156
157
158
159
160
161 public void setVersion( String version )
162 {
163 this.version = version;
164 }
165
166
167
168
169
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 }
189
190
191
192
193
194
195 public static Skin getDefaultSkin()
196 {
197 Skin skin = new Skin();
198 skin.setGroupId( "org.apache.maven.skins" );
199 skin.setArtifactId( "maven-default-skin" );
200 skin.setVersion( "1.1" );
201 return skin;
202 }
203
204
205 }