Code example for NamedNodeMap

Methods: getNamedItem

0
		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 += " ";
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				attr = attrs.getNamedItem("id");
				if (attr != null) {
					text += attr.getNodeValue() + " ";
				} 
				attr = attrs.getNamedItem("ref");
				if (attr != null) {
					text += "<" + attr.getNodeValue() + "> ";
				} 
			} 
		} 
		else if ("advisor".equals(shortNodeName)) {
			text += " ";
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				attr = attrs.getNamedItem("id");
				if (attr != null) {
					text += attr.getNodeValue() + " ";
				} 
				attr = attrs.getNamedItem("advice-ref");
				if (attr != null) {
					text += "<" + attr.getNodeValue() + "> ";
				} 
				attr = attrs.getNamedItem("pointcut-ref");
				if (attr != null) {
					text += "<" + attr.getNodeValue() + "> ";
				} 
			} 
		} 
		else if ("before".equals(shortNodeName)
				|| "after".equals(shortNodeName)
				|| "after-returning".equals(shortNodeName)
				|| "after-throwing".equals(shortNodeName)
				|| "around".equals(shortNodeName)) {
			text += " ";
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				attr = attrs.getNamedItem("method");
				if (attr != null) {
					text += attr.getNodeValue() + " ";
				} 
				attr = attrs.getNamedItem("pointcut");
				if (attr != null) {
					text += "{" + attr.getNodeValue() + "} ";
				} 
			} 
		} 
		else if ("pointcut".equals(shortNodeName)) {
			text += " ";
			if (BeansContentOutlineConfiguration.isShowAttributes()) { 
				attr = attrs.getNamedItem("id");
				if (attr != null) {
					text += attr.getNodeValue() + " ";
				} 
			} 
		} 
Connect your IDE to all the code out there  Get Codota for Java