Package org.mapstruct.ap.internal.model
Class PropertyMapping.PropertyMappingBuilder
- java.lang.Object
-
- org.mapstruct.ap.internal.model.PropertyMapping.PropertyMappingBuilder
-
- Enclosing class:
- PropertyMapping
public static class PropertyMapping.PropertyMappingBuilder extends Object
-
-
Method Summary
-
-
-
Field Detail
-
myself
protected B extends org.mapstruct.ap.internal.model.AbstractBaseBuilder<B> myself
-
ctx
protected MappingBuilderContext ctx
-
method
protected Method method
-
-
Method Detail
-
sourceReference
public PropertyMapping.PropertyMappingBuilder sourceReference(SourceReference sourceReference)
-
selectionParameters
public PropertyMapping.PropertyMappingBuilder selectionParameters(SelectionParameters selectionParameters)
-
formattingParameters
public PropertyMapping.PropertyMappingBuilder formattingParameters(FormattingParameters formattingParameters)
-
defaultValue
public PropertyMapping.PropertyMappingBuilder defaultValue(String defaultValue)
-
defaultJavaExpression
public PropertyMapping.PropertyMappingBuilder defaultJavaExpression(String defaultJavaExpression)
-
conditionJavaExpression
public PropertyMapping.PropertyMappingBuilder conditionJavaExpression(String conditionJavaExpression)
-
forgeMethodWithMappingReferences
public PropertyMapping.PropertyMappingBuilder forgeMethodWithMappingReferences(MappingReferences mappingReferences)
-
forceUpdateMethod
public PropertyMapping.PropertyMappingBuilder forceUpdateMethod(boolean forceUpdateMethod)
Force the created mapping to use update methods when forging a method.- Parameters:
forceUpdateMethod
- whether the mapping should force update method for forged mappings- Returns:
- the builder for chaining
-
forgedNamedBased
public PropertyMapping.PropertyMappingBuilder forgedNamedBased(boolean forgedNamedBased)
- Parameters:
forgedNamedBased
- mapping is based on forging- Returns:
- the builder for chaining
-
options
public PropertyMapping.PropertyMappingBuilder options(DelegatingOptions options)
-
build
public PropertyMapping build()
-
mappingContext
public B mappingContext(MappingBuilderContext mappingContext)
-
-