Class BeanMappingXMLBuilder
- java.lang.Object
-
- com.github.dozermapper.core.builder.xml.BeanMappingXMLBuilder
-
- All Implemented Interfaces:
BeanMappingsBuilder
public class BeanMappingXMLBuilder extends Object implements BeanMappingsBuilder
Builds a mapping definition based on a XML file
-
-
Constructor Summary
Constructors Constructor Description BeanMappingXMLBuilder(BeanContainer beanContainer, ELEngine elEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MappingFileData>build(BeanContainer beanContainer, DestBeanCreator destBeanCreator, PropertyDescriptorFactory propertyDescriptorFactory)Builds a collection mappings to be usedvoidloadFiles(List<String> files)Loads the collection of files into memory and parses the XMLvoidloadInputStreams(List<Supplier<InputStream>> xmlMappingSuppliers)Loads the collection of streams into memory and parses the XML
-
-
-
Constructor Detail
-
BeanMappingXMLBuilder
public BeanMappingXMLBuilder(BeanContainer beanContainer, ELEngine elEngine)
-
-
Method Detail
-
loadFiles
public void loadFiles(List<String> files)
Loads the collection of files into memory and parses the XML- Parameters:
files- collection of file paths
-
loadInputStreams
public void loadInputStreams(List<Supplier<InputStream>> xmlMappingSuppliers)
Loads the collection of streams into memory and parses the XML- Parameters:
xmlMappingSuppliers- collection of streams to xml file/content
-
build
public List<MappingFileData> build(BeanContainer beanContainer, DestBeanCreator destBeanCreator, PropertyDescriptorFactory propertyDescriptorFactory)
Builds a collection mappings to be used- Specified by:
buildin interfaceBeanMappingsBuilder- Parameters:
beanContainer- bean container instancedestBeanCreator- bean creator instancepropertyDescriptorFactory- property descriptor instance- Returns:
- mappings
-
-