Package org.mapstruct.ap.internal.gem
Class BeanMappingGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.BeanMappingGem.BuilderImpl
-
- All Implemented Interfaces:
BeanMappingGem.Builder<BeanMappingGem>
- Enclosing class:
- BeanMappingGem
private static class BeanMappingGem.BuilderImpl extends java.lang.Object implements BeanMappingGem.Builder<BeanMappingGem>
-
-
Field Summary
Fields Modifier and Type Field Description private org.mapstruct.tools.gem.GemValue<BuilderGem>builderprivate org.mapstruct.tools.gem.GemValue<java.lang.Boolean>ignoreByDefaultprivate org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>>ignoreUnmappedSourcePropertiesprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>mappingControlprivate javax.lang.model.element.AnnotationMirrormirrorprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValueCheckStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValueMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValuePropertyMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>>qualifiedByprivate org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>>qualifiedByNameprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>resultTypeprivate org.mapstruct.tools.gem.GemValue<java.lang.String>subclassExhaustiveStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>unmappedTargetPolicy
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanMappingGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.BeanMappingGem.BuildersetBuilder(org.mapstruct.tools.gem.GemValue<BuilderGem> builder)Sets theGemValueforBeanMappingGem.builderBeanMappingGem.BuildersetIgnorebydefault(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> ignoreByDefault)Sets theGemValueforBeanMappingGem.ignoreByDefaultBeanMappingGem.BuildersetIgnoreunmappedsourceproperties(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> ignoreUnmappedSourceProperties)Sets theGemValueforBeanMappingGem.ignoreUnmappedSourcePropertiesBeanMappingGem.BuildersetMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> mappingControl)Sets theGemValueforBeanMappingGem.mappingControlBeanMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorBeanMappingGem.BuildersetNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueCheckStrategy)Sets theGemValueforBeanMappingGem.nullValueCheckStrategyBeanMappingGem.BuildersetNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy)Sets theGemValueforBeanMappingGem.nullValueMappingStrategyBeanMappingGem.BuildersetNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValuePropertyMappingStrategy)Sets theGemValueforBeanMappingGem.nullValuePropertyMappingStrategyBeanMappingGem.BuildersetQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> qualifiedBy)Sets theGemValueforBeanMappingGem.qualifiedByBeanMappingGem.BuildersetQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> qualifiedByName)Sets theGemValueforBeanMappingGem.qualifiedByNameBeanMappingGem.BuildersetResulttype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> resultType)Sets theGemValueforBeanMappingGem.resultTypeBeanMappingGem.BuildersetSubclassexhaustivestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> subclassExhaustiveStrategy)Sets theGemValueforBeanMappingGem.subclassExhaustiveStrategyBeanMappingGem.BuildersetUnmappedtargetpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedTargetPolicy)Sets theGemValueforBeanMappingGem.unmappedTargetPolicy
-
-
-
Field Detail
-
resultType
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> resultType
-
qualifiedBy
private org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> qualifiedBy
-
qualifiedByName
private org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> qualifiedByName
-
nullValueMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy
-
nullValuePropertyMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValuePropertyMappingStrategy
-
nullValueCheckStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueCheckStrategy
-
subclassExhaustiveStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> subclassExhaustiveStrategy
-
ignoreByDefault
private org.mapstruct.tools.gem.GemValue<java.lang.Boolean> ignoreByDefault
-
ignoreUnmappedSourceProperties
private org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> ignoreUnmappedSourceProperties
-
unmappedTargetPolicy
private org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedTargetPolicy
-
builder
private org.mapstruct.tools.gem.GemValue<BuilderGem> builder
-
mappingControl
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> mappingControl
-
mirror
private javax.lang.model.element.AnnotationMirror mirror
-
-
Method Detail
-
setResulttype
public BeanMappingGem.Builder setResulttype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> resultType)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.resultType- Specified by:
setResulttypein interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setQualifiedby
public BeanMappingGem.Builder setQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> qualifiedBy)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.qualifiedBy- Specified by:
setQualifiedbyin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setQualifiedbyname
public BeanMappingGem.Builder setQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> qualifiedByName)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.qualifiedByName- Specified by:
setQualifiedbynamein interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setNullvaluemappingstrategy
public BeanMappingGem.Builder setNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.nullValueMappingStrategy- Specified by:
setNullvaluemappingstrategyin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setNullvaluepropertymappingstrategy
public BeanMappingGem.Builder setNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValuePropertyMappingStrategy)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.nullValuePropertyMappingStrategy- Specified by:
setNullvaluepropertymappingstrategyin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setNullvaluecheckstrategy
public BeanMappingGem.Builder setNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueCheckStrategy)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.nullValueCheckStrategy- Specified by:
setNullvaluecheckstrategyin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setSubclassexhaustivestrategy
public BeanMappingGem.Builder setSubclassexhaustivestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> subclassExhaustiveStrategy)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.subclassExhaustiveStrategy- Specified by:
setSubclassexhaustivestrategyin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setIgnorebydefault
public BeanMappingGem.Builder setIgnorebydefault(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> ignoreByDefault)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.ignoreByDefault- Specified by:
setIgnorebydefaultin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setIgnoreunmappedsourceproperties
public BeanMappingGem.Builder setIgnoreunmappedsourceproperties(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> ignoreUnmappedSourceProperties)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.ignoreUnmappedSourceProperties- Specified by:
setIgnoreunmappedsourcepropertiesin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setUnmappedtargetpolicy
public BeanMappingGem.Builder setUnmappedtargetpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> unmappedTargetPolicy)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.unmappedTargetPolicy- Specified by:
setUnmappedtargetpolicyin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setBuilder
public BeanMappingGem.Builder setBuilder(org.mapstruct.tools.gem.GemValue<BuilderGem> builder)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.builder- Specified by:
setBuilderin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setMappingcontrol
public BeanMappingGem.Builder setMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> mappingControl)
Description copied from interface:BeanMappingGem.BuilderSets theGemValueforBeanMappingGem.mappingControl- Specified by:
setMappingcontrolin interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setMirror
public BeanMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:BeanMappingGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceBeanMappingGem.Builder<BeanMappingGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
build
public BeanMappingGem build()
Description copied from interface:BeanMappingGem.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 interfaceBeanMappingGem.Builder<BeanMappingGem>- Returns:
- the representation of the annotation
-
-