T
- implementation specific JSON element typepublic class JsonDomText<T> extends JsonDomNode<T> implements Text
Text
.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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
JsonDomText(JsonDomElement<T> parentNode,
String data)
Constructor of
JsonDomText . |
Modifier and Type | Method and Description |
---|---|
void |
appendData(String data) |
protected boolean |
canEqual(Object other) |
void |
deleteData(int offset,
int count) |
boolean |
equals(Object o) |
JsonDomNamedNodeMap<JsonDomAttribute<T>> |
getAttributes() |
JsonDomNodeList<JsonDomNode<T>> |
getChildNodes() |
String |
getData() |
T |
getJsonElement()
Returns the implementation specific JSON element.
|
int |
getLength() |
JsonDomText<T> |
getNextSibling() |
short |
getNodeType() |
String |
getNodeValue() |
JsonDomDocument<T> |
getOwnerDocument() |
JsonDomText<T> |
getPreviousSibling() |
String |
getTextContent() |
String |
getWholeText() |
int |
hashCode() |
void |
insertData(int offset,
String data) |
boolean |
isElementContentWhitespace() |
void |
replaceData(int offset,
int count,
String data) |
Text |
replaceWholeText(String content) |
void |
setData(String data) |
Text |
splitText(int offset) |
String |
substringData(int offset,
int count) |
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getParentNode, getPrefix, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getParentNode, getPrefix, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
public JsonDomText(JsonDomElement<T> parentNode, String data)
JsonDomText
.parentNode
- parent nodedata
- data@Nullable public JsonDomNamedNodeMap<JsonDomAttribute<T>> getAttributes()
getAttributes
in interface Node
getAttributes
in class JsonDomNode<T>
@NonNull public JsonDomNodeList<JsonDomNode<T>> getChildNodes()
getChildNodes
in interface Node
getChildNodes
in class JsonDomNode<T>
public T getJsonElement()
getJsonElement
in class JsonDomNode<T>
@Nullable public JsonDomText<T> getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class JsonDomNode<T>
public short getNodeType()
getNodeType
in interface Node
@NonNull public String getNodeValue()
getNodeValue
in interface Node
@NonNull public JsonDomDocument<T> getOwnerDocument()
getOwnerDocument
in interface Node
getOwnerDocument
in class JsonDomNode<T>
@Nullable public JsonDomText<T> getPreviousSibling()
getPreviousSibling
in interface Node
getPreviousSibling
in class JsonDomNode<T>
@NonNull public String getTextContent()
getTextContent
in interface Node
@NonNull public String getData()
getData
in interface CharacterData
public void setData(@Nullable String data)
setData
in interface CharacterData
public int getLength()
getLength
in interface CharacterData
public String substringData(int offset, int count)
substringData
in interface CharacterData
public void appendData(@Nullable String data)
appendData
in interface CharacterData
public void insertData(int offset, @Nullable String data)
insertData
in interface CharacterData
public void deleteData(int offset, int count)
deleteData
in interface CharacterData
public void replaceData(int offset, int count, @Nullable String data)
replaceData
in interface CharacterData
public boolean isElementContentWhitespace()
isElementContentWhitespace
in interface Text
public String getWholeText()
getWholeText
in interface Text
public Text replaceWholeText(@Nullable String content)
replaceWholeText
in interface Text
public boolean equals(@Nullable Object o)
equals
in class JsonDomNode<T>
protected boolean canEqual(@Nullable Object other)
canEqual
in class JsonDomNode<T>
public int hashCode()
hashCode
in class JsonDomNode<T>
Copyright © 2024. All rights reserved.