public static class PropertyMapping.PropertyMappingBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected MappingBuilderContext |
ctx |
protected Method |
method |
protected B |
myself |
protected B extends org.mapstruct.ap.internal.model.AbstractBaseBuilder<B> myself
protected MappingBuilderContext ctx
protected Method method
public PropertyMapping.PropertyMappingBuilder sourceReference(SourceReference sourceReference)
public PropertyMapping.PropertyMappingBuilder selectionParameters(SelectionParameters selectionParameters)
public PropertyMapping.PropertyMappingBuilder formattingParameters(FormattingParameters formattingParameters)
public PropertyMapping.PropertyMappingBuilder defaultValue(String defaultValue)
public PropertyMapping.PropertyMappingBuilder defaultJavaExpression(String defaultJavaExpression)
public PropertyMapping.PropertyMappingBuilder forgeMethodWithMappingReferences(MappingReferences mappingReferences)
public PropertyMapping.PropertyMappingBuilder forceUpdateMethod(boolean forceUpdateMethod)
forceUpdateMethod
- whether the mapping should force update method for forged mappingspublic PropertyMapping.PropertyMappingBuilder forgedNamedBased(boolean forgedNamedBased)
forgedNamedBased
- mapping is based on forgingpublic PropertyMapping.PropertyMappingBuilder options(DelegatingOptions options)
public PropertyMapping build()
public B mappingContext(MappingBuilderContext mappingContext)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.