Package org.mapstruct.ap.internal.model
Class PropertyMapping
java.lang.Object
org.mapstruct.ap.internal.writer.FreeMarkerWritable
org.mapstruct.ap.internal.model.common.ModelElement
org.mapstruct.ap.internal.model.PropertyMapping
- All Implemented Interfaces:
Writable
Represents the mapping between a source and target property, e.g. from
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.- Author:
- Gunnar Morling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Method Summary
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Method Details
-
getName
- Returns:
- the name of this mapping (property name on the target side)
-
getSourcePropertyName
-
getSourceBeanName
-
getTargetWriteAccessorName
-
getTargetReadAccessorName
-
getTargetType
-
getAssignment
-
getDefaultValueAssignment
-
isConstructorMapping
public boolean isConstructorMapping() -
getImportTypes
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypesin classModelElement- Returns:
- A set with type referenced by this model element. Must not be
null.
-
getDependsOn
-
hashCode
public int hashCode() -
equals
-
toString
-