public class PropertyMapping extends ModelElement
String Source#foo
to
int Target#bar
. Name and type of source and target property can differ. If they have different types, the
mapping must either refer to a mapping method or a conversion.Modifier and Type | Class and Description |
---|---|
static class |
PropertyMapping.ConstantMappingBuilder |
static class |
PropertyMapping.JavaExpressionMappingBuilder |
static class |
PropertyMapping.PropertyMappingBuilder |
Writable.Context
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Assignment |
getAssignment() |
Assignment |
getDefaultValueAssignment() |
Set<String> |
getDependsOn() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getName() |
String |
getSourceBeanName() |
String |
getTargetReadAccessorName() |
Type |
getTargetType() |
String |
getTargetWriteAccessorName() |
int |
hashCode() |
boolean |
isConstructorMapping() |
String |
toString() |
getTemplateName, getTemplateNameForClass, write
public String getName()
public String getSourceBeanName()
public String getTargetWriteAccessorName()
public String getTargetReadAccessorName()
public Type getTargetType()
public Assignment getAssignment()
public Assignment getDefaultValueAssignment()
public boolean isConstructorMapping()
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class ModelElement
null
.Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.