|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.xmlmerge.config.ConfigurableXmlMerge
public class ConfigurableXmlMerge
XmlMerge wrapper applying a configurer on the wrapped instance.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
Document |
merge(Document[] sources)
Merges the given Document sources. |
InputStream |
merge(InputStream[] sources)
Merges the given InputStream sources. |
String |
merge(String[] sources)
Merges the given String sources. |
void |
setRootMapper(Mapper rootMapper)
Sets the Mapper which will be applied to the root element. |
void |
setRootMergeAction(MergeAction rootMergeAction)
Sets the MergeAction which will be applied to the root element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurableXmlMerge(Configurer configurer) throws ConfigurationException
configurer
- The configurer used to configure the XmlMerge instance
ConfigurationException
- If an error occurred during configurationpublic ConfigurableXmlMerge(XmlMerge wrappedXmlMerge, Configurer configurer) throws ConfigurationException
wrappedXmlMerge
- The wrapped XmlMerge instance to configureconfigurer
- The configurer to apply
ConfigurationException
- If an error occurred during configurationMethod Detail |
---|
public InputStream merge(InputStream[] sources) throws AbstractXmlMergeException
merge
in interface XmlMerge
sources
- Array of InputStream sources to merge
AbstractXmlMergeException
- If an error occurred during the mergepublic Document merge(Document[] sources) throws AbstractXmlMergeException
merge
in interface XmlMerge
sources
- Array of Document sources to merge
AbstractXmlMergeException
- If an error occurred during the mergepublic String merge(String[] sources) throws AbstractXmlMergeException
merge
in interface XmlMerge
sources
- Array of String sources to merge
AbstractXmlMergeException
- If an error occurred during the mergepublic void setRootMapper(Mapper rootMapper)
setRootMapper
in interface XmlMerge
rootMapper
- The Mapper which will be applied to the root elementpublic void setRootMergeAction(MergeAction rootMergeAction)
setRootMergeAction
in interface XmlMerge
rootMergeAction
- The MergeAction which will be applied to the root element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |