Class DozerMappingMetadata
- java.lang.Object
-
- com.github.dozermapper.core.metadata.DozerMappingMetadata
-
- All Implemented Interfaces:
MappingMetadata
public final class DozerMappingMetadata extends Object implements MappingMetadata
Internal use only.
-
-
Field Summary
-
Fields inherited from interface com.github.dozermapper.core.metadata.MappingMetadata
EMPTY
-
-
Constructor Summary
Constructors Constructor Description DozerMappingMetadata(ClassMappings classMappings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassMappingMetadatagetClassMapping(Class<?> sourceClass, Class<?> destinationClass)This method retrieves class mapping metadata based on two Class objects.ClassMappingMetadatagetClassMappingByName(String sourceClassName, String destinationClassName)This method retrieves class mapping metadata based on the class names.List<ClassMappingMetadata>getClassMappings()Obtains a list of all available mapping definitions.List<ClassMappingMetadata>getClassMappingsByDestination(Class<?> destinationClass)This method retrieves class mapping metadata based on the destination class.List<ClassMappingMetadata>getClassMappingsByDestinationName(String destinationClassName)This method retrieves class mapping metadata based on the destination class name.List<ClassMappingMetadata>getClassMappingsBySource(Class<?> sourceClass)This method retrieves class mapping metadata based on the source class.List<ClassMappingMetadata>getClassMappingsBySourceName(String sourceClassName)This method retrieves class mapping metadata based on the source class name.
-
-
-
Constructor Detail
-
DozerMappingMetadata
public DozerMappingMetadata(ClassMappings classMappings)
-
-
Method Detail
-
getClassMappings
public List<ClassMappingMetadata> getClassMappings()
Description copied from interface:MappingMetadataObtains a list of all available mapping definitions.- Specified by:
getClassMappingsin interfaceMappingMetadata- Returns:
- A list of
ClassMappingMetadata
-
getClassMappingsBySourceName
public List<ClassMappingMetadata> getClassMappingsBySourceName(String sourceClassName)
Description copied from interface:MappingMetadataThis method retrieves class mapping metadata based on the source class name.- Specified by:
getClassMappingsBySourceNamein interfaceMappingMetadata- Parameters:
sourceClassName- The fully qualified class name of the source class.- Returns:
- A list of mapping metadata which defines how to map a class with the name
sourceClassNameto other classes.
-
getClassMappingsByDestinationName
public List<ClassMappingMetadata> getClassMappingsByDestinationName(String destinationClassName)
Description copied from interface:MappingMetadataThis method retrieves class mapping metadata based on the destination class name.- Specified by:
getClassMappingsByDestinationNamein interfaceMappingMetadata- Parameters:
destinationClassName- The fully qualified class name of the destination class.- Returns:
- A list of mapping metadata which defines how to map to a class with the name
destinationClassName.
-
getClassMappingByName
public ClassMappingMetadata getClassMappingByName(String sourceClassName, String destinationClassName)
Description copied from interface:MappingMetadataThis method retrieves class mapping metadata based on the class names.- Specified by:
getClassMappingByNamein interfaceMappingMetadata- Parameters:
sourceClassName- The fully qualified class name of the source class.destinationClassName- The fully qualified class name of the destination class.- Returns:
- A list of mapping metadata which defines how to map a class with the name
sourceClassNameto a class with the namedestinationClassName.
-
getClassMappingsBySource
public List<ClassMappingMetadata> getClassMappingsBySource(Class<?> sourceClass)
Description copied from interface:MappingMetadataThis method retrieves class mapping metadata based on the source class.- Specified by:
getClassMappingsBySourcein interfaceMappingMetadata- Parameters:
sourceClass- The Class object which references the source class.- Returns:
- A list of mapping metadata which defines how to map the class
sourceClassto other classes.
-
getClassMappingsByDestination
public List<ClassMappingMetadata> getClassMappingsByDestination(Class<?> destinationClass)
Description copied from interface:MappingMetadataThis method retrieves class mapping metadata based on the destination class.- Specified by:
getClassMappingsByDestinationin interfaceMappingMetadata- Parameters:
destinationClass- The Class object which references the destination class.- Returns:
- A list of mapping metadata which defines how to map to the class
destinationClass.
-
getClassMapping
public ClassMappingMetadata getClassMapping(Class<?> sourceClass, Class<?> destinationClass)
Description copied from interface:MappingMetadataThis method retrieves class mapping metadata based on two Class objects.- Specified by:
getClassMappingin interfaceMappingMetadata- Parameters:
sourceClass- The Class object that references the source class.destinationClass- The Class object that references the destination class.- Returns:
- The mapping metadata object which defines how to map the class
sourceClassto the classdestinationClass.
-
-