public static enum DynamicTemplate.MatchType extends java.lang.Enum<DynamicTemplate.MatchType>
Modifier and Type | Method and Description |
---|---|
static DynamicTemplate.MatchType |
fromString(java.lang.String value) |
abstract boolean |
matches(java.lang.String regex,
java.lang.String value)
Whether
value matches regex . |
static DynamicTemplate.MatchType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DynamicTemplate.MatchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DynamicTemplate.MatchType SIMPLE
public static final DynamicTemplate.MatchType REGEX
public static DynamicTemplate.MatchType[] values()
for (DynamicTemplate.MatchType c : DynamicTemplate.MatchType.values()) System.out.println(c);
public static DynamicTemplate.MatchType 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 nullpublic static DynamicTemplate.MatchType fromString(java.lang.String value)
public abstract boolean matches(java.lang.String regex, java.lang.String value)
value
matches regex
.