public class DslPart
Abstract base class to support Object and Array JSON DSL builders
| Modifier and Type | Field and Description |
|---|---|
static long |
DATE_2000 |
static java.lang.String |
HEXADECIMAL |
static java.lang.String |
IP_ADDRESS |
static java.lang.String |
UUID_REGEX |
boolean |
closed |
au.com.dius.pact.core.model.generators.Generators |
generators |
au.com.dius.pact.core.model.matchingrules.Category |
matchers |
DslPart |
parent |
java.lang.String |
rootName |
java.lang.String |
rootPath |
| Modifier and Type | Method and Description |
|---|---|
PactDslJsonArray |
array()
Field which is an array
|
PactDslJsonArray |
array()
Element as an array
|
PactDslJsonBody |
arrayLike()
Array field where each element must match the following object
|
PactDslJsonBody |
arrayLike()
Array element where each element of the array must match the following object
|
PactDslJsonArray |
asArray() |
PactDslJsonBody |
asBody() |
DslPart |
close()
This closes off the object graph build from the DSL in case any close[Object|Array] methods have not been called.
|
DslPart |
closeArray()
Close of the previous array element
|
DslPart |
closeObject()
Close off the previous object
|
PactDslJsonArray |
eachArrayLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMaxLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Array field where each element is an array and must match the following object
|
PactDslJsonArray |
eachArrayWithMinMaxLike()
Array element where each element of the array is an array and must match the following object
|
PactDslJsonBody |
eachLike()
Array field where each element must match the following object
|
PactDslJsonBody |
eachLike()
Array element where each element of the array must match the following object
|
PactDslJsonBody |
eachLike()
Array field where each element must match the following object
|
PactDslJsonBody |
eachLike()
Array element where each element of the array must match the following object
|
java.lang.Object |
getBody() |
au.com.dius.pact.core.model.generators.Generators |
getGenerators() |
au.com.dius.pact.core.model.matchingrules.Category |
getMatchers() |
DslPart |
getParent()
Returns the parent of this part (object or array)
|
au.com.dius.pact.core.model.matchingrules.IncludeMatcher |
includesMatcher() |
au.com.dius.pact.core.model.matchingrules.DateMatcher |
matchDate() |
au.com.dius.pact.core.model.matchingrules.MaxTypeMatcher |
matchMax() |
au.com.dius.pact.core.model.matchingrules.MinTypeMatcher |
matchMin() |
au.com.dius.pact.core.model.matchingrules.MinMaxTypeMatcher |
matchMinMax() |
au.com.dius.pact.core.model.matchingrules.TimeMatcher |
matchTime() |
au.com.dius.pact.core.model.matchingrules.TimestampMatcher |
matchTimestamp() |
PactDslJsonBody |
maxArrayLike()
Array field with a maximum size and each element must match the provided object
|
PactDslJsonBody |
maxArrayLike()
Array element with a maximum size and each element of the array must match the provided object
|
PactDslJsonBody |
maxArrayLike()
Array field with a maximum size and each element must match the provided object
|
PactDslJsonBody |
maxArrayLike()
Array element with a maximum size and each element of the array must match the provided object
|
PactDslJsonBody |
minArrayLike()
Array field with a minumum size and each element must match the provided object
|
PactDslJsonBody |
minArrayLike()
Array element with a minumum size and each element of the array must match the provided object
|
PactDslJsonBody |
minArrayLike()
Array field with a minumum size and each element must match the provided object
|
PactDslJsonBody |
minArrayLike()
Array element with a minumum size and each element of the array must match the provided object
|
PactDslJsonBody |
minMaxArrayLike()
Array field with a minimum and maximum size and each element must match the provided object
|
PactDslJsonBody |
minMaxArrayLike()
Array element with a minimum and maximum size and each element of the array must match the provided object
|
PactDslJsonBody |
minMaxArrayLike()
Array field with a minimum and maximum size and each element must match the provided object
|
PactDslJsonBody |
minMaxArrayLike()
Array element with a minimum and maximum size and each element of the array must match the provided object
|
PactDslJsonBody |
object()
Object field
|
PactDslJsonBody |
object()
Object element
|
void |
putArray() |
void |
putObject() |
au.com.dius.pact.core.model.matchingrules.RegexMatcher |
regexp() |
void |
setGenerators() |
void |
setMatchers() |
public static java.lang.String HEXADECIMAL
public static java.lang.String IP_ADDRESS
public static java.lang.String UUID_REGEX
public static long DATE_2000
public DslPart parent
public java.lang.String rootPath
public java.lang.String rootName
public au.com.dius.pact.core.model.matchingrules.Category matchers
public au.com.dius.pact.core.model.generators.Generators generators
public boolean closed
public void putObject()
public void putArray()
public java.lang.Object getBody()
public PactDslJsonArray array()
Field which is an array
public PactDslJsonArray array()
Element as an array
public DslPart closeArray()
Close of the previous array element
public PactDslJsonBody arrayLike()
Array field where each element must match the following object
public PactDslJsonBody arrayLike()
Array element where each element of the array must match the following object
public PactDslJsonBody eachLike()
Array field where each element must match the following object
public PactDslJsonBody eachLike()
Array element where each element of the array must match the following object
public PactDslJsonBody eachLike()
Array field where each element must match the following object
public PactDslJsonBody eachLike()
Array element where each element of the array must match the following object
public PactDslJsonBody minArrayLike()
Array field with a minumum size and each element must match the provided object
public PactDslJsonBody minArrayLike()
Array element with a minumum size and each element of the array must match the provided object
public PactDslJsonBody minArrayLike()
Array field with a minumum size and each element must match the provided object
public PactDslJsonBody minArrayLike()
Array element with a minumum size and each element of the array must match the provided object
public PactDslJsonBody maxArrayLike()
Array field with a maximum size and each element must match the provided object
public PactDslJsonBody maxArrayLike()
Array element with a maximum size and each element of the array must match the provided object
public PactDslJsonBody maxArrayLike()
Array field with a maximum size and each element must match the provided object
public PactDslJsonBody maxArrayLike()
Array element with a maximum size and each element of the array must match the provided object
public PactDslJsonBody minMaxArrayLike()
Array field with a minimum and maximum size and each element must match the provided object
public PactDslJsonBody minMaxArrayLike()
Array element with a minimum and maximum size and each element of the array must match the provided object
public PactDslJsonBody minMaxArrayLike()
Array field with a minimum and maximum size and each element must match the provided object
public PactDslJsonBody minMaxArrayLike()
Array element with a minimum and maximum size and each element of the array must match the provided object
public PactDslJsonArray eachArrayLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonArray eachArrayLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonArray eachArrayWithMaxLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayWithMaxLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonArray eachArrayWithMaxLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayWithMaxLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonArray eachArrayWithMinLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayWithMinLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonArray eachArrayWithMinLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayWithMinLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonArray eachArrayWithMinMaxLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayWithMinMaxLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonArray eachArrayWithMinMaxLike()
Array field where each element is an array and must match the following object
public PactDslJsonArray eachArrayWithMinMaxLike()
Array element where each element of the array is an array and must match the following object
public PactDslJsonBody object()
Object field
public PactDslJsonBody object()
Object element
public DslPart closeObject()
Close off the previous object
public au.com.dius.pact.core.model.matchingrules.Category getMatchers()
public void setMatchers()
public au.com.dius.pact.core.model.matchingrules.RegexMatcher regexp()
public au.com.dius.pact.core.model.matchingrules.TimestampMatcher matchTimestamp()
public au.com.dius.pact.core.model.matchingrules.DateMatcher matchDate()
public au.com.dius.pact.core.model.matchingrules.TimeMatcher matchTime()
public au.com.dius.pact.core.model.matchingrules.MinTypeMatcher matchMin()
public au.com.dius.pact.core.model.matchingrules.MaxTypeMatcher matchMax()
public au.com.dius.pact.core.model.matchingrules.MinMaxTypeMatcher matchMinMax()
public au.com.dius.pact.core.model.matchingrules.IncludeMatcher includesMatcher()
public PactDslJsonBody asBody()
public PactDslJsonArray asArray()
public DslPart close()
This closes off the object graph build from the DSL in case any close[Object|Array] methods have not been called.
public au.com.dius.pact.core.model.generators.Generators getGenerators()
public void setGenerators()
public DslPart getParent()
Returns the parent of this part (object or array)