public enum PropertyReplacer extends Enum<PropertyReplacer>
Modifier and Type | Method and Description |
---|---|
static @NotNull String |
fileAsString(String fileName) |
static String |
replaceTokensWithProperties(String expression) |
static String |
replaceTokensWithProperties(String expression,
Properties properties) |
static PropertyReplacer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyReplacer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static PropertyReplacer[] values()
for (PropertyReplacer c : PropertyReplacer.values()) System.out.println(c);
public static PropertyReplacer valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String replaceTokensWithProperties(String expression) throws IllegalArgumentException
IllegalArgumentException
public static String replaceTokensWithProperties(String expression, Properties properties) throws IllegalArgumentException
IllegalArgumentException
@NotNull public static @NotNull String fileAsString(String fileName) throws IOException
IOException
Copyright © 2021. All rights reserved.