Package org.mapstruct.ap.internal.gem
Class MapperConfigGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.MapperConfigGem.BuilderImpl
-
- All Implemented Interfaces:
MapperConfigGem.Builder<MapperConfigGem>
- Enclosing class:
- MapperConfigGem
private static class MapperConfigGem.BuilderImpl extends java.lang.Object implements MapperConfigGem.Builder<MapperConfigGem>
-
-
Field Summary
Fields Modifier and Type Field Description private org.mapstruct.tools.gem.GemValue<BuilderGem>builderprivate org.mapstruct.tools.gem.GemValue<java.lang.String>collectionMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>componentModelprivate org.mapstruct.tools.gem.GemValue<java.lang.Boolean>disableSubMappingMethodsGenerationprivate org.mapstruct.tools.gem.GemValue<java.lang.String>implementationNameprivate org.mapstruct.tools.gem.GemValue<java.lang.String>implementationPackageprivate org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>>importsprivate org.mapstruct.tools.gem.GemValue<java.lang.String>injectionStrategyprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>mappingControlprivate org.mapstruct.tools.gem.GemValue<java.lang.String>mappingInheritanceStrategyprivate javax.lang.model.element.AnnotationMirrormirrorprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValueCheckStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValueIterableMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValueMapMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValueMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValuePropertyMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>subclassExhaustiveStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.Boolean>suppressTimestampInGeneratedprivate org.mapstruct.tools.gem.GemValue<java.lang.String>typeConversionPolicyprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>unexpectedValueMappingExceptionprivate org.mapstruct.tools.gem.GemValue<java.lang.String>unmappedSourcePolicyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>unmappedTargetPolicyprivate org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>>uses
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapperConfigGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.MapperConfigGem.BuildersetBuilder(org.mapstruct.tools.gem.GemValue<BuilderGem> builder)Sets theGemValueforMapperConfigGem.builderMapperConfigGem.BuildersetCollectionmappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> collectionMappingStrategy)Sets theGemValueforMapperConfigGem.collectionMappingStrategyMapperConfigGem.BuildersetComponentmodel(org.mapstruct.tools.gem.GemValue<java.lang.String> componentModel)Sets theGemValueforMapperConfigGem.componentModelMapperConfigGem.BuildersetDisablesubmappingmethodsgeneration(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> disableSubMappingMethodsGeneration)Sets theGemValueforMapperConfigGem.disableSubMappingMethodsGenerationMapperConfigGem.BuildersetImplementationname(org.mapstruct.tools.gem.GemValue<java.lang.String> implementationName)Sets theGemValueforMapperConfigGem.implementationNameMapperConfigGem.BuildersetImplementationpackage(org.mapstruct.tools.gem.GemValue<java.lang.String> implementationPackage)Sets theGemValueforMapperConfigGem.implementationPackageMapperConfigGem.BuildersetImports(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> imports)Sets theGemValueforMapperConfigGem.importsMapperConfigGem.BuildersetInjectionstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> injectionStrategy)Sets theGemValueforMapperConfigGem.injectionStrategyMapperConfigGem.BuildersetMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> mappingControl)Sets theGemValueforMapperConfigGem.mappingControlMapperConfigGem.BuildersetMappinginheritancestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> mappingInheritanceStrategy)Sets theGemValueforMapperConfigGem.mappingInheritanceStrategyMapperConfigGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorMapperConfigGem.BuildersetNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueCheckStrategy)Sets theGemValueforMapperConfigGem.nullValueCheckStrategyMapperConfigGem.BuildersetNullvalueiterablemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueIterableMappingStrategy)Sets theGemValueforMapperConfigGem.nullValueIterableMappingStrategyMapperConfigGem.BuildersetNullvaluemapmappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMapMappingStrategy)Sets theGemValueforMapperConfigGem.nullValueMapMappingStrategyMapperConfigGem.BuildersetNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy)Sets theGemValueforMapperConfigGem.nullValueMappingStrategyMapperConfigGem.BuildersetNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValuePropertyMappingStrategy)Sets theGemValueforMapperConfigGem.nullValuePropertyMappingStrategyMapperConfigGem.BuildersetSubclassexhaustivestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> subclassExhaustiveStrategy)Sets theGemValueforMapperConfigGem.subclassExhaustiveStrategyMapperConfigGem.BuildersetSuppresstimestampingenerated(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> suppressTimestampInGenerated)Sets theGemValueforMapperConfigGem.suppressTimestampInGeneratedMapperConfigGem.BuildersetTypeconversionpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> typeConversionPolicy)Sets theGemValueforMapperConfigGem.typeConversionPolicyMapperConfigGem.BuildersetUnexpectedvaluemappingexception(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> unexpectedValueMappingException)Sets theGemValueforMapperConfigGem.unexpectedValueMappingExceptionMapperConfigGem.BuildersetUnmappedsourcepolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedSourcePolicy)Sets theGemValueforMapperConfigGem.unmappedSourcePolicyMapperConfigGem.BuildersetUnmappedtargetpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedTargetPolicy)Sets theGemValueforMapperConfigGem.unmappedTargetPolicyMapperConfigGem.BuildersetUses(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> uses)Sets theGemValueforMapperConfigGem.uses
-
-
-
Field Detail
-
uses
private org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> uses
-
imports
private org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> imports
-
unmappedSourcePolicy
private org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedSourcePolicy
-
unmappedTargetPolicy
private org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedTargetPolicy
-
typeConversionPolicy
private org.mapstruct.tools.gem.GemValue<java.lang.String> typeConversionPolicy
-
componentModel
private org.mapstruct.tools.gem.GemValue<java.lang.String> componentModel
-
implementationName
private org.mapstruct.tools.gem.GemValue<java.lang.String> implementationName
-
implementationPackage
private org.mapstruct.tools.gem.GemValue<java.lang.String> implementationPackage
-
collectionMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> collectionMappingStrategy
-
nullValueMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy
-
nullValueIterableMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueIterableMappingStrategy
-
nullValueMapMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMapMappingStrategy
-
nullValuePropertyMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValuePropertyMappingStrategy
-
mappingInheritanceStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> mappingInheritanceStrategy
-
nullValueCheckStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueCheckStrategy
-
subclassExhaustiveStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> subclassExhaustiveStrategy
-
injectionStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> injectionStrategy
-
disableSubMappingMethodsGeneration
private org.mapstruct.tools.gem.GemValue<java.lang.Boolean> disableSubMappingMethodsGeneration
-
builder
private org.mapstruct.tools.gem.GemValue<BuilderGem> builder
-
mappingControl
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> mappingControl
-
unexpectedValueMappingException
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> unexpectedValueMappingException
-
suppressTimestampInGenerated
private org.mapstruct.tools.gem.GemValue<java.lang.Boolean> suppressTimestampInGenerated
-
mirror
private javax.lang.model.element.AnnotationMirror mirror
-
-
Method Detail
-
setUses
public MapperConfigGem.Builder setUses(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> uses)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.uses- Specified by:
setUsesin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setImports
public MapperConfigGem.Builder setImports(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> imports)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.imports- Specified by:
setImportsin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setUnmappedsourcepolicy
public MapperConfigGem.Builder setUnmappedsourcepolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedSourcePolicy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.unmappedSourcePolicy- Specified by:
setUnmappedsourcepolicyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setUnmappedtargetpolicy
public MapperConfigGem.Builder setUnmappedtargetpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedTargetPolicy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.unmappedTargetPolicy- Specified by:
setUnmappedtargetpolicyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setTypeconversionpolicy
public MapperConfigGem.Builder setTypeconversionpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> typeConversionPolicy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.typeConversionPolicy- Specified by:
setTypeconversionpolicyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setComponentmodel
public MapperConfigGem.Builder setComponentmodel(org.mapstruct.tools.gem.GemValue<java.lang.String> componentModel)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.componentModel- Specified by:
setComponentmodelin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setImplementationname
public MapperConfigGem.Builder setImplementationname(org.mapstruct.tools.gem.GemValue<java.lang.String> implementationName)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.implementationName- Specified by:
setImplementationnamein interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setImplementationpackage
public MapperConfigGem.Builder setImplementationpackage(org.mapstruct.tools.gem.GemValue<java.lang.String> implementationPackage)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.implementationPackage- Specified by:
setImplementationpackagein interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setCollectionmappingstrategy
public MapperConfigGem.Builder setCollectionmappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> collectionMappingStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.collectionMappingStrategy- Specified by:
setCollectionmappingstrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setNullvaluemappingstrategy
public MapperConfigGem.Builder setNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.nullValueMappingStrategy- Specified by:
setNullvaluemappingstrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setNullvalueiterablemappingstrategy
public MapperConfigGem.Builder setNullvalueiterablemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueIterableMappingStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.nullValueIterableMappingStrategy- Specified by:
setNullvalueiterablemappingstrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setNullvaluemapmappingstrategy
public MapperConfigGem.Builder setNullvaluemapmappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMapMappingStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.nullValueMapMappingStrategy- Specified by:
setNullvaluemapmappingstrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setNullvaluepropertymappingstrategy
public MapperConfigGem.Builder setNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValuePropertyMappingStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.nullValuePropertyMappingStrategy- Specified by:
setNullvaluepropertymappingstrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setMappinginheritancestrategy
public MapperConfigGem.Builder setMappinginheritancestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> mappingInheritanceStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.mappingInheritanceStrategy- Specified by:
setMappinginheritancestrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setNullvaluecheckstrategy
public MapperConfigGem.Builder setNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueCheckStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.nullValueCheckStrategy- Specified by:
setNullvaluecheckstrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setSubclassexhaustivestrategy
public MapperConfigGem.Builder setSubclassexhaustivestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> subclassExhaustiveStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.subclassExhaustiveStrategy- Specified by:
setSubclassexhaustivestrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setInjectionstrategy
public MapperConfigGem.Builder setInjectionstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> injectionStrategy)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.injectionStrategy- Specified by:
setInjectionstrategyin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setDisablesubmappingmethodsgeneration
public MapperConfigGem.Builder setDisablesubmappingmethodsgeneration(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> disableSubMappingMethodsGeneration)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.disableSubMappingMethodsGeneration- Specified by:
setDisablesubmappingmethodsgenerationin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setBuilder
public MapperConfigGem.Builder setBuilder(org.mapstruct.tools.gem.GemValue<BuilderGem> builder)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.builder- Specified by:
setBuilderin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setMappingcontrol
public MapperConfigGem.Builder setMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> mappingControl)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.mappingControl- Specified by:
setMappingcontrolin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setUnexpectedvaluemappingexception
public MapperConfigGem.Builder setUnexpectedvaluemappingexception(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> unexpectedValueMappingException)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.unexpectedValueMappingException- Specified by:
setUnexpectedvaluemappingexceptionin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setSuppresstimestampingenerated
public MapperConfigGem.Builder setSuppresstimestampingenerated(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> suppressTimestampInGenerated)
Description copied from interface:MapperConfigGem.BuilderSets theGemValueforMapperConfigGem.suppressTimestampInGenerated- Specified by:
setSuppresstimestampingeneratedin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
setMirror
public MapperConfigGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:MapperConfigGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceMapperConfigGem.Builder<MapperConfigGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
MapperConfigGem.Builderfor this gem, representingMapperConfigGem
-
build
public MapperConfigGem build()
Description copied from interface:MapperConfigGem.BuilderThe build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.- Specified by:
buildin interfaceMapperConfigGem.Builder<MapperConfigGem>- Returns:
- the representation of the annotation
-
-