| Package | Description |
|---|---|
| ma.glasnost.orika | |
| ma.glasnost.orika.impl | |
| ma.glasnost.orika.metadata |
| Modifier and Type | Method and Description |
|---|---|
<A,B> ClassMapBuilder<A,B> |
MapperFactory.classMap(Class<A> aType,
Class<B> bType)
Constructs a new ClassMapBuilder instance initialized with the provided
types which can be used to configure/customize the mapping between the
two types.
The returned ClassMapBuilder instance, after being fully configured, should finally be registered with the factory using the registerClassMap method. |
<A,B> ClassMapBuilder<A,B> |
MapperFactory.classMap(Class<A> aType,
Type<B> bType)
Constructs a new ClassMapBuilder instance initialized with the provided
types which can be used to configure/customize the mapping between the
two types.
The returned ClassMapBuilder instance, after being fully configured, should finally be registered with the factory using the registerClassMap method. |
<A,B> ClassMapBuilder<A,B> |
MapperFactory.classMap(Type<A> aType,
Class<B> bType)
Constructs a new ClassMapBuilder instance initialized with the provided
types which can be used to configure/customize the mapping between the
two types.
The returned ClassMapBuilder instance, after being fully configured, should finally be registered with the factory using the registerClassMap method. |
<A,B> ClassMapBuilder<A,B> |
MapperFactory.classMap(Type<A> aType,
Type<B> bType)
Constructs a new ClassMapBuilder instance initialized with the provided
types which can be used to configure/customize the mapping between the
two types.
The returned ClassMapBuilder instance, after being fully configured, should finally be registered with the factory using the registerClassMap method. |
| Modifier and Type | Method and Description |
|---|---|
<A,B> void |
MapperFactory.registerClassMap(ClassMapBuilder<A,B> builder)
Registers the ClassMap configured by the specified ClassMapBuilder; it
will be used to configure an appropriate mapping.
|
| Modifier and Type | Method and Description |
|---|---|
<A,B> ClassMapBuilder<A,B> |
DefaultMapperFactory.classMap(Class<A> aType,
Class<B> bType) |
<A,B> ClassMapBuilder<A,B> |
DefaultMapperFactory.classMap(Class<A> aType,
Type<B> bType) |
<A,B> ClassMapBuilder<A,B> |
DefaultMapperFactory.classMap(Type<A> aType,
Class<B> bType) |
<A,B> ClassMapBuilder<A,B> |
DefaultMapperFactory.classMap(Type<A> aType,
Type<B> bType) |
| Modifier and Type | Method and Description |
|---|---|
<A,B> void |
DefaultMapperFactory.registerClassMap(ClassMapBuilder<A,B> builder) |
| Modifier and Type | Class and Description |
|---|---|
class |
CaseInsensitiveClassMapBuilder<A,B>
CaseInsensitiveClassMapBuilder is an extension of ClassMapBuilder which performs
case-insensitive matching of property names in the 'byDefault()' method.
|
class |
ClassMapBuilderForArrays<A,B>
ClassMapBuilderForMaps is a custom ClassMapBuilder instance which is
used for mapping standard JavaBeans to Map instances.
|
class |
ClassMapBuilderForLists<A,B>
ClassMapBuilderForMaps is a custom ClassMapBuilder instance which is
used for mapping standard JavaBeans to Map instances.
|
class |
ClassMapBuilderForMaps<A,B>
ClassMapBuilderForMaps is a custom ClassMapBuilder instance which is
used for mapping standard JavaBeans to Map instances.
|
class |
ScoringClassMapBuilder<A,B>
ScoringClassMapBuilder is an extension of the basic ClassMapBuilder that
attempts to compute a best-fit matching of all properties (at every level
of nesting) of one type to another, based on various metrics used to measure
a given property match.
Since this builder generates mappings based on scoring matches, it cannot always guess the correct mappings; be sure to test and double-check the mappings generated to assure they match expectations. Note: levenshtein distance implementation is pulled from code found in Apache Commons Lang org.apache.commons.lang.StringUtils, which is based on the implementation provided by Chas Emerick http://www.merriampark.com/ldjava.htm |
| Modifier and Type | Method and Description |
|---|---|
ClassMapBuilder<A,B> |
FieldMapBuilder.add()
Adds the FieldMap configured by this builder to it's containing
ClassMapBuilder; use this method to complete specifications on a given
field mapping and return to the containing builder.
|
ClassMapBuilder<A,B> |
ClassMapBuilder.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.
|
ClassMapBuilder<A,B> |
ScoringClassMapBuilder.byDefault(MappingDirection direction,
DefaultFieldMapper... withDefaults) |
ClassMapBuilder<A,B> |
ClassMapBuilder.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.
|
ClassMapBuilder<A,B> |
CaseInsensitiveClassMapBuilder.byDefault(MappingDirection direction,
DefaultFieldMapper... withDefaults) |
ClassMapBuilder<A,B> |
ClassMapBuilder.byDefault(MappingHint[] mappingHints)
Deprecated.
use
byDefault(DefaultFieldMapper...) instead |
ClassMapBuilder<A,B> |
ClassMapBuilder.byDefault(MappingHint hint0,
MappingHint... mappingHints)
Deprecated.
use
byDefault(DefaultFieldMapper...) instead |
ClassMapBuilder<A,B> |
ClassMapBuilder.constructorA(String... args)
Declares a constructor to be used for the A type with the specified
arguments.
|
ClassMapBuilder<A,B> |
ClassMapBuilder.constructorB(String... args)
Declares a constructor to be used for the B type with the specified
arguments.
|
ClassMapBuilder<A,B> |
ClassMapBuilder.customize(Mapper<A,B> customizedMapper)
Set the custom mapper to use for this mapping.
|
ClassMapBuilder<A,B> |
ClassMapBuilder.customize(MapperBase<A,B> legacyCustomizedMapper)
Deprecated.
use
customize(Mapper) instead |
ClassMapBuilder<A,B> |
ClassMapBuilder.exclude(String fieldName)
Exclude the specified field from mapping
|
ClassMapBuilder<A,B> |
ClassMapBuilder.favorExtension(boolean favorsExtension) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(Property.Builder fieldA,
Property.Builder fieldB) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(Property.Builder fieldA,
String fieldNameB)
Maps 'fieldA' of type A to 'fieldB' of type B.
|
ClassMapBuilder<A,B> |
ClassMapBuilder.field(Property fieldA,
Property fieldB) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(Property fieldA,
String fieldNameB) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(String fieldNameA,
Property.Builder fieldB) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(String fieldNameA,
Property fieldB) |
ClassMapBuilder<A,B> |
ClassMapBuilder.field(String fieldNameA,
String fieldNameB)
Map a field in both directions
|
ClassMapBuilder<A,B> |
ClassMapBuilder.fieldAToB(String fieldNameA,
String fieldNameB)
Map a field in one direction only (from fieldNameA to fieldNameB)
|
ClassMapBuilder<A,B> |
ClassMapBuilder.fieldBToA(String fieldNameB,
String fieldNameA)
Map a field in one direction only (from fieldNameB to fieldNameA)
|
<A,B> ClassMapBuilder<A,B> |
ClassMapBuilderFactory.map(Class<A> aType,
Class<B> bType)
Begin a new mapping for the specified classes.
|
static <A,B> ClassMapBuilder<A,B> |
ClassMapBuilder.map(Class<A> aType,
Class<B> bType)
Deprecated.
use
MapperFactory.classMap(Class, Class)
instead |
<A,B> ClassMapBuilder<A,B> |
ClassMapBuilderFactory.map(Class<A> aType,
Type<B> bType)
Begin a new mapping for the specified class and type.
|
static <A,B> ClassMapBuilder<A,B> |
ClassMapBuilder.map(Class<A> aType,
Type<B> bType)
Deprecated.
use
MapperFactory.classMap(Class, Type)
instead |
<A,B> ClassMapBuilder<A,B> |
ClassMapBuilderFactory.map(Type<A> aType,
Class<B> bType)
Begin a new mapping for the specified type and class.
|
static <A,B> ClassMapBuilder<A,B> |
ClassMapBuilder.map(Type<A> aType,
Class<B> bType)
Deprecated.
use
MapperFactory.classMap(Type, Class)
instead |
<A,B> ClassMapBuilder<A,B> |
ClassMapBuilderFactory.map(Type<A> aType,
Type<B> bType)
Begin a new mapping for the specified types.
|
static <A,B> ClassMapBuilder<A,B> |
ClassMapBuilder.map(Type<A> aType,
Type<B> bType)
Deprecated.
use
MapperFactory.classMap(Type, Type)
instead |
ClassMapBuilder<A,B> |
ClassMapBuilder.mapNulls(boolean destinationsMappedOnNull) |
ClassMapBuilder<A,B> |
ClassMapBuilder.mapNullsInReverse(boolean sourcesMappedOnNull) |
protected <A,B> ClassMapBuilder<A,B> |
ScoringClassMapBuilder.Factory.newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults) |
protected <A,B> ClassMapBuilder<A,B> |
ClassMapBuilderForMaps.Factory.newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults) |
protected <A,B> ClassMapBuilder<A,B> |
ClassMapBuilderForLists.Factory.newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults) |
protected <A,B> ClassMapBuilder<A,B> |
ClassMapBuilderForArrays.Factory.newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults) |
protected abstract <A,B> ClassMapBuilder<A,B> |
ClassMapBuilderFactory.newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults)
Generates a new ClassMapBuilder instance
|
protected <A,B> ClassMapBuilder<A,B> |
ClassMapBuilder.Factory.newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults) |
protected <A,B> ClassMapBuilder<A,B> |
CaseInsensitiveClassMapBuilder.Factory.newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults) |
<X,Y> ClassMapBuilder<A,B> |
ClassMapBuilder.use(Class<?> aParentClass,
Class<?> bParentClass)
Configure this ClassMapBuilder to use an existing mapping (for parent
classes) defined from
aParentClass to
bParentClass. |
<X,Y> ClassMapBuilder<A,B> |
ClassMapBuilder.use(Type<?> aParentType,
Type<?> bParentType)
Configure this ClassMapBuilder to use an existing mapping (for parent
classes) defined from
aParentClass to
bParentClass. |
Copyright © 2016 Glasnost. All rights reserved.