Class BeanMappingOptions
java.lang.Object
org.mapstruct.ap.internal.model.source.DelegatingOptions
org.mapstruct.ap.internal.model.source.BeanMappingOptions
Represents an bean mapping as configured via
@BeanMapping.- Author:
- Sjaak Derksen
-
Method Summary
Modifier and TypeMethodDescriptionstatic BeanMappingOptionsempty(DelegatingOptions delegatingOptions) static BeanMappingOptionsforForgedMethods(BeanMappingOptions beanMapping) static BeanMappingOptionsforInheritance(BeanMappingOptions beanMapping, boolean isInverse) creates a mapping for inheritance.static BeanMappingOptionsforSubclassForgedMethods(BeanMappingOptions beanMapping) org.mapstruct.ap.internal.gem.BuilderGemstatic BeanMappingOptionsgetInstanceOn(org.mapstruct.ap.internal.gem.BeanMappingGem beanMapping, MapperOptions mapperOptions, ExecutableElement method, FormattingMessager messager, TypeUtils typeUtils, TypeFactory typeFactory) getMappingControl(ElementUtils elementUtils) org.mapstruct.ap.internal.gem.NullValueCheckStrategyGemorg.mapstruct.ap.internal.gem.NullValueMappingStrategyGemorg.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGemorg.mapstruct.ap.internal.gem.SubclassExhaustiveStrategyGembooleanbooleanorg.mapstruct.ap.internal.gem.ReportingPolicyGemorg.mapstruct.ap.internal.gem.ReportingPolicyGemMethods inherited from class org.mapstruct.ap.internal.model.source.DelegatingOptions
componentModel, getCollectionMappingStrategy, getInjectionStrategy, getMappingInheritanceStrategy, getNullValueIterableMappingStrategy, getNullValueMapMappingStrategy, getUnexpectedValueMappingException, implementationName, implementationPackage, imports, isDisableSubMappingMethodsGeneration, suppressTimestampInGenerated, toDeclaredTypes, typeConversionPolicy, uses
-
Method Details
-
forInheritance
creates a mapping for inheritance. Will set- Parameters:
beanMapping- the bean mapping options that should be usedisInverse- whether the inheritance is inverse- Returns:
- new mapping
-
forForgedMethods
-
forSubclassForgedMethods
-
empty
-
getInstanceOn
public static BeanMappingOptions getInstanceOn(org.mapstruct.ap.internal.gem.BeanMappingGem beanMapping, MapperOptions mapperOptions, ExecutableElement method, FormattingMessager messager, TypeUtils typeUtils, TypeFactory typeFactory) -
getNullValueCheckStrategy
public org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem getNullValueCheckStrategy()- Overrides:
getNullValueCheckStrategyin classDelegatingOptions
-
getNullValuePropertyMappingStrategy
public org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem getNullValuePropertyMappingStrategy()- Overrides:
getNullValuePropertyMappingStrategyin classDelegatingOptions
-
getNullValueMappingStrategy
public org.mapstruct.ap.internal.gem.NullValueMappingStrategyGem getNullValueMappingStrategy()- Overrides:
getNullValueMappingStrategyin classDelegatingOptions
-
getSubclassExhaustiveStrategy
public org.mapstruct.ap.internal.gem.SubclassExhaustiveStrategyGem getSubclassExhaustiveStrategy()- Overrides:
getSubclassExhaustiveStrategyin classDelegatingOptions
-
getSubclassExhaustiveException
- Overrides:
getSubclassExhaustiveExceptionin classDelegatingOptions
-
unmappedTargetPolicy
public org.mapstruct.ap.internal.gem.ReportingPolicyGem unmappedTargetPolicy()- Overrides:
unmappedTargetPolicyin classDelegatingOptions
-
unmappedSourcePolicy
public org.mapstruct.ap.internal.gem.ReportingPolicyGem unmappedSourcePolicy()- Overrides:
unmappedSourcePolicyin classDelegatingOptions
-
getBuilder
public org.mapstruct.ap.internal.gem.BuilderGem getBuilder()- Overrides:
getBuilderin classDelegatingOptions
-
getMappingControl
- Overrides:
getMappingControlin classDelegatingOptions
-
getSelectionParameters
-
isIgnoredByDefault
public boolean isIgnoredByDefault() -
getIgnoreUnmappedSourceProperties
-
getMirror
-
hasAnnotation
public boolean hasAnnotation()- Specified by:
hasAnnotationin classDelegatingOptions
-