A - B - public class ClassMapBuilderForMaps<A,B> extends ClassMapBuilder<A,B>
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassMapBuilderForMaps.Factory
Factory produces instances of ClassMapBuilderForMaps
|
| Modifier | Constructor and Description |
|---|---|
protected |
ClassMapBuilderForMaps(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper... defaults) |
| Modifier and Type | Method and Description |
|---|---|
ClassMapBuilderForMaps<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.
|
FieldMapBuilder<A,B> |
fieldMap(String fieldNameA,
String fieldNameB,
boolean byDefault)
Create a fieldMap for the particular field mapping
|
protected String |
getParentExpression(String epxression)
Gets the parent expression from this nested expression
|
protected boolean |
isATypeBean() |
protected boolean |
isSpecialCaseType(Type<?> type)
Test whether the provided type is the special case type for this Builder
(as in, not the standard Java Bean type)
|
protected Property |
resolveCustomProperty(String expr,
Type<?> propertyType)
Resolves a custom property for this builder using the provided expression
|
protected Property |
resolveProperty(Type rawType,
String expr)
Resolves a property for the particular type, based on the provided property expression
|
protected ClassMapBuilderForMaps<A,B> |
self() |
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, getAType, getBType, getDefaultFieldMappers, getMappedFields, getMappedPropertiesForTypeA, getMappedPropertiesForTypeB, getPropertiesForTypeA, getPropertiesForTypeB, getPropertyExpressions, getPropertyResolver, isNestedPropertyExpression, map, map, map, map, mapNulls, mapNullsInReverse, register, resolvePropertyForA, resolvePropertyForB, toClassMap, toString, use, useprotected ClassMapBuilderForMaps(Type<A> aType, Type<B> bType, MapperFactory mapperFactory, PropertyResolverStrategy propertyResolver, DefaultFieldMapper... defaults)
aType - bType - propertyResolver - defaults - protected ClassMapBuilderForMaps<A,B> self()
protected boolean isATypeBean()
protected boolean isSpecialCaseType(Type<?> type)
type - public ClassMapBuilderForMaps<A,B> byDefault(MappingDirection direction, DefaultFieldMapper... withDefaults)
byDefault in class ClassMapBuilder<A,B>withDefaults - 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.direction - the mapping direction to be appliedprotected String getParentExpression(String epxression)
epxression - public FieldMapBuilder<A,B> fieldMap(String fieldNameA, String fieldNameB, boolean byDefault)
ClassMapBuilderfieldMap in class ClassMapBuilder<A,B>fieldNameA - the name of the field in type AfieldNameB - the name of the field in type BbyDefault - whether the field mapping has been provided by defaultprotected Property resolveProperty(Type rawType, String expr)
resolveProperty in class ClassMapBuilder<A,B>rawType - the type to resolveexpr - the property expression to resolveCopyright © 2016 Glasnost. All rights reserved.