Code example for NamedNodeMap

Methods: getNamedItem

0
		String text = shortNodeName;
 
		if ("load-time-weaver".equals(shortNodeName)) {
			text += " ";
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				attr = attrs.getNamedItem("weaver-class");
				if (attr != null) {
					text += '[' + attr.getNodeValue() + ']';
				} 
			} 
		} 
		else if ("component-scan".equals(shortNodeName)) {
			text += " ";
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				attr = attrs.getNamedItem("base-package");
				if (attr != null) {
					text += '[' + attr.getNodeValue() + ']';
				} 
			} 
		}