easytests.core.models.empty.AnswerModelEmpty   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

20 Methods

Rating   Name   Duplication   Size   Complexity  
setRight 0 2 ?
setSerialNumber 0 2 ?
getTxt 0 1 ?
setQuestion 0 2 ?
getQuestion 0 1 ?
getRight 0 1 ?
getSerialNumber 0 1 ?
setTxt 0 2 ?
A map(AnswerEntity) 0 2 1
A getQuestion() 0 1 1
A getRight() 0 1 1
A setRight(Boolean) 0 2 1
A AnswerModelEmpty(Integer) 0 2 1
A setQuestion(QuestionModelInterface) 0 2 1
A setTxt(String) 0 2 1
A setId(Integer) 0 2 1
A getTxt() 0 1 1
A getSerialNumber() 0 1 1
A setSerialNumber(Integer) 0 2 1
A AnswerModelEmpty() 0 ? 1
1
package easytests.core.models.empty;
2
3
import easytests.core.entities.AnswerEntity;
4
import easytests.core.models.AnswerModelInterface;
5
import easytests.core.models.QuestionModelInterface;
6
import easytests.core.models.exceptions.CallMethodOnEmptyModelException;
7
8
/**
9
 * @author rezenbekk
10
 */
11
public class AnswerModelEmpty extends AbstractModelEmpty implements AnswerModelInterface {
12
    public AnswerModelEmpty() {
13
        super();
14
    }
15
16
    public AnswerModelEmpty(Integer id) {
17
        super(id);
18
    }
19
20
    @Override
21
    public void setId(Integer id) {
22
        throw new CallMethodOnEmptyModelException();
23
    }
24
25
    @Override
26
    public String getTxt() {
27
        throw new CallMethodOnEmptyModelException();
28
    }
29
30
    @Override
31
    public void setTxt(String txt) {
32
        throw new CallMethodOnEmptyModelException();
33
    }
34
35
    @Override
36
    public QuestionModelInterface getQuestion() {
37
        throw new CallMethodOnEmptyModelException();
38
    }
39
40
    @Override
41
    public void setQuestion(QuestionModelInterface question) {
42
        throw new CallMethodOnEmptyModelException();
43
    }
44
45
    @Override
46
    public Integer getSerialNumber() {
47
        throw new CallMethodOnEmptyModelException();
48
    }
49
50
    @Override
51
    public void setSerialNumber(Integer serialNumber) {
52
        throw new CallMethodOnEmptyModelException();
53
    }
54
55
    @Override
56
    public Boolean getRight() {
57
        throw new CallMethodOnEmptyModelException();
58
    }
59
60
    @Override
61
    public void setRight(Boolean right) {
62
        throw new CallMethodOnEmptyModelException();
63
    }
64
65
    @Override
66
    public void map(AnswerEntity answerEntity) {
67
        throw new CallMethodOnEmptyModelException();
68
    }
69
}
70