T
- implementation specific JSON element typepublic class JsonDomElement<T> extends JsonDomNode<T> implements Element
Element
.Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_NAME
Name of the attribute
name |
static String |
ATTRIBUTE_TYPE
Name of the attribute
type |
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 |
---|
JsonDomElement(JsonDomNode<T> parentNode,
String jsonKey,
JsonDomValue<T> jsonDomValue)
Constructor of
JsonDomElement . |
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 static final String ATTRIBUTE_NAME
name
public static final String ATTRIBUTE_TYPE
type
public JsonDomElement(JsonDomNode<T> parentNode, String jsonKey, JsonDomValue<T> jsonDomValue)
JsonDomElement
.parentNode
- parent nodejsonKey
- the elements JSON keyjsonDomValue
- wrapped JSON element@NonNull public String getAttribute(@Nullable String name)
getAttribute
in interface Element
@Nullable public JsonDomAttribute<T> getAttributeNode(@Nullable String name)
getAttributeNode
in interface Element
@Nullable public JsonDomAttribute<T> getAttributeNodeNS(@Nullable String namespaceURI, @Nullable String localName)
getAttributeNodeNS
in interface Element
public String getAttributeNS(@Nullable String namespaceURI, @Nullable String localName)
getAttributeNS
in interface Element
@NonNull 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>
@NonNull public JsonDomNodeList<JsonDomElement<T>> getElementsByTagName(@Nullable String name)
getElementsByTagName
in interface Element
@NonNull public JsonDomNodeList<JsonDomElement<T>> getElementsByTagNameNS(@Nullable String namespaceURI, @Nullable String localName)
getElementsByTagNameNS
in interface Element
public T getJsonElement()
getJsonElement
in class JsonDomNode<T>
@Nullable public final JsonDomNode<T> getNextSibling()
getNextSibling
in interface Node
getNextSibling
in class JsonDomNode<T>
public short getNodeType()
getNodeType
in interface Node
@Nullable public String getNodeValue()
getNodeValue
in interface Node
@NonNull public JsonDomDocument<T> getOwnerDocument()
getOwnerDocument
in interface Node
getOwnerDocument
in class JsonDomNode<T>
@Nullable public final JsonDomNode<T> getPreviousSibling()
getPreviousSibling
in interface Node
getPreviousSibling
in class JsonDomNode<T>
@Nullable public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
@NonNull public String getTagName()
getTagName
in interface Element
@NonNull public String getTextContent()
getTextContent
in interface Node
public boolean hasAttribute(@Nullable String name)
hasAttribute
in interface Element
public boolean hasAttributeNS(@Nullable String namespaceURI, @Nullable String localName)
hasAttributeNS
in interface Element
public void removeAttribute(@Nullable String name)
removeAttribute
in interface Element
@NonNull public JsonDomAttribute<T> removeAttributeNode(@Nullable Attr oldAttr)
removeAttributeNode
in interface Element
public void removeAttributeNS(@Nullable String namespaceURI, @Nullable String localName)
removeAttributeNS
in interface Element
public void setAttribute(@Nullable String name, @Nullable String value)
setAttribute
in interface Element
@NonNull public JsonDomAttribute<T> setAttributeNode(@Nullable Attr newAttr)
setAttributeNode
in interface Element
@Nullable public JsonDomAttribute<T> setAttributeNodeNS(@Nullable Attr newAttr)
setAttributeNodeNS
in interface Element
public void setAttributeNS(@Nullable String namespaceURI, @Nullable String qualifiedName, @Nullable String value)
setAttributeNS
in interface Element
public void setIdAttribute(@Nullable String name, boolean isId)
setIdAttribute
in interface Element
public void setIdAttributeNode(@Nullable Attr idAttr, boolean isId)
setIdAttributeNode
in interface Element
public void setIdAttributeNS(@Nullable String namespaceURI, @Nullable String localName, boolean isId)
setIdAttributeNS
in interface Element
public JsonDomValue<T> getJsonDomValue()
public String getJsonKey()
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.