public MatchingRules
Collection of all matching rules
| Modifier and Type | Method and Description |
|---|---|
Category |
addCategory(java.lang.String category)
Adds a new category with the given name to the collection
|
Category |
addCategory(Category category)
Adds the category to the collection
|
MatchingRules |
copy()
Create a new copy of the matching rules
|
java.util.Set<java.lang.String> |
getCategories()
Returns the set of all categories that rules are defined for
|
boolean |
hasCategory(java.lang.String category)
If the matching rules has the named category
|
boolean |
isEmpty()
If the matching rules are empty
|
boolean |
isNotEmpty()
If the matching rules is not empty
|
Category |
rulesForCategory(java.lang.String category)
Get all the rules for a given category
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap(PactSpecVersion pactSpecVersion)
Converts these rules into a Map that can be serialised to JSON
|
Category rulesForCategory(java.lang.String category)
Get all the rules for a given category
Category addCategory(java.lang.String category)
Adds a new category with the given name to the collection
boolean isEmpty()
If the matching rules are empty
boolean isNotEmpty()
If the matching rules is not empty
boolean hasCategory(java.lang.String category)
If the matching rules has the named category
java.util.Set<java.lang.String> getCategories()
Returns the set of all categories that rules are defined for
java.util.Map<java.lang.String,java.lang.Object> toMap(PactSpecVersion pactSpecVersion)
Converts these rules into a Map that can be serialised to JSON
MatchingRules copy()
Create a new copy of the matching rules