Class IterableMappingOptions
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.DelegatingOptions
-
- org.mapstruct.ap.internal.model.source.IterableMappingOptions
-
public class IterableMappingOptions extends DelegatingOptions
Represents an iterable mapping as configured via@IterableMapping.
-
-
Field Summary
Fields Modifier and Type Field Description private FormattingParametersformattingParametersprivate IterableMappingGemiterableMappingprivate SelectionParametersselectionParameters
-
Constructor Summary
Constructors Modifier Constructor Description privateIterableMappingOptions(FormattingParameters formattingParameters, SelectionParameters selectionParameters, IterableMappingGem iterableMapping, DelegatingOptions next)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IterableMappingOptionsfromGem(IterableMappingGem iterableMapping, MapperOptions mapperOptions, javax.lang.model.element.ExecutableElement method, FormattingMessager messager, TypeUtils typeUtils)MappingControlgetElementMappingControl(ElementUtils elementUtils)FormattingParametersgetFormattingParameters()javax.lang.model.element.AnnotationMirrorgetMirror()NullValueMappingStrategyGemgetNullValueMappingStrategy()SelectionParametersgetSelectionParameters()booleanhasAnnotation()private static booleanisConsistent(IterableMappingGem gem, javax.lang.model.element.ExecutableElement method, FormattingMessager messager)-
Methods inherited from class org.mapstruct.ap.internal.model.source.DelegatingOptions
componentModel, getBuilder, getCollectionMappingStrategy, getInjectionStrategy, getMappingControl, getMappingInheritanceStrategy, getNullValueCheckStrategy, getNullValueIterableMappingStrategy, getNullValueMapMappingStrategy, getNullValuePropertyMappingStrategy, getSubclassExhaustiveStrategy, getUnexpectedValueMappingException, implementationName, implementationPackage, imports, isDisableSubMappingMethodsGeneration, next, suppressTimestampInGenerated, toDeclaredTypes, typeConversionPolicy, unmappedSourcePolicy, unmappedTargetPolicy, uses
-
-
-
-
Field Detail
-
selectionParameters
private final SelectionParameters selectionParameters
-
formattingParameters
private final FormattingParameters formattingParameters
-
iterableMapping
private final IterableMappingGem iterableMapping
-
-
Constructor Detail
-
IterableMappingOptions
private IterableMappingOptions(FormattingParameters formattingParameters, SelectionParameters selectionParameters, IterableMappingGem iterableMapping, DelegatingOptions next)
-
-
Method Detail
-
fromGem
public static IterableMappingOptions fromGem(IterableMappingGem iterableMapping, MapperOptions mapperOptions, javax.lang.model.element.ExecutableElement method, FormattingMessager messager, TypeUtils typeUtils)
-
isConsistent
private static boolean isConsistent(IterableMappingGem gem, javax.lang.model.element.ExecutableElement method, FormattingMessager messager)
-
getSelectionParameters
public SelectionParameters getSelectionParameters()
-
getFormattingParameters
public FormattingParameters getFormattingParameters()
-
getMirror
public javax.lang.model.element.AnnotationMirror getMirror()
-
getNullValueMappingStrategy
public NullValueMappingStrategyGem getNullValueMappingStrategy()
- Overrides:
getNullValueMappingStrategyin classDelegatingOptions
-
getElementMappingControl
public MappingControl getElementMappingControl(ElementUtils elementUtils)
-
hasAnnotation
public boolean hasAnnotation()
- Specified by:
hasAnnotationin classDelegatingOptions
-
-