Package org.mapstruct.ap.internal.gem
Interface IterableMappingGem.Builder<T>
-
- All Known Implementing Classes:
IterableMappingGem.BuilderImpl
- Enclosing class:
- IterableMappingGem
public static interface IterableMappingGem.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.IterableMappingGem.BuildersetDateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforIterableMappingGem.dateFormatIterableMappingGem.BuildersetElementmappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforIterableMappingGem.elementMappingControlIterableMappingGem.BuildersetElementtargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforIterableMappingGem.elementTargetTypeIterableMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorIterableMappingGem.BuildersetNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforIterableMappingGem.nullValueMappingStrategyIterableMappingGem.BuildersetNumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforIterableMappingGem.numberFormatIterableMappingGem.BuildersetQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)Sets theGemValueforIterableMappingGem.qualifiedByIterableMappingGem.BuildersetQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforIterableMappingGem.qualifiedByName
-
-
-
Method Detail
-
setDateformat
IterableMappingGem.Builder setDateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforIterableMappingGem.dateFormat- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setNumberformat
IterableMappingGem.Builder setNumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforIterableMappingGem.numberFormat- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setQualifiedby
IterableMappingGem.Builder setQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)
Sets theGemValueforIterableMappingGem.qualifiedBy- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setQualifiedbyname
IterableMappingGem.Builder setQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforIterableMappingGem.qualifiedByName- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setElementtargettype
IterableMappingGem.Builder setElementtargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforIterableMappingGem.elementTargetType- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setNullvaluemappingstrategy
IterableMappingGem.Builder setNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforIterableMappingGem.nullValueMappingStrategy- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setElementmappingcontrol
IterableMappingGem.Builder setElementmappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforIterableMappingGem.elementMappingControl- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
setMirror
IterableMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
IterableMappingGem.Builderfor this gem, representingIterableMappingGem
-
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
-
-