[SPR-6017] a few more tweaks to the BeanDefinitionParserDelegate public contract
This commit is contained in:
parent
582c092f0e
commit
7d37c92e4f
|
|
@ -1408,14 +1408,15 @@ public class BeanDefinitionParserDelegate {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether the name of the supplied node is equal to the supplied name.
|
* Determines whether the name of the supplied node is equal to the supplied name.
|
||||||
* The default implementation delegates to {@link DomUtils#nodeNameEquals}.
|
* The default implementation checks the supplied desired name against both {@link Node#getNodeName)
|
||||||
* Subclasses may override the default implementatino to provide a different mechanism for comparing node names.
|
* and {@link #getLoclName}.
|
||||||
|
* Subclasses may override the default implementation to provide a different mechanism for comparing node names.
|
||||||
* @param node the node to compare
|
* @param node the node to compare
|
||||||
* @param desiredName the name to check for
|
* @param desiredName the name to check for
|
||||||
* @return <code>true</code> if the names are equal otherwise <code>false</code>.
|
* @return <code>true</code> if the names are equal otherwise <code>false</code>.
|
||||||
*/
|
*/
|
||||||
public boolean nodeNameEquals(Node node, String desiredName) {
|
public boolean nodeNameEquals(Node node, String desiredName) {
|
||||||
return DomUtils.nodeNameEquals(node, desiredName);
|
return desiredName.equals(node.getNodeName()) || desiredName.equals(getLocalName(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue