1
2
3
4
5
6 package org.apache.maven.doxia.module.fml.model;
7
8
9
10
11
12
13
14
15
16
17
18 @SuppressWarnings( "all" )
19 public class Faqs
20 implements java.io.Serializable
21 {
22
23
24
25
26
27
28
29
30
31
32 private String title = "FAQ";
33
34
35
36
37
38
39 private boolean toplink = true;
40
41
42
43
44 private java.util.List<Part> parts;
45
46
47
48
49 private String modelEncoding = "UTF-8";
50
51
52
53
54
55
56
57
58
59
60
61 public void addPart( Part part )
62 {
63 getParts().add( part );
64 }
65
66
67
68
69
70
71
72 public boolean equals( Object other )
73 {
74 if ( this == other )
75 {
76 return true;
77 }
78
79 if ( !( other instanceof Faqs ) )
80 {
81 return false;
82 }
83
84 Faqs that = (Faqs) other;
85 boolean result = true;
86
87 result = result && ( getTitle() == null ? that.getTitle() == null : getTitle().equals( that.getTitle() ) );
88 result = result && toplink == that.toplink;
89 result = result && ( getParts() == null ? that.getParts() == null : getParts().equals( that.getParts() ) );
90
91 return result;
92 }
93
94
95
96
97
98
99 public String getModelEncoding()
100 {
101 return this.modelEncoding;
102 }
103
104
105
106
107
108
109 public java.util.List<Part> getParts()
110 {
111 if ( this.parts == null )
112 {
113 this.parts = new java.util.ArrayList<Part>();
114 }
115
116 return this.parts;
117 }
118
119
120
121
122
123
124 public String getTitle()
125 {
126 return this.title;
127 }
128
129
130
131
132
133
134 public int hashCode()
135 {
136 int result = 17;
137
138 result = 37 * result + ( title != null ? title.hashCode() : 0 );
139 result = 37 * result + ( toplink ? 0 : 1 );
140 result = 37 * result + ( parts != null ? parts.hashCode() : 0 );
141
142 return result;
143 }
144
145
146
147
148
149
150 public boolean isToplink()
151 {
152 return this.toplink;
153 }
154
155
156
157
158
159
160 public void removePart( Part part )
161 {
162 getParts().remove( part );
163 }
164
165
166
167
168
169
170 public void setModelEncoding( String modelEncoding )
171 {
172 this.modelEncoding = modelEncoding;
173 }
174
175
176
177
178
179
180 public void setParts( java.util.List<Part> parts )
181 {
182 this.parts = parts;
183 }
184
185
186
187
188
189
190 public void setTitle( String title )
191 {
192 this.title = title;
193 }
194
195
196
197
198
199
200 public void setToplink( boolean toplink )
201 {
202 this.toplink = toplink;
203 }
204
205
206
207
208
209
210 public java.lang.String toString()
211 {
212 StringBuilder buf = new StringBuilder( 128 );
213
214 buf.append( "title = '" );
215 buf.append( getTitle() );
216 buf.append( "'" );
217 buf.append( "\n" );
218 buf.append( "toplink = '" );
219 buf.append( isToplink() );
220 buf.append( "'" );
221 buf.append( "\n" );
222 buf.append( "parts = '" );
223 buf.append( getParts() );
224 buf.append( "'" );
225
226 return buf.toString();
227 }
228
229 }