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
|
|
|
|