public class SchemaLocationNodeValueMerge extends SpaceDelimitedNodeValueMerge
Designed to specifically handle the merge of schemaLocation references. This takes any of the Spring XSD references for particular Spring versions and replaces them with XSDs without a version reference. This allows the final XSD reference to refer to the latest version of Spring, and reduces the need for modules to be updated with every Spring update.
This will also prevents multiple XSD references that cause parse exceptions when the final XML file is presented to Spring
delimiter, regexchildren, name, priority, xpath| Constructor and Description |
|---|
SchemaLocationNodeValueMerge() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
getMergedNodeValues(Node node1,
Node node2) |
protected String |
getSanitizedValue(String attributeValue)
Sanitizes the given attribute value by stripping out the version number for the Spring XSDs.
|
getDelimitergetRegEx, mergecompareTo, getChildren, getName, getPriority, getXPath, setChildren, setName, setPriority, setXPathprotected Set<String> getMergedNodeValues(Node node1, Node node2)
getMergedNodeValues in class NodeValueMergeprotected String getSanitizedValue(String attributeValue)
Sanitizes the given attribute value by stripping out the version number for the Spring XSDs.
For example, given http://www.springframework.org/schema/beans/spring-beans-4.1.xsd this will return http://www.springframework.org/schema/beans/spring-beans.xsd
attributeValue - the value of an xsi:schemaLocation attributeCopyright © 2018. All rights reserved.