|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.metadata.ClassMapBuilder<A,B>
ma.glasnost.orika.metadata.ClassMapBuilderForMaps<A,B>
A - B - public class ClassMapBuilderForMaps<A,B>
ClassMapBuilderForMaps is a custom ClassMapBuilder instance which is used for mapping standard JavaBeans to Map instances.
| Nested Class Summary | |
|---|---|
static class |
ClassMapBuilderForMaps.Factory
|
| Constructor Summary | |
|---|---|
protected |
ClassMapBuilderForMaps(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper... defaults)
|
| Method Summary | |
|---|---|
ClassMapBuilderForMaps<A,B> |
byDefault(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)
|
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)
|
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()
|
| Methods inherited from class ma.glasnost.orika.metadata.ClassMapBuilder |
|---|
addFieldMap, byDefault, byDefault, constructorA, constructorB, customize, customize, describeClassMap, exclude, 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, getPropertyResolver, isNestedPropertyExpression, map, map, map, map, mapNulls, mapNullsInReverse, register, resolvePropertyForA, resolvePropertyForB, toClassMap, toString, use, use |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ClassMapBuilderForMaps(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper... defaults)
aType - bType - propertyResolver - defaults - | Method Detail |
|---|
protected ClassMapBuilderForMaps<A,B> self()
protected boolean isATypeBean()
protected boolean isSpecialCaseType(Type<?> type)
type -
public ClassMapBuilderForMaps<A,B> byDefault(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.
protected String getParentExpression(String epxression)
public FieldMapBuilder<A,B> fieldMap(String fieldNameA,
String fieldNameB,
boolean byDefault)
ClassMapBuilder
fieldMap 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 default
protected Property resolveProperty(Type rawType,
String expr)
resolveProperty in class ClassMapBuilder<A,B>rawType - the type to resolveexpr - the property expression to resolve
protected Property resolveCustomProperty(String expr,
Type<?> propertyType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||