public class MappingBuilderContext extends Object
The context provides:
Modifier and Type | Class and Description |
---|---|
static interface |
MappingBuilderContext.MappingResolver
Resolves the most suitable way for mapping an element (property, iterable element etc.) from source to target.
|
Constructor and Description |
---|
MappingBuilderContext(TypeFactory typeFactory,
Elements elementUtils,
Types typeUtils,
FormattingMessager messager,
Options options,
MappingBuilderContext.MappingResolver mappingResolver,
TypeElement mapper,
List<SourceMethod> sourceModel,
List<MapperReference> mapperReferences) |
Modifier and Type | Method and Description |
---|---|
Elements |
getElementUtils() |
MappingMethod |
getExistingMappingMethod(MappingMethod newMappingMethod) |
List<MapperReference> |
getMapperReferences() |
TypeElement |
getMapperTypeElement() |
MappingBuilderContext.MappingResolver |
getMappingResolver() |
List<MappingMethod> |
getMappingsToGenerate() |
FormattingMessager |
getMessager() |
List<String> |
getNamesOfMappingsToGenerate() |
Options |
getOptions() |
List<SourceMethod> |
getSourceModel() |
TypeFactory |
getTypeFactory() |
Types |
getTypeUtils() |
Set<VirtualMappingMethod> |
getUsedVirtualMappings() |
public MappingBuilderContext(TypeFactory typeFactory, Elements elementUtils, Types typeUtils, FormattingMessager messager, Options options, MappingBuilderContext.MappingResolver mappingResolver, TypeElement mapper, List<SourceMethod> sourceModel, List<MapperReference> mapperReferences)
public TypeElement getMapperTypeElement()
public List<SourceMethod> getSourceModel()
public List<MapperReference> getMapperReferences()
public TypeFactory getTypeFactory()
public Elements getElementUtils()
public Types getTypeUtils()
public FormattingMessager getMessager()
public Options getOptions()
public MappingBuilderContext.MappingResolver getMappingResolver()
public List<MappingMethod> getMappingsToGenerate()
public MappingMethod getExistingMappingMethod(MappingMethod newMappingMethod)
public Set<VirtualMappingMethod> getUsedVirtualMappings()
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.