Module org.update4j
Package org.update4j

Enum Class PlaceholderMatchType

Object
Enum<PlaceholderMatchType>
PlaceholderMatchType
All Implemented Interfaces:
Serializable, Comparable<PlaceholderMatchType>, Constable

public enum PlaceholderMatchType extends Enum<PlaceholderMatchType>
The policy that should be used when Configuration.implyPlaceholders(String, PlaceholderMatchType) is called.
Author:
Mordechai Meisles
  • Enum Constant Details

    • EVERY_OCCURRENCE

      public static final PlaceholderMatchType EVERY_OCCURRENCE
      Will break words with placeholders if it finds a match.
    • WHOLE_WORD

      public static final PlaceholderMatchType WHOLE_WORD
      Will only replace with placeholders if the it doesn't break a word (using regex \b word boundary)
    • FULL_MATCH

      public static final PlaceholderMatchType FULL_MATCH
      Will only replace if the complete string matches with one placeholder.
    • NONE

      public static final PlaceholderMatchType NONE
      Won't change the string.
  • Method Details

    • values

      public static PlaceholderMatchType[] 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

      public static PlaceholderMatchType 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.)
      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 name
      NullPointerException - if the argument is null