Packages

c

au.com.dius.pact.consumer.dsl

PactDslJsonArray

class PactDslJsonArray extends DslPart

DSL to define a JSON array

Linear Supertypes
DslPart, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PactDslJsonArray
  2. DslPart
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PactDslJsonArray(rootPath: String, rootName: String, parent: DslPart, wildCard: Boolean)
  2. new PactDslJsonArray(rootPath: String, rootName: String, parent: DslPart)
  3. new PactDslJsonArray()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def and(value: Any, rules: <repeated...>[MatchingRule]): PactDslJsonArray

    Combine all the matchers using AND

    Combine all the matchers using AND

    value

    Attribute example value

    rules

    Matching rules to apply

  5. def array(): PactDslJsonArray

    Element that is a JSON array

    Element that is a JSON array

    Definition Classes
    PactDslJsonArrayDslPart
  6. def array(name: String): PactDslJsonArray

    Field which is an array

    Field which is an array

    name

    field name

    Definition Classes
    PactDslJsonArrayDslPart
  7. def asArray(): PactDslJsonArray
    Definition Classes
    DslPart
  8. def asBody(): PactDslJsonBody
    Definition Classes
    DslPart
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def booleanType(example: Boolean): PactDslJsonArray

    Element that must be a boolean

    Element that must be a boolean

    example

    example boolean to use for generated bodies

  11. def booleanType(): PactDslJsonArray

    Element that must be a boolean

  12. def booleanValue(value: Boolean): PactDslJsonArray

    Element that must be the specified value

    Element that must be the specified value

    value

    boolean value

  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def close(): DslPart

    This closes off the object graph build from the DSL in case any close[Object|Array] methods have not been called.

    This closes off the object graph build from the DSL in case any close[Object|Array] methods have not been called.

    returns

    The root object of the object graph

    Definition Classes
    PactDslJsonArrayDslPart
  15. def closeArray(): DslPart

    Closes the current array

    Closes the current array

    Definition Classes
    PactDslJsonArrayDslPart
  16. def closeObject(): DslPart

    Close off the previous object

    Close off the previous object

    Definition Classes
    PactDslJsonArrayDslPart
  17. def date(format: String, example: Date): PactDslJsonArray

    Element that must match the provided date format

    Element that must match the provided date format

    format

    date format to match

    example

    example date to use for generated values

  18. def date(format: String): PactDslJsonArray

    Element that must match the provided date format

    Element that must match the provided date format

    format

    date format to match

  19. def date(): PactDslJsonArray

    Element that must be formatted as an ISO date

  20. def decimalType(number: Double): PactDslJsonArray

    Attribute that must be a decimalType value

    Attribute that must be a decimalType value

    number

    example decimalType value

  21. def decimalType(number: BigDecimal): PactDslJsonArray

    Element that must be a decimalType value

    Element that must be a decimalType value

    number

    example decimalType value

  22. def decimalType(): PactDslJsonArray

    Element that must be a decimal value

  23. def eachArrayLike(numberExamples: Int): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  24. def eachArrayLike(): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    Definition Classes
    PactDslJsonArrayDslPart
  25. def eachArrayLike(name: String, numberExamples: Int): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  26. def eachArrayLike(name: String): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    Definition Classes
    PactDslJsonArrayDslPart
  27. def eachArrayWithMaxLike(numberExamples: Int, size: Integer): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    numberExamples

    number of examples to generate

    size

    Maximum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  28. def eachArrayWithMaxLike(size: Integer): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    size

    Maximum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  29. def eachArrayWithMaxLike(name: String, numberExamples: Int, size: Integer): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    numberExamples

    number of examples to generate

    size

    Maximum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  30. def eachArrayWithMaxLike(name: String, size: Integer): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    size

    Maximum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  31. def eachArrayWithMinLike(numberExamples: Int, size: Integer): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    numberExamples

    number of examples to generate

    size

    Minimum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  32. def eachArrayWithMinLike(size: Integer): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    size

    Minimum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  33. def eachArrayWithMinLike(name: String, numberExamples: Int, size: Integer): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    numberExamples

    number of examples to generate

    size

    Minimum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  34. def eachArrayWithMinLike(name: String, size: Integer): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    size

    Minimum size of the outer array

    Definition Classes
    PactDslJsonArrayDslPart
  35. def eachArrayWithMinMaxLike(numberExamples: Int, minSize: Integer, maxSize: Integer): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    numberExamples

    number of examples to generate

    minSize

    minimum size

    maxSize

    maximum size

    Definition Classes
    PactDslJsonArrayDslPart
  36. def eachArrayWithMinMaxLike(name: String, numberExamples: Int, minSize: Integer, maxSize: Integer): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    numberExamples

    number of examples to generate

    minSize

    minimum size

    maxSize

    maximum size

    Definition Classes
    PactDslJsonArrayDslPart
  37. def eachArrayWithMinMaxLike(minSize: Integer, maxSize: Integer): PactDslJsonArray

    Array element where each element of the array is an array and must match the following object

    Array element where each element of the array is an array and must match the following object

    minSize

    minimum size

    maxSize

    maximum size

    Definition Classes
    PactDslJsonArrayDslPart
  38. def eachArrayWithMinMaxLike(name: String, minSize: Integer, maxSize: Integer): PactDslJsonArray

    Array field where each element is an array and must match the following object

    Array field where each element is an array and must match the following object

    name

    field name

    minSize

    minimum size

    maxSize

    maximum size

    Definition Classes
    PactDslJsonArrayDslPart
  39. def eachLike(value: PactDslJsonRootValue, numberExamples: Int): PactDslJsonArray

    Array of values that are not objects where each item must match the provided example

    Array of values that are not objects where each item must match the provided example

    value

    Value to use to match each item

    numberExamples

    number of examples to generate

  40. def eachLike(value: PactDslJsonRootValue): PactDslJsonArray

    Array of values that are not objects where each item must match the provided example

    Array of values that are not objects where each item must match the provided example

    value

    Value to use to match each item

  41. def eachLike(numberExamples: Int): PactDslJsonBody

    Element that is an array where each item must match the following example

    Element that is an array where each item must match the following example

    numberExamples

    Number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  42. def eachLike(): PactDslJsonBody

    Element that is an array where each item must match the following example

    Element that is an array where each item must match the following example

    Definition Classes
    PactDslJsonArrayDslPart
  43. def eachLike(name: String, numberExamples: Int): PactDslJsonBody

    Array field where each element must match the following object

    Array field where each element must match the following object

    name

    field name

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  44. def eachLike(name: String): PactDslJsonBody

    Array field where each element must match the following object

    Array field where each element must match the following object

    name

    field name

    Definition Classes
    PactDslJsonArrayDslPart
  45. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  47. def equalsTo(value: Any): PactDslJsonArray

    Attribute that must be equal to the provided value.

    Attribute that must be equal to the provided value.

    value

    Value that will be used for comparisons

  48. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  49. def getBody(): AnyRef
    Definition Classes
    PactDslJsonArrayDslPart
  50. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  51. def getGenerators(): Generators
    Definition Classes
    DslPart
  52. def getMatchers(): Category
    Definition Classes
    DslPart
  53. def getNumberExamples(): Int

    Returns the number of example elements to generate for sample bodies

  54. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  55. def hexValue(hexValue: String): PactDslJsonArray

    Element that must be encoded as a hexadecimal value

    Element that must be encoded as a hexadecimal value

    hexValue

    example value to use for generated bodies

  56. def hexValue(): PactDslJsonArray

    Element that must be encoded as a hexadecimal value

  57. def id(id: Long): PactDslJsonArray

    Element that must be a numeric identifier

    Element that must be a numeric identifier

    id

    example id to use for generated bodies

  58. def id(): PactDslJsonArray

    Element that must be a numeric identifier

  59. def includesMatcher(value: Any): IncludeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  60. def includesStr(value: String): PactDslJsonArray

    List item that must include the provided string

    List item that must include the provided string

    value

    Value that must be included

  61. def integerType(number: Long): PactDslJsonArray

    Element that must be an integer

    Element that must be an integer

    number

    example integer value to use for generated bodies

  62. def integerType(): PactDslJsonArray

    Element that must be an integer

  63. def ipAddress(): PactDslJsonArray

    Element that must be an IP4 address

  64. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  65. def matchDate(format: String): DateMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  66. def matchMax(max: Integer): MaxTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  67. def matchMin(min: Integer): MinTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  68. def matchMinMax(minSize: Integer, maxSize: Integer): MinMaxTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  69. def matchTime(format: String): TimeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  70. def matchTimestamp(format: String): TimestampMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  71. def matchUrl(basePath: String, pathFragments: <repeated...>[AnyRef]): PactDslJsonArray

    Matches a URL that is composed of a base path and a sequence of path expressions

    Matches a URL that is composed of a base path and a sequence of path expressions

    basePath

    The base path for the URL (like "http://localhost:8080/") which will be excluded from the matching

    pathFragments

    Series of path fragments to match on. These can be strings or regular expressions.

  72. def maxArrayLike(size: Integer, value: PactDslJsonRootValue, numberExamples: Int): PactDslJsonArray

    Array of values with a maximum size that are not objects where each item must match the provided example

    Array of values with a maximum size that are not objects where each item must match the provided example

    size

    maximum size of the array

    value

    Value to use to match each item

    numberExamples

    number of examples to generate

  73. def maxArrayLike(size: Integer, value: PactDslJsonRootValue): PactDslJsonArray

    Array of values with a maximum size that are not objects where each item must match the provided example

    Array of values with a maximum size that are not objects where each item must match the provided example

    size

    maximum size of the array

    value

    Value to use to match each item

  74. def maxArrayLike(size: Integer, numberExamples: Int): PactDslJsonBody

    Element that is an array with a maximum size where each item must match the following example

    Element that is an array with a maximum size where each item must match the following example

    size

    maximum size of the array

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  75. def maxArrayLike(name: String, size: Integer, numberExamples: Int): PactDslJsonBody

    Array field with a maximum size and each element must match the provided object

    Array field with a maximum size and each element must match the provided object

    name

    field name

    size

    maximum size

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  76. def maxArrayLike(size: Integer): PactDslJsonBody

    Element that is an array with a maximum size where each item must match the following example

    Element that is an array with a maximum size where each item must match the following example

    size

    maximum size of the array

    Definition Classes
    PactDslJsonArrayDslPart
  77. def maxArrayLike(name: String, size: Integer): PactDslJsonBody

    Array field with a maximum size and each element must match the provided object

    Array field with a maximum size and each element must match the provided object

    name

    field name

    size

    maximum size

    Definition Classes
    PactDslJsonArrayDslPart
  78. def minArrayLike(size: Integer, value: PactDslJsonRootValue, numberExamples: Int): PactDslJsonArray

    Array of values with a minimum size that are not objects where each item must match the provided example

    Array of values with a minimum size that are not objects where each item must match the provided example

    size

    minimum size of the array

    value

    Value to use to match each item

    numberExamples

    number of examples to generate

  79. def minArrayLike(size: Integer, value: PactDslJsonRootValue): PactDslJsonArray

    Array of values with a minimum size that are not objects where each item must match the provided example

    Array of values with a minimum size that are not objects where each item must match the provided example

    size

    minimum size of the array

    value

    Value to use to match each item

  80. def minArrayLike(size: Integer, numberExamples: Int): PactDslJsonBody

    Element that is an array with a minimum size where each item must match the following example

    Element that is an array with a minimum size where each item must match the following example

    size

    minimum size of the array

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  81. def minArrayLike(name: String, size: Integer, numberExamples: Int): PactDslJsonBody

    Array field with a minumum size and each element must match the provided object

    Array field with a minumum size and each element must match the provided object

    name

    field name

    size

    minimum size

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  82. def minArrayLike(size: Integer): PactDslJsonBody

    Element that is an array with a minimum size where each item must match the following example

    Element that is an array with a minimum size where each item must match the following example

    size

    minimum size of the array

    Definition Classes
    PactDslJsonArrayDslPart
  83. def minArrayLike(name: String, size: Integer): PactDslJsonBody

    Array field with a minumum size and each element must match the provided object

    Array field with a minumum size and each element must match the provided object

    name

    field name

    size

    minimum size

    Definition Classes
    PactDslJsonArrayDslPart
  84. def minMaxArrayLike(minSize: Integer, maxSize: Integer, numberExamples: Int): PactDslJsonBody

    Array element with a minimum and maximum size and each element of the array must match the provided object

    Array element with a minimum and maximum size and each element of the array must match the provided object

    minSize

    minimum size

    maxSize

    maximum size

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  85. def minMaxArrayLike(name: String, minSize: Integer, maxSize: Integer, numberExamples: Int): PactDslJsonBody

    Array field with a minimum and maximum size and each element must match the provided object

    Array field with a minimum and maximum size and each element must match the provided object

    name

    field name

    minSize

    minimum size

    maxSize

    maximum size

    numberExamples

    number of examples to generate

    Definition Classes
    PactDslJsonArrayDslPart
  86. def minMaxArrayLike(minSize: Integer, maxSize: Integer): PactDslJsonBody

    Array element with a minimum and maximum size and each element of the array must match the provided object

    Array element with a minimum and maximum size and each element of the array must match the provided object

    minSize

    minimum size

    maxSize

    maximum size

    Definition Classes
    PactDslJsonArrayDslPart
  87. def minMaxArrayLike(name: String, minSize: Integer, maxSize: Integer): PactDslJsonBody

    Array field with a minimum and maximum size and each element must match the provided object

    Array field with a minimum and maximum size and each element must match the provided object

    name

    field name

    minSize

    minimum size

    maxSize

    maximum size

    Definition Classes
    PactDslJsonArrayDslPart
  88. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  89. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  90. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  91. def nullValue(): PactDslJsonArray

    Adds a null value to the list

  92. def number(value: Number): PactDslJsonArray

    Element that must be the specified value

    Element that must be the specified value

    value

    number value

  93. def numberType(number: Number): PactDslJsonArray

    Element that can be any number

    Element that can be any number

    number

    example number to use for generated bodies

  94. def numberType(): PactDslJsonArray

    Element that can be any number

  95. def numberValue(value: Number): PactDslJsonArray
  96. def object(): PactDslJsonBody

    Element that is a JSON object

    Element that is a JSON object

    Definition Classes
    PactDslJsonArrayDslPart
  97. def object(name: String): PactDslJsonBody

    Object field

    Object field

    name

    field name

    Definition Classes
    PactDslJsonArrayDslPart
  98. def or(value: Any, rules: <repeated...>[MatchingRule]): PactDslJsonArray

    Combine all the matchers using OR

    Combine all the matchers using OR

    value

    Attribute example value

    rules

    Matching rules to apply

  99. def putArray(object: DslPart): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslJsonArrayDslPart
  100. def putObject(object: DslPart): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslJsonArrayDslPart
  101. def regexp(regex: String): RegexMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    DslPart
  102. def setGenerators(generators: Generators): Unit
    Definition Classes
    DslPart
  103. def setMatchers(matchers: Category): Unit
    Definition Classes
    DslPart
  104. def setNumberExamples(numberExamples: Int): Unit

    Sets the number of example elements to generate for sample bodies

  105. def string(value: String): PactDslJsonArray

    Element that must be the specified value

    Element that must be the specified value

    value

    string value

  106. def stringMatcher(regex: String, value: String): PactDslJsonArray

    Element that must match the regular expression

    Element that must match the regular expression

    regex

    regular expression

    value

    example value to use for generated bodies

  107. def stringType(example: String): PactDslJsonArray

    Element that can be any string

    Element that can be any string

    example

    example value to use for generated bodies

  108. def stringType(): PactDslJsonArray

    Element that can be any string

  109. def stringValue(value: String): PactDslJsonArray

    Element that must be the specified value

    Element that must be the specified value

    value

    string value

  110. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  111. def template(template: DslPart, occurrences: Int): PactDslJsonArray

    Adds a number of template objects to the array

    Adds a number of template objects to the array

    template

    template object

    occurrences

    number to add

  112. def template(template: DslPart): PactDslJsonArray

    Adds the template object to the array

    Adds the template object to the array

    template

    template object

  113. def time(format: String, example: Date): PactDslJsonArray

    Element that must match the given time format

    Element that must match the given time format

    format

    time format to match

    example

    example time to use for generated bodies

  114. def time(format: String): PactDslJsonArray

    Element that must match the given time format

    Element that must match the given time format

    format

    time format to match

  115. def time(): PactDslJsonArray

    Element that must be an ISO formatted time

  116. def timestamp(format: String, example: Date): PactDslJsonArray

    Element that must match the given timestamp format

    Element that must match the given timestamp format

    format

    timestamp format

    example

    example date and time to use for generated bodies

  117. def timestamp(format: String): PactDslJsonArray

    Element that must match the given timestamp format

    Element that must match the given timestamp format

    format

    timestamp format

  118. def timestamp(): PactDslJsonArray

    Element that must be an ISO formatted timestamp

  119. def toString(): String
    Definition Classes
    PactDslJsonArray → AnyRef → Any
  120. def uuid(uuid: String): PactDslJsonArray

    Element that must be encoded as an UUID

    Element that must be encoded as an UUID

    uuid

    example UUID to use for generated bodies

  121. def uuid(): PactDslJsonArray

    Element that must be encoded as an UUID

  122. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  123. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  124. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Deprecated Value Members

  1. def arrayLike(): PactDslJsonBody

    Element that is an array where each item must match the following example

    Element that is an array where each item must match the following example

    Definition Classes
    PactDslJsonArrayDslPart
    Deprecated

    use eachLike

  2. def arrayLike(name: String): PactDslJsonBody

    Array field where each element must match the following object

    Array field where each element must match the following object

    name

    field name

    Definition Classes
    PactDslJsonArrayDslPart
    Deprecated

    Use eachLike instead

  3. def guid(uuid: String): PactDslJsonArray

    Element that must be encoded as a GUID

    Element that must be encoded as a GUID

    uuid

    example UUID to use for generated bodies

    Deprecated

    use uuid instead

  4. def guid(): PactDslJsonArray

    Element that must be encoded as a GUID

    Element that must be encoded as a GUID

    Deprecated

    use uuid instead

  5. def realType(number: Double): PactDslJsonArray

    Element that must be a real value

    Element that must be a real value

    number

    example real value

    Deprecated

    Use decimalType instead

  6. def realType(): PactDslJsonArray

    Element that must be a real value

    Element that must be a real value

    Deprecated

    Use decimalType instead

  7. def stringMatcher(regex: String): PactDslJsonArray

    Element that must match the regular expression

    Element that must match the regular expression

    regex

    regular expression

    Deprecated

    Use the version that takes an example value

Inherited from DslPart

Inherited from AnyRef

Inherited from Any

Ungrouped