Package org.mapstruct.ap.internal.gem
Interface MapMappingGem.Builder<T>
-
- All Known Implementing Classes:
MapMappingGem.BuilderImpl
- Enclosing class:
- MapMappingGem
public static interface MapMappingGem.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.MapMappingGem.BuildersetKeydateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMapMappingGem.keyDateFormatMapMappingGem.BuildersetKeymappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforMapMappingGem.keyMappingControlMapMappingGem.BuildersetKeynumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMapMappingGem.keyNumberFormatMapMappingGem.BuildersetKeyqualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)Sets theGemValueforMapMappingGem.keyQualifiedByMapMappingGem.BuildersetKeyqualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforMapMappingGem.keyQualifiedByNameMapMappingGem.BuildersetKeytargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforMapMappingGem.keyTargetTypeMapMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorMapMappingGem.BuildersetNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMapMappingGem.nullValueMappingStrategyMapMappingGem.BuildersetValuedateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMapMappingGem.valueDateFormatMapMappingGem.BuildersetValuemappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforMapMappingGem.valueMappingControlMapMappingGem.BuildersetValuenumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMapMappingGem.valueNumberFormatMapMappingGem.BuildersetValuequalifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)Sets theGemValueforMapMappingGem.valueQualifiedByMapMappingGem.BuildersetValuequalifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforMapMappingGem.valueQualifiedByNameMapMappingGem.BuildersetValuetargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforMapMappingGem.valueTargetType
-
-
-
Method Detail
-
setKeydateformat
MapMappingGem.Builder setKeydateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMapMappingGem.keyDateFormat- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setValuedateformat
MapMappingGem.Builder setValuedateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMapMappingGem.valueDateFormat- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setKeynumberformat
MapMappingGem.Builder setKeynumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMapMappingGem.keyNumberFormat- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setValuenumberformat
MapMappingGem.Builder setValuenumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMapMappingGem.valueNumberFormat- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setKeyqualifiedby
MapMappingGem.Builder setKeyqualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)
Sets theGemValueforMapMappingGem.keyQualifiedBy- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setKeyqualifiedbyname
MapMappingGem.Builder setKeyqualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforMapMappingGem.keyQualifiedByName- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setValuequalifiedby
MapMappingGem.Builder setValuequalifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)
Sets theGemValueforMapMappingGem.valueQualifiedBy- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setValuequalifiedbyname
MapMappingGem.Builder setValuequalifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforMapMappingGem.valueQualifiedByName- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setKeytargettype
MapMappingGem.Builder setKeytargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforMapMappingGem.keyTargetType- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setValuetargettype
MapMappingGem.Builder setValuetargettype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforMapMappingGem.valueTargetType- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setNullvaluemappingstrategy
MapMappingGem.Builder setNullvaluemappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMapMappingGem.nullValueMappingStrategy- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setKeymappingcontrol
MapMappingGem.Builder setKeymappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforMapMappingGem.keyMappingControl- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setValuemappingcontrol
MapMappingGem.Builder setValuemappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforMapMappingGem.valueMappingControl- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
setMirror
MapMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
MapMappingGem.Builderfor this gem, representingMapMappingGem
-
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
-
-