Code example for Node

Methods: getAttributes, hasAttributes

0
		return data;
	} 
 
	private static final String getAttribute(Node node, String attributeName) {
		if (hasAttribute(node, attributeName)) {
			return node.getAttributes().getNamedItem(attributeName).getNodeValue();
		} 
		return null; 
	} 
 
	private static final boolean hasAttribute(Node node, String attributeName) {
		return (node != null && node.hasAttributes() && node.getAttributes().getNamedItem(attributeName) != null);
	} 
 
	/** 
	 * Helper class carrying information from attribute annotations. 
	 */ 
	public static class ToolAnnotationData { 
 
		private String kind;