A B C D E F G H I J L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractCondition<S,D> - Class in org.modelmapper
-
Condition support class.
- AbstractCondition() - Constructor for class org.modelmapper.AbstractCondition
- AbstractConverter<S,D> - Class in org.modelmapper
-
Converter support class.
- AbstractConverter() - Constructor for class org.modelmapper.AbstractConverter
- AbstractProvider<T> - Class in org.modelmapper
-
Provider support class.
- AbstractProvider() - Constructor for class org.modelmapper.AbstractProvider
- accept(D, V) - Method in interface org.modelmapper.spi.DestinationSetter
-
Performs this operation to set the value into destination
- addConverter(Converter<S, D>) - Method in class org.modelmapper.ModelMapper
-
Registers the
converter
to use when mapping instances of typesS
toD
. - addConverter(Converter<S, D>, Class<S>, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Registers the
converter
to use when mapping instances of typesS
toD
. - addMapping(SourceGetter<S>, DestinationSetter<D, V>) - Method in interface org.modelmapper.TypeMap
-
Adds a mapping into
TypeMap
by definingsourceGetter
->destinationSetter
- addMappings(ExpressionMap<S, D>) - Method in interface org.modelmapper.TypeMap
-
Add a mapping into
TypeMap
by defining amapper
action You can chainaddMappings
contains only one property mapping like - addMappings(PropertyMap<S, D>) - Method in class org.modelmapper.ModelMapper
-
Adds mappings from the
propertyMap
into the TypeMap corresponding to source typeS
and destination typeD
. - addMappings(PropertyMap<S, D>) - Method in interface org.modelmapper.TypeMap
-
Loads mappings from the
propertyMap
into the TypeMap. - addValueReader(ValueReader<T>) - Method in interface org.modelmapper.config.Configuration
-
Registers the
valueReader
to use when mapping from instances of typesT
. - addValueWriter(ValueWriter<T>) - Method in interface org.modelmapper.config.Configuration
-
Registers the
valueWriter
to use when mapping property to instances of typesT
. - and(Condition<S, D>) - Method in class org.modelmapper.AbstractCondition
-
Returns a new condition that applies if
this
AND the givencondition
apply. - and(Condition<S, D>, Condition<S, D>) - Static method in class org.modelmapper.Conditions
-
Returns a new condition that applies if
condition1
ANDcondition2
apply. - applies(String, PropertyType) - Method in interface org.modelmapper.spi.NamingConvention
-
Returns true if the naming convention applies to the
propertyName
andpropertyType
, else returns false. - applies(MappingContext<S, D>) - Method in interface org.modelmapper.Condition
-
Specifies whether the condition applies to the
context
.
B
- builder() - Static method in class org.modelmapper.convention.NameTransformers
-
Creates NameTransformer for builder.
- builder() - Static method in class org.modelmapper.convention.NamingConventions
-
Creates NameTransformer for builder.
- builder(String) - Static method in class org.modelmapper.convention.NameTransformers
-
Creates NameTransformer for builder.
- builder(String) - Static method in class org.modelmapper.convention.NamingConventions
-
Creates NamingConvention for builder.
C
- CAMEL_CASE - Static variable in class org.modelmapper.convention.NameTokenizers
-
Tokenizes class and property names according to the CamelCase naming convention.
- CLASS - org.modelmapper.spi.NameableType
-
A property that represents a
Class
- Condition<S,D> - Interface in org.modelmapper
-
Condition that must apply in order for mapping to occur.
- ConditionalConverter<S,D> - Interface in org.modelmapper.spi
-
Conditionally converts matching source objects to instances of destination type
D
. - ConditionalConverter.MatchResult - Enum in org.modelmapper.spi
- ConditionExpression<S,D> - Interface in org.modelmapper.builder
-
Expresses a Condition.
- Conditions - Class in org.modelmapper
-
Condition
utilities and implementations. - Conditions() - Constructor for class org.modelmapper.Conditions
- ConfigurableConditionExpression<S,D> - Interface in org.modelmapper.builder
-
Represents mapping operations.
- ConfigurableConverterExpression<S,D> - Interface in org.modelmapper.builder
- ConfigurableProviderExpression<S,D> - Interface in org.modelmapper.builder
- Configuration - Interface in org.modelmapper.config
-
Configures conventions used during the matching process.
- Configuration.AccessLevel - Enum in org.modelmapper.config
-
The level at and below which properties can be accessed.
- ConfigurationException - Exception in org.modelmapper
-
Thrown when invalid configuration is detected.
- ConfigurationException(List<ErrorMessage>) - Constructor for exception org.modelmapper.ConfigurationException
- configure() - Method in class org.modelmapper.PropertyMap
-
Called by ModelMapper to configure mappings as defined in the PropertyMap.
- configure(ConfigurableConditionExpression<S, D>) - Method in interface org.modelmapper.ExpressionMap
-
Performs the operation to configure
TypeMap
- ConstantMapping - Interface in org.modelmapper.spi
-
A mapping of a source constant to a destination property hierarchy.
- convert(MappingContext<S, D>) - Method in class org.modelmapper.AbstractConverter
-
Delegates conversion to
AbstractConverter.convert(Object)
. - convert(MappingContext<S, D>) - Method in interface org.modelmapper.Converter
-
Converts the
MappingContext.getSource()
to an instance ofMappingContext.getDestinationType()
. - convert(MappingContext<S, D>) - Method in class org.modelmapper.spi.StrongTypeConditionalConverter
- convert(S) - Method in class org.modelmapper.AbstractConverter
-
Converts
source
to an instance of typeD
. - convert(S) - Method in interface org.modelmapper.Converters.Converter
-
Converts source to destination.
- Converter<S,D> - Interface in org.modelmapper
-
Converts instances of source type
S
to instances of destination typeD
. - ConverterExpression<S,D> - Interface in org.modelmapper.builder
-
Expresses a Converter.
- Converters - Class in org.modelmapper
-
Provides helper methods to create converters.
- Converters.ChainableConverter<S,D1> - Interface in org.modelmapper
-
Provides interface to chain another converter or convert to different destination type.
- Converters.Collection - Class in org.modelmapper
-
Provides helper methods to create converters for collection.
- Converters.Converter<S,D> - Interface in org.modelmapper
-
Converts source to destination.
- copy() - Method in interface org.modelmapper.config.Configuration
-
Returns a copy of the Configuration.
- create(CS, CD) - Method in interface org.modelmapper.spi.MappingContext
-
Creates a new child MappingContext for the
source
anddestination
which inherits all other information from the this MappingContext. - create(CS, Class<CD>) - Method in interface org.modelmapper.spi.MappingContext
-
Creates a new child MappingContext for the
source
anddestinationType
which inherits all other information from the this MappingContext. - create(CS, Type) - Method in interface org.modelmapper.spi.MappingContext
-
Creates a new child MappingContext for the
source
anddestinationType
which inherits all other information from the this MappingContext. - createDestination(MappingContext<S, D>) - Method in interface org.modelmapper.spi.MappingEngine
-
Creates an instance of the destination type for the
context
, capturing any errors that may occur during instantiation. - createTypeMap(Class<S>, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
sourceType
anddestinationType
using the ModelMapper's configuration. - createTypeMap(Class<S>, Class<D>, String) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
sourceType
anddestinationType
identified by thetypeMapName
using the ModelMapper's configuration. - createTypeMap(Class<S>, Class<D>, String, Configuration) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
sourceType
anddestinationType
identified by thetypeMapName
using theconfiguration
. - createTypeMap(Class<S>, Class<D>, Configuration) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
sourceType
anddestinationType
using theconfiguration
. - createTypeMap(S, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
source
's type anddestinationType
using the ModelMapper's configuration. - createTypeMap(S, Class<D>, String) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
source
's type anddestinationType
identified by thetypeMapName
using the ModelMapper's configuration. - createTypeMap(S, Class<D>, String, Configuration) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
source
's type anddestinationType
identified by thetypeMapName
using theconfiguration
. - createTypeMap(S, Class<D>, Configuration) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the
source
's type anddestinationType
using theconfiguration
.
D
- destination - Variable in class org.modelmapper.PropertyMap
-
The destination instance to be used in a mapping declaration.
- destination(String) - Method in class org.modelmapper.PropertyMap
- DestinationSetter<D,V> - Interface in org.modelmapper.spi
-
Represents an operation for setting a value into destination
E
- emptyTypeMap(Class<S>, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Creates an empty TypeMap for the
sourceType
,destinationType
. - emptyTypeMap(Class<S>, Class<D>, String) - Method in class org.modelmapper.ModelMapper
-
Creates an empty TypeMap for the
sourceType
,destinationType
. - equals(Object) - Method in class org.modelmapper.spi.ErrorMessage
- equals(Object) - Method in class org.modelmapper.TypeToken
- ErrorMessage - Class in org.modelmapper.spi
-
An error message.
- ErrorMessage(String) - Constructor for class org.modelmapper.spi.ErrorMessage
-
Creates an ErrorMessage for the given
message
. - ErrorMessage(String, Throwable) - Constructor for class org.modelmapper.spi.ErrorMessage
-
Creates an ErrorMessage for the given
message
andcause
. - ExpressionMap<S,D> - Interface in org.modelmapper
-
Represents an operation that accepts
mapping
and use functions defined inConfigurableConditionExpression
to configure aTypeMap
F
- FIELD - org.modelmapper.spi.NameableType
-
A property that represents a
Field
- FIELD - org.modelmapper.spi.PropertyType
-
A property that represents a
Field
- first() - Static method in class org.modelmapper.Converters.Collection
-
Provides a helper method to create a collection converter that will get the first element of source collect and convert it.
- forPropertyType(PropertyType) - Static method in enum org.modelmapper.spi.NameableType
-
Returns a NameableType for the corresponding
propertyType
, elseNameableType.CLASS
. - FULL - org.modelmapper.spi.ConditionalConverter.MatchResult
-
Indicates that the source and destination types were matched.
G
- GENERIC - org.modelmapper.spi.NameableType
-
A nameable type obtained from a
ValueReader
- GENERIC - org.modelmapper.spi.PropertyType
-
A property obtained from a
ValueReader
- get() - Method in class org.modelmapper.AbstractProvider
-
Provides an instance of type
T
. - get(Provider.ProvisionRequest<T>) - Method in class org.modelmapper.AbstractProvider
-
Delegates provisioning to
AbstractProvider.get()
. - get(Provider.ProvisionRequest<T>) - Method in interface org.modelmapper.Provider
-
Returns an instance of the requested type
T
elsenull
if the requested type cannot be provided. - get(S) - Method in interface org.modelmapper.spi.TypeSafeSourceGetter
-
Performs this operation to get a property from source
- get(T, String) - Method in interface org.modelmapper.spi.ValueReader
-
Returns the value from the
source
object for thememberName
. - get(T, String) - Method in class org.modelmapper.spi.ValueReader.Member
-
Get the member from the source with given member name.
- getAnnotation(Class<T>) - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the annotation on the property's member for the
annotationClass
ornull
if none exists. - getCause() - Method in class org.modelmapper.spi.ErrorMessage
-
Returns the Throwable that caused the error or
null
if no Throwable caused the error. - getCondition() - Method in interface org.modelmapper.spi.Mapping
-
Gets the condition that to be satisfied before this mapping can be used to perform a mapping.
- getCondition() - Method in interface org.modelmapper.TypeMap
-
Returns the Condition that must apply for the source and destination in order for mapping to take place, else
null
if no condition has been configured. - getConfiguration() - Method in class org.modelmapper.ModelMapper
-
Returns the ModelMapper's configuration.
- getConstant() - Method in interface org.modelmapper.spi.ConstantMapping
-
Gets the source constant for the mapping.
- getConverter() - Method in interface org.modelmapper.spi.Mapping
-
Gets the Converter to be used when performing a mapping.
- getConverter() - Method in interface org.modelmapper.TypeMap
-
Returns the Converter configured for this TypeMap, else
null
if no Converter has been configured. - getConverters() - Method in interface org.modelmapper.config.Configuration
-
Gets the ordered list of internal conditional converters that are used to perform type conversion.
- getDestination() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the destination object being mapped to or null if the destination has not yet been initialized.
- getDestinationNameTokenizer() - Method in interface org.modelmapper.config.Configuration
-
Returns the destination name tokenizer.
- getDestinationNameTransformer() - Method in interface org.modelmapper.config.Configuration
-
Returns the destination name transformer.
- getDestinationNamingConvention() - Method in interface org.modelmapper.config.Configuration
-
Returns the destination naming convention.
- getDestinationProperties() - Method in interface org.modelmapper.spi.Mapping
-
Get the hierarchy of destination property info.
- getDestinationProperties() - Method in interface org.modelmapper.spi.PropertyNameInfo
-
Returns the destination properties.
- getDestinationPropertyTokens() - Method in interface org.modelmapper.spi.PropertyNameInfo
-
Returns transformed name tokens for the destination property.
- getDestinationType() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the destination type being mapped to.
- getDestinationType() - Method in interface org.modelmapper.TypeMap
-
Returns the destination type for the TypeMap.
- getErrorMessages() - Method in exception org.modelmapper.ConfigurationException
-
Returns messages for the errors that caused this exception.
- getErrorMessages() - Method in exception org.modelmapper.MappingException
-
Returns messages for the errors that caused this exception.
- getErrorMessages() - Method in exception org.modelmapper.ValidationException
-
Returns messages for the errors that caused this exception.
- getFieldAccessLevel() - Method in interface org.modelmapper.config.Configuration
-
Returns the field access level.
- getGenericDestinationType() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the generic destination type.
- getGenericType() - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the generic type represented by the property.
- getInitialType() - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the initial type in the member declaring class' type hierarchy from which this property info was initiated.
- getLastDestinationProperty() - Method in interface org.modelmapper.spi.Mapping
-
Gets the last property info in the destination properties hierarchy.
- getLastSourceProperty() - Method in interface org.modelmapper.spi.PropertyMapping
-
Gets the last member info in the source members hierarchy.
- getMapping() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the mapping associated with the mapping request else
null
if the request did not originate from aTypeMap
. - getMappingEngine() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the MappingEngine that initiated the mapping request.
- getMappings() - Method in interface org.modelmapper.TypeMap
-
Returns a snapshot of the TypeMap's mappings.
- getMatchingStrategy() - Method in interface org.modelmapper.config.Configuration
-
Gets the matching strategy.
- getMember() - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the encapsulated member or
null
if none exists. - getMember(Class<T>, String) - Method in interface org.modelmapper.spi.ValueWriter
- getMember(T, String) - Method in interface org.modelmapper.spi.ValueReader
- getMessage() - Method in exception org.modelmapper.ConfigurationException
- getMessage() - Method in exception org.modelmapper.MappingException
- getMessage() - Method in class org.modelmapper.spi.ErrorMessage
-
Returns the error message.
- getMessage() - Method in exception org.modelmapper.ValidationException
- getMethodAccessLevel() - Method in interface org.modelmapper.config.Configuration
-
Returns the method access level.
- getName() - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the property name.
- getName() - Method in interface org.modelmapper.TypeMap
-
Returns the name of the TypeMap, else
null
if the TypeMap has no name. - getOrigin() - Method in class org.modelmapper.spi.ValueReader.Member
-
The origin value of this member
- getOrigin() - Method in class org.modelmapper.spi.ValueWriter.Member
-
The origin value of this member
- getParent() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the parent MappingContext from which the current MappingContext was created, else
null
if there is no parent context. - getPath() - Method in interface org.modelmapper.spi.Mapping
-
Returns a string key representing the path of the destination property hierarchy.
- getPostConverter() - Method in interface org.modelmapper.TypeMap
-
Returns the converter to be used after mapping between the source and destination types, else
null
if no post-Converter has been configured. - getPreConverter() - Method in interface org.modelmapper.TypeMap
-
Returns the converter to be used before mapping between the source and destination types, else
null
if no post-Converter has been configured. - getPropertyCondition() - Method in interface org.modelmapper.config.Configuration
-
Returns the Condition that must apply for a property in order for mapping to take place, else
null
if no condition has been configured. - getPropertyCondition() - Method in interface org.modelmapper.TypeMap
-
Returns the Condition that must apply in properties in this TypeMap to be mapped, else
null
if no condition has been configured. - getPropertyConverter() - Method in interface org.modelmapper.TypeMap
-
Returns the Converter used for converting properties in the TypeMap, else
null
if no Converter has been configured. - getPropertyProvider() - Method in interface org.modelmapper.TypeMap
-
Returns the Provider configured for this TypeMap, else
null
if no Provider has been configured. - getPropertyType() - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the member type.
- getProvider() - Method in interface org.modelmapper.config.Configuration
-
Returns the Provider used for provisioning destination object instances, else
null
if no Provider has been configured. - getProvider() - Method in interface org.modelmapper.spi.Mapping
-
Gets the Provider to use for providing instances of the first destination type.
- getProvider() - Method in interface org.modelmapper.TypeMap
-
Returns the Provider configured for this TypeMap, else
null
if no Provider has been configured. - getRawType() - Method in class org.modelmapper.TypeToken
-
Returns the raw type for
T
. - getRequestedType() - Method in interface org.modelmapper.Provider.ProvisionRequest
-
Returns the type being requested.
- getSource() - Method in interface org.modelmapper.Provider.ProvisionRequest
-
Returns the source object being mapped from.
- getSource() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the source object being mapped from.
- getSourceClassTokens() - Method in interface org.modelmapper.spi.PropertyNameInfo
-
Returns transformed name tokens for the source's declaring class.
- getSourceNameTokenizer() - Method in interface org.modelmapper.config.Configuration
-
Returns the source name tokenizer.
- getSourceNameTransformer() - Method in interface org.modelmapper.config.Configuration
-
Returns the source name transformer.
- getSourceNamingConvention() - Method in interface org.modelmapper.config.Configuration
-
Gets the source naming convention.
- getSourceProperties() - Method in interface org.modelmapper.spi.PropertyMapping
-
Get the hierarchy of source properties.
- getSourceProperties() - Method in interface org.modelmapper.spi.PropertyNameInfo
-
Returns the source properties.
- getSourcePropertyTokens() - Method in interface org.modelmapper.spi.PropertyNameInfo
-
Returns transformed name tokens for the source property.
- getSourcePropertyTypeTokens() - Method in interface org.modelmapper.spi.PropertyNameInfo
-
Returns transformed name tokens for each source property type.
- getSourceType() - Method in interface org.modelmapper.spi.Mapping
-
Gets the source object type.
- getSourceType() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the source type being mapped from.
- getSourceType() - Method in interface org.modelmapper.TypeMap
-
Returns the source type for the TypeMap.
- getType() - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the type represented by the property.
- getType() - Method in class org.modelmapper.TypeToken
-
Returns the generic type
T
. - getTypeMap() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the TypeMap associated with the mapping request else
null
if the request did not originate from a TypeMap. - getTypeMap(Class<S>, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Returns the TypeMap for the
sourceType
anddestinationType
, else returnsnull
if none exists. - getTypeMap(Class<S>, Class<D>, String) - Method in class org.modelmapper.ModelMapper
-
Returns the TypeMap for the
sourceType
,destinationType
andtypeMapName
, else returnsnull
if none exists. - getTypeMapName() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the name of the TypeMap associated with the mapping request else
null
if the request did not originate from a named TypeMap. - getTypeMaps() - Method in class org.modelmapper.ModelMapper
-
Returns all TypeMaps for the ModelMapper.
- getUnmappedProperties() - Method in interface org.modelmapper.TypeMap
-
Returns a snapshot list of destination properties that do not have mappings defined, else empty list if all destination properties are mapped.
- getValueReaders() - Method in interface org.modelmapper.config.Configuration
-
Gets a thread-safe, mutable, ordered list of internal and user-defined ValueReaders that are used to read source object values during mapping.
- getValueType() - Method in class org.modelmapper.spi.ValueReader.Member
- getValueType() - Method in class org.modelmapper.spi.ValueWriter.Member
- getValueWriters() - Method in interface org.modelmapper.config.Configuration
-
Gets a thread-safe, mutable, ordered list of internal and user-defined ValueWriters that are used to write destination object values during mapping.
H
- hashCode() - Method in class org.modelmapper.spi.ErrorMessage
- hashCode() - Method in class org.modelmapper.TypeToken
I
- implicitMappings() - Method in interface org.modelmapper.TypeMap
-
Performs implicit mapping.
- include(Class<? super D>) - Method in interface org.modelmapper.TypeMap
-
Makes this TypeMap is also supporting on the mapping from
sourceType
tobaseDestinationType
. - include(Class<DS>, Class<DD>) - Method in interface org.modelmapper.TypeMap
-
Constructs a new TypeMap derived from
this
. - include(TypeSafeSourceGetter<S, P>, Class<P>) - Method in interface org.modelmapper.TypeMap
-
Includes
mappings
from property's TypeMap. - includeBase(Class<? super S>, Class<? super D>) - Method in interface org.modelmapper.TypeMap
-
Includes
mappings
from a baseTypeMap
. - isAmbiguityIgnored() - Method in interface org.modelmapper.config.Configuration
-
Returns
true
if ambiguous properties are ignored orfalse
if they will result in an exception. - isCollectionsMergeEnabled() - Method in interface org.modelmapper.config.Configuration
-
Returns whether collections should be 'merged' when mapped.
- isDeepCopyEnabled() - Method in interface org.modelmapper.config.Configuration
-
Returns whether the deep copy feature is enabled.
- isExact() - Method in interface org.modelmapper.spi.MatchingStrategy
-
Indicates whether the matching strategy determines exact matches that are guaranteed not to be ambiguous with any other source and destination properties in the object graph.
- isFieldMatchingEnabled() - Method in interface org.modelmapper.config.Configuration
-
Returns whether field matching is enabled.
- isFullTypeMatchingRequired() - Method in interface org.modelmapper.config.Configuration
- isImplicitMappingEnabled() - Method in interface org.modelmapper.config.Configuration
-
Returns whether implicit mapping should be enabled.
- isNotNull() - Static method in class org.modelmapper.Conditions
-
Returns a condition that applies when the mapping source is not
null
. - isNull() - Static method in class org.modelmapper.Conditions
-
Returns a condition that applies when the mapping source is
null
. - isPreferNestedProperties() - Method in interface org.modelmapper.config.Configuration
-
Returns whether nested properties were preferred when ModelMapper were building the type map with implicit mapping.
- isResolveMembersSupport() - Method in interface org.modelmapper.spi.ValueWriter
-
Returns whether the value writer is supporting on resolving the members.
- isSkipNullEnabled() - Method in interface org.modelmapper.config.Configuration
-
Returns whether a property mapping will be skipped if the property value is
null
. - isSkipped() - Method in interface org.modelmapper.spi.Mapping
-
Returns whether the destination should be skipped when performing a mapping.
- isType(Class<?>) - Static method in class org.modelmapper.Conditions
-
Returns a condition that applies when the mapping source is of the type
type
. - isUseOSGiClassLoaderBridging() - Method in interface org.modelmapper.config.Configuration
-
Returns whether OSGi Class Loader Bridging is required.
- iterator() - Method in class org.modelmapper.spi.Tokens
J
- JAVABEANS_ACCESSOR - Static variable in class org.modelmapper.convention.NameTransformers
-
Transforms accessor names to their simple property name according to the JavaBeans convention.
- JAVABEANS_ACCESSOR - Static variable in class org.modelmapper.convention.NamingConventions
-
JavaBeans naming convention for accessors.
- JAVABEANS_MUTATOR - Static variable in class org.modelmapper.convention.NameTransformers
-
Transforms mutator names to their simple property name according to the JavaBeans convention.
- JAVABEANS_MUTATOR - Static variable in class org.modelmapper.convention.NamingConventions
-
JavaBeans naming convention for mutators.
L
- LOOSE - Static variable in class org.modelmapper.convention.MatchingStrategies
-
A matching strategy that allows for source properties to be loosely matched to destination properties by requiring that only the last destination property in a hierarchy be matched.
M
- map() - Method in interface org.modelmapper.builder.MapExpression
-
Defines a mapping to a destination.
- map() - Method in class org.modelmapper.PropertyMap
-
Defines a mapping to a destination.
- map(Object) - Method in interface org.modelmapper.builder.MapExpression
-
Defines a mapping for the
subject
. - map(Object) - Method in class org.modelmapper.PropertyMap
-
Defines a mapping for the
subject
. - map(Object, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Maps
source
to an instance ofdestinationType
. - map(Object, Class<D>, String) - Method in class org.modelmapper.ModelMapper
-
Maps
source
to an instance ofdestinationType
. - map(Object, Object) - Method in interface org.modelmapper.builder.MapExpression
-
Defines a mapping from the
source
to thedestination
. - map(Object, Object) - Method in class org.modelmapper.ModelMapper
-
Maps
source
todestination
. - map(Object, Object) - Method in class org.modelmapper.PropertyMap
-
Defines a mapping from the
source
to thedestination
. - map(Object, Object, String) - Method in class org.modelmapper.ModelMapper
-
Maps
source
todestination
. - map(Object, Type) - Method in class org.modelmapper.ModelMapper
-
Maps
source
to an instance ofdestinationType
. - map(Object, Type, String) - Method in class org.modelmapper.ModelMapper
-
Maps
source
to an instance ofdestinationType
. - map(Converter<D1, D2>) - Method in interface org.modelmapper.Converters.ChainableConverter
-
Chains a converter of
S
->D1
toS
->D2
with given converter. - map(Converters.Converter<S, D>) - Static method in class org.modelmapper.Converters.Collection
-
Provides a helper method to create a collection converter that will map each element based on the
elementConverter
. - map(MappingContext<S, D>) - Method in interface org.modelmapper.spi.MappingEngine
-
Maps an instance of type
D
for thecontext
. - map(SourceGetter<S>, DestinationSetter<D, V>) - Method in interface org.modelmapper.builder.ReferenceMapExpression
-
Map source getter value to destination setter
- map(S) - Method in interface org.modelmapper.TypeMap
-
Maps
source
to an instance of typeD
. - map(S, D) - Method in interface org.modelmapper.TypeMap
-
Maps
source
todestination
. - MapExpression<D> - Interface in org.modelmapper.builder
-
Expresses mapping.
- Mapping - Interface in org.modelmapper.spi
-
Mapping to a destination property hierarchy.
- MappingContext<S,D> - Interface in org.modelmapper.spi
-
Maintains context during the mapping of a source object of type
S
to a destination object of typeD
. - MappingEngine - Interface in org.modelmapper.spi
-
Engine that performs mapping operations.
- MappingException - Exception in org.modelmapper
-
Indicates that an error has occurred during a mapping operation.
- MappingException(List<ErrorMessage>) - Constructor for exception org.modelmapper.MappingException
- match(Class<?>, Class<?>) - Method in interface org.modelmapper.spi.ConditionalConverter
-
Determines whether the converter matches and supports conversion from
sourceType
todestinationType
. - match(Class<?>, Class<?>) - Method in class org.modelmapper.spi.StrongTypeConditionalConverter
- matches(PropertyNameInfo) - Method in interface org.modelmapper.spi.MatchingStrategy
-
Determines whether the data contained in the
propertyNameInfo
represents a source to destination match. - MatchingStrategies - Class in org.modelmapper.convention
-
MatchingStrategy
implementations. - MatchingStrategies() - Constructor for class org.modelmapper.convention.MatchingStrategies
- MatchingStrategy - Interface in org.modelmapper.spi
-
Identifies source to destination property matches by comparing source and destination type, property and property type names.
- Member(Class<?>) - Constructor for class org.modelmapper.spi.ValueReader.Member
-
Creates a member contains nested value
- Member(Class<?>) - Constructor for class org.modelmapper.spi.ValueWriter.Member
-
Creates a member contains nested value
- memberNames(Class<T>) - Method in interface org.modelmapper.spi.ValueWriter
-
Returns all member names for the
destinationType
object, elsenull
if the destination has no members. - memberNames(T) - Method in interface org.modelmapper.spi.ValueReader
-
Returns all member names for the
source
object, elsenull
if the source has no members. - METHOD - org.modelmapper.spi.NameableType
-
A property that represents a
Method
- METHOD - org.modelmapper.spi.PropertyType
-
A property that represents a
Method
- ModelMapper - Class in org.modelmapper
-
ModelMapper - Performs object mapping, maintains
Configuration
and storesTypeMaps
. - ModelMapper() - Constructor for class org.modelmapper.ModelMapper
-
Creates a new ModelMapper.
- Module - Interface in org.modelmapper
-
Simple interface for extensions that can be registered with
ModelMapper
to provide some extensions.
N
- NameableType - Enum in org.modelmapper.spi
-
Nameable types.
- NameTokenizer - Interface in org.modelmapper.spi
-
Tokenizes property and class names prior to matching.
- NameTokenizers - Class in org.modelmapper.convention
-
NameTokenizer
implementations. - NameTokenizers() - Constructor for class org.modelmapper.convention.NameTokenizers
- NameTransformer - Interface in org.modelmapper.spi
-
Transforms eligible property and class names prior to matching.
- NameTransformers - Class in org.modelmapper.convention
-
NameTransformer
implementations. - NameTransformers() - Constructor for class org.modelmapper.convention.NameTransformers
- NamingConvention - Interface in org.modelmapper.spi
-
Determines which properties are eligible for matching based on their name.
- NamingConventions - Class in org.modelmapper.convention
-
NamingConvention
implementations. - NamingConventions() - Constructor for class org.modelmapper.convention.NamingConventions
- NONE - org.modelmapper.spi.ConditionalConverter.MatchResult
-
Indicates that the destination type was not matched.
- NONE - Static variable in class org.modelmapper.convention.NamingConventions
-
Represents no naming convention.
- not(Condition<S, D>) - Static method in class org.modelmapper.Conditions
-
Returns a condition that does NOT apply when the given
condition
applies.
O
- of(Type) - Static method in class org.modelmapper.TypeToken
-
Returns a TypeLiteral for the
type
. - of(String...) - Static method in class org.modelmapper.spi.Tokens
- or(Condition<S, D>) - Method in class org.modelmapper.AbstractCondition
-
Returns a new condition that applies if
this
OR the givencondition
apply. - or(Condition<S, D>, Condition<S, D>) - Static method in class org.modelmapper.Conditions
-
Returns a new condition that applies if
condition1
ORcondition2
apply. - org.modelmapper - package org.modelmapper
-
ModelMapper is an intelligent object mapping library.
- org.modelmapper.builder - package org.modelmapper.builder
-
Expression types for building Mappings and TypeMaps
- org.modelmapper.config - package org.modelmapper.config
-
Configuration types
- org.modelmapper.convention - package org.modelmapper.convention
-
Conventions
- org.modelmapper.spi - package org.modelmapper.spi
-
Service Provider Interface
P
- PACKAGE_PRIVATE - org.modelmapper.config.Configuration.AccessLevel
-
All public, protected and package private properties are accessible.
- PARTIAL - org.modelmapper.spi.ConditionalConverter.MatchResult
-
Indicates that only the destination type was matched.
- PRIVATE - org.modelmapper.config.Configuration.AccessLevel
-
All properties are accessible.
- PropertyInfo - Interface in org.modelmapper.spi
-
Encapsulates information for a property.
- PropertyMap<S,D> - Class in org.modelmapper
-
A PropertyMap defines mappings between properties for a particular source and destination type.
- PropertyMap() - Constructor for class org.modelmapper.PropertyMap
-
Creates a new PropertyMap for the source and destination types
S
andD
. - PropertyMap(Class<S>, Class<D>) - Constructor for class org.modelmapper.PropertyMap
-
Creates a new PropertyMap for the
sourceType
anddestinationType
. - PropertyMapping - Interface in org.modelmapper.spi
-
A mapping of a source property hierarchy to a destination property hierarchy.
- PropertyNameInfo - Interface in org.modelmapper.spi
-
Encapsulates property name information to be use for determining whether a hierarchy of source and destination properties match.
- PropertyType - Enum in org.modelmapper.spi
-
Property type.
- PROTECTED - org.modelmapper.config.Configuration.AccessLevel
-
All public and protected properties are accessible.
- Provider<T> - Interface in org.modelmapper
-
Provides instances of type
T
. - Provider.ProvisionRequest<T> - Interface in org.modelmapper
-
Contains provision request information.
- ProviderExpression<S,D> - Interface in org.modelmapper.builder
-
Expresses a Provider.
- PUBLIC - org.modelmapper.config.Configuration.AccessLevel
-
Only public properties are accessible.
R
- ReferenceMapExpression<S,D> - Interface in org.modelmapper.builder
-
Represents mapping actions, to set a destination property from a source property, or to skip a destination property.
- registerModule(Module) - Method in class org.modelmapper.ModelMapper
-
Register a module
S
- setAmbiguityIgnored(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether destination properties that match more than one source property should be ignored.
- setCollectionsMergeEnabled(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether the 'merging' of collections should be enabled.
- setCondition(Condition<?, ?>) - Method in interface org.modelmapper.TypeMap
-
Sets the
condition
that must apply for the source and destination in order for mapping to take place. - setConverter(Converter<S, D>) - Method in interface org.modelmapper.TypeMap
-
Sets the
converter
to be used for any conversion requests for the TypeMap's source to destination type. - setDeepCopyEnabled(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether deep copy should be enabled.
- setDestinationNameTokenizer(NameTokenizer) - Method in interface org.modelmapper.config.Configuration
-
Sets the tokenizer to be applied to destination property and class names during the matching process.
- setDestinationNameTransformer(NameTransformer) - Method in interface org.modelmapper.config.Configuration
-
Sets the name transformer used to transform destination property and class names during the matching process.
- setDestinationNamingConvention(NamingConvention) - Method in interface org.modelmapper.config.Configuration
-
Sets the convention used to identify destination property names during the matching process.
- setFieldAccessLevel(Configuration.AccessLevel) - Method in interface org.modelmapper.config.Configuration
-
Indicates that fields should be eligible for matching at the given
accessLevel
. - setFieldMatchingEnabled(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether field matching should be enabled.
- setFullTypeMatchingRequired(boolean) - Method in interface org.modelmapper.config.Configuration
-
Set whether
ConditionalConverter
s must define afull
match in order to be applied. - setImplicitMappingEnabled(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether implicit mapping should be enabled.
- setMatchingStrategy(MatchingStrategy) - Method in interface org.modelmapper.config.Configuration
-
Sets the strategy used to match source properties to destination properties.
- setMethodAccessLevel(Configuration.AccessLevel) - Method in interface org.modelmapper.config.Configuration
-
Indicates that methods should be eligible for matching at the given
accessLevel
. - setPostConverter(Converter<S, D>) - Method in interface org.modelmapper.TypeMap
-
Sets the
converter
to be used after mapping between the source and destination types. - setPreConverter(Converter<S, D>) - Method in interface org.modelmapper.TypeMap
-
Sets the
converter
to be used before mapping between the source and destination types. - setPreferNestedProperties(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether nested properties were preferred when ModelMapper were building the type map with implicit mapping.
- setPropertyCondition(Condition<?, ?>) - Method in interface org.modelmapper.config.Configuration
-
Sets the
condition
that must apply for a property in order for mapping to take place. - setPropertyCondition(Condition<?, ?>) - Method in interface org.modelmapper.TypeMap
-
Sets the
condition
that must apply in order for properties in this TypeMap to be mapped. - setPropertyConverter(Converter<?, ?>) - Method in interface org.modelmapper.TypeMap
-
Sets the
converter
to be used for converting properties in the TypeMap. - setPropertyProvider(Provider<?>) - Method in interface org.modelmapper.TypeMap
-
Sets the
provider
to be used for providing instances of properties during mapping. - setProvider(Provider<?>) - Method in interface org.modelmapper.config.Configuration
-
Sets the
provider
to use for providing destination object instances. - setProvider(Provider<D>) - Method in interface org.modelmapper.TypeMap
-
Sets the
provider
to be used for providing instances of destination typeD
during mapping. - setSkipNullEnabled(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether a property should be skipped or not when the property value is
null
. - setSourceNameTokenizer(NameTokenizer) - Method in interface org.modelmapper.config.Configuration
-
Sets the tokenizer to be applied to source property and class names during the matching process.
- setSourceNameTransformer(NameTransformer) - Method in interface org.modelmapper.config.Configuration
-
Sets the name transformer used to transform source property and class names during the matching process.
- setSourceNamingConvention(NamingConvention) - Method in interface org.modelmapper.config.Configuration
-
Sets the convention used to identify source property names during the matching process.
- setupModule(ModelMapper) - Method in interface org.modelmapper.Module
-
Setup the ModelMapper for external functionality
- setUseOSGiClassLoaderBridging(boolean) - Method in interface org.modelmapper.config.Configuration
-
Sets whether to use an OSGi Class Loader Bridge as described in the following article: https://www.infoq.com/articles/code-generation-with-osgi
- setValue(T, Object) - Method in class org.modelmapper.spi.ValueWriter.Member
-
Set the value.
- setValue(T, Object, String) - Method in interface org.modelmapper.spi.ValueWriter
-
Returns the value from the
destination
object for thememberName
. - size() - Method in class org.modelmapper.spi.Tokens
- skip() - Method in interface org.modelmapper.builder.SkipExpression
-
Specifies that mapping for the destination property be skipped during the mapping process.
- skip() - Method in class org.modelmapper.PropertyMap
-
Specifies that mapping for the destination property be skipped during the mapping process.
- skip(Object) - Method in interface org.modelmapper.builder.SkipExpression
-
Specifies that mapping to the
destination
be skipped during the mapping process. - skip(Object) - Method in class org.modelmapper.PropertyMap
-
Specifies that mapping to the
destination
be skipped during the mapping process. - skip(Object, Object) - Method in interface org.modelmapper.builder.SkipExpression
-
Specifies that mapping from the
source
to thedestination
be skipped during the mapping process. - skip(Object, Object) - Method in class org.modelmapper.PropertyMap
-
Specifies that mapping from the
source
to thedestination
be skipped during the mapping process. - skip(DestinationSetter<D, V>) - Method in interface org.modelmapper.builder.ReferenceMapExpression
-
Skip destination property based on
destinationSetter
- skip(SourceGetter<S>, DestinationSetter<D, V>) - Method in interface org.modelmapper.builder.ReferenceMapExpression
-
Skip the mapping from the source property of
sourceGetter
to the destination property ofdestinationSetter
- SkipExpression<D> - Interface in org.modelmapper.builder
-
Expresses a mapping that is skipped.
- source - Variable in class org.modelmapper.PropertyMap
-
The source instance to be used in a mapping declaration.
- source(String) - Method in class org.modelmapper.PropertyMap
-
Used for mapping a
sourcePropertyPath
to a destination. - SourceGetter<S> - Interface in org.modelmapper.spi
-
Represents an operation for getting an property from source
- SourceMapping - Interface in org.modelmapper.spi
-
A mapping of a source object to a destination property hierarchy.
- STANDARD - Static variable in class org.modelmapper.convention.MatchingStrategies
-
A matching strategy that allows for source properties to be intelligently matched to destination properties, requiring that all destination properties be matched and all source property names have at least one token matched.
- STRICT - Static variable in class org.modelmapper.convention.MatchingStrategies
-
A matching strategy that allows for source properties to be strictly matched to destination properties.
- StrongTypeConditionalConverter<S,D> - Class in org.modelmapper.spi
- StrongTypeConditionalConverter(Class<S>, Class<D>, Converter<S, D>) - Constructor for class org.modelmapper.spi.StrongTypeConditionalConverter
T
- to(Class<D2>) - Method in interface org.modelmapper.Converters.ChainableConverter
-
Chains a converter of
S
->D1
toS
->D2
. - token(int) - Method in class org.modelmapper.spi.Tokens
- tokenize(String, NameableType) - Method in interface org.modelmapper.spi.NameTokenizer
-
Tokenizes the
name
for the givennameableType
. - Tokens - Class in org.modelmapper.spi
-
Represents tokens of a property
- toString() - Method in class org.modelmapper.AbstractConverter
- toString() - Method in class org.modelmapper.AbstractProvider
- toString() - Method in class org.modelmapper.spi.ErrorMessage
- toString() - Method in class org.modelmapper.spi.Tokens
- toString() - Method in class org.modelmapper.TypeToken
- transform(String, NameableType) - Method in interface org.modelmapper.spi.NameTransformer
-
Transforms the
name
for the givennameableType
. - typeMap(Class<S>, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Returns the TypeMap for the
sourceType
,destinationType
, creates TypeMap automatically if none exists. - typeMap(Class<S>, Class<D>, String) - Method in class org.modelmapper.ModelMapper
-
Returns the TypeMap for the
sourceType
,destinationType
, andtypeMapName
creates TypeMap automatically if none exists. - TypeMap<S,D> - Interface in org.modelmapper
-
Encapsulates mapping configuration for a source and destination type pair.
- TypeSafeSourceGetter<S,P> - Interface in org.modelmapper.spi
-
Represents an operation for getting an property from source
- TypeToken<T> - Class in org.modelmapper
-
Represents a generic type
T
. - TypeToken() - Constructor for class org.modelmapper.TypeToken
-
Creates a new type token for
T
.
U
- UNDERSCORE - Static variable in class org.modelmapper.convention.NameTokenizers
-
Tokenizes class and property names according to the underscore naming convention.
- using(Converter<?, ?>) - Method in interface org.modelmapper.builder.ConfigurableConverterExpression
-
Uses
converter
to convert a source property to destination property - using(Converter<?, ?>) - Method in interface org.modelmapper.builder.ConverterExpression
-
Specifies the
converter
to use for converting to the destination property hierarchy. - using(Converter<?, ?>) - Method in class org.modelmapper.PropertyMap
-
Specifies the
converter
to use for converting to the destination property hierarchy.
V
- validate() - Method in class org.modelmapper.ModelMapper
-
Validates that every top level destination property for each configured TypeMap is mapped to one and only one source property, or that a
Converter
wasset
for the TypeMap. - validate() - Method in interface org.modelmapper.TypeMap
-
Validates that every top level destination property is mapped to one and only one source property, or that a
Converter
wasset
. - ValidationException - Exception in org.modelmapper
-
Indicates that an error has occurred during a validate operation.
- ValidationException(List<ErrorMessage>) - Constructor for exception org.modelmapper.ValidationException
- valueOf(String) - Static method in enum org.modelmapper.config.Configuration.AccessLevel
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.modelmapper.spi.ConditionalConverter.MatchResult
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.modelmapper.spi.NameableType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.modelmapper.spi.PropertyType
-
Returns the enum constant of this type with the specified name.
- ValueReader<T> - Interface in org.modelmapper.spi
-
Reads values from a source.
- ValueReader.Member<T> - Class in org.modelmapper.spi
-
A member of a given source
- values() - Static method in enum org.modelmapper.config.Configuration.AccessLevel
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.modelmapper.spi.ConditionalConverter.MatchResult
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.modelmapper.spi.NameableType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.modelmapper.spi.PropertyType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- ValueWriter<T> - Interface in org.modelmapper.spi
-
Writes values to a destination.
- ValueWriter.Member<T> - Class in org.modelmapper.spi
-
A member of a given destination
W
- when(Condition<?, ?>) - Method in interface org.modelmapper.builder.ConditionExpression
-
Specifies the
condition
that must apply in order for mapping to take place for a particular destination property hierarchy. - when(Condition<?, ?>) - Method in interface org.modelmapper.builder.ConfigurableConditionExpression
-
Uses
condition
to determine the mapping should fire or skip - when(Condition<?, ?>) - Method in class org.modelmapper.PropertyMap
-
Specifies the
condition
that must apply in order for mapping to take place for a particular destination property hierarchy. - with(Provider<?>) - Method in interface org.modelmapper.builder.ConfigurableProviderExpression
-
Uses
provider
to instantiate an instance for destination property - with(Provider<?>) - Method in interface org.modelmapper.builder.ProviderExpression
-
Specifies the
provider
to be used for providing instances of the mapped property. - with(Provider<?>) - Method in class org.modelmapper.PropertyMap
-
Specifies a provider to be used for providing instances of the mapped property.
- wrap(Class<S>, Class<D>, Converter<S, D>) - Static method in class org.modelmapper.spi.StrongTypeConditionalConverter
All Classes All Packages