/** * Checks the validity of a node to add. */ protected void checkNode( Node arg ) { if ( isReadonly() ) { throw createDOMException ( DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node.map", new Object[]{} ); } if ( getOwnerDocument() != arg.getOwnerDocument() ) { throw createDOMException( DOMException.WRONG_DOCUMENT_ERR, "node.from.wrong.document", new Object[]{new Integer( arg.getNodeType() ), arg.getNodeName()} ); } if ( arg.getNodeType() == ATTRIBUTE_NODE && ( (Attr)arg ).getOwnerElement() != null ) { throw createDOMException( DOMException.WRONG_DOCUMENT_ERR, "inuse.attribute", new Object[]{arg.getNodeName()} ); } }
/** * Checks the validity of a node to add. */ protected void checkNode( Node arg ) { if ( isReadonly() ) { throw createDOMException ( DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node.map", new Object[]{} ); } if ( getOwnerDocument() != arg.getOwnerDocument() ) { throw createDOMException( DOMException.WRONG_DOCUMENT_ERR, "node.from.wrong.document", new Object[]{(int) arg.getNodeType(), arg.getNodeName()} ); } if ( arg.getNodeType() == ATTRIBUTE_NODE && ( (Attr)arg ).getOwnerElement() != null ) { throw createDOMException( DOMException.WRONG_DOCUMENT_ERR, "inuse.attribute", new Object[]{arg.getNodeName()} ); } }
/** * Checks the validity of a node to add. */ protected void checkNode( Node arg ) { if ( isReadonly() ) { throw createDOMException ( DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node.map", new Object[]{} ); } if ( getOwnerDocument() != arg.getOwnerDocument() ) { throw createDOMException( DOMException.WRONG_DOCUMENT_ERR, "node.from.wrong.document", new Object[]{(int) arg.getNodeType(), arg.getNodeName()} ); } if ( arg.getNodeType() == ATTRIBUTE_NODE && ( (Attr)arg ).getOwnerElement() != null ) { throw createDOMException( DOMException.WRONG_DOCUMENT_ERR, "inuse.attribute", new Object[]{arg.getNodeName()} ); } }
if ( isReadonly() ) { throw createDOMException ( DOMException.NO_MODIFICATION_ALLOWED_ERR,
if ( isReadonly() ) { throw createDOMException ( DOMException.NO_MODIFICATION_ALLOWED_ERR,
if ( isReadonly() ) { throw createDOMException ( DOMException.NO_MODIFICATION_ALLOWED_ERR,