easytests.core.models.empty.QuestionModelEmpty   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
c 1
b 0
f 0
loc 56
rs 10
wmc 12

16 Methods

Rating   Name   Duplication   Size   Complexity  
getText 0 1 ?
setText 0 2 ?
setAnswers 0 2 ?
getAnswers 0 1 ?
A getText() 0 1 1
A setText(String) 0 2 1
A setTopic(TopicModelInterface) 0 2 1
A getQuestionType() 0 1 1
A map(QuestionEntity) 0 2 1
A setQuestionType(QuestionTypeModelInterface) 0 2 1
A QuestionModelEmpty(Integer) 0 2 1
A getAnswers() 0 1 1
A setAnswers(List) 0 2 1
A setId(Integer) 0 2 1
A getTopic() 0 1 1
A QuestionModelEmpty() 0 ? 1
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