Uses of Interface
org.modelmapper.TypeMap
Packages that use TypeMap
Package
Description
ModelMapper is an intelligent object mapping library.
Service Provider Interface
-
Uses of TypeMap in org.modelmapper
Methods in org.modelmapper that return TypeMapModifier and TypeMethodDescriptionTypeMap.addMapping(SourceGetter<S> sourceGetter, DestinationSetter<D, V> destinationSetter) Adds a mapping intoTypeMapby definingsourceGetter->destinationSetter<S,D> TypeMap<S, D> ModelMapper.addMappings(PropertyMap<S, D> propertyMap) Adds mappings from thepropertyMapinto the TypeMap corresponding to source typeSand destination typeD.TypeMap.addMappings(ExpressionMap<S, D> mapper) Add a mapping intoTypeMapby defining amapperaction You can chainaddMappingscontains only one property mapping likeTypeMap.addMappings(PropertyMap<S, D> propertyMap) Loads mappings from thepropertyMapinto the TypeMap.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(Class<S> sourceType, Class<D> destinationType) Creates a TypeMap for thesourceTypeanddestinationTypeusing the ModelMapper's configuration.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(Class<S> sourceType, Class<D> destinationType, String typeMapName) Creates a TypeMap for thesourceTypeanddestinationTypeidentified by thetypeMapNameusing the ModelMapper's configuration.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(Class<S> sourceType, Class<D> destinationType, String typeMapName, Configuration configuration) Creates a TypeMap for thesourceTypeanddestinationTypeidentified by thetypeMapNameusing theconfiguration.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(Class<S> sourceType, Class<D> destinationType, Configuration configuration) Creates a TypeMap for thesourceTypeanddestinationTypeusing theconfiguration.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(S source, Class<D> destinationType) Creates a TypeMap for thesource's type anddestinationTypeusing the ModelMapper's configuration.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(S source, Class<D> destinationType, String typeMapName) Creates a TypeMap for thesource's type anddestinationTypeidentified by thetypeMapNameusing the ModelMapper's configuration.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(S source, Class<D> destinationType, String typeMapName, Configuration configuration) Creates a TypeMap for thesource's type anddestinationTypeidentified by thetypeMapNameusing theconfiguration.<S,D> TypeMap<S, D> ModelMapper.createTypeMap(S source, Class<D> destinationType, Configuration configuration) Creates a TypeMap for thesource's type anddestinationTypeusing theconfiguration.<S,D> TypeMap<S, D> ModelMapper.emptyTypeMap(Class<S> sourceType, Class<D> destinationType) Creates an empty TypeMap for thesourceType,destinationType.<S,D> TypeMap<S, D> ModelMapper.emptyTypeMap(Class<S> sourceType, Class<D> destinationType, String typeMapName) Creates an empty TypeMap for thesourceType,destinationType.<S,D> TypeMap<S, D> ModelMapper.getTypeMap(Class<S> sourceType, Class<D> destinationType) Returns the TypeMap for thesourceTypeanddestinationType, else returnsnullif none exists.<S,D> TypeMap<S, D> ModelMapper.getTypeMap(Class<S> sourceType, Class<D> destinationType, String typeMapName) Returns the TypeMap for thesourceType,destinationTypeandtypeMapName, else returnsnullif none exists.TypeMap.implicitMappings()Performs implicit mapping.Makes this TypeMap is also supporting on the mapping fromsourceTypetobaseDestinationType.Constructs a new TypeMap derived fromthis.TypeMap.include(TypeSafeSourceGetter<S, P> sourceGetter, Class<P> propertyType) Includesmappingsfrom property's TypeMap.TypeMap.includeBase(Class<? super S> sourceType, Class<? super D> destinationType) Includesmappingsfrom a baseTypeMap.TypeMap.setCondition(Condition<?, ?> condition) Sets theconditionthat must apply for the source and destination in order for mapping to take place.TypeMap.setConverter(Converter<S, D> converter) Sets theconverterto be used for any conversion requests for the TypeMap's source to destination type.TypeMap.setPostConverter(Converter<S, D> converter) Sets theconverterto be used after mapping between the source and destination types.TypeMap.setPreConverter(Converter<S, D> converter) Sets theconverterto be used before mapping between the source and destination types.TypeMap.setPropertyCondition(Condition<?, ?> condition) Sets theconditionthat must apply in order for properties in this TypeMap to be mapped.TypeMap.setPropertyConverter(Converter<?, ?> converter) Sets theconverterto be used for converting properties in the TypeMap.TypeMap.setPropertyProvider(Provider<?> provider) Sets theproviderto be used for providing instances of properties during mapping.TypeMap.setProvider(Provider<D> provider) Sets theproviderto be used for providing instances of destination typeDduring mapping.<S,D> TypeMap<S, D> Returns the TypeMap for thesourceType,destinationType, creates TypeMap automatically if none exists.<S,D> TypeMap<S, D> Returns the TypeMap for thesourceType,destinationType, andtypeMapNamecreates TypeMap automatically if none exists.Methods in org.modelmapper that return types with arguments of type TypeMapModifier and TypeMethodDescriptionCollection<TypeMap<?,?>> ModelMapper.getTypeMaps()Returns all TypeMaps for the ModelMapper. -
Uses of TypeMap in org.modelmapper.spi
Methods in org.modelmapper.spi that return TypeMapModifier and TypeMethodDescriptionMappingContext.getTypeMap()Returns the TypeMap associated with the mapping request elsenullif the request did not originate from a TypeMap.