A - B - public class ScoringClassMapBuilder<A,B> extends ClassMapBuilder<A,B>
| Modifier and Type | Class and Description |
|---|---|
static class |
ScoringClassMapBuilder.Factory |
static class |
ScoringClassMapBuilder.FieldMatchScore
FieldMatchScore is used to score the match of a pair of property expressions
|
static class |
ScoringClassMapBuilder.PropertyMatchingWeights
PropertyMatchingWeights is a class used to describe how different
matching scenarios should be weighted when computing a match
score for a set of properties.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ScoringClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults,
ScoringClassMapBuilder.PropertyMatchingWeights matchingWeights)
Constructs a new instance of ScoringClassMapBuilder, using the provided PropertyMatchingWeights
to adjust the overall scoring of how properties are matched.
|
| Modifier and Type | Method and Description |
|---|---|
ClassMapBuilder<A,B> |
byDefault(MappingDirection direction,
DefaultFieldMapper... withDefaults)
Configures this class-map builder to employ the default property mapping
behavior to any properties that have not already been mapped or excluded;
if any DefaultFieldMapper instances are passed, they will be used
(instead of those configured on the builder) to attempt a property name
match if a direct match is not found.
|
addFieldMap, byDefault, byDefault, byDefault, constructorA, constructorB, customize, customize, describeClassMap, exclude, favorExtension, field, field, field, field, field, field, field, fieldAToB, fieldBToA, fieldMap, fieldMap, fieldMap, fieldMap, fieldMap, fieldMap, fieldMap, fieldMap, fieldMap, fieldMap, getAType, getBType, getDefaultFieldMappers, getMappedFields, getMappedPropertiesForTypeA, getMappedPropertiesForTypeB, getPropertiesForTypeA, getPropertiesForTypeB, getPropertyExpressions, getPropertyResolver, isNestedPropertyExpression, map, map, map, map, mapNulls, mapNullsInReverse, register, resolveProperty, resolvePropertyForA, resolvePropertyForB, toClassMap, toString, use, useprotected ScoringClassMapBuilder(Type<A> aType, Type<B> bType, MapperFactory mapperFactory, PropertyResolverStrategy propertyResolver, DefaultFieldMapper[] defaults, ScoringClassMapBuilder.PropertyMatchingWeights matchingWeights)
aType - bType - propertyResolver - defaults - public ClassMapBuilder<A,B> byDefault(MappingDirection direction, DefaultFieldMapper... withDefaults)
ClassMapBuilderbyDefault in class ClassMapBuilder<A,B>direction - the mapping direction to be appliedwithDefaults - zero or more DefaultFieldMapper instances to apply during the
default mapping; if none are supplied, the configured
DefaultFieldMappers for the builder (if any) should be used.Copyright © 2016 Glasnost. All rights reserved.