Line | |
---|
1 | package de.dass_it.vanhelsing.gui.items;
|
---|
2 | public class ConfigItem extends ItemType implements UserObjectItem{
|
---|
3 | private int id;
|
---|
4 | private String ressource;
|
---|
5 | private String key;
|
---|
6 | private String value;
|
---|
7 |
|
---|
8 | public ConfigItem(){
|
---|
9 | }
|
---|
10 |
|
---|
11 | public ConfigItem(int id, String ressource, String key, String value){
|
---|
12 | this.setId(id);
|
---|
13 | this.setRessource(ressource);
|
---|
14 | this.setKey(key);
|
---|
15 | this.value = value;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public void setValue(String value) {
|
---|
19 | this.value = value;
|
---|
20 | }
|
---|
21 |
|
---|
22 | public String getValue() {
|
---|
23 | return value;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public void setKey(String key) {
|
---|
27 | this.key = key;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public String getKey() {
|
---|
31 | return key;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public void setRessource(String ressource) {
|
---|
35 | this.ressource = ressource;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public String getRessource() {
|
---|
39 | return ressource;
|
---|
40 | }
|
---|
41 |
|
---|
42 | public String toString() {
|
---|
43 | return ("Key: " + key + ", Value: " + value);
|
---|
44 | }
|
---|
45 |
|
---|
46 | public void setId(int id) {
|
---|
47 | this.id = id;
|
---|
48 | }
|
---|
49 |
|
---|
50 | public int getId() {
|
---|
51 | return id;
|
---|
52 | }
|
---|
53 |
|
---|
54 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.