getName()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
c 1
b 0
f 0
cc 1
loc 1
rs 10
1
package easytests.core.models.empty;
2
3
import easytests.core.entities.TopicEntity;
4
import easytests.core.models.QuestionModelInterface;
5
import easytests.core.models.SubjectModelInterface;
6
import easytests.core.models.TopicModelInterface;
7
import easytests.core.models.exceptions.CallMethodOnEmptyModelException;
8
import java.util.List;
9
10
11
/**
12
 * @author malinink
13
 */
14
public class TopicModelEmpty extends AbstractModelEmpty implements TopicModelInterface {
15
    public TopicModelEmpty() {
16
        super();
17
    }
18
19
    public TopicModelEmpty(Integer id) {
20
        super(id);
21
    }
22
23
    @Override
24
    public void setId(Integer id) {
25
        throw new CallMethodOnEmptyModelException();
26
    }
27
28
    @Override
29
    public String getName() {
30
        throw new CallMethodOnEmptyModelException();
31
    }
32
33
    @Override
34
    public void setName(String name) {
35
        throw new CallMethodOnEmptyModelException();
36
    }
37
38
    @Override
39
    public SubjectModelInterface getSubject() {
40
        throw new CallMethodOnEmptyModelException();
41
    }
42
43
    @Override
44
    public void setSubject(SubjectModelInterface subject) {
45
        throw new CallMethodOnEmptyModelException();
46
    }
47
48
    @Override
49
    public List<QuestionModelInterface> getQuestions() {
50
        throw new CallMethodOnEmptyModelException();
51
    }
52
53
    @Override
54
    public void setQuestions(List<QuestionModelInterface> questions) {
55
        throw new CallMethodOnEmptyModelException();
56
    }
57
58
    @Override
59
    public void map(TopicEntity topicEntity) {
60
        throw new CallMethodOnEmptyModelException();
61
    }
62
}
63