
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
Types 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, writepublic 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()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class ModelElementnull.Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.