Package org.loboevolution.html.node
Interface Node
- All Superinterfaces:
EventTarget,ModelNode
- 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,SVGElementWrapper,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
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
Method Summary
Modifier and TypeMethodDescriptionappendChild(Node newChild) appendChild.voidappendChildrenToCollectionImpl(NodeFilter filter, Collection<Node> collection) cloneNode.cloneNode(boolean deep) Returns a copy of node.shortcompareDocumentPosition(Node other) compareDocumentPosition.booleanReturns true if other is an inclusive descendant of node, and false otherwise.voidextractDescendentsArrayImpl(NodeFilter filter, List<Node> al, boolean nestIntoMatchingNodes) Extracts all descendents that match the filter, except those descendents of nodes that match the filter.Tries to get a UINode associated with the current node.voidgetAttributes.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.getNamespaceURI.Returns the next sibling.Returns a string appropriate for the type of node.intReturns the type of node.getNodeValue.Returns the node document.Returns the parent element.Returns the parent.Returns prefix.Returns the previous sibling.getPreviousTo(Node node) Returns node's root.getTextContent.getUserData(String key) getUserData.booleanReturns true if element has attributes, and false otherwise.booleanReturns whether node has children.insertBefore(Node newChild, Node refChild) insertBefore.booleanisDefaultNamespace(String namespace) isDefaultNamespace.booleanisEqualNode(Node otherNode) Returns whether node and otherNode have the same properties.booleanReturns true if node is connected and false otherwise.booleanisSameNode(Node otherNode) isSameNode.booleanisSupported(String feature, String version) lookupNamespaceURI(String prefix) lookupNamespaceURI.lookupPrefix(String namespace) lookupPrefix.voidRemoves 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.voidsetNamespaceURI(String namespaceURI) voidsetNodeValue(String nodeValue) setNodeValue.voidsetOwnerDocument(Document document) setOwnerDocument.voidsetOwnerDocument(Document value, boolean deep) setOwnerDocument.voidsetParentImpl(Node parent) setParentImpl.voidsetPrefix.voidsetTextContent(String textContent) setTextContent.setUserData(String key, Object data, UserDataHandler handler) setUserData.voidvisit(NodeVisitor visitor) visit.Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warn
-
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
Stringobject.
-
getPrefix
String getPrefix()Returns prefix.- Returns:
- a
Stringobject.
-
getChildNodes
NodeList getChildNodes()Returns the children.- Returns:
- a
NodeListobject.
-
getFirstChild
Node getFirstChild()Returns the first child.- Returns:
- a
Nodeobject.
-
isIsConnected
boolean isIsConnected()Returns true if node is connected and false otherwise.- Returns:
- a boolean.
-
getLastChild
Node getLastChild()Returns the last child.- Returns:
- a
Nodeobject.
-
getNamespaceURI
String getNamespaceURI()getNamespaceURI.
- Returns:
- a
Stringobject.
-
getNextSibling
Node getNextSibling()Returns the next sibling.- Returns:
- a
Nodeobject.
-
getNodeName
String getNodeName()Returns a string appropriate for the type of node.- Returns:
- a
Stringobject.
-
getNodeType
int getNodeType()Returns the type of node.- Returns:
- a
Integerobject.
-
getNodeValue
String getNodeValue()getNodeValue.
- Returns:
- a
Stringobject.
-
getOwnerDocument
Document getOwnerDocument()Returns the node document. Returns null for documents.- Returns:
- a
Documentobject.
-
getParentElement
HTMLElement getParentElement()Returns the parent element.- Returns:
- a
HTMLElementobject.
-
getParentNode
Node getParentNode()Returns the parent.- Returns:
- a
Nodeobject.
-
getPreviousSibling
Node getPreviousSibling()Returns the previous sibling.- Returns:
- a
Nodeobject.
-
getRootNode
Node getRootNode()Returns node's root.- Returns:
- a
Nodeobject.
-
getLocalName
String getLocalName()getLocalName.
- Returns:
- a
Stringobject.
-
getTextContent
String getTextContent()getTextContent.
- Returns:
- a
Stringobject.
-
getUserData
getUserData.
-
getPreviousTo
-
getNextTo
-
forgetRenderState
void forgetRenderState() -
appendChildrenToCollectionImpl
-
extractDescendentsArrayImpl
Extracts all descendents that match the filter, except those descendents of nodes that match the filter.- Parameters:
filter- aNodeFilterobject.al- aArrayListobject.
-
findUINode
UINode findUINode()Tries to get a UINode associated with the current node. Failing that, it tries ancestors recursively. This method will return the closest block-level renderer node, if any.- Returns:
- a
UINodeobject.
-
visit
visit.
- Parameters:
visitor- aNodeVisitorobject.
-
cloneNode
Returns a copy of node. If deep is true, the copy also includes the node's descendants.- Parameters:
deep- a boolean.- Returns:
- a
Nodeobject.
-
cloneNode
Node cloneNode()cloneNode.
- Returns:
- a
Nodeobject.
-
setOwnerDocument
setOwnerDocument.
- Parameters:
document- aDocumentobject.
-
setOwnerDocument
setOwnerDocument.
- Parameters:
value- aDocumentobject.deep- a boolean.
-
setNodeValue
setNodeValue.
- Parameters:
nodeValue- aStringobject.- Throws:
DOMException
-
setTextContent
setTextContent.
- Parameters:
textContent- aStringobject.
-
setPrefix
setPrefix.
- Parameters:
prefix- aStringobject.
-
setUserData
setUserData.
- Parameters:
key- aStringobject.data- aObjectobject.handler- aUserDataHandlerobject.- Returns:
- a
Objectobject.
-
setParentImpl
setParentImpl.
- Parameters:
parent- aNodeobject.
-
setNamespaceURI
-
contains
Returns true if other is an inclusive descendant of node, and false otherwise.- Parameters:
other- aNodeobject.- Returns:
- a boolean.
-
hasChildNodes
boolean hasChildNodes()Returns whether node has children.- Returns:
- a boolean.
-
insertBefore
insertBefore.
-
isDefaultNamespace
isDefaultNamespace.
- Parameters:
namespace- aStringobject.- Returns:
- a boolean.
-
isEqualNode
Returns whether node and otherNode have the same properties.- Parameters:
otherNode- aNodeobject.- Returns:
- a boolean.
-
isSameNode
isSameNode.
- Parameters:
otherNode- aNodeobject.- 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
NamedNodeMapobject.
-
compareDocumentPosition
compareDocumentPosition.
- Parameters:
other- aNodeobject.- Returns:
- a short.
-
hasAttributes
boolean hasAttributes()Returns true if element has attributes, and false otherwise.- Returns:
- a boolean.
-
isSupported
-
getFeature
-
getDocumentNode
Document getDocumentNode()
-