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
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getNamedItem
		 
		BaseObject.toObject(node, obj);
		 
		NamedNodeMap attrMap = node.getAttributes();
		if (attrMap != null) {
			Node companyId = attrMap.getNamedItem(A_COMPANYID);
			Node expectStartDate = attrMap.getNamedItem(A_EXPECTSTARTDATE);
			Node expectEndDate = attrMap.getNamedItem(A_EXPECTENDDATE);
			Node realStartDate = attrMap.getNamedItem(A_REALSTARTDATE);
			Node realEndDate = attrMap.getNamedItem(A_REALENDDATE);
			 
			if (companyId != null)
				obj.setCompanyId(companyId.getNodeValue());
			if (expectStartDate != null)
				obj.setExpectStartDate(DateUtil.toDate(expectStartDate.getNodeValue()));
			if (expectEndDate != null)
				obj.setExpectEndDate(DateUtil.toDate(expectEndDate.getNodeValue()));
			if (realStartDate != null)
				obj.setRealStartDate(DateUtil.toDate(realStartDate.getNodeValue()));
			if (realEndDate != null)
7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getNamedItem
		 
		MisObject.toObject(node, obj);
		 
		NamedNodeMap attrMap = node.getAttributes();
		if (attrMap != null) {
			Node type = attrMap.getNamedItem(A_TYPE);
			Node fromType = attrMap.getNamedItem(A_FROMTYPE);
			Node fromRef = attrMap.getNamedItem(A_FROMREF);
			Node toType = attrMap.getNamedItem(A_TOTYPE);
			Node toRef = attrMap.getNamedItem(A_TOREF);
			if (type != null)
				obj.setType(type.getNodeValue());
			if (fromType != null)
				obj.setFromType(fromType.getNodeValue());
			if (fromRef != null)
				obj.setFromRef(fromRef.getNodeValue());
			if (toType != null)
				obj.setToType(toType.getNodeValue());
			if (toRef != null)
				obj.setToRef(toRef.getNodeValue());
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java

Related Java 8 NamedNodeMap Questions & Answers:

See Code Examples for Java 8 NamedNodeMap Methods: