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.Writable.Context| Constructor and Description |
|---|
PropertyMapping(String sourceBeanName,
String sourceName,
String sourceAccessorName,
Type sourceType,
String targetName,
String targetAccessorName,
Type targetType,
MethodReference mappingMethod,
TypeConversion conversion) |
| Modifier and Type | Method and Description |
|---|---|
TypeConversion |
getConversion() |
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
MethodReference |
getMappingMethod() |
String |
getSourceAccessorName() |
String |
getSourceBeanName() |
String |
getSourceName() |
Type |
getSourceType() |
String |
getTargetAccessorName() |
String |
getTargetName() |
String |
getTargetReadAccessorName() |
Type |
getTargetType() |
boolean |
isTargetAccessorSetter()
Whether the target accessor is a setter method or not.
|
String |
toString() |
writegetTemplateNamepublic PropertyMapping(String sourceBeanName, String sourceName, String sourceAccessorName, Type sourceType, String targetName, String targetAccessorName, Type targetType, MethodReference mappingMethod, TypeConversion conversion)
public String getSourceBeanName()
public String getSourceName()
public String getSourceAccessorName()
public Type getSourceType()
public String getTargetName()
public String getTargetAccessorName()
public Type getTargetType()
public MethodReference getMappingMethod()
public TypeConversion getConversion()
public boolean isTargetAccessorSetter()
true if the target accessor is a setter, false otherwisepublic String getTargetReadAccessorName()
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-2014. All Rights Reserved.