|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Node | |
com.sun.xml.tree | This package supports in-memory XML documents in the form of a parse tree compliant with the W3C DOM Level 1 Core Recommendation, with extensions including support for XML Namespaces as defined by the current XML proposed recommendation. |
org.w3c.dom | The Document Object Model (DOM) is a Recommendation of the World Wide Web Consortium, defining programming interfaces for XML (and, optionally, HTML) documents. |
Uses of Node in com.sun.xml.tree |
Subinterfaces of Node in com.sun.xml.tree | |
interface |
DocumentEx
This interface extends the DOM Document model in several useful ways. |
interface |
ElementEx
This extends the DOM Element interface with features including XML namespace support. |
interface |
NamespaceScoped
This interface is supported by elements and attributes whose names are scoped according to the XML Namespaces specification. |
interface |
NodeEx
This interface defines accessors to inherited attributes of nodes, and provides support for using XML Namespaces. |
Classes in com.sun.xml.tree that implement Node | |
class |
ElementNode
This class represents XML elements in a parse tree, and is often subclassed to add custom behaviors. |
(package private) class |
com.sun.xml.tree.NodeBase
Base class for DOM parse tree nodes which may appear in XmlDocument nodes. |
(package private) class |
com.sun.xml.tree.ParentNode
This adds an implementation of "parent of" relationships to the NodeBase class. |
class |
XmlDocument
This class implements the DOM Document interface, and also provides static factory methods to create document instances. |
Methods in com.sun.xml.tree that return Node | |
Node |
ElementNode.cloneNode(boolean deep)
Creates a new unparented node whose attributes are the same as this node's attributes; if deep is true, the children of this node are cloned as children of the new node. |
Node |
XmlDocument.appendChild(Node n)
DOM: Appends the specified child node to the document. |
Node |
XmlDocument.insertBefore(Node n,
Node refNode)
DOM: Inserts the specified child node into the document. |
Node |
XmlDocument.replaceChild(Node newChild,
Node refChild)
DOM: Replaces the specified child with the new node, returning the original child or throwing an exception. |
Node |
XmlDocument.cloneNode(boolean deep)
DOM: Returns a copy of this document. |
Node |
TreeWalker.getCurrent()
Returns the current node. |
Node |
TreeWalker.getNext()
Advances to the next node, and makes that current. |
Node |
TreeWalker.removeCurrent()
Removes the current node; reassigns the current node to be the next one in the current walk that isn't a child of the (removed) current node, and returns that new current node. |
Methods in com.sun.xml.tree with parameters of type Node | |
Node |
XmlDocument.appendChild(Node n)
DOM: Appends the specified child node to the document. |
Node |
XmlDocument.insertBefore(Node n,
Node refNode)
DOM: Inserts the specified child node into the document. |
Node |
XmlDocument.replaceChild(Node newChild,
Node refChild)
DOM: Replaces the specified child with the new node, returning the original child or throwing an exception. |
void |
XmlDocument.changeNodeOwner(Node node)
Changes the "owner document" of the given node, and all child and associated attribute nodes, to be this document. |
int |
NodeEx.getIndexOf(Node maybeChild)
Returns the index of the node in the list of children, such that item() will return that child. |
void |
DocumentEx.changeNodeOwner(Node node)
Changes the "owner document" of the given node, and all child and associated attribute nodes, to be this document. |
Constructors in com.sun.xml.tree with parameters of type Node | |
TreeWalker.TreeWalker(Node initial)
Constructs a tree walker starting at the given node. |
Uses of Node in org.w3c.dom |
Subinterfaces of Node in org.w3c.dom | |
interface |
Attr
The Attr interface represents an attribute in an Element object. |
interface |
CDATASection
CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup. |
interface |
CharacterData
The CharacterData interface extends Node with a set
of attributes
and methods for accessing character data in the DOM. |
interface |
Comment
This represents the content of a comment, i.e., all the characters between the starting ' <!-- ' and
ending '--> '. |
interface |
Document
The Document interface represents the entire
HTML or XML document. |
interface |
DocumentFragment
DocumentFragment is a "lightweight" or
"minimal" Document object. |
interface |
DocumentType
Each Document has a doctype attribute
whose value is either null or a DocumentType
object. |
interface |
Element
By far the vast majority of objects (apart from text) that authors encounter when traversing a document are Element nodes. |
interface |
Entity
This interface represents an entity, either parsed or unparsed, in an XML document. |
interface |
EntityReference
EntityReference objects may be inserted into the
structure model when an entity reference is in the source document,
or when the user wishes to insert an entity reference. |
interface |
Notation
This interface represents a notation declared in the DTD. |
interface |
ProcessingInstruction
The ProcessingInstruction interface
represents a "processing instruction", used in XML
as a way to keep processor-specific information in the text of the
document. |
interface |
Text
The Text interface represents the textual
content (termed Element or Attr . |
Methods in org.w3c.dom that return Node | |
Node |
NamedNodeMap.getNamedItem(java.lang.String name)
Retrieves a node specified by name. |
Node |
NamedNodeMap.setNamedItem(Node arg)
Adds a node using its nodeName attribute. |
Node |
NamedNodeMap.removeNamedItem(java.lang.String name)
Removes a node specified by name. |
Node |
NamedNodeMap.item(int index)
Returns the index th item in the map. |
Node |
Node.getParentNode()
Returns the value of the parentNode property. |
Node |
Node.getFirstChild()
Returns the value of the firstChild property. |
Node |
Node.getLastChild()
Returns the value of the lastChild property. |
Node |
Node.getPreviousSibling()
Returns the value of the previousSibling property. |
Node |
Node.getNextSibling()
Returns the value of the nextSibling property. |
Node |
Node.insertBefore(Node newChild,
Node refChild)
Inserts the node newChild before the existing child node
refChild . |
Node |
Node.replaceChild(Node newChild,
Node oldChild)
Replaces the child node oldChild with
newChild in the list of children, and returns the
oldChild node. |
Node |
Node.removeChild(Node oldChild)
Removes the child node indicated by oldChild from the list of children, and returns it. |
Node |
Node.appendChild(Node newChild)
Adds the node newChild to the end of the list of children of this node. |
Node |
Node.cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
Node |
NodeList.item(int index)
Returns the index th item in the collection. |
Methods in org.w3c.dom with parameters of type Node | |
Node |
NamedNodeMap.setNamedItem(Node arg)
Adds a node using its nodeName attribute. |
Node |
Node.insertBefore(Node newChild,
Node refChild)
Inserts the node newChild before the existing child node
refChild . |
Node |
Node.replaceChild(Node newChild,
Node oldChild)
Replaces the child node oldChild with
newChild in the list of children, and returns the
oldChild node. |
Node |
Node.removeChild(Node oldChild)
Removes the child node indicated by oldChild from the list of children, and returns it. |
Node |
Node.appendChild(Node newChild)
Adds the node newChild to the end of the list of children of this node. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |