Interface MappingMetadata
-
- All Known Implementing Classes:
DozerMappingMetadata
public interface MappingMetadataThis interface can be used to query mapping metadata from the dozer internal data structures. It provides read only access to all important aspects of the mapping information on class and field level.
-
-
Field Summary
Fields Modifier and Type Field Description static MappingMetadataEMPTY
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
EMPTY
static final MappingMetadata EMPTY
-
-
Method Detail
-
getClassMappings
List<ClassMappingMetadata> getClassMappings()
Obtains a list of all available mapping definitions.- Returns:
- A list of
ClassMappingMetadata
-
getClassMappingsBySourceName
List<ClassMappingMetadata> getClassMappingsBySourceName(String sourceClassName)
This method retrieves class mapping metadata based on the source class name.- 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
List<ClassMappingMetadata> getClassMappingsByDestinationName(String destinationClassName)
This method retrieves class mapping metadata based on the destination class name.- 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
ClassMappingMetadata getClassMappingByName(String sourceClassName, String destinationClassName)
This method retrieves class mapping metadata based on the class names.- 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
List<ClassMappingMetadata> getClassMappingsBySource(Class<?> sourceClass)
This method retrieves class mapping metadata based on the source class.- 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
List<ClassMappingMetadata> getClassMappingsByDestination(Class<?> destinationClass)
This method retrieves class mapping metadata based on the destination class.- 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
ClassMappingMetadata getClassMapping(Class<?> sourceClass, Class<?> destinationClass)
This method retrieves class mapping metadata based on two Class objects.- 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. - Throws:
MetadataLookupException- If no class map could be found.
-
-