/** * <b>DOM</b>: Implements {@link TreeWalker#setCurrentNode(Node)}. */ public void setCurrentNode(Node n) { if (n == null) { throw ((AbstractNode)root).createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.current.node", null); } currentNode = n; }
/** * <b>DOM</b>: Implements {@link TreeWalker#setCurrentNode(Node)}. */ public void setCurrentNode(Node n) { if (n == null) { throw ((AbstractNode)root).createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.current.node", null); } currentNode = n; }
/** * <b>DOM</b>: Implements {@link TreeWalker#setCurrentNode(Node)}. */ public void setCurrentNode(Node n) { if (n == null) { throw ((AbstractNode)root).createDOMException (DOMException.NOT_SUPPORTED_ERR, "null.current.node", null); } currentNode = n; }
/** * Sets the node immediately preceding this node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setPreviousSibling(Node n) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "sibling.not.allowed", new Object[] { new Integer(getNodeType()), getNodeName() }); }
/** * Sets the node immediately following this node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setNextSibling(Node n) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "sibling.not.allowed", new Object[] { new Integer(getNodeType()), getNodeName() }); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Node#replaceChild(Node, Node)}. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public Node replaceChild(Node newChild, Node oldChild) throws DOMException { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] { new Integer(getNodeType()), getNodeName()}); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Node#insertBefore(Node, Node)}. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public Node insertBefore(Node newChild, Node refChild) throws DOMException { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#appendChild(Node)}. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public Node appendChild(Node newChild) throws DOMException { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * Sets the parent node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setParentNode(Node v) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "parent.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#removeChild(Node)}. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public Node removeChild(Node oldChild) throws DOMException { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#appendChild(Node)}. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public Node appendChild(Node newChild) throws DOMException { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Node#replaceChild(Node, Node)}. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public Node replaceChild(Node newChild, Node oldChild) throws DOMException { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] {(int) getNodeType(), getNodeName()}); }
/** * Sets the node immediately preceding this node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setPreviousSibling(Node n) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "sibling.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * Checks the validity of a node to be inserted. */ protected void checkChildType(Node n, boolean replace) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * Sets the value of the specified attribute. This method only applies * to Attr objects. */ public void setSpecified(boolean v) { throw createDOMException(DOMException.INVALID_STATE_ERR, "node.type", new Object[] {(int) getNodeType(), getNodeName()}); }
/** * Sets the node immediately following this node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setNextSibling(Node n) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "sibling.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * Sets the parent node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setParentNode(Node v) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "parent.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * Sets the node immediately preceding this node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setPreviousSibling(Node n) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "sibling.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * Sets the node immediately following this node. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public void setNextSibling(Node n) { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "sibling.not.allowed", new Object[] {(int) getNodeType(), getNodeName() }); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Node#replaceChild(Node, Node)}. * Throws a HIERARCHY_REQUEST_ERR {@link org.w3c.dom.DOMException}. */ public Node replaceChild(Node newChild, Node oldChild) throws DOMException { throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "children.not.allowed", new Object[] {(int) getNodeType(), getNodeName()}); }