Skip to content

Commit 00f7da6

Browse files
committed
Initial commit of the Config class
1 parent 62bb382 commit 00f7da6

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

src/javaxt/utils/src/Config.java

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy