Packages

abstract class DslPart extends AnyRef

Abstract base class to support Object and Array JSON DSL builders

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

Instance Constructors

  1. new DslPart(rootPath: String, rootName: String)
  2. new DslPart(parent: DslPart, rootPath: String, rootName: String)

Abstract Value Members

  1. abstract def array(): PactDslJsonArray

    Element as an array

  2. abstract def array(name: String): PactDslJsonArray

    Field which is an array

    Field which is an array

    name

    field name

  3. abstract 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

  4. abstract def closeArray(): DslPart

    Close of the previous array element

  5. abstract def closeObject(): DslPart

    Close off the previous object

  6. abstract 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

  7. abstract 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

  8. abstract def eachArrayLike(): PactDslJsonArray

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

  9. abstract 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

  10. abstract 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

  11. abstract 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

  12. abstract 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

  13. abstract 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

  14. abstract 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

  15. abstract 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

  16. abstract 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

  17. abstract 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

  18. abstract 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

  19. abstract 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

  20. abstract 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

  21. abstract 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

  22. abstract def eachLike(numberExamples: Int): PactDslJsonBody

    Array element where each element of the array must match the following object

    Array element where each element of the array must match the following object

    numberExamples

    number of examples to generate

  23. abstract 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

  24. abstract def eachLike(): PactDslJsonBody

    Array element where each element of the array must match the following object

  25. abstract 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

  26. abstract def getBody(): AnyRef
  27. abstract def maxArrayLike(size: Integer, numberExamples: Int): PactDslJsonBody

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

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

    size

    minimum size

    numberExamples

    number of examples to generate

  28. abstract 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

  29. abstract def maxArrayLike(size: Integer): PactDslJsonBody

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

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

    size

    minimum size

  30. abstract 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

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

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

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

    size

    minimum size

    numberExamples

    number of examples to generate

  32. abstract 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

  33. abstract def minArrayLike(size: Integer): PactDslJsonBody

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

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

    size

    minimum size

  34. abstract 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

  35. abstract 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

  36. abstract 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

  37. abstract 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

  38. abstract 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

  39. abstract def object(): PactDslJsonBody

    Object element

  40. abstract def object(name: String): PactDslJsonBody

    Object field

    Object field

    name

    field name

  41. abstract def putArray(object: DslPart): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  42. abstract def putObject(object: DslPart): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  43. abstract def arrayLike(): PactDslJsonBody

    Array element where each element of the array must match the following object

    Array element where each element of the array must match the following object

    Deprecated

    Use eachLike instead

  44. abstract 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

    Deprecated

    Use eachLike instead

Concrete 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 asArray(): PactDslJsonArray
  5. def asBody(): PactDslJsonBody
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getGenerators(): Generators
  13. def getMatchers(): Category
  14. def getParent(): DslPart

    Returns the parent of this part (object or array)

    Returns the parent of this part (object or array)

    returns

    parent, or null if it is the root

  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def includesMatcher(value: Any): IncludeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def matchDate(format: String): DateMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  19. def matchMax(max: Integer): MaxTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  20. def matchMin(min: Integer): MinTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  21. def matchMinMax(minSize: Integer, maxSize: Integer): MinMaxTypeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  22. def matchTime(format: String): TimeMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  23. def matchTimestamp(format: String): TimestampMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def regexp(regex: String): RegexMatcher
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
  28. def setGenerators(generators: Generators): Unit
  29. def setMatchers(matchers: Category): Unit
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped