fr.arakne.swflangloader.loader.AbstractSwfFile   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 36
ccs 9
cts 9
cp 1
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 2 1
A setName(String) 0 2 1
A language() 0 2 1
A setLanguage(String) 0 2 1
A version() 0 2 1
A setVersion(int) 0 2 1
1
/*
2
 * This file is part of ArakneLangLoader.
3
 *
4
 * ArakneLangLoader is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU Lesser General Public License as published by
6
 * the Free Software Foundation, either version 3 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * ArakneLangLoader is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public License
15
 * along with ArakneLangLoader.  If not, see <https://www.gnu.org/licenses/>.
16
 *
17
 * Copyright (c) 2020 Vincent Quatrevieux
18
 */
19
20
package fr.arakne.swflangloader.loader;
21
22
/**
23
 * Base Swf file type, used by loader to inject name language and version
24
 */
25 1
abstract public class AbstractSwfFile {
26
    private String name;
27
    private String language;
28
    private int version;
29
30
    /**
31
     * @return The name of the swf file (Following filename [name]_[language]_[version].swf)
32
     */
33
    final public String name() {
34 1
        return name;
35
    }
36
37
    /**
38
     * @return The language of the swf file (Following filename [name]_[language]_[version].swf)
39
     */
40
    final public String language() {
41 1
        return language;
42
    }
43
44
    /**
45
     * @return The version of the swf file (Following filename [name]_[language]_[version].swf)
46
     */
47
    final public int version() {
48 1
        return version;
49
    }
50
51
    void setName(String name) {
52 1
        this.name = name;
53 1
    }
54
55
    void setLanguage(String language) {
56 1
        this.language = language;
57 1
    }
58
59
    void setVersion(int version) {
60 1
        this.version = version;
61 1
    }
62
}
63