public class BeanMappingMethod extends NormalTypeMappingMethod
MappingMethod
implemented by a Mapper
class which maps one bean type to another, optionally
configured by one or more PropertyMapping
s.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
Type s 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, isOverridden
getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toString
getTemplateName, getTemplateNameForClass, write
public 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()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class NormalTypeMappingMethod
null
.public List<Parameter> getSourceParametersExcludingPrimitives()
public int hashCode()
hashCode
in class NormalTypeMappingMethod
public boolean equals(Object obj)
equals
in class NormalTypeMappingMethod
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.