Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Faq |
|
| 2.4444444444444446;2,444 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.4.1 on 2012-04-13 21:40:48, | |
4 | any modifications will be overwritten. | |
5 | ============================================================== | |
6 | */ | |
7 | ||
8 | package org.apache.maven.doxia.module.fml.model; | |
9 | ||
10 | /** | |
11 | * | |
12 | * A Faq. | |
13 | * | |
14 | * | |
15 | * @version $Revision$ $Date$ | |
16 | */ | |
17 | @SuppressWarnings( "all" ) | |
18 | 168 | public class Faq |
19 | implements java.io.Serializable | |
20 | { | |
21 | ||
22 | //--------------------------/ | |
23 | //- Class/Member Variables -/ | |
24 | //--------------------------/ | |
25 | ||
26 | /** | |
27 | * | |
28 | * The FAQ identifier. | |
29 | * | |
30 | */ | |
31 | private String id; | |
32 | ||
33 | /** | |
34 | * | |
35 | * The question. | |
36 | * | |
37 | */ | |
38 | private String question; | |
39 | ||
40 | /** | |
41 | * | |
42 | * The answer. | |
43 | * | |
44 | */ | |
45 | private String answer; | |
46 | ||
47 | ||
48 | //-----------/ | |
49 | //- Methods -/ | |
50 | //-----------/ | |
51 | ||
52 | /** | |
53 | * Method equals. | |
54 | * | |
55 | * @param other | |
56 | * @return boolean | |
57 | */ | |
58 | public boolean equals( Object other ) | |
59 | { | |
60 | 0 | if ( this == other ) |
61 | { | |
62 | 0 | return true; |
63 | } | |
64 | ||
65 | 0 | if ( !( other instanceof Faq ) ) |
66 | { | |
67 | 0 | return false; |
68 | } | |
69 | ||
70 | 0 | Faq that = (Faq) other; |
71 | 0 | boolean result = true; |
72 | ||
73 | 0 | result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) ); |
74 | 0 | result = result && ( getQuestion() == null ? that.getQuestion() == null : getQuestion().equals( that.getQuestion() ) ); |
75 | 0 | result = result && ( getAnswer() == null ? that.getAnswer() == null : getAnswer().equals( that.getAnswer() ) ); |
76 | ||
77 | 0 | return result; |
78 | } //-- boolean equals( Object ) | |
79 | ||
80 | /** | |
81 | * Get the answer. | |
82 | * | |
83 | * @return String | |
84 | */ | |
85 | public String getAnswer() | |
86 | { | |
87 | 336 | return this.answer; |
88 | } //-- String getAnswer() | |
89 | ||
90 | /** | |
91 | * Get the FAQ identifier. | |
92 | * | |
93 | * @return String | |
94 | */ | |
95 | public String getId() | |
96 | { | |
97 | 672 | return this.id; |
98 | } //-- String getId() | |
99 | ||
100 | /** | |
101 | * Get the question. | |
102 | * | |
103 | * @return String | |
104 | */ | |
105 | public String getQuestion() | |
106 | { | |
107 | 672 | return this.question; |
108 | } //-- String getQuestion() | |
109 | ||
110 | /** | |
111 | * Method hashCode. | |
112 | * | |
113 | * @return int | |
114 | */ | |
115 | public int hashCode() | |
116 | { | |
117 | 0 | int result = 17; |
118 | ||
119 | 0 | result = 37 * result + ( id != null ? id.hashCode() : 0 ); |
120 | 0 | result = 37 * result + ( question != null ? question.hashCode() : 0 ); |
121 | 0 | result = 37 * result + ( answer != null ? answer.hashCode() : 0 ); |
122 | ||
123 | 0 | return result; |
124 | } //-- int hashCode() | |
125 | ||
126 | /** | |
127 | * Set the answer. | |
128 | * | |
129 | * @param answer | |
130 | */ | |
131 | public void setAnswer( String answer ) | |
132 | { | |
133 | 168 | this.answer = answer; |
134 | 168 | } //-- void setAnswer( String ) |
135 | ||
136 | /** | |
137 | * Set the FAQ identifier. | |
138 | * | |
139 | * @param id | |
140 | */ | |
141 | public void setId( String id ) | |
142 | { | |
143 | 168 | this.id = id; |
144 | 168 | } //-- void setId( String ) |
145 | ||
146 | /** | |
147 | * Set the question. | |
148 | * | |
149 | * @param question | |
150 | */ | |
151 | public void setQuestion( String question ) | |
152 | { | |
153 | 168 | this.question = question; |
154 | 168 | } //-- void setQuestion( String ) |
155 | ||
156 | /** | |
157 | * Method toString. | |
158 | * | |
159 | * @return String | |
160 | */ | |
161 | public java.lang.String toString() | |
162 | { | |
163 | 0 | StringBuilder buf = new StringBuilder( 128 ); |
164 | ||
165 | 0 | buf.append( "id = '" ); |
166 | 0 | buf.append( getId() ); |
167 | 0 | buf.append( "'" ); |
168 | 0 | buf.append( "\n" ); |
169 | 0 | buf.append( "question = '" ); |
170 | 0 | buf.append( getQuestion() ); |
171 | 0 | buf.append( "'" ); |
172 | 0 | buf.append( "\n" ); |
173 | 0 | buf.append( "answer = '" ); |
174 | 0 | buf.append( getAnswer() ); |
175 | 0 | buf.append( "'" ); |
176 | ||
177 | 0 | return buf.toString(); |
178 | } //-- java.lang.String toString() | |
179 | ||
180 | } |