Enum MatchingStrategy.Type
- java.lang.Object
-
- java.lang.Enum<MatchingStrategy.Type>
-
- org.springframework.cloud.contract.spec.internal.MatchingStrategy.Type
-
- All Implemented Interfaces:
Serializable,Comparable<MatchingStrategy.Type>
- Enclosing class:
- MatchingStrategy
public static enum MatchingStrategy.Type extends Enum<MatchingStrategy.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSENTAbsence check.BINARY_EQUAL_TOBinary equality check.CONTAINSContains check.EQUAL_TOEquality check.EQUAL_TO_JSONEqual to JSON check.EQUAL_TO_XMLEqual to XML check.MATCHINGMatching check.NOT_MATCHINGNot matching check.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()static MatchingStrategy.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static MatchingStrategy.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL_TO
public static final MatchingStrategy.Type EQUAL_TO
Equality check.
-
CONTAINS
public static final MatchingStrategy.Type CONTAINS
Contains check.
-
MATCHING
public static final MatchingStrategy.Type MATCHING
Matching check.
-
NOT_MATCHING
public static final MatchingStrategy.Type NOT_MATCHING
Not matching check.
-
EQUAL_TO_JSON
public static final MatchingStrategy.Type EQUAL_TO_JSON
Equal to JSON check.
-
EQUAL_TO_XML
public static final MatchingStrategy.Type EQUAL_TO_XML
Equal to XML check.
-
ABSENT
public static final MatchingStrategy.Type ABSENT
Absence check.
-
BINARY_EQUAL_TO
public static final MatchingStrategy.Type BINARY_EQUAL_TO
Binary equality check.
-
-
Method Detail
-
values
public static MatchingStrategy.Type[] 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 (MatchingStrategy.Type c : MatchingStrategy.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatchingStrategy.Type 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 nameNullPointerException- if the argument is null
-
getName
public final String getName()
-
-