01: /*
02: * Created on Feb 21, 2006
03: */
04: package com.openedit.modules.admin.users;
05:
06: public class Question {
07: protected String fieldDescription;
08: protected String fieldId;
09: protected String fieldAnswer;
10:
11: public String getAnswer() {
12: return fieldAnswer;
13: }
14:
15: public void setAnswer(String inAnswer) {
16: fieldAnswer = inAnswer;
17: }
18:
19: public String getDescription() {
20: return fieldDescription;
21: }
22:
23: public void setDescription(String inDescription) {
24: fieldDescription = inDescription;
25: }
26:
27: public String getId() {
28: return fieldId;
29: }
30:
31: public void setId(String inId) {
32: fieldId = inId;
33: }
34:
35: public boolean checkAnswer(String inAnswer) {
36: if (getAnswer().equalsIgnoreCase(inAnswer)) {
37: return true;
38: }
39: return false;
40: }
41:
42: }
|