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