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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendChild, 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, setUserDatapublic static final String ATTRIBUTE_NAME
namepublic static final String ATTRIBUTE_TYPE
typepublic 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 Elementpublic String getAttributeNS(@Nullable String namespaceURI, @Nullable String localName)
getAttributeNS in interface Element@NonNull public JsonDomNamedNodeMap<JsonDomAttribute<T>> getAttributes()
getAttributes in interface NodegetAttributes in class JsonDomNode<T>@NonNull public JsonDomNodeList<JsonDomNode<T>> getChildNodes()
getChildNodes in interface NodegetChildNodes 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 Elementpublic T getJsonElement()
getJsonElement in class JsonDomNode<T>@Nullable public final JsonDomNode<T> getNextSibling()
getNextSibling in interface NodegetNextSibling 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 NodegetOwnerDocument in class JsonDomNode<T>@Nullable public final JsonDomNode<T> getPreviousSibling()
getPreviousSibling in interface NodegetPreviousSibling 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 Nodepublic boolean hasAttribute(@Nullable
String name)
hasAttribute in interface Elementpublic boolean hasAttributeNS(@Nullable
String namespaceURI,
@Nullable
String localName)
hasAttributeNS in interface Elementpublic void removeAttribute(@Nullable
String name)
removeAttribute in interface Element@NonNull public JsonDomAttribute<T> removeAttributeNode(@Nullable Attr oldAttr)
removeAttributeNode in interface Elementpublic void removeAttributeNS(@Nullable
String namespaceURI,
@Nullable
String localName)
removeAttributeNS in interface Elementpublic 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 Elementpublic void setAttributeNS(@Nullable
String namespaceURI,
@Nullable
String qualifiedName,
@Nullable
String value)
setAttributeNS in interface Elementpublic void setIdAttribute(@Nullable
String name,
boolean isId)
setIdAttribute in interface Elementpublic void setIdAttributeNode(@Nullable
Attr idAttr,
boolean isId)
setIdAttributeNode in interface Elementpublic void setIdAttributeNS(@Nullable
String namespaceURI,
@Nullable
String localName,
boolean isId)
setIdAttributeNS in interface Elementpublic 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.