Enum Class ReplacementMode

All Implemented Interfaces:
Serializable, Comparable<ReplacementMode>, Constable

public enum ReplacementMode extends Enum<ReplacementMode>
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).
  • Enum Constant Details

    • PLAIN

      public static final ReplacementMode PLAIN
      Normal replacement like in AbstractBean.replaceVariables(String).
    • I18N_ONLY

      public static final ReplacementMode I18N_ONLY
      Only i18n variables like ${i18n:myKey} will be replaced.

      public static final ReplacementMode REGEXP_MATCH
      The property is used as a regular expression. All special characters are quoted.

      public static final ReplacementMode REGEXP_REPLACEMENT
      The property is used as a replacement part of a regular expression. Backslashes and dollar signs are quoted.

      public static final ReplacementMode 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

      public static ReplacementMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ReplacementMode valueOf(String name)
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null