Code example for Node

Methods: getAttributes, getLocalName

0
	} 
 
	@Override 
	public String getText(Object element) {
		Node node = (Node) element;
		NamedNodeMap attrs = node.getAttributes();
		Node id;
		String name = node.getLocalName();
		String text = name;
		 
		if (BeansContentOutlineConfiguration.isShowAttributes()) { 
			id = attrs.getNamedItem("id");
			if (id != null) {
				text = text.concat(" " + id.getNodeValue());
			} 
		} 
		return text;
	} 
}