Class DozerMappingMetadata

    • Constructor Detail

      • DozerMappingMetadata

        public DozerMappingMetadata​(ClassMappings classMappings)
    • Method Detail

      • getClassMappingsBySourceName

        public List<ClassMappingMetadata> getClassMappingsBySourceName​(String sourceClassName)
        Description copied from interface: MappingMetadata
        This method retrieves class mapping metadata based on the source class name.
        Specified by:
        getClassMappingsBySourceName in interface MappingMetadata
        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 sourceClassName to other classes.
      • getClassMappingsByDestinationName

        public List<ClassMappingMetadata> getClassMappingsByDestinationName​(String destinationClassName)
        Description copied from interface: MappingMetadata
        This method retrieves class mapping metadata based on the destination class name.
        Specified by:
        getClassMappingsByDestinationName in interface MappingMetadata
        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: MappingMetadata
        This method retrieves class mapping metadata based on the class names.
        Specified by:
        getClassMappingByName in interface MappingMetadata
        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 sourceClassName to a class with the name destinationClassName.
      • getClassMappingsBySource

        public List<ClassMappingMetadata> getClassMappingsBySource​(Class<?> sourceClass)
        Description copied from interface: MappingMetadata
        This method retrieves class mapping metadata based on the source class.
        Specified by:
        getClassMappingsBySource in interface MappingMetadata
        Parameters:
        sourceClass - The Class object which references the source class.
        Returns:
        A list of mapping metadata which defines how to map the class sourceClass to other classes.
      • getClassMappingsByDestination

        public List<ClassMappingMetadata> getClassMappingsByDestination​(Class<?> destinationClass)
        Description copied from interface: MappingMetadata
        This method retrieves class mapping metadata based on the destination class.
        Specified by:
        getClassMappingsByDestination in interface MappingMetadata
        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: MappingMetadata
        This method retrieves class mapping metadata based on two Class objects.
        Specified by:
        getClassMapping in interface MappingMetadata
        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 sourceClass to the class destinationClass.