Code example for Node

Methods: getAttributes, getLocalName

0
 
	@Override 
	public String getText(Object o) {
		// Create Spring beans label text 
		Node node = (Node) o;
		NamedNodeMap attrs = node.getAttributes();
		Node attr;
		String shortNodeName = node.getLocalName();
		String text = shortNodeName;
 
		if ("config".equals(shortNodeName)) {
			text += " ";
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				attr = attrs.getNamedItem("proxy-target-class");
				if (attr != null) {
					text += attr.getNodeValue();
				} 
			} 
		} 
		else if ("aspect".equals(shortNodeName)) {
			text += " ";