-
public final class ArrayOfPrimitivesBuilder
-
-
Constructor Summary
Constructors Constructor Description ArrayOfPrimitivesBuilder()
-
Method Summary
Modifier and Type Method Description final IntegergetMinLength()final UnitsetMinLength(Integer minLength)final IntegergetMaxLength()final UnitsetMaxLength(Integer maxLength)final IntegergetExamples()final UnitsetExamples(Integer examples)final MatchingRulegetMatcher()final UnitsetMatcher(MatchingRule matcher)final ObjectgetValue()final UnitsetValue(Object value)final GeneratorgetGenerator()final UnitsetGenerator(Generator generator)final ArrayOfPrimitivesBuilderwithMinLength(Integer min)Array must have a minimum length final ArrayOfPrimitivesBuilderwithMaxLength(Integer max)Array must have a maximum length final ArrayOfPrimitivesBuilderwithNumberOfExamples(Integer examples)Sets the number of examples to generate in the array final ArrayOfPrimitivesBuilderthatMatchRegex(String regex)All the values in the array must match the provided regex final ArrayOfPrimitivesBuilderthatMatchRegex(String regex, String example)All the values in the array must match the provided regex final DslPartbuild()Consumes this builder and returns the DslPart that it represents -
-
Method Detail
-
getMinLength
final Integer getMinLength()
-
setMinLength
final Unit setMinLength(Integer minLength)
-
getMaxLength
final Integer getMaxLength()
-
setMaxLength
final Unit setMaxLength(Integer maxLength)
-
getExamples
final Integer getExamples()
-
setExamples
final Unit setExamples(Integer examples)
-
getMatcher
final MatchingRule getMatcher()
-
setMatcher
final Unit setMatcher(MatchingRule matcher)
-
getGenerator
final Generator getGenerator()
-
setGenerator
final Unit setGenerator(Generator generator)
-
withMinLength
final ArrayOfPrimitivesBuilder withMinLength(Integer min)
Array must have a minimum length
- Parameters:
min- Minimum length
-
withMaxLength
final ArrayOfPrimitivesBuilder withMaxLength(Integer max)
Array must have a maximum length
- Parameters:
max- Maximum length
-
withNumberOfExamples
final ArrayOfPrimitivesBuilder withNumberOfExamples(Integer examples)
Sets the number of examples to generate in the array
- Parameters:
examples- Number of examples to generate.
-
thatMatchRegex
final ArrayOfPrimitivesBuilder thatMatchRegex(String regex)
All the values in the array must match the provided regex
- Parameters:
regex- Regex to match
-
thatMatchRegex
final ArrayOfPrimitivesBuilder thatMatchRegex(String regex, String example)
All the values in the array must match the provided regex
- Parameters:
regex- Regex to matchexample- Example value to use when generating bodies
-
-
-
-