Lines Matching refs:node
73 * <b>Note:</b> When any node in the document is serialized, the
165 * the node's name, for example -- do _not_ have to call changed().
175 * Note: This used to be done a node basis, so that we knew what
178 * an int on every (parent) node plus having to walk up the tree all the
179 * way to the root to mark the branch as changed everytime a node is
305 /** Returns the node type. */
310 /** Returns the node name. */
675 * Factory method; creates a Text node having this Document as its
700 * Convenience method, allowing direct access to the child node
970 * Renaming node
1020 // register event listeners on new node
1023 // remove user data from old node
1026 // remove old node from parent if any
1032 // move children to new node
1039 // move specified attributes to new node
1042 // attach user data to new node
1049 // insert new node where old one was
1093 // register event listeners on new node
1096 // remove user data from old node
1099 // move children to new node
1107 // attach user data to new node
1182 * Returns the absolute base URI of this node or null if the implementation
1186 * @return The absolute base URI of this node or null.
1284 * context node, and the action <code>ACTION_REPLACE_CHILDREN</code>.
1315 * Save the document or the given node and all its descendants to a string
1316 * (i.e. serialize the document or node).
1321 * the node to write.
1322 * @param node Specifies what to serialize, if this parameter is
1324 * non-null the given node is serialized.
1328 * WRONG_DOCUMENT_ERR: Raised if the node passed in as the node
1331 public String saveXML(Node node)
1333 if ( errorChecking && node != null &&
1334 this != node.getOwnerDocument() ) {
1340 if (node == null) {
1341 node = this;
1343 return xmlWriter.writeToString(node);
1463 /** NON-DOM: Get a number associated with a node created with respect
1467 protected int getNodeNumber(Node node) {
1469 // Check if the node is already in the hash
1470 // If so, retrieve the node number
1471 // If not, assign a number to the node
1477 nodeTable.put(node, new Integer(num));
1480 Integer n = (Integer)nodeTable.get(node);
1483 nodeTable.put(node, new Integer(num));
1492 * Copies a node from another document to this document. The new nodes are
1556 // and cloning the document node. In case of the
1732 default: { // Unknown node type
1759 * Change the node's ownerDocument, and its subtree, to this Document
1761 * @param source The node to adopt.
1765 NodeImpl node;
1768 node = (NodeImpl) source;
1770 // source node comes from a different DOMImplementation
1783 // when the source node comes from a different implementation.
1790 undeferChildren (node);
1801 switch (node.getNodeType()) {
1803 AttrImpl attr = (AttrImpl) node;
1804 // remove node from wherever it is
1811 userData = node.getUserDataRecord();
1816 setUserDataTable(node,userData);
1835 userData = node.getUserDataRecord();
1836 // remove node from wherever it is
1837 Node parent = node.getParentNode();
1843 while ((child = node.getFirstChild()) != null) {
1844 node.removeChild(child);
1847 node.setOwnerDocument(this);
1849 setUserDataTable(node,userData);
1855 Node entityNode = entities.getNamedItem(node.getNodeName());
1862 node.appendChild(childClone);
1867 userData = node.getUserDataRecord();
1868 // remove node from wherever it is
1869 Node parent = node.getParentNode();
1874 node.setOwnerDocument(this);
1876 setUserDataTable(node,userData);
1878 ((ElementImpl)node).reconcileDefaultAttributes();
1882 userData = node.getUserDataRecord();
1883 // remove node from wherever it is
1884 Node parent = node.getParentNode();
1889 node.setOwnerDocument(this);
1891 setUserDataTable(node,userData);
1900 return node;
1908 protected void undeferChildren(Node node) {
1910 Node top = node;
1912 while (null != node) {
1914 if (((NodeImpl)node).needsSyncData()) {
1915 ((NodeImpl)node).synchronizeData();
1918 NamedNodeMap attributes = node.getAttributes();
1927 nextNode = node.getFirstChild();
1931 if (top.equals(node))
1934 nextNode = node.getNextSibling();
1937 node = node.getParentNode();
1939 if ((null == node) || (top.equals(node))) {
1946 node = nextNode;
1977 * Registers an identifier name with a specified element node.
1979 * node replaces the previous node. If the specified element
1980 * node is null, removeIdentifier() is called.
2262 * Denotes that this node has changed.
2269 * Returns the number of changes to this node.
2278 * Returns a NodeListCache for the given node.
2300 * Note: The owner node can keep using it until we reuse it
2310 * Associate an object to a key on this node. The object can later be
2311 * retrieved from this node by calling <code>getUserData</code> with the
2313 * @param n The node to associate the object to.
2320 * the given key on this node, or <code>null</code> if there was none.
2365 * Retrieves the object associated to a key on a this node. The object
2366 * must first have been set to this node by calling
2368 * @param n The node the object is associated to.
2371 * on this node, or <code>null</code> if there was none.
2402 * Remove user data table for the given node.
2403 * @param n The node this operation applies to.
2414 * Set user data table for the given node.
2415 * @param n The node this operation applies to.
2427 * Call user data handlers when a node is deleted (finalized)
2428 * @param n The node this operation applies to.
2429 * @param c The copy node or null.
2447 * Call user data handlers when a node is deleted (finalized)
2448 * @param n The node this operation applies to.
2449 * @param c The copy node or null.
2487 Object node = nodes.nextElement();
2488 Hashtable t = (Hashtable) userData.get(node);
2611 * Store user data related to a given node
2612 * This is a place where we could use weak references! Indeed, the node
2614 * the userData table will have a reference to the node.
2622 * Retreive user data related to a given node
2631 protected void addEventListener(NodeImpl node, String type,
2637 protected void removeEventListener(NodeImpl node, String type,
2647 protected boolean dispatchEvent(NodeImpl node, Event event) {
2655 * A method to be called when some text was changed in a text node,
2658 void replacedText(NodeImpl node) {
2662 * A method to be called when some text was deleted from a text node,
2665 void deletedText(NodeImpl node, int offset, int count) {
2669 * A method to be called when some text was inserted into a text node,
2672 void insertedText(NodeImpl node, int offset, int count) {
2676 * A method to be called when a character data node is about to be modified
2678 void modifyingCharacterData(NodeImpl node, boolean replace) {
2682 * A method to be called when a character data node has been modified
2684 void modifiedCharacterData(NodeImpl node, String oldvalue, String value, boolean replace) {
2688 * A method to be called when a node is about to be inserted in the tree.
2690 void insertingNode(NodeImpl node, boolean replace) {
2694 * A method to be called when a node has been inserted in the tree.
2696 void insertedNode(NodeImpl node, NodeImpl newInternal, boolean replace) {
2700 * A method to be called when a node is about to be removed from the tree.
2702 void removingNode(NodeImpl node, NodeImpl oldChild, boolean replace) {
2706 * A method to be called when a node has been removed from the tree.
2708 void removedNode(NodeImpl node, boolean replace) {
2712 * A method to be called when a node is about to be replaced in the tree.
2714 void replacingNode(NodeImpl node) {
2718 * A method to be called when a node has been replaced in the tree.
2720 void replacedNode(NodeImpl node) {
2724 * A method to be called when a character data node is about to be replaced
2726 void replacingData(NodeImpl node) {
2730 * method to be called when a character data node has been replaced.
2732 void replacedCharacterData(NodeImpl node, String oldvalue, String value) {
2743 * A method to be called when an attribute node has been set
2749 * A method to be called when an attribute node has been removed
2755 * A method to be called when an attribute node has been renamed