public enum ParsingMode extends java.lang.Enum<ParsingMode>
| Enum Constant and Description |
|---|
ADD
Adds the parsed values to the config: the existing values are prioritary and will not be
replaced.
|
MERGE
Merges the parsed config with the existing one: the parsed values are prioritary.
|
REPLACE
Replaces the existing config by the parsed one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepareParsing(Config config)
Prepare the config to be parsed with this mode.
|
java.lang.Object |
put(Config config,
java.util.List<java.lang.String> key,
java.lang.Object value)
Puts (set or add) a value into the config
|
java.lang.Object |
put(Config config,
java.lang.String key,
java.lang.Object value)
Puts (set or add) a value into the config
|
java.lang.Object |
put(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String key,
java.lang.Object value)
Puts (set or add) a value into the config
|
static ParsingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParsingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParsingMode REPLACE
public static final ParsingMode MERGE
public static final ParsingMode ADD
public static ParsingMode[] values()
for (ParsingMode c : ParsingMode.values()) System.out.println(c);
public static ParsingMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void prepareParsing(Config config)
config - the config that will be parsedpublic java.lang.Object put(Config config, java.util.List<java.lang.String> key, java.lang.Object value)
public java.lang.Object put(Config config, java.lang.String key, java.lang.Object value)
public java.lang.Object put(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String key,
java.lang.Object value)