public enum MatchingType extends Enum<MatchingType>
Enum Constant and Description |
---|
COMMAND
The user can provide custom command to execute.
|
DATE
Special version of regex for date check.
|
EQUALITY
Verification by equality.
|
NULL
Verification if the value for the given path is null.
|
REGEX
Verification if the value for the given path matches the provided regex.
|
TIME
Special version of regex for time check.
|
TIMESTAMP
Special version of regex for timestamp check.
|
TYPE
Verification by type - is the type received in a body for the given path is of the
same type.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
regexRelated(MatchingType type) |
static MatchingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchingType EQUALITY
public static final MatchingType TYPE
public static final MatchingType DATE
public static final MatchingType TIME
public static final MatchingType TIMESTAMP
public static final MatchingType REGEX
public static final MatchingType COMMAND
public static final MatchingType NULL
public static MatchingType[] values()
for (MatchingType c : MatchingType.values()) System.out.println(c);
public static MatchingType 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 boolean regexRelated(MatchingType type)
Copyright © 2016–2019 Spring. All rights reserved.