Package ch.galinet.xml.xmlmerge.config
Class PropertyXPathConfigurer
java.lang.Object
ch.galinet.xml.xmlmerge.config.AbstractXPathConfigurer
ch.galinet.xml.xmlmerge.config.PropertyXPathConfigurer
- All Implemented Interfaces:
Configurer
Reads the
XPathOperationFactory
configuration from a property file or a map.- Author:
- Laurent Bovet (LBO), Alex Mathey (AMA)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAction pathname prefix.static final StringDefault action pathname.static final StringDefault mapper pathname.static final StringDefault matcher pathname.static final StringMapper pathname prefix.static final StringMatcher pathname prefix.static final StringXPath pathname prefix. -
Constructor Summary
ConstructorsConstructorDescriptionPropertyXPathConfigurer(String propString) Creates a PropertyXPathConfigurer which reads the configuration from a properties file.Creates a PropertyXPathConfigurer which reads the configuration from a map.PropertyXPathConfigurer(Properties properties) Creates a PropertyXPathConfigurer which reads the configuration from aPropertiesobject. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidReads the configuration used to configure an XmlMerge.Methods inherited from class ch.galinet.xml.xmlmerge.config.AbstractXPathConfigurer
addAction, addMapper, addMatcher, configure, setActionResolver, setDefaultAction, setDefaultMapper, setDefaultMatcher, setMapperResolver, setMatcherResolver, setRootMergeAction
-
Field Details
-
DEFAULT_ACTION_KEY
Default action pathname.- See Also:
-
DEFAULT_MAPPER_KEY
Default mapper pathname.- See Also:
-
DEFAULT_MATCHER_KEY
Default matcher pathname.- See Also:
-
PATH_PREFIX
XPath pathname prefix.- See Also:
-
MAPPER_PREFIX
Mapper pathname prefix.- See Also:
-
MATCHER_PREFIX
Matcher pathname prefix.- See Also:
-
ACTION_PREFIX
Action pathname prefix.- See Also:
-
-
Constructor Details
-
PropertyXPathConfigurer
Creates a PropertyXPathConfigurer which reads the configuration from a properties file.- Parameters:
propString- A string representing the name of a properties file- Throws:
ConfigurationException- If an error occurred during the creation of the configurer
-
PropertyXPathConfigurer
Creates a PropertyXPathConfigurer which reads the configuration from a map.- Parameters:
map- A map containing configuration properties
-
PropertyXPathConfigurer
Creates a PropertyXPathConfigurer which reads the configuration from aPropertiesobject.- Parameters:
properties- The configuration properties
-
-
Method Details
-
readConfiguration
Reads the configuration used to configure an XmlMerge.- Specified by:
readConfigurationin classAbstractXPathConfigurer- Throws:
ConfigurationException- If an error occurred during the read
-