public static enum Validator.PatternFlag extends Enum<Validator.PatternFlag>
Enum Constant and Description |
---|
CANON_EQ
Enables canonical equivalence.
|
CASE_INSENSITIVE
Enables case-insensitive matching.
|
COMMENTS
Permits whitespace and comments in pattern.
|
DOTALL
Enables dotall mode.
|
MULTILINE
Enables multiline mode.
|
UNICODE_CASE
Enables Unicode-aware case folding.
|
UNIX_LINES
Enables Unix lines mode.
|
Modifier and Type | Method and Description |
---|---|
static int |
asBitValue(Validator.PatternFlag[] flags)
Get given flags as bit mask.
|
static Validator.PatternFlag |
fromFlag(int flag)
Get the
Validator.PatternFlag which corresponds to given regex flag value |
int |
getValue()
Get the regex flag value.
|
static Validator.PatternFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Validator.PatternFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Validator.PatternFlag UNIX_LINES
Pattern.UNIX_LINES
public static final Validator.PatternFlag CASE_INSENSITIVE
Pattern.CASE_INSENSITIVE
public static final Validator.PatternFlag COMMENTS
Pattern.COMMENTS
public static final Validator.PatternFlag MULTILINE
Pattern.MULTILINE
public static final Validator.PatternFlag DOTALL
Pattern.DOTALL
public static final Validator.PatternFlag UNICODE_CASE
Pattern.UNICODE_CASE
public static final Validator.PatternFlag CANON_EQ
Pattern.CANON_EQ
public static Validator.PatternFlag[] values()
for (Validator.PatternFlag c : Validator.PatternFlag.values()) System.out.println(c);
public static Validator.PatternFlag 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 int getValue()
Pattern
public static int asBitValue(Validator.PatternFlag[] flags)
flags
- Flagspublic static Validator.PatternFlag fromFlag(int flag)
Validator.PatternFlag
which corresponds to given regex flag valueflag
- Regex flagnull
if none matchesCopyright © 2019 The Holon Platform. All rights reserved.