Package org.mapstruct.ap.internal.gem
Interface MappingGem.Builder<T>
-
- All Known Implementing Classes:
MappingGem.BuilderImpl
- Enclosing class:
- MappingGem
public static interface MappingGem.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.MappingGem.BuildersetConditionexpression(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.conditionExpressionMappingGem.BuildersetConditionqualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)Sets theGemValueforMappingGem.conditionQualifiedByMappingGem.BuildersetConditionqualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforMappingGem.conditionQualifiedByNameMappingGem.BuildersetConstant(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.constantMappingGem.BuildersetDateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.dateFormatMappingGem.BuildersetDefaultexpression(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.defaultExpressionMappingGem.BuildersetDefaultvalue(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.defaultValueMappingGem.BuildersetDependson(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforMappingGem.dependsOnMappingGem.BuildersetExpression(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.expressionMappingGem.BuildersetIgnore(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> methodName)Sets theGemValueforMappingGem.ignoreMappingGem.BuildersetMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforMappingGem.mappingControlMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorMappingGem.BuildersetNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.nullValueCheckStrategyMappingGem.BuildersetNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.nullValuePropertyMappingStrategyMappingGem.BuildersetNumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.numberFormatMappingGem.BuildersetQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)Sets theGemValueforMappingGem.qualifiedByMappingGem.BuildersetQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)Sets theGemValueforMappingGem.qualifiedByNameMappingGem.BuildersetResulttype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforMappingGem.resultTypeMappingGem.BuildersetSource(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.sourceMappingGem.BuildersetTarget(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforMappingGem.target
-
-
-
Method Detail
-
setTarget
MappingGem.Builder setTarget(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.target- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setSource
MappingGem.Builder setSource(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.source- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setDateformat
MappingGem.Builder setDateformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.dateFormat- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setNumberformat
MappingGem.Builder setNumberformat(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.numberFormat- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setConstant
MappingGem.Builder setConstant(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.constant- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setExpression
MappingGem.Builder setExpression(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.expression- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setDefaultexpression
MappingGem.Builder setDefaultexpression(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.defaultExpression- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setIgnore
MappingGem.Builder setIgnore(org.mapstruct.tools.gem.GemValue<java.lang.Boolean> methodName)
Sets theGemValueforMappingGem.ignore- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setQualifiedby
MappingGem.Builder setQualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)
Sets theGemValueforMappingGem.qualifiedBy- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setQualifiedbyname
MappingGem.Builder setQualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforMappingGem.qualifiedByName- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setConditionqualifiedby
MappingGem.Builder setConditionqualifiedby(org.mapstruct.tools.gem.GemValue<java.util.List<javax.lang.model.type.TypeMirror>> methodName)
Sets theGemValueforMappingGem.conditionQualifiedBy- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setConditionqualifiedbyname
MappingGem.Builder setConditionqualifiedbyname(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforMappingGem.conditionQualifiedByName- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setConditionexpression
MappingGem.Builder setConditionexpression(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.conditionExpression- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setResulttype
MappingGem.Builder setResulttype(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforMappingGem.resultType- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setDependson
MappingGem.Builder setDependson(org.mapstruct.tools.gem.GemValue<java.util.List<java.lang.String>> methodName)
Sets theGemValueforMappingGem.dependsOn- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setDefaultvalue
MappingGem.Builder setDefaultvalue(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.defaultValue- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setNullvaluecheckstrategy
MappingGem.Builder setNullvaluecheckstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.nullValueCheckStrategy- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setNullvaluepropertymappingstrategy
MappingGem.Builder setNullvaluepropertymappingstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforMappingGem.nullValuePropertyMappingStrategy- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setMappingcontrol
MappingGem.Builder setMappingcontrol(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforMappingGem.mappingControl- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
setMirror
MappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
MappingGem.Builderfor this gem, representingMappingGem
-
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
-
-