throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] { new Integer(getNodeType()), throw createDOMException(DOMException.WRONG_DOCUMENT_ERR, "node.from.wrong.document", new Object[] { new Integer(getNodeType()), getNodeName() }); if (this == n) throw createDOMException (DOMException.HIERARCHY_REQUEST_ERR, "add.self", new Object[] { getNodeName() }); throw createDOMException (DOMException.HIERARCHY_REQUEST_ERR, "add.ancestor",
throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] {(int) getNodeType(), throw createDOMException(DOMException.WRONG_DOCUMENT_ERR, "node.from.wrong.document", new Object[] {(int) getNodeType(), getNodeName() }); if (this == n) throw createDOMException (DOMException.HIERARCHY_REQUEST_ERR, "add.self", new Object[] { getNodeName() }); throw createDOMException (DOMException.HIERARCHY_REQUEST_ERR, "add.ancestor",
throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] {(int) getNodeType(), throw createDOMException(DOMException.WRONG_DOCUMENT_ERR, "node.from.wrong.document", new Object[] {(int) getNodeType(), getNodeName() }); if (this == n) throw createDOMException (DOMException.HIERARCHY_REQUEST_ERR, "add.self", new Object[] { getNodeName() }); throw createDOMException (DOMException.HIERARCHY_REQUEST_ERR, "add.ancestor",
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#removeChild(Node)}. */ public Node removeChild(Node oldChild) throws DOMException { if (childNodes == null || oldChild.getParentNode() != this) { throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing", new Object[] { new Integer(oldChild.getNodeType()), oldChild.getNodeName() }); } if (isReadonly()) { throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] { new Integer(getNodeType()), getNodeName() }); } // Mutation event fireDOMNodeRemovedEvent(oldChild); getCurrentDocument().nodeToBeRemoved(oldChild); nodeToBeRemoved(oldChild); // Node modification ExtendedNode result = childNodes.remove((ExtendedNode)oldChild); result.setParentNode(null); // Mutation event fireDOMSubtreeModifiedEvent(); return result; }
if ((refChild != null) && ((childNodes == null) || (refChild.getParentNode() != this))) throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
if ((refChild != null) && ((childNodes == null) || (refChild.getParentNode() != this))) throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
if ((refChild != null) && ((childNodes == null) || (refChild.getParentNode() != this))) throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#removeChild(Node)}. */ public Node removeChild(Node oldChild) throws DOMException { if (childNodes == null || oldChild.getParentNode() != this) { throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing", new Object[] {(int) oldChild.getNodeType(), oldChild.getNodeName() }); } if (isReadonly()) { throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] {(int) getNodeType(), getNodeName() }); } // Mutation event fireDOMNodeRemovedEvent(oldChild); getCurrentDocument().nodeToBeRemoved(oldChild); nodeToBeRemoved(oldChild); // Node modification ExtendedNode result = childNodes.remove((ExtendedNode)oldChild); result.setParentNode(null); // Mutation event fireDOMSubtreeModifiedEvent(); return result; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#removeChild(Node)}. */ public Node removeChild(Node oldChild) throws DOMException { if (childNodes == null || oldChild.getParentNode() != this) { throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing", new Object[] {(int) oldChild.getNodeType(), oldChild.getNodeName() }); } if (isReadonly()) { throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] {(int) getNodeType(), getNodeName() }); } // Mutation event fireDOMNodeRemovedEvent(oldChild); getCurrentDocument().nodeToBeRemoved(oldChild); nodeToBeRemoved(oldChild); // Node modification ExtendedNode result = childNodes.remove((ExtendedNode)oldChild); result.setParentNode(null); // Mutation event fireDOMSubtreeModifiedEvent(); return result; }
throws DOMException { if ((childNodes == null) || (oldChild.getParentNode() != this) ) throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throws DOMException { if ((childNodes == null) || (oldChild.getParentNode() != this) ) throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throws DOMException { if ((childNodes == null) || (oldChild.getParentNode() != this) ) throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",
throw createDOMException (DOMException.NOT_FOUND_ERR, "child.missing",