Class BeanMappingOptions
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.DelegatingOptions
-
- org.mapstruct.ap.internal.model.source.BeanMappingOptions
-
public class BeanMappingOptions extends DelegatingOptions
Represents an bean mapping as configured via@BeanMapping
.- Author:
- Sjaak Derksen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BeanMappingOptions
empty(DelegatingOptions delegatingOptions)
static BeanMappingOptions
forForgedMethods(BeanMappingOptions beanMapping)
static BeanMappingOptions
forInheritance(BeanMappingOptions beanMapping, boolean isInverse)
creates a mapping for inheritance.org.mapstruct.ap.internal.gem.BuilderGem
getBuilder()
List<String>
getIgnoreUnmappedSourceProperties()
static BeanMappingOptions
getInstanceOn(org.mapstruct.ap.internal.gem.BeanMappingGem beanMapping, MapperOptions mapperOptions, ExecutableElement method, FormattingMessager messager, TypeUtils typeUtils, TypeFactory typeFactory)
MappingControl
getMappingControl(ElementUtils elementUtils)
AnnotationMirror
getMirror()
org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem
getNullValueCheckStrategy()
org.mapstruct.ap.internal.gem.NullValueMappingStrategyGem
getNullValueMappingStrategy()
org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem
getNullValuePropertyMappingStrategy()
SelectionParameters
getSelectionParameters()
org.mapstruct.ap.internal.gem.SubclassExhaustiveStrategyGem
getSubclassExhaustiveStrategy()
boolean
hasAnnotation()
boolean
isignoreByDefault()
org.mapstruct.ap.internal.gem.ReportingPolicyGem
unmappedTargetPolicy()
-
Methods inherited from class org.mapstruct.ap.internal.model.source.DelegatingOptions
componentModel, getCollectionMappingStrategy, getInjectionStrategy, getMappingInheritanceStrategy, getNullValueIterableMappingStrategy, getNullValueMapMappingStrategy, getUnexpectedValueMappingException, implementationName, implementationPackage, imports, isDisableSubMappingMethodsGeneration, suppressTimestampInGenerated, toDeclaredTypes, typeConversionPolicy, unmappedSourcePolicy, uses
-
-
-
-
Method Detail
-
forInheritance
public static BeanMappingOptions forInheritance(BeanMappingOptions beanMapping, boolean isInverse)
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
public static BeanMappingOptions forForgedMethods(BeanMappingOptions beanMapping)
-
empty
public static BeanMappingOptions empty(DelegatingOptions delegatingOptions)
-
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:
getNullValueCheckStrategy
in classDelegatingOptions
-
getNullValuePropertyMappingStrategy
public org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem getNullValuePropertyMappingStrategy()
- Overrides:
getNullValuePropertyMappingStrategy
in classDelegatingOptions
-
getNullValueMappingStrategy
public org.mapstruct.ap.internal.gem.NullValueMappingStrategyGem getNullValueMappingStrategy()
- Overrides:
getNullValueMappingStrategy
in classDelegatingOptions
-
getSubclassExhaustiveStrategy
public org.mapstruct.ap.internal.gem.SubclassExhaustiveStrategyGem getSubclassExhaustiveStrategy()
- Overrides:
getSubclassExhaustiveStrategy
in classDelegatingOptions
-
unmappedTargetPolicy
public org.mapstruct.ap.internal.gem.ReportingPolicyGem unmappedTargetPolicy()
- Overrides:
unmappedTargetPolicy
in classDelegatingOptions
-
getBuilder
public org.mapstruct.ap.internal.gem.BuilderGem getBuilder()
- Overrides:
getBuilder
in classDelegatingOptions
-
getMappingControl
public MappingControl getMappingControl(ElementUtils elementUtils)
- Overrides:
getMappingControl
in classDelegatingOptions
-
getSelectionParameters
public SelectionParameters getSelectionParameters()
-
isignoreByDefault
public boolean isignoreByDefault()
-
getMirror
public AnnotationMirror getMirror()
-
hasAnnotation
public boolean hasAnnotation()
- Specified by:
hasAnnotation
in classDelegatingOptions
-
-