Package dev.orne.test.rnd.params
Interface ParametersSourceExtractor<P,S>
- Type Parameters:
P- The target generation parameters typeS- The parameters source type
- All Known Implementing Classes:
AbstractParametersSourceExtractor,KeyValueGenericParametersExtractor,KeyValueGenericParametersTypeExtractor,MaxConstraintExtractor,MinConstraintExtractor,NotNullConstraintExtractor,NullableParametersExtractor,NumberParametersExtractor,ParametersSourceExtractor.NopExtractor,PositiveConstraintExtractor,PositiveOrZeroConstraintExtractor,SimpleGenericParametersExtractor,SimpleGenericParametersTypeExtractor,SizeConstraintExtractor,SizeParametersExtractor
@API(status=EXPERIMENTAL,
since="0.1")
public interface ParametersSourceExtractor<P,S>
Interface for generation parameters extractor from a source type.
- Since:
- 0.1
- Version:
- 1.0, 2022-11
- Author:
- (w) Iker Hernaez
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classFallback implementation ofParametersSourceExtractorthat does nothing. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParametersSourceExtractor.NopExtractorShared instance of fallback NOP extractor. -
Method Summary
Modifier and TypeMethodDescriptionvoidextractParameters(S from, P target) Extracts the parameters from the specified source, modifying the generation parameters as required.Returns the target generation parameters type.default intReturns the priority of this extractor.Returns the parameters source type.
-
Field Details
-
NOP
Shared instance of fallback NOP extractor.
-
-
Method Details
-
getParametersType
Returns the target generation parameters type.- Returns:
- The target generation parameters type
-
getSourceType
Returns the parameters source type.- Returns:
- The parameters source type
-
extractParameters
Extracts the parameters from the specified source, modifying the generation parameters as required.- Parameters:
from- The metadata sourcetarget- The target generation parameters
-
getPriority
default int getPriority()Returns the priority of this extractor.- Returns:
- The priority of this extractor
-