T
- implementation specific JSON element typepublic class JsonDomAttribute<T> extends JsonDomNode<T> implements Attr
Attr
.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 |
---|
JsonDomAttribute(JsonDomElement<T> parentNode,
String nodeName,
Supplier<String> valueProvider)
Constructor of
JsonDomAttribute . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
JsonDomNamedNodeMap<JsonDomAttribute<T>> |
getAttributes() |
JsonDomNodeList<JsonDomNode<T>> |
getChildNodes() |
T |
getJsonElement()
Returns the implementation specific JSON element.
|
String |
getName() |
JsonDomAttribute<T> |
getNextSibling() |
short |
getNodeType() |
String |
getNodeValue() |
JsonDomDocument<T> |
getOwnerDocument() |
JsonDomElement<T> |
getOwnerElement() |
JsonDomAttribute<T> |
getPreviousSibling() |
TypeInfo |
getSchemaTypeInfo() |
boolean |
getSpecified() |
String |
getTextContent() |
String |
getValue() |
int |
hashCode() |
boolean |
isId() |
void |
setValue(String value) |
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 JsonDomAttribute(JsonDomElement<T> parentNode, String nodeName, Supplier<String> valueProvider)
JsonDomAttribute
.parentNode
- parent nodenodeName
- node namevalueProvider
- value provider@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 JsonDomAttribute<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>
@NonNull public JsonDomElement<T> getOwnerElement()
getOwnerElement
in interface Attr
@Nullable public JsonDomAttribute<T> getPreviousSibling()
getPreviousSibling
in interface Node
getPreviousSibling
in class JsonDomNode<T>
@Nullable public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Attr
public boolean getSpecified()
getSpecified
in interface Attr
@NonNull public String getTextContent()
getTextContent
in interface Node
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.