public class MappingResolverImpl extends Object implements MappingBuilderContext.MappingResolver
MappingBuilderContext.MappingResolver. The class has been split into an interface an
implementation for the sake of avoiding package dependencies. Specifically, this implementation refers to classes
which should not be exposed to the model package.| Constructor and Description |
|---|
MappingResolverImpl(Messager messager,
Elements elementUtils,
Types typeUtils,
TypeFactory typeFactory,
List<SourceMethod> sourceModel,
List<MapperReference> mapperReferences) |
| Modifier and Type | Method and Description |
|---|---|
Assignment |
getTargetAssignment(Method mappingMethod,
String mappedElement,
Type sourceType,
Type targetType,
String targetPropertyName,
String dateFormat,
List<TypeMirror> qualifiers,
String sourceReference)
returns a parameter assignment
|
Set<VirtualMappingMethod> |
getUsedVirtualMappings() |
public MappingResolverImpl(Messager messager, Elements elementUtils, Types typeUtils, TypeFactory typeFactory, List<SourceMethod> sourceModel, List<MapperReference> mapperReferences)
public Assignment getTargetAssignment(Method mappingMethod, String mappedElement, Type sourceType, Type targetType, String targetPropertyName, String dateFormat, List<TypeMirror> qualifiers, String sourceReference)
getTargetAssignment in interface MappingBuilderContext.MappingResolvermappingMethod - target mapping methodmappedElement - used for error messagessourceType - parameter to matchtargetType - return type to matchtargetPropertyName - name of the target propertydateFormat - used for formatting dates in build in methods that need context informationqualifiers - used for further select the appropriate mapping method based on class and namesourceReference - call to source type as stringpublic Set<VirtualMappingMethod> getUsedVirtualMappings()
getUsedVirtualMappings in interface MappingBuilderContext.MappingResolverCopyright © 2012-2014. All Rights Reserved.