org.netbeans.modules.xml.xdm/1 1.19.0 1

org.netbeans.modules.xml.xdm.nodes
Interface Node

All Superinterfaces:
Node

public interface Node
extends Node


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Method Summary
 void accept(XMLNodeVisitor visitor)
           
 void addedToTree(XDMModel model)
          A node can only be added to a tree once.
 Node clone(boolean cloneContent, boolean cloneAttributes, boolean cloneChildren)
          This api clones the node object and returns the clone.
 int getId()
           
 int getIndexOfChild(Node child)
          Lookup child index of given child based on node ID.
 String getNamespaceURI(Document document)
          Returns namespace of this node in the given Document tree.
 boolean isEquivalentNode(Node node)
           
 boolean isInTree()
           
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Method Detail

getId

int getId()

accept

void accept(XMLNodeVisitor visitor)

addedToTree

void addedToTree(XDMModel model)
A node can only be added to a tree once. Invoking this method signifies that a node has been placed into a tree and thus cannot be added. A node can be referenced by multiple trees but only added once.


isInTree

boolean isInTree()
Returns:
tree if node has already been added to the tree.
See Also:
#addedToTree()

isEquivalentNode

boolean isEquivalentNode(Node node)
Parameters:
node - Node to compare
Returns:
true the passed node has same id and belongs to same model.

clone

Node clone(boolean cloneContent,
           boolean cloneAttributes,
           boolean cloneChildren)
This api clones the node object and returns the clone. A node object has content, attributes and children. The api will allow or disallow modification of this underlying data based on the input.

Parameters:
cloneContent - If true the content of clone can be modified.
cloneAttributes - If true the attributes of the clone can be modified.
cloneChildren - If true the children of the clone can be modified.
Returns:
returns the clone of this node

getIndexOfChild

int getIndexOfChild(Node child)
Lookup child index of given child based on node ID.

Returns:
child index of given child or -1 if not a child.

getNamespaceURI

String getNamespaceURI(Document document)
Returns namespace of this node in the given Document tree.

Returns:
namespace URI string if this node is in the Document tree and has namespace; otherwise null.

org.netbeans.modules.xml.xdm/1 1.19.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.