Code example for Map

Methods: putAll

0
	public HTMLNode(String name, String[] attributeNames, String[] attributeValues) {
		this(name, attributeNames, attributeValues, null);
	} 
 
	protected HTMLNode(HTMLNode node, boolean clearReadOnly) {
		attributes.putAll(node.attributes);
		children.addAll(node.children);
		content = node.content;
		name = node.name;
		if(clearReadOnly)
			readOnly = false;
		else 
			readOnly = node.readOnly;
	} 
	 
	@Override 
	public HTMLNode clone() { 
		// Implement Cloneable to shut up findbugs. We need a deep copy. 
		// FIXME is clearing read only an abuse of the clone() API? Should we rename the method? 
		return new HTMLNode(this, true);
	}