- CAMEL_CASE - Static variable in class org.modelmapper.convention.NameTokenizers
-
Tokenizes class and property names according to the CamelCase naming convention.
- 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
-
- Conditions() - Constructor for class org.modelmapper.Conditions
-
- 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.
- 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
-
- convert(S) - Method in class org.modelmapper.AbstractConverter
-
Converts source
to an instance of type D
.
- convert(MappingContext<S, D>) - Method in interface org.modelmapper.Converter
-
- Converter<S,D> - Interface in org.modelmapper
-
Converts instances of source type S
to instances of destination type D
.
- ConverterExpression<S,D> - Interface in org.modelmapper.builder
-
Expresses a Converter.
- copy() - Method in interface org.modelmapper.config.Configuration
-
Returns a copy of the Configuration.
- create(CS, Class<CD>) - Method in interface org.modelmapper.spi.MappingContext
-
Creates a new child MappingContext for the source
and destinationType
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
and destinationType
using the
ModelMapper's configuration.
- createTypeMap(Class<S>, Class<D>, Configuration) - Method in class org.modelmapper.ModelMapper
-
Creates a TypeMap for the sourceType
and destinationType
using the given
configuration
.
- get(Provider.ProvisionRequest<T>) - Method in class org.modelmapper.AbstractProvider
-
- get() - Method in class org.modelmapper.AbstractProvider
-
Provides an instance of type T
.
- get(Provider.ProvisionRequest<T>) - Method in interface org.modelmapper.Provider
-
Returns an instance of the requested type T
else null
if the requested type
cannot be provided.
- getAnnotation(Class<T>) - Method in interface org.modelmapper.spi.PropertyInfo
-
Returns the annotation on the property's member for the annotationClass
or null 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 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.
- getDestinationPropertyTokens() - Method in interface org.modelmapper.spi.MatchingStrategy.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.
- 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 a TypeMap
.
- 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.
- 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.
- 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.
- 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.
- 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.MatchingStrategy.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.
- getSourcePropertyTokens() - Method in interface org.modelmapper.spi.MatchingStrategy.PropertyNameInfo
-
Returns transformed name tokens for the source property.
- getSourcePropertyTypeTokens() - Method in interface org.modelmapper.spi.MatchingStrategy.PropertyNameInfo
-
Returns transformed name tokens for each source property type.
- getSourceType() - Method in interface org.modelmapper.spi.MappingContext
-
Returns the source type being mapped from.
- getSourceType() - Method in interface org.modelmapper.spi.SourceMapping
-
Gets the source object type.
- 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.
- getTypeMap(Class<S>, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Returns the TypeMap for the sourceType
and destinationType
, else returns
null
if none exists.
- 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.
- 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.
- map() - Method in interface org.modelmapper.builder.MapExpression
-
Defines a mapping to a destination.
- map(Object) - Method in interface org.modelmapper.builder.MapExpression
-
Defines a mapping from the source
to a destination.
- map(Object, Class<D>) - Method in class org.modelmapper.ModelMapper
-
Maps source
to an instance of destinationType
.
- map(Object, Object) - Method in class org.modelmapper.ModelMapper
-
Maps source
to destination
.
- map() - Method in class org.modelmapper.PropertyMap
-
Defines a mapping to a destination.
- map(Object) - Method in class org.modelmapper.PropertyMap
-
Defines a mapping from the source
to a destination.
- map(MappingContext<S, D>) - Method in interface org.modelmapper.spi.MappingEngine
-
Maps an instance of type D
for the context
.
- map(S) - Method in interface org.modelmapper.TypeMap
-
Maps source
to an instance of type D
.
- map(S, D) - Method in interface org.modelmapper.TypeMap
-
Maps source
to destination
.
- 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 type D
.
- 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
to
destinationType
.
- matches(MatchingStrategy.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
-
- 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.
- MatchingStrategy.PropertyNameInfo - Interface in org.modelmapper.spi
-
Encapsulates property name information to be use for determining whether a hierarchy of source
and destination properties match.
- ModelMapper - Class in org.modelmapper
-
ModelMapper framework entry point.
- ModelMapper() - Constructor for class org.modelmapper.ModelMapper
-
Creates a new ModelMapper.
- setCondition(Condition<?, ?>) - Method in interface org.modelmapper.TypeMap
-
Sets the condition
that must apply 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.
- 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
.
- 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
.
- 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 type D
during mapping.
- 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.
- 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.
- 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.
- 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.