Java 8 NamedNodeMap - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 NamedNodeMap class.

This code example shows how to use the following methods:getNamedItem
		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) {

7
CodeRank
This code example shows how to use the following methods:getNamedItem
		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) {

7
CodeRank
This code example shows how to use the following methods:getNamedItem
This code example shows how to use the following methods:getNamedItem
This code example shows how to use the following methods:getNamedItem
This code example shows how to use the following methods:getNamedItem
This code example shows how to use the following methods:getNamedItem
		//부모 attributes, elements값 설정 
		MisObject.toObject(node, obj);
		 
		NamedNodeMap attrMap = node.getAttributes();
		if (attrMap != null) {
			Node title = attrMap.getNamedItem(A_TITLE);
			Node content = attrMap.getNamedItem(A_CONTENT);
			Node fileGroupId = attrMap.getNamedItem(A_FILEGROUPID);
			Node startDate = attrMap.getNamedItem(A_STARTDATE);
			Node endDate = attrMap.getNamedItem(A_ENDDATE);
 
			if (content != null)
				obj.setTitle(title.getNodeValue());
				obj.setContent(content.getNodeValue());
				obj.setFileGroupId(fileGroupId.getNodeValue());
				obj.setStartDate(DateUtil.toDate(startDate.getNodeValue()));
				obj.setEndDate(DateUtil.toDate(endDate.getNodeValue()));
		} 
		//element값 설정 
		 
6
CodeRank
This code example shows how to use the following methods:getNamedItem
This code example shows how to use the following methods:getNamedItem
This code example shows how to use the following methods:getNamedItem
		// 부모 attributes, elements 값 설정 
		SwoObject.toObject(node, obj);
		 
		NamedNodeMap attrMap = node.getAttributes();
		if (attrMap != null) {
			Node companyId = attrMap.getNamedItem(A_COMPANYID);
			Node deptId = attrMap.getNamedItem(A_DEPTID);
			Node pos = attrMap.getNamedItem(A_POSITION);
			Node email = attrMap.getNamedItem(A_EMAIL);
			Node telephone = attrMap.getNamedItem(A_TELEPHONE);
			if (companyId != null)
				obj.setCompanyId(companyId.getNodeValue());
			if (deptId != null)
				obj.setDeptId(deptId.getNodeValue());
			if (pos != null)
				obj.setPosition(pos.getNodeValue());
			if (email != null)
				obj.setEmail(email.getNodeValue());
			if (telephone != null)
				obj.setTelephone(telephone.getNodeValue());
6
CodeRank

Related Java 8 NamedNodeMap Questions & Answers:

See Code Examples for Java 8 NamedNodeMap Methods: