Package | Description |
---|---|
org.modelmapper |
ModelMapper is an intelligent object mapping library.
|
org.modelmapper.config |
Configuration types
|
Modifier and Type | Method and Description |
---|---|
Configuration |
ModelMapper.getConfiguration()
Returns the ModelMapper's configuration.
|
Modifier and Type | Method and Description |
---|---|
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(Class<S> sourceType,
Class<D> destinationType,
Configuration configuration)
Creates a TypeMap for the
sourceType and destinationType using the
configuration . |
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(Class<S> sourceType,
Class<D> destinationType,
String typeMapName,
Configuration configuration)
Creates a TypeMap for the
sourceType and destinationType identified by the
typeMapName using the configuration . |
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(S source,
Class<D> destinationType,
Configuration configuration)
Creates a TypeMap for the
source 's type and destinationType using the
configuration . |
<S,D> TypeMap<S,D> |
ModelMapper.createTypeMap(S source,
Class<D> destinationType,
String typeMapName,
Configuration configuration)
Creates a TypeMap for the
source 's type and destinationType identified by the
typeMapName using the configuration . |
Modifier and Type | Method and Description |
---|---|
<T> Configuration |
Configuration.addValueReader(ValueReader<T> valueReader)
Registers the
valueReader to use when mapping from instances of types T . |
<T> Configuration |
Configuration.addValueWriter(ValueWriter<T> valueWriter)
Registers the
valueWriter to use when mapping property to instances of types T . |
Configuration |
Configuration.copy()
Returns a copy of the Configuration.
|
Configuration |
Configuration.setAmbiguityIgnored(boolean ignore)
Sets whether destination properties that match more than one source property should be ignored.
|
Configuration |
Configuration.setCollectionsMergeEnabled(boolean enabled)
Sets whether the 'merging' of collections should be enabled.
|
Configuration |
Configuration.setDeepCopyEnabled(boolean enabled)
Sets whether deep copy should be enabled.
|
Configuration |
Configuration.setDestinationNameTokenizer(NameTokenizer nameTokenizer)
Sets the tokenizer to be applied to destination property and class names during the matching
process.
|
Configuration |
Configuration.setDestinationNameTransformer(NameTransformer nameTransformer)
Sets the name transformer used to transform destination property and class names during the
matching process.
|
Configuration |
Configuration.setDestinationNamingConvention(NamingConvention namingConvention)
Sets the convention used to identify destination property names during the matching process.
|
Configuration |
Configuration.setFieldAccessLevel(Configuration.AccessLevel accessLevel)
Indicates that fields should be eligible for matching at the given
accessLevel . |
Configuration |
Configuration.setFieldMatchingEnabled(boolean enabled)
Sets whether field matching should be enabled.
|
Configuration |
Configuration.setFullTypeMatchingRequired(boolean required)
Set whether
ConditionalConverter s must define a full match in
order to be applied. |
Configuration |
Configuration.setImplicitMappingEnabled(boolean enabled)
Sets whether implicit mapping should be enabled.
|
Configuration |
Configuration.setMatchingStrategy(MatchingStrategy matchingStrategy)
Sets the strategy used to match source properties to destination properties.
|
Configuration |
Configuration.setMethodAccessLevel(Configuration.AccessLevel accessLevel)
Indicates that methods should be eligible for matching at the given
accessLevel . |
Configuration |
Configuration.setPreferNestedProperties(boolean enabled)
Sets whether nested properties were preferred when ModelMapper were building the type map with
implicit mapping.
|
Configuration |
Configuration.setPropertyCondition(Condition<?,?> condition)
Sets the
condition that must apply for a property in order for mapping to take place. |
Configuration |
Configuration.setProvider(Provider<?> provider)
Sets the
provider to use for providing destination object instances. |
Configuration |
Configuration.setSkipNullEnabled(boolean enabled)
Sets whether a property should be skipped or not when the property value is
null . |
Configuration |
Configuration.setSourceNameTokenizer(NameTokenizer nameTokenizer)
Sets the tokenizer to be applied to source property and class names during the matching
process.
|
Configuration |
Configuration.setSourceNameTransformer(NameTransformer nameTransformer)
Sets the name transformer used to transform source property and class names during the matching
process.
|
Configuration |
Configuration.setSourceNamingConvention(NamingConvention namingConvention)
Sets the convention used to identify source property names during the matching process.
|
Configuration |
Configuration.setUseOSGiClassLoaderBridging(boolean useOSGiClassLoaderBridging)
Sets whether to use an OSGi Class Loader Bridge as described in the following article:
https://www.infoq.com/articles/code-generation-with-osgi
|
Copyright © 2011–2024. All rights reserved.