javax.validation.constraints
Enum Pattern.Flag
java.lang.Object
java.lang.Enum<Pattern.Flag>
javax.validation.constraints.Pattern.Flag
- All Implemented Interfaces:
- Serializable, Comparable<Pattern.Flag>
- Enclosing class:
- Pattern
public static enum Pattern.Flag
- extends Enum<Pattern.Flag>
Method Summary |
int |
getValue()
|
static Pattern.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Pattern.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
UNIX_LINES
public static final Pattern.Flag UNIX_LINES
CASE_INSENSITIVE
public static final Pattern.Flag CASE_INSENSITIVE
COMMENTS
public static final Pattern.Flag COMMENTS
MULTILINE
public static final Pattern.Flag MULTILINE
DOTALL
public static final Pattern.Flag DOTALL
UNICODE_CASE
public static final Pattern.Flag UNICODE_CASE
CANON_EQ
public static final Pattern.Flag CANON_EQ
values
public static Pattern.Flag[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Pattern.Flag c : Pattern.Flag.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Pattern.Flag valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException
- if the argument is null
getValue
public int getValue()
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.