|
1
|
|
|
package easytests.core.models.empty; |
|
2
|
|
|
|
|
3
|
|
|
import easytests.core.entities.QuestionEntity; |
|
4
|
|
|
import easytests.core.models.AnswerModelInterface; |
|
5
|
|
|
import easytests.core.models.QuestionModelInterface; |
|
6
|
|
|
import easytests.core.models.QuestionTypeModelInterface; |
|
7
|
|
|
import easytests.core.models.TopicModelInterface; |
|
8
|
|
|
import easytests.core.models.exceptions.CallMethodOnEmptyModelException; |
|
9
|
|
|
import java.util.List; |
|
10
|
|
|
|
|
11
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* @author firkhraag |
|
14
|
|
|
*/ |
|
15
|
|
|
public class QuestionModelEmpty extends AbstractModelEmpty implements QuestionModelInterface { |
|
16
|
|
|
public QuestionModelEmpty() { |
|
17
|
|
|
super(); |
|
18
|
|
|
} |
|
19
|
|
|
|
|
20
|
|
|
public QuestionModelEmpty(Integer id) { |
|
21
|
|
|
super(id); |
|
22
|
|
|
} |
|
23
|
|
|
|
|
24
|
|
|
@Override |
|
25
|
|
|
public void setId(Integer id) { |
|
26
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
27
|
|
|
} |
|
28
|
|
|
|
|
29
|
|
|
@Override |
|
30
|
|
|
public String getText() { |
|
31
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
@Override |
|
35
|
|
|
public void setText(String text) { |
|
36
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
37
|
|
|
} |
|
38
|
|
|
|
|
39
|
|
|
@Override |
|
40
|
|
|
public QuestionTypeModelInterface getQuestionType() { |
|
41
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
@Override |
|
45
|
|
|
public void setQuestionType(QuestionTypeModelInterface questionType) { |
|
46
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
@Override |
|
50
|
|
|
public TopicModelInterface getTopic() { |
|
51
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
52
|
|
|
} |
|
53
|
|
|
|
|
54
|
|
|
@Override |
|
55
|
|
|
public void setTopic(TopicModelInterface topic) { |
|
56
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
@Override |
|
60
|
|
|
public List<AnswerModelInterface> getAnswers() { |
|
61
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
@Override |
|
65
|
|
|
public void setAnswers(List<AnswerModelInterface> answers) { |
|
66
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
@Override |
|
70
|
|
|
public void map(QuestionEntity questionEntity) { |
|
71
|
|
|
throw new CallMethodOnEmptyModelException(); |
|
72
|
|
|
} |
|
73
|
|
|
} |
|
74
|
|
|
|