|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectipipan.spejd.util.SimpleDict
public class SimpleDict
Configuration class, containing a set of variables with values.
| Field Summary | |
|---|---|
protected java.util.TreeMap<java.lang.String,T> |
dict
|
| Constructor Summary | |
|---|---|
SimpleDict()
Creates a new configuration with no variables. |
|
SimpleDict(java.lang.String filename)
Creates a dictionary with variables loaded from a given filename. |
|
| Method Summary | |
|---|---|
java.util.TreeMap<java.lang.String,T> |
getDict()
|
void |
load(java.lang.String filename)
Loads configuration from a specified file. |
void |
put(java.lang.String var,
java.lang.String value)
Sets value of a configuration variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.TreeMap<java.lang.String,T> dict
| Constructor Detail |
|---|
public SimpleDict()
public SimpleDict(java.lang.String filename)
| Method Detail |
|---|
public void put(java.lang.String var,
java.lang.String value)
var - name of the variable to setvalue - value of the variable as Stringpublic void load(java.lang.String filename)
filename - name of the configuration filepublic java.util.TreeMap<java.lang.String,T> getDict()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||