Package ch.galinet.xml.xmlmerge.config
Class AbstractXPathConfigurer
java.lang.Object
ch.galinet.xml.xmlmerge.config.AbstractXPathConfigurer
- All Implemented Interfaces:
Configurer
- Direct Known Subclasses:
PropertyXPathConfigurer
Superclass for configurers using XPathOperationFactory.
- Author:
- Laurent Bovet (LBO), Alex Mathey (AMA)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidAdds an action for a given XPath expression.protected final voidAdds an mapper for a given XPath expression.protected final voidaddMatcher(String xPath, String matcherName) Adds a matcher for a given XPath expression.final voidConfigures the specified XmlMerge instance.protected abstract voidReads the configuration used to configure an XmlMerge.voidsetActionResolver(OperationResolver actionResolver) Sets the configurer's action resolver.protected final voidsetDefaultAction(String actionName) Sets the configurer's default action.protected final voidsetDefaultMapper(String mapperName) Sets the configurer's default mapper.protected final voidsetDefaultMatcher(String matcherName) Sets the configurer's default matcher.voidsetMapperResolver(OperationResolver mapperResolver) Sets the configurer's mapper resolver.voidsetMatcherResolver(OperationResolver matcherResolver) Sets the configurer's matcher resolver.protected final voidsetRootMergeAction(String actionName) Sets the configurer's root merge action.
-
Constructor Details
-
AbstractXPathConfigurer
public AbstractXPathConfigurer()
-
-
Method Details
-
setDefaultMatcher
Sets the configurer's default matcher.- Parameters:
matcherName- The name of the default matcher- Throws:
ConfigurationException- If an error occurred during configuration
-
setDefaultMapper
Sets the configurer's default mapper.- Parameters:
mapperName- The name of the default mapper- Throws:
ConfigurationException- If an error occurred during configuration
-
setDefaultAction
Sets the configurer's default action.- Parameters:
actionName- The name of the default action- Throws:
ConfigurationException- If an error occurred during configuration
-
setRootMergeAction
Sets the configurer's root merge action.- Parameters:
actionName- The name of the root merge action- Throws:
ConfigurationException- If an error occurred during configuration
-
addMatcher
Adds a matcher for a given XPath expression.- Parameters:
xPath- An XPath expressionmatcherName- The name of the matcher to add- Throws:
ConfigurationException- If an error occurred during configuration
-
addAction
Adds an action for a given XPath expression.- Parameters:
xPath- An XPath expressionactionName- The name of the action to add- Throws:
ConfigurationException- If an error occurred during configuration
-
addMapper
Adds an mapper for a given XPath expression.- Parameters:
xPath- An XPath expressionmapperName- The name of the mapper to add- Throws:
ConfigurationException- If an error occurred during configuration
-
configure
Configures the specified XmlMerge instance.- Specified by:
configurein interfaceConfigurer- Parameters:
xmlMerge- An XmlMerge instance- Throws:
ConfigurationException
-
readConfiguration
Reads the configuration used to configure an XmlMerge.- Throws:
ConfigurationException- If an error occurred during the read
-
setActionResolver
Sets the configurer's action resolver.- Parameters:
actionResolver- The action resolver to set
-
setMapperResolver
Sets the configurer's mapper resolver.- Parameters:
mapperResolver- The mapper resolver to set
-
setMatcherResolver
Sets the configurer's matcher resolver.- Parameters:
matcherResolver- the matcher resolver to set
-