Uses of Interface
org.w3c.dom.Node
Package
Description
A package of the Java Image I/O API dealing with reading and writing
metadata.
Public classes used by the built-in TIFF plug-ins.
DOM-specific classes for the
javax.xml.crypto
package.DOM-specific classes for the
javax.xml.crypto.dsig
package.Provides DOM specific transformation classes.
Provides an object-model neutral API for the
evaluation of XPath expressions and access to the evaluation
environment.
Provides the interfaces for the Document Object Model (DOM).
Provides interfaces for DOM Level 2 Events.
Provides interfaces for DOM Level 3 Load and Save.
Provides interfaces for DOM Level 2 Range.
Provides interfaces for DOM Level 2 Traversal.
-
Uses of Node in javax.imageio.metadata
Modifier and TypeClassDescriptionclass
A class representing a node in a meta-data tree, which implements theorg.w3c.dom.Element
interface and additionally allows for the storage of non-textual objects via thegetUserObject
andsetUserObject
methods.Modifier and TypeFieldDescriptionprotected Node
IIOInvalidTreeException.offendingNode
TheNode
that led to the parsing error, ornull
.Modifier and TypeMethodDescriptionIIOMetadataNode.appendChild
(Node newChild) Adds the nodenewChild
to the end of the list of children of this node.IIOMetadataNode.cloneNode
(boolean deep) Returns a duplicate of this node.abstract Node
Returns an XML DOMNode
object that represents the root of a tree of metadata contained within this object according to the conventions defined by a given metadata format.IIOMetadataNode.getFirstChild()
Returns the first child of this node, ornull
if the node has no children.IIOMetadataNode.getLastChild()
Returns the last child of this node, ornull
if the node has no children.IIOMetadataNode.getNextSibling()
Returns the next sibling of this node, ornull
if the node has no next sibling.IIOInvalidTreeException.getOffendingNode()
Returns theNode
that caused the error in parsing.IIOMetadataNode.getParentNode()
Returns the parent of this node.IIOMetadataNode.getPreviousSibling()
Returns the previous sibling of this node, ornull
if this node has no previous sibling.IIOMetadataNode.insertBefore
(Node newChild, Node refChild) Inserts the nodenewChild
before the existing child noderefChild
.IIOMetadataNode.item
(int index) IIOMetadataNode.removeChild
(Node oldChild) Removes the child node indicated byoldChild
from the list of children, and returns it.IIOMetadataNode.replaceChild
(Node newChild, Node oldChild) Replaces the child nodeoldChild
withnewChild
in the list of children, and returns theoldChild
node.Modifier and TypeMethodDescriptionIIOMetadataNode.appendChild
(Node newChild) Adds the nodenewChild
to the end of the list of children of this node.short
IIOMetadataNode.compareDocumentPosition
(Node other) This DOM Level 3 method is not supported forIIOMetadataNode
and will throw aDOMException
.IIOMetadataNode.insertBefore
(Node newChild, Node refChild) Inserts the nodenewChild
before the existing child noderefChild
.boolean
IIOMetadataNode.isEqualNode
(Node node) This DOM Level 3 method is not supported forIIOMetadataNode
and will throw aDOMException
.boolean
IIOMetadataNode.isSameNode
(Node node) This DOM Level 3 method is not supported forIIOMetadataNode
and will throw aDOMException
.abstract void
Alters the internal state of thisIIOMetadata
object from a tree of XML DOMNode
s whose syntax is defined by the given metadata format.IIOMetadataNode.removeChild
(Node oldChild) Removes the child node indicated byoldChild
from the list of children, and returns it.IIOMetadataNode.replaceChild
(Node newChild, Node oldChild) Replaces the child nodeoldChild
withnewChild
in the list of children, and returns theoldChild
node.void
IIOMetadata.setFromTree
(String formatName, Node root) Sets the internal state of thisIIOMetadata
object from a tree of XML DOMNode
s whose syntax is defined by the given metadata format.ModifierConstructorDescriptionIIOInvalidTreeException
(String message, Throwable cause, Node offendingNode) Constructs anIIOInvalidTreeException
with a message string, a reference to an exception that caused this exception, and a reference to theNode
that caused the parsing error.IIOInvalidTreeException
(String message, Node offendingNode) Constructs anIIOInvalidTreeException
with a message string and a reference to theNode
that caused the parsing error. -
Uses of Node in javax.imageio.plugins.tiff
Modifier and TypeMethodDescriptionTIFFField.getAsNativeNode()
Returns theTIFFField
as a node named either"TIFFField"
or"TIFFIFD"
as described in the TIFF native image metadata specification.Modifier and TypeMethodDescriptionstatic TIFFField
TIFFField.createFromMetadataNode
(TIFFTagSet tagSet, Node node) Creates aTIFFField
from a TIFF native image metadata node. -
Uses of Node in javax.xml.crypto.dom
Modifier and TypeMethodDescriptionDOMURIReference.getHere()
Returns the here node.DOMStructure.getNode()
Returns the node contained in thisDOMStructure
.ModifierConstructorDescriptionDOMStructure
(Node node) Creates aDOMStructure
containing the specified node. -
Uses of Node in javax.xml.crypto.dsig.dom
Modifier and TypeMethodDescriptionDOMSignContext.getNextSibling()
Returns the nextSibling node.DOMValidateContext.getNode()
Returns the node.DOMSignContext.getParent()
Returns the parent node.Modifier and TypeMethodDescriptionvoid
DOMSignContext.setNextSibling
(Node nextSibling) Sets the next sibling node.void
Sets the node.void
Sets the parent node.ModifierConstructorDescriptionDOMSignContext
(Key signingKey, Node parent) Creates aDOMSignContext
with the specified signing key and parent node.DOMSignContext
(Key signingKey, Node parent, Node nextSibling) Creates aDOMSignContext
with the specified signing key, parent and next sibling nodes.DOMSignContext
(KeySelector ks, Node parent) Creates aDOMSignContext
with the specified key selector and parent node.DOMSignContext
(KeySelector ks, Node parent, Node nextSibling) Creates aDOMSignContext
with the specified key selector, parent and next sibling nodes.DOMValidateContext
(Key validatingKey, Node node) Creates aDOMValidateContext
containing the specified key and node.DOMValidateContext
(KeySelector ks, Node node) Creates aDOMValidateContext
containing the specified key selector and node. -
Uses of Node in javax.xml.transform.dom
Modifier and TypeMethodDescriptionDOMResult.getNextSibling()
Get the child node before which the result nodes will be inserted.DOMResult.getNode()
Get the node that will contain the result DOM tree.DOMSource.getNode()
Get the node that represents a Source DOM tree.DOMLocator.getOriginatingNode()
Return the node where the event occurred.Modifier and TypeMethodDescriptionvoid
DOMResult.setNextSibling
(Node nextSibling) Set the child node before which the result nodes will be inserted.void
Set the node that will contain the result DOM tree.void
Set the node that will represents a Source DOM tree.ModifierConstructorDescriptionUse a DOM node to create a new output target.Use a DOM node to create a new output target with the specified System ID.Use a DOM node to create a new output target specifying the child node where the result nodes should be inserted before.Use a DOM node to create a new output target specifying the child node where the result nodes should be inserted before and the specified System ID.Create a new input source with a DOM node.Create a new input source with a DOM node, and with the system ID also passed in as the base URI. -
Uses of Node in javax.xml.xpath
Modifier and TypeMethodDescriptionXPathNodes.get
(int index) Returns a Node at the specified position -
Uses of Node in org.w3c.dom
Modifier and TypeInterfaceDescriptioninterface
TheAttr
interface represents an attribute in anElement
object.interface
CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.interface
TheCharacterData
interface extends Node with a set of attributes and methods for accessing character data in the DOM.interface
This interface inherits fromCharacterData
and represents the content of a comment, i.e., all the characters between the starting '<!--
' and ending '-->
'.interface
TheDocument
interface represents the entire HTML or XML document.interface
DocumentFragment
is a "lightweight" or "minimal"Document
object.interface
EachDocument
has adoctype
attribute whose value is eithernull
or aDocumentType
object.interface
TheElement
interface represents an element in an HTML or XML document.interface
This interface represents a known entity, either parsed or unparsed, in an XML document.interface
EntityReference
nodes may be used to represent an entity reference in the tree.interface
This interface represents a notation declared in the DTD.interface
TheProcessingInstruction
interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.interface
TheText
interface inherits fromCharacterData
and represents the textual content (termed character data in XML) of anElement
orAttr
.Modifier and TypeMethodDescriptionAttempts to adopt a node from another document to this document.Node.appendChild
(Node newChild) Adds the nodenewChild
to the end of the list of children of this node.Node.cloneNode
(boolean deep) Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes.Node.getFirstChild()
The first child of this node.Node.getLastChild()
The last child of this node.NamedNodeMap.getNamedItem
(String name) Retrieves a node specified by name.NamedNodeMap.getNamedItemNS
(String namespaceURI, String localName) Retrieves a node specified by local name and namespace URI.Node.getNextSibling()
The node immediately following this node.Node.getParentNode()
The parent of this node.Node.getPreviousSibling()
The node immediately preceding this node.DOMLocator.getRelatedNode()
The node this locator is pointing to, ornull
if no node is available.Document.importNode
(Node importedNode, boolean deep) Imports a node from another document to this document, without altering or removing the source node from the original document; this method creates a new copy of the source node.Node.insertBefore
(Node newChild, Node refChild) Inserts the nodenewChild
before the existing child noderefChild
.NamedNodeMap.item
(int index) Returns theindex
th item in the map.NodeList.item
(int index) Returns theindex
th item in the collection.Node.removeChild
(Node oldChild) Removes the child node indicated byoldChild
from the list of children, and returns it.NamedNodeMap.removeNamedItem
(String name) Removes a node specified by name.NamedNodeMap.removeNamedItemNS
(String namespaceURI, String localName) Removes a node specified by local name and namespace URI.Document.renameNode
(Node n, String namespaceURI, String qualifiedName) Rename an existing node of typeELEMENT_NODE
orATTRIBUTE_NODE
.Node.replaceChild
(Node newChild, Node oldChild) Replaces the child nodeoldChild
withnewChild
in the list of children, and returns theoldChild
node.NamedNodeMap.setNamedItem
(Node arg) Adds a node using itsnodeName
attribute.NamedNodeMap.setNamedItemNS
(Node arg) Adds a node using itsnamespaceURI
andlocalName
.Modifier and TypeMethodDescriptionAttempts to adopt a node from another document to this document.Node.appendChild
(Node newChild) Adds the nodenewChild
to the end of the list of children of this node.short
Node.compareDocumentPosition
(Node other) Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the document order.void
This method is called whenever the node for which this handler is registered is imported or cloned.Document.importNode
(Node importedNode, boolean deep) Imports a node from another document to this document, without altering or removing the source node from the original document; this method creates a new copy of the source node.Node.insertBefore
(Node newChild, Node refChild) Inserts the nodenewChild
before the existing child noderefChild
.boolean
Node.isEqualNode
(Node arg) Tests whether two nodes are equal.boolean
Node.isSameNode
(Node other) Returns whether this node is the same node as the given one.Node.removeChild
(Node oldChild) Removes the child node indicated byoldChild
from the list of children, and returns it.Document.renameNode
(Node n, String namespaceURI, String qualifiedName) Rename an existing node of typeELEMENT_NODE
orATTRIBUTE_NODE
.Node.replaceChild
(Node newChild, Node oldChild) Replaces the child nodeoldChild
withnewChild
in the list of children, and returns theoldChild
node.NamedNodeMap.setNamedItem
(Node arg) Adds a node using itsnodeName
attribute.NamedNodeMap.setNamedItemNS
(Node arg) Adds a node using itsnamespaceURI
andlocalName
. -
Uses of Node in org.w3c.dom.events
Modifier and TypeMethodDescriptionMutationEvent.getRelatedNode()
relatedNode
is used to identify a secondary node related to a mutation event.Modifier and TypeMethodDescriptionvoid
MutationEvent.initMutationEvent
(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg) TheinitMutationEvent
method is used to initialize the value of aMutationEvent
created through theDocumentEvent
interface. -
Uses of Node in org.w3c.dom.ls
Modifier and TypeMethodDescriptionLSParser.parseWithContext
(LSInput input, Node contextArg, short action) Parse an XML fragment from a resource identified by aLSInput
and insert the content into an existing document at the position specified with thecontext
andaction
arguments.Modifier and TypeMethodDescriptionshort
LSParserFilter.acceptNode
(Node nodeArg) This method will be called by the parser at the completion of the parsing of each node.LSParser.parseWithContext
(LSInput input, Node contextArg, short action) Parse an XML fragment from a resource identified by aLSInput
and insert the content into an existing document at the position specified with thecontext
andaction
arguments.boolean
Serialize the specified node as described above in the general description of theLSSerializer
interface.LSSerializer.writeToString
(Node nodeArg) Serialize the specified node as described above in the general description of theLSSerializer
interface.boolean
LSSerializer.writeToURI
(Node nodeArg, String uri) A convenience method that acts as ifLSSerializer.write
was called with aLSOutput
with no encoding specified andLSOutput.systemId
set to theuri
argument. -
Uses of Node in org.w3c.dom.ranges
Modifier and TypeMethodDescriptionRange.getCommonAncestorContainer()
The deepest common ancestor container of the Range's two boundary-points.Range.getEndContainer()
Node within which the Range endsRange.getStartContainer()
Node within which the Range beginsModifier and TypeMethodDescriptionvoid
Range.insertNode
(Node newNode) Inserts a node into the Document or DocumentFragment at the start of the Range.void
Range.selectNode
(Node refNode) Select a node and its contentsvoid
Range.selectNodeContents
(Node refNode) Select the contents within a nodevoid
Sets the attributes describing the end of a Range.void
Range.setEndAfter
(Node refNode) Sets the end of a Range to be after a nodevoid
Range.setEndBefore
(Node refNode) Sets the end position to be before a node.void
Sets the attributes describing the start of the Range.void
Range.setStartAfter
(Node refNode) Sets the start position to be after a nodevoid
Range.setStartBefore
(Node refNode) Sets the start position to be before a nodevoid
Range.surroundContents
(Node newParent) Reparents the contents of the Range to the given node and inserts the node at the position of the start of the Range. -
Uses of Node in org.w3c.dom.traversal
Modifier and TypeMethodDescriptionTreeWalker.firstChild()
Moves theTreeWalker
to the first visible child of the current node, and returns the new node.TreeWalker.getCurrentNode()
The node at which theTreeWalker
is currently positioned.NodeIterator.getRoot()
The root node of theNodeIterator
, as specified when it was created.TreeWalker.getRoot()
Theroot
node of theTreeWalker
, as specified when it was created.TreeWalker.lastChild()
Moves theTreeWalker
to the last visible child of the current node, and returns the new node.NodeIterator.nextNode()
Returns the next node in the set and advances the position of theNodeIterator
in the set.TreeWalker.nextNode()
Moves theTreeWalker
to the next visible node in document order relative to the current node, and returns the new node.TreeWalker.nextSibling()
Moves theTreeWalker
to the next sibling of the current node, and returns the new node.TreeWalker.parentNode()
Moves to and returns the closest visible ancestor node of the current node.NodeIterator.previousNode()
Returns the previous node in the set and moves the position of theNodeIterator
backwards in the set.TreeWalker.previousNode()
Moves theTreeWalker
to the previous visible node in document order relative to the current node, and returns the new node.TreeWalker.previousSibling()
Moves theTreeWalker
to the previous sibling of the current node, and returns the new node.Modifier and TypeMethodDescriptionshort
NodeFilter.acceptNode
(Node n) Test whether a specified node is visible in the logical view of aTreeWalker
orNodeIterator
.DocumentTraversal.createNodeIterator
(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) Create a newNodeIterator
over the subtree rooted at the specified node.DocumentTraversal.createTreeWalker
(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) Create a newTreeWalker
over the subtree rooted at the specified node.void
TreeWalker.setCurrentNode
(Node currentNode) The node at which theTreeWalker
is currently positioned.