Package dev.orne.test.rnd.params
Class NotNullConstraintExtractor
java.lang.Object
dev.orne.test.rnd.params.AbstractParametersSourceExtractor<NullableParameters,javax.validation.constraints.NotNull>
dev.orne.test.rnd.params.NotNullConstraintExtractor
- All Implemented Interfaces:
ParametersSourceExtractor<NullableParameters,
javax.validation.constraints.NotNull>
@API(status=EXPERIMENTAL,
since="0.1")
public class NotNullConstraintExtractor
extends AbstractParametersSourceExtractor<NullableParameters,javax.validation.constraints.NotNull>
Generation parameters extractor that detects
NotNull
constraint annotations and sets GenerationParameters.nullable
to false.- Since:
- 0.1
- Version:
- 1.0, 2022-11
- Author:
- (w) Iker Hernaez
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.orne.test.rnd.params.ParametersSourceExtractor
ParametersSourceExtractor.NopExtractor
-
Field Summary
Fields inherited from interface dev.orne.test.rnd.params.ParametersSourceExtractor
NOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
extractParameters
(@NotNull javax.validation.constraints.NotNull from, @NotNull NullableParameters target) Extracts the parameters from the specified source, modifying the generation parameters as required.Methods inherited from class dev.orne.test.rnd.params.AbstractParametersSourceExtractor
equals, getParametersType, getSourceType, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface dev.orne.test.rnd.params.ParametersSourceExtractor
getPriority
-
Constructor Details
-
NotNullConstraintExtractor
public NotNullConstraintExtractor()Creates a new instance.
-
-
Method Details
-
extractParameters
public void extractParameters(@NotNull @NotNull javax.validation.constraints.NotNull from, @NotNull @NotNull NullableParameters target) Extracts the parameters from the specified source, modifying the generation parameters as required.- Parameters:
from
- The metadata sourcetarget
- The target generation parameters
-