public enum ReplacementMode extends java.lang.Enum<ReplacementMode>
AbstractBean.replaceVariables(String, ReplacementMode)
.Enum Constant and Description |
---|
I18N_ONLY
Only i18n variables like ${i18n:myKey} will be replaced.
|
PLAIN
Normal replacement like in
AbstractBean.replaceVariables(String) . |
PROPERTIES_FILE
The property is used while replacing text directly in a Java properties file.
|
REGEXP_MATCH
The property is used as a regular expression.
|
REGEXP_REPLACEMENT
The property is used as a replacement part of a regular expression.
|
Modifier and Type | Method and Description |
---|---|
static ReplacementMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReplacementMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplacementMode PLAIN
AbstractBean.replaceVariables(String)
.public static final ReplacementMode I18N_ONLY
public static final ReplacementMode REGEXP_MATCH
public static final ReplacementMode REGEXP_REPLACEMENT
public static final ReplacementMode PROPERTIES_FILE
public static ReplacementMode[] values()
for (ReplacementMode c : ReplacementMode.values()) System.out.println(c);
public static ReplacementMode 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 null