Package | Description |
---|---|
org.w3c.dom |
The org.w3c.dom package provides the Java ME DOM API defined by
JSR 280.
|
org.w3c.dom.events |
The org.w3c.dom.events package provides the Java ME DOM Events API subset
defined by JSR 280.
|
Modifier and Type | Interface and Description |
---|---|
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 interface represents a comment.
|
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
The
Element interface represents an element in an HTML or XML
document. |
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 inherits from CharacterData
and represents the textual content (termed character data in XML) of an
Element or Attr . |
Modifier and Type | Method and Description |
---|---|
Node |
Document.adoptNode(Node source)
Attempts to adopt a node from another document to this document.
|
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 |
Node.getFirstChild()
The first child of this node.
|
Node |
Node.getLastChild()
The last child of this node.
|
Node |
NamedNodeMap.getNamedItem(java.lang.String name)
Retrieves a node specified by name.
|
Node |
NamedNodeMap.getNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Retrieves a node specified by local name and namespace URI.
|
Node |
Node.getNextSibling()
The node immediately following this node.
|
Node |
Node.getParentNode()
The parent of this node.
|
Node |
Node.getPreviousSibling()
The node immediately preceding this node.
|
Node |
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 |
Node.insertBefore(Node newChild,
Node refChild)
Inserts the node
newChild before the existing child node
refChild . |
Node |
NodeList.item(int index)
Returns the
index th item in the collection. |
Node |
NamedNodeMap.item(int index)
Returns the
index th item in the map. |
Node |
Node.removeChild(Node oldChild)
Removes the child node indicated by
oldChild from the list
of children, and returns it. |
Node |
NamedNodeMap.removeNamedItem(java.lang.String name)
Removes a node specified by name.
|
Node |
NamedNodeMap.removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Removes a node specified by local name and namespace URI.
|
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 |
NamedNodeMap.setNamedItem(Node arg)
Adds a node using its
nodeName attribute. |
Node |
NamedNodeMap.setNamedItemNS(Node arg)
Adds a node using its
namespaceURI and
localName . |
Modifier and Type | Method and Description |
---|---|
Node |
Document.adoptNode(Node source)
Attempts to adopt a node from another document to this document.
|
Node |
Node.appendChild(Node newChild)
Adds the node
newChild to the end of the list of children
of this node. |
void |
UserDataHandler.handle(short operation,
java.lang.String key,
java.lang.Object data,
Node src,
Node dst)
This method is called whenever the node for which this handler is
registered is imported or cloned.
|
Node |
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 |
Node.insertBefore(Node newChild,
Node refChild)
Inserts the node
newChild before the existing child node
refChild . |
Node |
Node.removeChild(Node oldChild)
Removes the child node indicated by
oldChild from the list
of children, and returns it. |
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 |
NamedNodeMap.setNamedItem(Node arg)
Adds a node using its
nodeName attribute. |
Node |
NamedNodeMap.setNamedItemNS(Node arg)
Adds a node using its
namespaceURI and
localName . |
Modifier and Type | Method and Description |
---|---|
Node |
MutationEvent.getRelatedNode()
relatedNode is used to identify a secondary node related
to a mutation event. |
Modifier and Type | Method and Description |
---|---|
void |
MutationEvent.initMutationEvent(java.lang.String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Node relatedNodeArg,
java.lang.String prevValueArg,
java.lang.String newValueArg,
java.lang.String attrNameArg,
short attrChangeArg)
The
initMutationEvent method is used to initialize the
value of a MutationEvent object and has the same
behavior as Event.initEvent() . |
void |
MutationEvent.initMutationEventNS(java.lang.String namespaceURIArg,
java.lang.String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Node relatedNodeArg,
java.lang.String prevValueArg,
java.lang.String newValueArg,
java.lang.String attrNameArg,
short attrChangeArg)
The
initMutationEventNS method is used to initialize the
value of a MutationEvent object and has the same
behavior as Event.initEventNS() . |
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.