1
2
3
4
5
6 package org.apache.maven.doxia.site;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class PublishDate
15 implements java.io.Serializable, java.lang.Cloneable
16 {
17
18
19
20
21
22
23
24
25
26 private String position = "left";
27
28
29
30
31 private String format = "yyyy-MM-dd";
32
33
34
35
36
37
38
39
40
41
42
43 private String timezone = "Etc/UTC";
44
45
46
47
48
49
50
51
52
53
54
55 public PublishDate clone()
56 {
57 try
58 {
59 PublishDate copy = (PublishDate) super.clone();
60
61 return copy;
62 }
63 catch ( java.lang.Exception ex )
64 {
65 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
66 + " does not support clone()" ).initCause( ex );
67 }
68 }
69
70
71
72
73
74
75
76 public boolean equals( Object other )
77 {
78 if ( this == other )
79 {
80 return true;
81 }
82
83 if ( !( other instanceof PublishDate ) )
84 {
85 return false;
86 }
87
88 PublishDate that = (PublishDate) other;
89 boolean result = true;
90
91 result = result && ( getPosition() == null ? that.getPosition() == null : getPosition().equals( that.getPosition() ) );
92 result = result && ( getFormat() == null ? that.getFormat() == null : getFormat().equals( that.getFormat() ) );
93 result = result && ( getTimezone() == null ? that.getTimezone() == null : getTimezone().equals( that.getTimezone() ) );
94
95 return result;
96 }
97
98
99
100
101
102
103 public String getFormat()
104 {
105 return this.format;
106 }
107
108
109
110
111
112
113
114 public String getPosition()
115 {
116 return this.position;
117 }
118
119
120
121
122
123
124
125
126
127 public String getTimezone()
128 {
129 return this.timezone;
130 }
131
132
133
134
135
136
137 public int hashCode()
138 {
139 int result = 17;
140
141 result = 37 * result + ( position != null ? position.hashCode() : 0 );
142 result = 37 * result + ( format != null ? format.hashCode() : 0 );
143 result = 37 * result + ( timezone != null ? timezone.hashCode() : 0 );
144
145 return result;
146 }
147
148
149
150
151
152
153 public void setFormat( String format )
154 {
155 this.format = format;
156 }
157
158
159
160
161
162
163
164 public void setPosition( String position )
165 {
166 this.position = position;
167 }
168
169
170
171
172
173
174
175
176
177 public void setTimezone( String timezone )
178 {
179 this.timezone = timezone;
180 }
181
182
183
184
185
186
187 public java.lang.String toString()
188 {
189 StringBuilder buf = new StringBuilder( 128 );
190
191 buf.append( "position = '" );
192 buf.append( getPosition() );
193 buf.append( "'" );
194 buf.append( "\n" );
195 buf.append( "format = '" );
196 buf.append( getFormat() );
197 buf.append( "'" );
198 buf.append( "\n" );
199 buf.append( "timezone = '" );
200 buf.append( getTimezone() );
201 buf.append( "'" );
202
203 return buf.toString();
204 }
205
206 }