|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.elca.el4j.services.xmlmerge.config.AbstractXPathConfigurer
public abstract class AbstractXPathConfigurer
Superclass for configurers using XPathOperationFactory.
Constructor Summary | |
---|---|
AbstractXPathConfigurer()
|
Method Summary | |
---|---|
protected void |
addAction(String xPath,
String actionName)
Adds an action for a given XPath expression. |
protected void |
addMapper(String xPath,
String mapperName)
Adds an mapper for a given XPath expression. |
protected void |
addMatcher(String xPath,
String matcherName)
Adds a matcher for a given XPath expression. |
void |
configure(XmlMerge xmlMerge)
Configures the specified XmlMerge instance. |
protected abstract void |
readConfiguration()
Reads the configuration used to configure an XmlMerge. |
void |
setActionResolver(OperationResolver actionResolver)
Sets the configurer's action resolver. |
protected void |
setDefaultAction(String actionName)
Sets the configurer's default action. |
protected void |
setDefaultMapper(String mapperName)
Sets the configurer's default mapper. |
protected void |
setDefaultMatcher(String matcherName)
Sets the configurer's default matcher. |
void |
setMapperResolver(OperationResolver mapperResolver)
Sets the configurer's mapper resolver. |
void |
setMatcherResolver(OperationResolver matcherResolver)
Sets the configurer's matcher resolver. |
protected void |
setRootMergeAction(String actionName)
Sets the configurer's root merge action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractXPathConfigurer()
Method Detail |
---|
protected final void setDefaultMatcher(String matcherName) throws ConfigurationException
matcherName
- The name of the default matcher
ConfigurationException
- If an error occurred during configurationprotected final void setDefaultMapper(String mapperName) throws ConfigurationException
mapperName
- The name of the default mapper
ConfigurationException
- If an error occurred during configurationprotected final void setDefaultAction(String actionName) throws ConfigurationException
actionName
- The name of the default action
ConfigurationException
- If an error occurred during configurationprotected final void setRootMergeAction(String actionName) throws ConfigurationException
actionName
- The name of the root merge action
ConfigurationException
- If an error occurred during configurationprotected final void addMatcher(String xPath, String matcherName) throws ConfigurationException
xPath
- An XPath expressionmatcherName
- The name of the matcher to add
ConfigurationException
- If an error occurred during configurationprotected final void addAction(String xPath, String actionName) throws ConfigurationException
xPath
- An XPath expressionactionName
- The name of the action to add
ConfigurationException
- If an error occurred during configurationprotected final void addMapper(String xPath, String mapperName) throws ConfigurationException
xPath
- An XPath expressionmapperName
- The name of the mapper to add
ConfigurationException
- If an error occurred during configurationpublic final void configure(XmlMerge xmlMerge) throws ConfigurationException
configure
in interface Configurer
xmlMerge
- An XmlMerge instance
ConfigurationException
protected abstract void readConfiguration() throws ConfigurationException
ConfigurationException
- If an error occurred during the readpublic void setActionResolver(OperationResolver actionResolver)
actionResolver
- The action resolver to setpublic void setMapperResolver(OperationResolver mapperResolver)
mapperResolver
- The mapper resolver to setpublic void setMatcherResolver(OperationResolver matcherResolver)
matcherResolver
- the matcher resolver to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |