Package com.install4j.api.beans
Enum Class ReplacementMode
- All Implemented Interfaces:
Serializable
,Comparable<ReplacementMode>
,Constable
Variable replacement mode for string properties that are used in regular expressions.
The enumerated class is used as a parameter to
AbstractBean.replaceVariables(String, ReplacementMode)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOnly i18n variables like${i18n:myKey}
will be replaced.Normal replacement like inAbstractBean.replaceVariables(String)
.The property is used while replacing text directly in a Java properties file.The property is used as a regular expression.The property is used as a replacement part of a regular expression. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplacementMode
Returns the enum constant of this class with the specified name.static ReplacementMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAIN
Normal replacement like inAbstractBean.replaceVariables(String)
. -
I18N_ONLY
Only i18n variables like${i18n:myKey}
will be replaced. -
REGEXP_MATCH
The property is used as a regular expression. All special characters are quoted. -
REGEXP_REPLACEMENT
The property is used as a replacement part of a regular expression. Backslashes and dollar signs are quoted. -
PROPERTIES_FILE
The property is used while replacing text directly in a Java properties file. See the Javadoc for java.util.Properties for more information on the encoding of a Java properties file.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-