-
public final class ArrayOfPrimitivesBuilder
-
-
Constructor Summary
Constructors Constructor Description ArrayOfPrimitivesBuilder()
-
Method Summary
Modifier and Type Method Description 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 final IntegergetMinLength()final IntegergetMaxLength()final IntegergetExamples()final MatchingRulegetMatcher()final ObjectgetValue()final GeneratorgetGenerator()final UnitsetMinLength(Integer minLength)final UnitsetMaxLength(Integer maxLength)final UnitsetExamples(Integer examples)final UnitsetMatcher(MatchingRule matcher)final UnitsetValue(Object value)final UnitsetGenerator(Generator generator)-
-
Method Detail
-
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
-
getMinLength
final Integer getMinLength()
-
getMaxLength
final Integer getMaxLength()
-
getExamples
final Integer getExamples()
-
getMatcher
final MatchingRule getMatcher()
-
getGenerator
final Generator getGenerator()
-
setMinLength
final Unit setMinLength(Integer minLength)
-
setMaxLength
final Unit setMaxLength(Integer maxLength)
-
setExamples
final Unit setExamples(Integer examples)
-
setMatcher
final Unit setMatcher(MatchingRule matcher)
-
setGenerator
final Unit setGenerator(Generator generator)
-
-
-
-