Code example for Node

Methods: getLocalName

0
	} 
 
	@Override 
	public String getText(Object o) {
		Node node = (Node) o;
		String shortNodeName = node.getLocalName();
 
		String text = shortNodeName;
		if ("groovy".equals(shortNodeName) || "bsh".equals(shortNodeName)
				|| "jruby".equals(shortNodeName)) {
			String id = BeansEditorUtils.getAttribute(node, "id");
			if (StringUtils.hasText(id)) {
				text += " " + id;
			} 
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				String ss = BeansEditorUtils
						.getAttribute(node, "script-source");
				if (StringUtils.hasText(ss)) {
					text += " [" + ss + "]";
				} 
			}