Code example for Node

Methods: getAttributes

0
		if (baseObj == null || !(baseObj instanceof Memo))
			obj = new Memo();
		else 
			obj = (Memo)baseObj;
		//부모 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);
			 
			if (content != null)
				obj.setTitle(title.getNodeValue());
				obj.setContent(content.getNodeValue());
		} 
		//element값 설정 
		 
		return  obj;
	} 
Experience pair programming with AI  Get Codota for Java