Package org.loboevolution.html.node
Interface Node
- All Superinterfaces:
EventTarget
- All Known Subinterfaces:
Attr
,CDATASection
,CharacterData
,Comment
,Document
,DocumentFragment
,DocumentType
,Element
,EntityReference
,HTMLAnchorElement
,HTMLAppletElement
,HTMLAreaElement
,HTMLBaseElement
,HTMLBaseFontElement
,HTMLBodyElement
,HTMLBRElement
,HTMLButtonElement
,HTMLCanvasElement
,HTMLDataElement
,HTMLDataListElement
,HTMLDetailsElement
,HTMLDialogElement
,HTMLDirectoryElement
,HTMLDivElement
,HTMLDListElement
,HTMLDocument
,HTMLElement
,HTMLEmbedElement
,HTMLFieldSetElement
,HTMLFontElement
,HTMLFormElement
,HTMLHeadElement
,HTMLHeadingElement
,HTMLHRElement
,HTMLHtmlElement
,HTMLIFrameElement
,HTMLImageElement
,HTMLInputElement
,HTMLLabelElement
,HTMLLegendElement
,HTMLLIElement
,HTMLLinkElement
,HTMLMapElement
,HTMLMarqueeElement
,HTMLMenuElement
,HTMLMetaElement
,HTMLMeterElement
,HTMLModElement
,HTMLObjectElement
,HTMLOListElement
,HTMLOptGroupElement
,HTMLOptionElement
,HTMLOutputElement
,HTMLParagraphElement
,HTMLParamElement
,HTMLPictureElement
,HTMLPreElement
,HTMLProgressElement
,HTMLQuoteElement
,HTMLScriptElement
,HTMLSelectElement
,HTMLSlotElement
,HTMLSourceElement
,HTMLSpanElement
,HTMLStyleElement
,HTMLTableCaptionElement
,HTMLTableCellElement
,HTMLTableColElement
,HTMLTableDataCellElement
,HTMLTableElement
,HTMLTableHeaderCellElement
,HTMLTableRowElement
,HTMLTableSectionElement
,HTMLTextAreaElement
,HTMLTimeElement
,HTMLTitleElement
,HTMLUListElement
,HTMLUnknownElement
,HTMLVideoElement
,Notation
,ParentNode
,ProcessingInstruction
,SMILAnimateColorElement
,SMILAnimateElement
,SMILAnimateMotionElement
,SMILAnimation
,SMILDocument
,SMILElement
,SMILLayoutElement
,SMILMediaElement
,SMILRefElement
,SMILRegionElement
,SMILRootLayoutElement
,SMILSetElement
,SMILSwitchElement
,SMILTopLayoutElement
,SVGAElement
,SVGAltGlyphDefElement
,SVGAltGlyphElement
,SVGAltGlyphItemElement
,SVGAnimateElement
,SVGAnimateMotionElement
,SVGAnimateTransformElement
,SVGAnimationElement
,SVGCircleElement
,SVGClipPathElement
,SVGColorProfileElement
,SVGComponentTransferFunctionElement
,SVGCursorElement
,SVGDefinitionSrcElement
,SVGDefsElement
,SVGDescElement
,SVGElement
,SVGEllipseElement
,SVGFEBlendElement
,SVGFEColorMatrixElement
,SVGFEComponentTransferElement
,SVGFECompositeElement
,SVGFEConvolveMatrixElement
,SVGFEDiffuseLightingElement
,SVGFEDisplacementMapElement
,SVGFEDistantLightElement
,SVGFEFloodElement
,SVGFEFuncAElement
,SVGFEFuncBElement
,SVGFEFuncGElement
,SVGFEFuncRElement
,SVGFEGaussianBlurElement
,SVGFEImageElement
,SVGFEMergeElement
,SVGFEMergeNodeElement
,SVGFEMorphologyElement
,SVGFEOffsetElement
,SVGFEPointLightElement
,SVGFESpecularLightingElement
,SVGFESpotLightElement
,SVGFETileElement
,SVGFETurbulenceElement
,SVGFilterElement
,SVGFontElement
,SVGFontFaceElement
,SVGFontFaceFormatElement
,SVGFontFaceNameElement
,SVGFontFaceSrcElement
,SVGFontFaceUriElement
,SVGForeignObjectElement
,SVGGElement
,SVGGlyphElement
,SVGGlyphRefElement
,SVGGradientElement
,SVGHKernElement
,SVGImageElement
,SVGLinearGradientElement
,SVGLineElement
,SVGMarkerElement
,SVGMaskElement
,SVGMetadataElement
,SVGMissingGlyphElement
,SVGMPathElement
,SVGPathElement
,SVGPatternElement
,SVGPolygonElement
,SVGPolylineElement
,SVGRadialGradientElement
,SVGRectElement
,SVGScriptElement
,SVGSetElement
,SVGStopElement
,SVGSVGElement
,SVGSwitchElement
,SVGSymbolElement
,SVGTextContentElement
,SVGTextElement
,SVGTextPathElement
,SVGTextPositioningElement
,SVGTitleElement
,SVGTRefElement
,SVGTSpanElement
,SVGUseElement
,SVGViewElement
,SVGVKernElement
,Text
,XPathNamespace
- All Known Implementing Classes:
AttrImpl
,CDataSectionImpl
,CharacterDataImpl
,CommentImpl
,DocumentFragmentImpl
,DocumentImpl
,DocumentTypeImpl
,DOM2DTMdefaultNamespaceDeclarationNode
,DTMNodeProxy
,ElementImpl
,EntityReferenceImpl
,HTMLAnchorElementImpl
,HTMLBaseElementImpl
,HTMLBasicInputElement
,HTMLBodyElementImpl
,HTMLBRElementImpl
,HTMLButtonElementImpl
,HTMLCanvasElementImpl
,HTMLCenterElementImpl
,HTMLDDElementImpl
,HTMLDetailsElementImpl
,HTMLDialogElementImpl
,HTMLDirectoryElementImpl
,HTMLDivElementImpl
,HTMLDListElementImpl
,HTMLDocumentImpl
,HTMLElementImpl
,HTMLEmElementImpl
,HTMLFieldsetElementImpl
,HTMLFigureElementImpl
,HTMLFormElementImpl
,HTMLGenericMarkupElement
,HTMLHeadElementImpl
,HTMLHeadingElementImpl
,HTMLHRElementImpl
,HTMLHtmlElementImpl
,HTMLIFrameElementImpl
,HTMLImageElementImpl
,HTMLInputElementImpl
,HTMLLabelElementImpl
,HTMLLegendElementImpl
,HTMLLIElementImpl
,HTMLLinkElementImpl
,HTMLMarqueeElementImpl
,HTMLMeterElementImpl
,HTMLMonospacedElementImpl
,HTMLNonStandardElement
,HTMLNoScriptElementImpl
,HTMLObjectElementImpl
,HTMLOListElementImpl
,HTMLOptGroupElementImpl
,HTMLOptionElementImpl
,HTMLPElementImpl
,HTMLPreElementImpl
,HTMLProcessingInstruction
,HTMLProgressElementImpl
,HTMLQuoteElementImpl
,HTMLScriptElementImpl
,HTMLSelectElementImpl
,HTMLSmallElementImpl
,HTMLSpanElementImpl
,HTMLStrikeElementImpl
,HTMLStrongElementImpl
,HTMLStyleElementImpl
,HTMLSuperscriptElementImpl
,HTMLTableCaptionElementImpl
,HTMLTableCellElementImpl
,HTMLTableColElementImpl
,HTMLTableColGroupElementImpl
,HTMLTableElementImpl
,HTMLTableRowElementImpl
,HTMLTableSectionElementImpl
,HTMLTextAreaElementImpl
,HTMLTitleElementImpl
,HTMLUListElementImpl
,HTMLUnderlineElementImpl
,HTMLVideoElementImpl
,NodeImpl
,NotationImpl
,RSSChanelElementImpl
,RSSDescriptionElementImpl
,RSSElement
,RSSElementImpl
,RSSItemElementImpl
,RSSTitleElementImpl
,SVGAElementImpl
,SVGAnimateElementImpl
,SVGAnimateTransformElementImpl
,SVGAnimationElementImpl
,SVGAnimationImpl
,SVGCircleElementImpl
,SVGClipPathElementImpl
,SVGDefsElementImpl
,SVGElementImpl
,SVGEllipseElementImpl
,SVGFontElementImpl
,SVGFontFaceElementImpl
,SVGGElementImpl
,SVGGradientElementImpl
,SVGGraphic
,SVGImageElementImpl
,SVGLinearGradientElementImpl
,SVGLineElementImpl
,SVGLocatableImpl
,SVGPathElementImpl
,SVGPolygonElementImpl
,SVGPolylineElementImpl
,SVGRadialGradientElementImpl
,SVGRectElementImpl
,SVGStopElementImpl
,SVGStylableImpl
,SVGSVGElementImpl
,SVGSymbolElementImpl
,SVGTextElementImpl
,SVGTransformableImpl
,SVGUseElementImpl
,TextImpl
,XMLDocument
,XPathNamespaceImpl
Node is an interface from which a number of DOM API object types inherit. It
allows those types to be treated similarly; for example, inheriting the same
set of methods, or being tested in the same way.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
-
Method Summary
Modifier and TypeMethodDescriptionappendChild
(Node newChild) appendChild.cloneNode.cloneNode
(boolean deep) Returns a copy of node.short
compareDocumentPosition
(Node other) compareDocumentPosition.boolean
Returns true if other is an inclusive descendant of node, and false otherwise.getAttributes.Returns node's node document's document base URL.Returns the children.getFeature
(String feature, String version) Returns the first child.Returns the last child.getLocalName.Deprecated.Returns the next sibling.Returns a string appropriate for the type of node.int
Returns the type of node.getNodeValue.Returns the node document.Returns the parent element.Returns the parent.Returns prefix.Returns the previous sibling.Returns node's root.getTextContent.getUserData
(String key) getUserData.boolean
Returns true if element has attributes, and false otherwise.boolean
Returns whether node has children.insertBefore
(Node newChild, Node refChild) insertBefore.boolean
isDefaultNamespace
(String namespace) isDefaultNamespace.boolean
isEqualNode
(Node otherNode) Returns whether node and otherNode have the same properties.boolean
Returns true if node is connected and false otherwise.boolean
isSameNode
(Node otherNode) isSameNode.boolean
isSupported
(String feature, String version) lookupNamespaceURI
(String prefix) lookupNamespaceURI.lookupPrefix
(String namespace) lookupPrefix.void
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.prepend.prependChild
(Node newChild) prependChild.removeChild
(Node oldChild) removeChild.replaceChild
(Node newChild, Node oldChild) replaceChild.void
setNodeValue
(String nodeValue) setNodeValue.void
setOwnerDocument
(Document document) setOwnerDocument.void
setPrefix.void
setTextContent
(String textContent) setTextContent.setUserData
(String key, Object data, UserDataHandler handler) setUserData.Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
-
Field Details
-
NONE
static final short NONE- See Also:
-
ELEMENT_NODE
static final short ELEMENT_NODE- See Also:
-
ATTRIBUTE_NODE
static final short ATTRIBUTE_NODE- See Also:
-
TEXT_NODE
static final short TEXT_NODE- See Also:
-
CDATA_SECTION_NODE
static final short CDATA_SECTION_NODE- See Also:
-
ENTITY_REFERENCE_NODE
static final short ENTITY_REFERENCE_NODE- See Also:
-
ENTITY_NODE
static final short ENTITY_NODE- See Also:
-
PROCESSING_INSTRUCTION_NODE
static final short PROCESSING_INSTRUCTION_NODE- See Also:
-
COMMENT_NODE
static final short COMMENT_NODE- See Also:
-
DOCUMENT_NODE
static final short DOCUMENT_NODE- See Also:
-
DOCUMENT_TYPE_NODE
static final short DOCUMENT_TYPE_NODE- See Also:
-
DOCUMENT_FRAGMENT_NODE
static final short DOCUMENT_FRAGMENT_NODE- See Also:
-
NOTATION_NODE
static final short NOTATION_NODE- See Also:
-
DOCUMENT_POSITION_DISCONNECTED
static final short DOCUMENT_POSITION_DISCONNECTED- See Also:
-
DOCUMENT_POSITION_PRECEDING
static final short DOCUMENT_POSITION_PRECEDING- See Also:
-
DOCUMENT_POSITION_FOLLOWING
static final short DOCUMENT_POSITION_FOLLOWING- See Also:
-
DOCUMENT_POSITION_CONTAINS
static final short DOCUMENT_POSITION_CONTAINS- See Also:
-
DOCUMENT_POSITION_CONTAINED_BY
static final short DOCUMENT_POSITION_CONTAINED_BY- See Also:
-
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC- See Also:
-
-
Method Details
-
getBaseURI
String getBaseURI()Returns node's node document's document base URL.- Returns:
- a
String
object.
-
getPrefix
String getPrefix()Returns prefix.- Returns:
- a
String
object.
-
getChildNodes
NodeList getChildNodes()Returns the children.- Returns:
- a
NodeList
object.
-
getFirstChild
Node getFirstChild()Returns the first child.- Returns:
- a
Node
object.
-
isIsConnected
boolean isIsConnected()Returns true if node is connected and false otherwise.- Returns:
- a boolean.
-
getLastChild
Node getLastChild()Returns the last child.- Returns:
- a
Node
object.
-
getNamespaceURI
Deprecated.getNamespaceURI.
- Returns:
- a
String
object.
-
getNextSibling
Node getNextSibling()Returns the next sibling.- Returns:
- a
Node
object.
-
getNodeName
String getNodeName()Returns a string appropriate for the type of node.- Returns:
- a
String
object.
-
getNodeType
int getNodeType()Returns the type of node.- Returns:
- a
Integer
object.
-
getNodeValue
String getNodeValue()getNodeValue.
- Returns:
- a
String
object.
-
getOwnerDocument
Document getOwnerDocument()Returns the node document. Returns null for documents.- Returns:
- a
Document
object.
-
getParentElement
HTMLElement getParentElement()Returns the parent element.- Returns:
- a
HTMLElement
object.
-
getParentNode
Node getParentNode()Returns the parent.- Returns:
- a
Node
object.
-
getPreviousSibling
Node getPreviousSibling()Returns the previous sibling.- Returns:
- a
Node
object.
-
getRootNode
Node getRootNode()Returns node's root.- Returns:
- a
Node
object.
-
getLocalName
String getLocalName()getLocalName.
- Returns:
- a
String
object.
-
getTextContent
String getTextContent()getTextContent.
- Returns:
- a
String
object.
-
getUserData
getUserData.
-
cloneNode
Returns a copy of node. If deep is true, the copy also includes the node's descendants.- Parameters:
deep
- a boolean.- Returns:
- a
Node
object.
-
cloneNode
Node cloneNode()cloneNode.
- Returns:
- a
Node
object.
-
setOwnerDocument
setOwnerDocument.
- Parameters:
document
- aDocument
object.
-
setNodeValue
setNodeValue.
- Parameters:
nodeValue
- aString
object.- Throws:
DOMException
-
setTextContent
setTextContent.
- Parameters:
textContent
- aString
object.
-
setPrefix
setPrefix.
- Parameters:
prefix
- aString
object.
-
setUserData
setUserData.
- Parameters:
key
- aString
object.data
- aObject
object.handler
- aUserDataHandler
object.- Returns:
- a
Object
object.
-
contains
Returns true if other is an inclusive descendant of node, and false otherwise.- Parameters:
other
- aNode
object.- Returns:
- a boolean.
-
hasChildNodes
boolean hasChildNodes()Returns whether node has children.- Returns:
- a boolean.
-
insertBefore
insertBefore.
-
isDefaultNamespace
isDefaultNamespace.
- Parameters:
namespace
- aString
object.- Returns:
- a boolean.
-
isEqualNode
Returns whether node and otherNode have the same properties.- Parameters:
otherNode
- aNode
object.- Returns:
- a boolean.
-
isSameNode
isSameNode.
- Parameters:
otherNode
- aNode
object.- Returns:
- a boolean.
-
lookupNamespaceURI
lookupNamespaceURI.
-
lookupPrefix
lookupPrefix.
-
normalize
void normalize()Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. -
appendChild
appendChild.
-
prependChild
prependChild.
-
prepend
prepend.
-
removeChild
removeChild.
-
replaceChild
replaceChild.
-
getAttributes
NamedNodeMap getAttributes()getAttributes.
- Returns:
- a
NamedNodeMap
object.
-
compareDocumentPosition
compareDocumentPosition.
- Parameters:
other
- aNode
object.- Returns:
- a short.
-
hasAttributes
boolean hasAttributes()Returns true if element has attributes, and false otherwise.- Returns:
- a boolean.
-
isSupported
-
getFeature
-