-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.java
More file actions
56 lines (44 loc) · 1.18 KB
/
Config.java
File metadata and controls
56 lines (44 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package javaxt.utils.src;
import java.util.*;
public class Config implements Member {
private String name;
private String description;
private String defaultValue;
private ArrayList<Config> config;
private Integer position;
public Config(String name){
this.name = name;
this.config = new ArrayList<>();
}
public String getName(){
return name;
}
public void setDescription(String description){
if (description!=null){
description = description.trim();
if (description.isEmpty()) description = null;
}
this.description = description;
}
public String getDescription(){
return description;
}
public void setDefaultValue(String defaultValue){
this.defaultValue = defaultValue;
}
public String getDefaultValue(){
return defaultValue;
}
public void addConfig(Config config){
this.config.add(config);
}
public ArrayList<Config> getConfig(){
return config;
}
public void setPosition(Integer position){
this.position = position;
}
public Integer getPosition(){
return position;
}
}