public class BeanMappingMethod extends MappingMethod
MappingMethod
implemented by a Mapper
class which maps one bean type to another, optionally
configured by one or more PropertyMapping
s.Modifier and Type | Class and Description |
---|---|
static class |
BeanMappingMethod.Builder |
Writable.Context
Modifier and Type | Method and Description |
---|---|
List<PropertyMapping> |
getConstantMappings() |
MethodReference |
getFactoryMethod() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
Set<LocalVariable> |
getLocalVariablesToCreate() |
Set<NestedLocalVariableAssignment> |
getNestedLocalVariableAssignments() |
List<PropertyMapping> |
getPropertyMappings() |
Map<String,List<PropertyMapping>> |
getPropertyMappingsByParameter() |
Type |
getResultType() |
List<Parameter> |
getSourceParametersExcludingPrimitives() |
List<Parameter> |
getSourcePrimitiveParameters() |
boolean |
isMapNullToDefault() |
getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toString
write
getTemplateName, getTemplateNameForClass
public List<PropertyMapping> getPropertyMappings()
public List<PropertyMapping> getConstantMappings()
public Map<String,List<PropertyMapping>> getPropertyMappingsByParameter()
public Set<LocalVariable> getLocalVariablesToCreate()
public Set<NestedLocalVariableAssignment> getNestedLocalVariableAssignments()
public boolean isMapNullToDefault()
public Type getResultType()
getResultType
in class MappingMethod
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class MappingMethod
null
.public List<Parameter> getSourceParametersExcludingPrimitives()
public MethodReference getFactoryMethod()
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.