File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ package javaxt .utils .src ;
2
+ import java .util .*;
3
+
4
+ public class Config {
5
+
6
+ private String name ;
7
+ private String description ;
8
+ private String defaultValue ;
9
+ private ArrayList <Config > config ;
10
+
11
+ public Config (String name ){
12
+ this .name = name ;
13
+ this .config = new ArrayList <>();
14
+ }
15
+
16
+ public String getName (){
17
+ return name ;
18
+ }
19
+
20
+ public void setDescription (String description ){
21
+ if (description !=null ){
22
+ description = description .trim ();
23
+ if (description .isEmpty ()) description = null ;
24
+ }
25
+ this .description = description ;
26
+ }
27
+
28
+ public String getDescription (){
29
+ return description ;
30
+ }
31
+
32
+ public void setDefaultValue (String defaultValue ){
33
+ this .defaultValue = defaultValue ;
34
+ }
35
+
36
+ public String getDefaultValue (){
37
+ return defaultValue ;
38
+ }
39
+
40
+ public void addConfig (Config config ){
41
+ this .config .add (config );
42
+ }
43
+
44
+ public ArrayList <Config > getConfig (){
45
+ return config ;
46
+ }
47
+ }
You can’t perform that action at this time.
0 commit comments