Package org.mapstruct.ap.internal.gem
Interface BeanMappingGem.Builder<T>
-
- All Known Implementing Classes:
BeanMappingGem.BuilderImpl
- Enclosing class:
- BeanMappingGem
public static interface BeanMappingGem.Builder<T>A builder that can be implemented by the user to define custom logic e.g. in the build method, prior to creating the annotation gem.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tbuild()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> methodName)Sets theGemValueforBeanMappingGem.builderBeanMappingGem.BuildersetIgnorebydefault(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> methodName)Sets theGemValueforBeanMappingGem.ignoreByDefaultBeanMappingGem.BuildersetIgnoreunmappedsourceproperties(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforBeanMappingGem.ignoreUnmappedSourcePropertiesBeanMappingGem.BuildersetMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforBeanMappingGem.mappingControlBeanMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorBeanMappingGem.BuildersetNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforBeanMappingGem.nullValueCheckStrategyBeanMappingGem.BuildersetNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforBeanMappingGem.nullValueMappingStrategyBeanMappingGem.BuildersetNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforBeanMappingGem.nullValuePropertyMappingStrategyBeanMappingGem.BuildersetQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)Sets theGemValueforBeanMappingGem.qualifiedByBeanMappingGem.BuildersetQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforBeanMappingGem.qualifiedByNameBeanMappingGem.BuildersetResulttype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforBeanMappingGem.resultTypeBeanMappingGem.BuildersetSubclassexhaustivestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforBeanMappingGem.subclassExhaustiveStrategyBeanMappingGem.BuildersetUnmappedtargetpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforBeanMappingGem.unmappedTargetPolicy
-
-
-
Method Detail
-
setResulttype
BeanMappingGem.Builder setResulttype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforBeanMappingGem.resultType- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setQualifiedby
BeanMappingGem.Builder setQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)
Sets theGemValueforBeanMappingGem.qualifiedBy- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setQualifiedbyname
BeanMappingGem.Builder setQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforBeanMappingGem.qualifiedByName- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setNullvaluemappingstrategy
BeanMappingGem.Builder setNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforBeanMappingGem.nullValueMappingStrategy- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setNullvaluepropertymappingstrategy
BeanMappingGem.Builder setNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforBeanMappingGem.nullValuePropertyMappingStrategy- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setNullvaluecheckstrategy
BeanMappingGem.Builder setNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforBeanMappingGem.nullValueCheckStrategy- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setSubclassexhaustivestrategy
BeanMappingGem.Builder setSubclassexhaustivestrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforBeanMappingGem.subclassExhaustiveStrategy- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setIgnorebydefault
BeanMappingGem.Builder setIgnorebydefault(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> methodName)
Sets theGemValueforBeanMappingGem.ignoreByDefault- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setIgnoreunmappedsourceproperties
BeanMappingGem.Builder setIgnoreunmappedsourceproperties(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforBeanMappingGem.ignoreUnmappedSourceProperties- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setUnmappedtargetpolicy
BeanMappingGem.Builder setUnmappedtargetpolicy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforBeanMappingGem.unmappedTargetPolicy- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setBuilder
BeanMappingGem.Builder setBuilder(org.mapstruct.tools.gem.GemValue<BuilderGem> methodName)
Sets theGemValueforBeanMappingGem.builder- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setMappingcontrol
BeanMappingGem.Builder setMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforBeanMappingGem.mappingControl- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
setMirror
BeanMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
BeanMappingGem.Builderfor this gem, representingBeanMappingGem
-
build
T build()
The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.- Returns:
- the representation of the annotation
-
-