
public class BeanMappingMethod extends NormalTypeMappingMethod
MappingMethod implemented by a Mapper class which maps one bean type to another, optionally
configured by one or more PropertyMappings.| Modifier and Type | Class and Description |
|---|---|
static class |
BeanMappingMethod.Builder |
Writable.Context| Modifier and Type | Method and Description |
|---|---|
List<PropertyMapping> |
constructorPropertyMappingsByParameter(Parameter parameter) |
boolean |
equals(Object obj) |
List<PropertyMapping> |
getConstantMappings() |
List<PropertyMapping> |
getConstructorConstantMappings() |
MethodReference |
getFinalizerMethod() |
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
Type |
getReturnTypeToConstruct() |
List<Parameter> |
getSourceParametersExcludingPrimitives() |
List<Parameter> |
getSourcePrimitiveParameters() |
boolean |
hasConstructorMappings() |
int |
hashCode() |
List<PropertyMapping> |
propertyMappingsByParameter(Parameter parameter) |
getFactoryMethod, isMapNullToDefault, isOverriddengetAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toStringgetTemplateName, getTemplateNameForClass, writepublic List<PropertyMapping> getConstantMappings()
public List<PropertyMapping> getConstructorConstantMappings()
public List<PropertyMapping> propertyMappingsByParameter(Parameter parameter)
public List<PropertyMapping> constructorPropertyMappingsByParameter(Parameter parameter)
public Type getReturnTypeToConstruct()
public boolean hasConstructorMappings()
public MethodReference getFinalizerMethod()
public Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class NormalTypeMappingMethodnull.public List<Parameter> getSourceParametersExcludingPrimitives()
public int hashCode()
hashCode in class NormalTypeMappingMethodpublic boolean equals(Object obj)
equals in class NormalTypeMappingMethodCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.