Code example for Node

Methods: getAttributes, getLocalName

0
	} 
 
	@Override 
	public String getText(Object o) {
		Node node = (Node) o;
		NamedNodeMap attrs = node.getAttributes();
		Node attr;
		String shortNodeName = node.getLocalName();
		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 += " ";