ma.glasnost.orika.metadata
Class CaseInsensitiveClassMapBuilder<A,B>

java.lang.Object
  extended by ma.glasnost.orika.metadata.ClassMapBuilder<A,B>
      extended by ma.glasnost.orika.metadata.CaseInsensitiveClassMapBuilder<A,B>
Type Parameters:
A -
B -
All Implemented Interfaces:
MappedTypePair<A,B>

public class CaseInsensitiveClassMapBuilder<A,B>
extends ClassMapBuilder<A,B>

CaseInsensitiveClassMapBuilder is an extension of ClassMapBuilder which performs case-insensitive matching of property names in the 'byDefault()' method.

Author:
mattdeboer

Nested Class Summary
static class CaseInsensitiveClassMapBuilder.Factory
           
 
Constructor Summary
protected CaseInsensitiveClassMapBuilder(Type<A> aType, Type<B> bType, MapperFactory mapperFactory, PropertyResolverStrategy propertyResolver, DefaultFieldMapper[] defaults)
           
 
Method Summary
 ClassMapBuilder<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.
 
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, fieldMap, getAType, getBType, getDefaultFieldMappers, getMappedFields, getMappedPropertiesForTypeA, getMappedPropertiesForTypeB, getPropertiesForTypeA, getPropertiesForTypeB, getPropertyResolver, isNestedPropertyExpression, map, map, map, map, mapNulls, mapNullsInReverse, register, resolveProperty, 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

CaseInsensitiveClassMapBuilder

protected CaseInsensitiveClassMapBuilder(Type<A> aType,
                                         Type<B> bType,
                                         MapperFactory mapperFactory,
                                         PropertyResolverStrategy propertyResolver,
                                         DefaultFieldMapper[] defaults)
Parameters:
aType -
bType -
mapperFactory -
propertyResolver -
defaults -
Method Detail

byDefault

public ClassMapBuilder<A,B> byDefault(DefaultFieldMapper... withDefaults)
Description copied from class: ClassMapBuilder
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.

Overrides:
byDefault in class ClassMapBuilder<A,B>
Parameters:
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.
Returns:
this ClassMapBuilder instance


Copyright © 2013 Glasnost. All Rights Reserved.