Package org.mapstruct.ap.internal.gem
Class IterableMappingGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.IterableMappingGem.BuilderImpl
-
- All Implemented Interfaces:
IterableMappingGem.Builder<IterableMappingGem>
- Enclosing class:
- IterableMappingGem
private static class IterableMappingGem.BuilderImpl extends java.lang.Object implements IterableMappingGem.Builder<IterableMappingGem>
-
-
Field Summary
Fields Modifier and Type Field Description private org.mapstruct.tools.gem.GemValue<java.lang.String>dateFormatprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>elementMappingControlprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>elementTargetTypeprivate javax.lang.model.element.AnnotationMirrormirrorprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nullValueMappingStrategyprivate org.mapstruct.tools.gem.GemValue<java.lang.String>numberFormatprivate 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>>qualifiedByName
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IterableMappingGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.IterableMappingGem.BuildersetDateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> dateFormat)Sets theGemValueforIterableMappingGem.dateFormatIterableMappingGem.BuildersetElementmappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> elementMappingControl)Sets theGemValueforIterableMappingGem.elementMappingControlIterableMappingGem.BuildersetElementtargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> elementTargetType)Sets theGemValueforIterableMappingGem.elementTargetTypeIterableMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorIterableMappingGem.BuildersetNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy)Sets theGemValueforIterableMappingGem.nullValueMappingStrategyIterableMappingGem.BuildersetNumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> numberFormat)Sets theGemValueforIterableMappingGem.numberFormatIterableMappingGem.BuildersetQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> qualifiedBy)Sets theGemValueforIterableMappingGem.qualifiedByIterableMappingGem.BuildersetQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> qualifiedByName)Sets theGemValueforIterableMappingGem.qualifiedByName
-
-
-
Field Detail
-
dateFormat
private org.mapstruct.tools.gem.GemValue<java.lang.String> dateFormat
-
numberFormat
private org.mapstruct.tools.gem.GemValue<java.lang.String> numberFormat
-
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
-
elementTargetType
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> elementTargetType
-
nullValueMappingStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy
-
elementMappingControl
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> elementMappingControl
-
mirror
private javax.lang.model.element.AnnotationMirror mirror
-
-
Method Detail
-
setDateformat
public IterableMappingGem.Builder setDateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> dateFormat)
Description copied from interface:IterableMappingGem.BuilderSets theGemValueforIterableMappingGem.dateFormat- Specified by:
setDateformatin interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setNumberformat
public IterableMappingGem.Builder setNumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> numberFormat)
Description copied from interface:IterableMappingGem.BuilderSets theGemValueforIterableMappingGem.numberFormat- Specified by:
setNumberformatin interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setQualifiedby
public IterableMappingGem.Builder setQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> qualifiedBy)
Description copied from interface:IterableMappingGem.BuilderSets theGemValueforIterableMappingGem.qualifiedBy- Specified by:
setQualifiedbyin interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setQualifiedbyname
public IterableMappingGem.Builder setQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> qualifiedByName)
Description copied from interface:IterableMappingGem.BuilderSets theGemValueforIterableMappingGem.qualifiedByName- Specified by:
setQualifiedbynamein interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setElementtargettype
public IterableMappingGem.Builder setElementtargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> elementTargetType)
Description copied from interface:IterableMappingGem.BuilderSets theGemValueforIterableMappingGem.elementTargetType- Specified by:
setElementtargettypein interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setNullvaluemappingstrategy
public IterableMappingGem.Builder setNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nullValueMappingStrategy)
Description copied from interface:IterableMappingGem.BuilderSets theGemValueforIterableMappingGem.nullValueMappingStrategy- Specified by:
setNullvaluemappingstrategyin interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setElementmappingcontrol
public IterableMappingGem.Builder setElementmappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> elementMappingControl)
Description copied from interface:IterableMappingGem.BuilderSets theGemValueforIterableMappingGem.elementMappingControl- Specified by:
setElementmappingcontrolin interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setMirror
public IterableMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:IterableMappingGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceIterableMappingGem.Builder<IterableMappingGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
build
public IterableMappingGem build()
Description copied from interface:IterableMappingGem.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 interfaceIterableMappingGem.Builder<IterableMappingGem>- Returns:
- the representation of the annotation
-
-