Code example for Node

Methods: getNamespaceURI

0
	} 
 
	public static BeanDefinitionHolder decorateIfRequired(Node node, BeanDefinitionHolder originalDef,
			ParserContext parserContext) {
 
		String namespaceUri = node.getNamespaceURI();
		if (!parserContext.getDelegate().isDefaultNamespace(namespaceUri) && !isRFC124Namespace(namespaceUri)) {
			NamespaceHandler handler =
					parserContext.getReaderContext().getNamespaceHandlerResolver().resolve(namespaceUri);
			if (handler != null) {
				return handler.decorate(node, originalDef, new ParserContext(parserContext.getReaderContext(),
						parserContext.getDelegate()));
			} else if (namespaceUri.startsWith("http://www.springframework.org/")) {
				parserContext.getReaderContext().error(
						"Unable to locate Spring NamespaceHandler for XML schema namespace [" + namespaceUri + "]",
						node);
			} else { 
				// A custom namespace, not to be handled by Spring - maybe "xml:...". 
			} 
		} 
Experience pair programming with AI  Get Codota for Java