| Constructor and Description |
|---|
ConfigurableXmlMerge(Configurer configurer)
Creates a default XmlMerge instance and configures it with the given configurer.
|
ConfigurableXmlMerge(XmlMerge wrappedXmlMerge,
Configurer configurer)
Applies a configurer on a wrapped XmlMerge instance.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
merge(Document[] sources)
Merges the given Document sources.
|
void |
merge(File[] sources,
File target)
Merges the given InputStream sources.
|
InputStream |
merge(InputStream[] sources)
Merges the given InputStream sources.
|
String |
merge(String[] sources)
Merges the given String sources.
|
void |
setRootMergeActionFactory(OperationFactory factory)
Sets the merge actions which will be applied to the root element.
|
void |
setRootMergeMapperFactory(OperationFactory factory)
Sets the mappers which will be applied to the root element.
|
void |
setRootMergeMatcherFactory(OperationFactory factory)
Sets the matchers which will be applied to the root element.
|
public ConfigurableXmlMerge(Configurer configurer) throws ConfigurationException
configurer - The configurer used to configure the XmlMerge instanceConfigurationException - If an error occurred during configurationpublic ConfigurableXmlMerge(XmlMerge wrappedXmlMerge, Configurer configurer) throws ConfigurationException
wrappedXmlMerge - The wrapped XmlMerge instance to configureconfigurer - The configurer to applyConfigurationException - If an error occurred during configurationpublic InputStream merge(InputStream[] sources) throws AbstractXmlMergeException
XmlMergemerge in interface XmlMergesources - Array of InputStream sources to mergeAbstractXmlMergeException - If an error occurred during the mergepublic void merge(File[] sources, File target) throws AbstractXmlMergeException
XmlMergemerge in interface XmlMergesources - Array of File sources to mergeAbstractXmlMergeException - If an error occurred during the mergepublic Document merge(Document[] sources) throws AbstractXmlMergeException
XmlMergemerge in interface XmlMergesources - Array of Document sources to mergeAbstractXmlMergeException - If an error occurred during the mergepublic String merge(String[] sources) throws AbstractXmlMergeException
XmlMergemerge in interface XmlMergesources - Array of String sources to mergeAbstractXmlMergeException - If an error occurred during the mergepublic void setRootMergeMapperFactory(OperationFactory factory)
XmlMergesetRootMergeMapperFactory in interface XmlMergepublic void setRootMergeActionFactory(OperationFactory factory)
XmlMergesetRootMergeActionFactory in interface XmlMergepublic void setRootMergeMatcherFactory(OperationFactory factory)
XmlMergesetRootMergeMatcherFactory in interface XmlMergeCopyright © 2001–2025. All rights reserved.