Package org.loboevolution.html.node
Interface Text
- All Superinterfaces:
CharacterData
,EventTarget
,Node
,NonDocumentTypeChildNode
- All Known Subinterfaces:
CDATASection
- All Known Implementing Classes:
CDataSectionImpl
,DTMNodeProxy
,TextImpl
The textual content of Element or Attr.
If an element has no markup within its content, it has a single child implementing Text that contains the element's text.
However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Method Summary
Modifier and TypeMethodDescriptiongetAssignedSlot.Returns the combined data of all direct Text node siblings.boolean
isElementContentWhitespace.replaceWholeText
(String content) replaceWholeText.splitText
(int offset) Splits data at the given offset and returns the remainder as Text node.Methods inherited from interface org.loboevolution.html.node.CharacterData
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, cloneNode, cloneNode, compareDocumentPosition, contains, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
Methods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSibling
-
Method Details
-
getAssignedSlot
HTMLSlotElement getAssignedSlot()getAssignedSlot.
- Returns:
- a
HTMLSlotElement
object.
-
getWholeText
String getWholeText()Returns the combined data of all direct Text node siblings.- Returns:
- a
String
object.
-
splitText
Splits data at the given offset and returns the remainder as Text node. -
isElementContentWhitespace
boolean isElementContentWhitespace()isElementContentWhitespace.
- Returns:
- a boolean.
-
replaceWholeText
replaceWholeText.
-