public interface Node extends EventTarget
Node
is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly.Document
, Element
, Attr
, CharacterData
(which Text
, Comment
, and CDATASection
inherit), ProcessingInstruction
, DocumentFragment
, DocumentType
, Notation
, Entity
, EntityReference
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE_NODE |
static int |
CDATA_SECTION_NODE |
static int |
COMMENT_NODE |
static int |
DOCUMENT_FRAGMENT_NODE |
static int |
DOCUMENT_NODE |
static int |
DOCUMENT_POSITION_CONTAINED_BY |
static int |
DOCUMENT_POSITION_CONTAINS |
static int |
DOCUMENT_POSITION_DISCONNECTED |
static int |
DOCUMENT_POSITION_FOLLOWING |
static int |
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
static int |
DOCUMENT_POSITION_PRECEDING |
static int |
DOCUMENT_TYPE_NODE |
static int |
ELEMENT_NODE |
static int |
ENTITY_NODE |
static int |
ENTITY_REFERENCE_NODE |
static int |
NOTATION_NODE |
static int |
PROCESSING_INSTRUCTION_NODE |
static int |
TEXT_NODE |
static final int ATTRIBUTE_NODE
static final int CDATA_SECTION_NODE
static final int COMMENT_NODE
static final int DOCUMENT_FRAGMENT_NODE
static final int DOCUMENT_NODE
static final int DOCUMENT_POSITION_CONTAINED_BY
static final int DOCUMENT_POSITION_CONTAINS
static final int DOCUMENT_POSITION_DISCONNECTED
static final int DOCUMENT_POSITION_FOLLOWING
static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
static final int DOCUMENT_POSITION_PRECEDING
static final int DOCUMENT_TYPE_NODE
static final int ELEMENT_NODE
static final int ENTITY_NODE
static final int ENTITY_REFERENCE_NODE
static final int NOTATION_NODE
static final int PROCESSING_INSTRUCTION_NODE
static final int TEXT_NODE
NamedNodeMap getAttributes()
String getBaseURI()
NodeList getChildNodes()
Node getFirstChild()
Node getLastChild()
String getLocalName()
String getNamespaceURI()
Node getNextSibling()
String getNodeName()
int getNodeType()
String getNodeValue()
void setNodeValue(String arg)
Document getOwnerDocument()
Element getParentElement()
Node getParentNode()
String getPrefix()
void setPrefix(String arg)
Node getPreviousSibling()
String getTextContent()
void setTextContent(String arg)
EventRemover addEventListener(String type, EventListener listener)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
EventRemover addEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
Node cloneNode(boolean deep)
int compareDocumentPosition(Node other)
boolean contains(Node other)
boolean dispatchEvent(Event event)
EventTarget
EventTarget
.dispatchEvent
in interface EventTarget
boolean hasAttributes()
boolean hasChildNodes()
boolean isDefaultNamespace(String namespaceURI)
boolean isEqualNode(Node other)
boolean isSameNode(Node other)
void normalize()
void removeEventListener(String type, EventListener listener)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void removeEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
Copyright © 2018. All rights reserved.