public class PropertyMapping extends AbstractModelElement
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.ModelElement.Context| Constructor and Description |
|---|
PropertyMapping(String sourceBeanName,
String sourceName,
String sourceAccessorName,
Type sourceType,
String targetName,
String targetAccessorName,
Type targetType,
MappingMethodReference 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. |
MappingMethodReference |
getMappingMethod() |
String |
getSourceAccessorName() |
String |
getSourceBeanName() |
String |
getSourceName() |
Type |
getSourceType() |
String |
getTargetAccessorName() |
String |
getTargetName() |
Type |
getTargetType() |
String |
toString() |
writepublic PropertyMapping(String sourceBeanName, String sourceName, String sourceAccessorName, Type sourceType, String targetName, String targetAccessorName, Type targetType, MappingMethodReference 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 MappingMethodReference getMappingMethod()
public TypeConversion getConversion()
public Set<Type> getImportTypes()
ModelElementTypes referenced by this model
element for which an import statement needs to be declared.null.Copyright © 2012-2013. All Rights Reserved.