T
- implementation specific JSON element typepublic abstract class JsonDomNode<T> extends Object implements 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, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
JsonDomNode(JsonDomNode<T> parentNode,
String nodeName) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNodeType, getNodeValue, getTextContent
public JsonDomNode(@Nullable JsonDomNode<T> parentNode, String nodeName)
@NonNull public JsonDomNode<T> appendChild(@Nullable Node newChild)
appendChild
in interface Node
@NonNull public JsonDomNode<T> cloneNode(boolean deep)
public short compareDocumentPosition(@Nullable Node other)
compareDocumentPosition
in interface Node
@Nullable public abstract JsonDomNamedNodeMap<JsonDomAttribute<T>> getAttributes()
getAttributes
in interface Node
@Nullable public String getBaseURI()
getBaseURI
in interface Node
@NonNull public abstract JsonDomNodeList<JsonDomNode<T>> getChildNodes()
getChildNodes
in interface Node
@Nullable public Object getFeature(@Nullable String feature, @Nullable String version)
getFeature
in interface Node
@Nullable public JsonDomNode<T> getFirstChild()
getFirstChild
in interface Node
public abstract T getJsonElement()
@Nullable public JsonDomNode<T> getLastChild()
getLastChild
in interface Node
@Nullable public String getLocalName()
getLocalName
in interface Node
@Nullable public String getNamespaceURI()
getNamespaceURI
in interface Node
@Nullable public abstract JsonDomNode<T> getNextSibling()
getNextSibling
in interface Node
@NonNull public abstract JsonDomDocument<T> getOwnerDocument()
getOwnerDocument
in interface Node
@Nullable public abstract JsonDomNode<T> getPreviousSibling()
getPreviousSibling
in interface Node
@Nullable public Object getUserData(@Nullable String key)
getUserData
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public boolean hasChildNodes()
hasChildNodes
in interface Node
@NonNull public JsonDomNode<T> insertBefore(@Nullable Node newChild, @Nullable Node refChild)
insertBefore
in interface Node
public boolean isDefaultNamespace(@Nullable String namespaceURI)
isDefaultNamespace
in interface Node
public boolean isEqualNode(@Nullable Node node)
isEqualNode
in interface Node
public boolean isSameNode(@Nullable Node node)
isSameNode
in interface Node
public boolean isSupported(@Nullable String feature, @Nullable String version)
isSupported
in interface Node
@Nullable public String lookupNamespaceURI(@Nullable String prefix)
lookupNamespaceURI
in interface Node
@Nullable public String lookupPrefix(@Nullable String namespaceURI)
lookupPrefix
in interface Node
@NonNull public JsonDomNode<T> removeChild(@Nullable Node oldChild)
removeChild
in interface Node
@NonNull public JsonDomNode<T> replaceChild(@Nullable Node newChild, @Nullable Node oldChild)
replaceChild
in interface Node
public void setNodeValue(@Nullable String nodeValue)
setNodeValue
in interface Node
public void setTextContent(@Nullable String textContent)
setTextContent
in interface Node
@Nullable public Object setUserData(@Nullable String key, @Nullable Object data, @Nullable UserDataHandler handler)
setUserData
in interface Node
@Nullable public JsonDomNode<T> getParentNode()
getParentNode
in interface Node
public String getNodeName()
getNodeName
in interface Node
protected boolean canEqual(@Nullable Object other)
Copyright © 2024. All rights reserved.