Package net.sourceforge.pmd.lang.xml.ast
Class AbstractDomNodeProxy
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.xml.ast.AbstractDomNodeProxy
-
- Direct Known Subclasses:
XmlNodeWrapper
@Deprecated public abstract class AbstractDomNodeProxy extends AbstractNode implements Node
Deprecated.Will be removed in PMD 7, use subclasses as PMD Nodes but not DOM nodes.Moves boilerplate out ofXmlNodeWrapper
.- Since:
- 6.1.0
- Author:
- Clément Fournier
-
-
Field Summary
Fields Modifier and Type Field Description protected Node
node
Deprecated.-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
Fields inherited from interface org.w3c.dom.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 Summary
Constructors Modifier Constructor Description protected
AbstractDomNodeProxy(Node node)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Node
appendChild(Node newChild)
Deprecated.Node
cloneNode(boolean deep)
Deprecated.short
compareDocumentPosition(Node other)
Deprecated.NamedNodeMap
getAttributes()
Deprecated.String
getBaseURI()
Deprecated.NodeList
getChildNodes()
Deprecated.Object
getFeature(String feature, String version)
Deprecated.Node
getFirstChild()
Deprecated.Node
getLastChild()
Deprecated.String
getLocalName()
Deprecated.String
getNamespaceURI()
Deprecated.Node
getNextSibling()
Deprecated.String
getNodeName()
Deprecated.short
getNodeType()
Deprecated.String
getNodeValue()
Deprecated.Document
getOwnerDocument()
Deprecated.Node
getParentNode()
Deprecated.String
getPrefix()
Deprecated.Node
getPreviousSibling()
Deprecated.String
getTextContent()
Deprecated.Object
getUserData(String key)
Deprecated.boolean
hasAttributes()
Deprecated.boolean
hasChildNodes()
Deprecated.Node
insertBefore(Node newChild, Node refChild)
Deprecated.boolean
isDefaultNamespace(String namespaceURI)
Deprecated.boolean
isEqualNode(Node arg)
Deprecated.boolean
isSameNode(Node other)
Deprecated.boolean
isSupported(String feature, String version)
Deprecated.String
lookupNamespaceURI(String prefix)
Deprecated.String
lookupPrefix(String namespaceURI)
Deprecated.void
normalize()
Deprecated.Node
removeChild(Node oldChild)
Deprecated.Node
replaceChild(Node newChild, Node oldChild)
Deprecated.void
setNodeValue(String nodeValue)
Deprecated.void
setPrefix(String prefix)
Deprecated.void
setTextContent(String textContent)
Deprecated.Object
setUserData(String key, Object data, UserDataHandler handler)
Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
-
-
-
-
Field Detail
-
node
protected final Node node
Deprecated.
-
-
Constructor Detail
-
AbstractDomNodeProxy
protected AbstractDomNodeProxy(Node node)
Deprecated.
-
-
Method Detail
-
getNodeName
public String getNodeName()
Deprecated.- Specified by:
getNodeName
in interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
Deprecated.- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
setNodeValue
public void setNodeValue(String nodeValue) throws DOMException
Deprecated.- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
getNodeType
public short getNodeType()
Deprecated.- Specified by:
getNodeType
in interfaceNode
-
getParentNode
public Node getParentNode()
Deprecated.- Specified by:
getParentNode
in interfaceNode
-
getChildNodes
public NodeList getChildNodes()
Deprecated.- Specified by:
getChildNodes
in interfaceNode
-
getFirstChild
public Node getFirstChild()
Deprecated.- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
public Node getLastChild()
Deprecated.- Specified by:
getLastChild
in interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
Deprecated.- Specified by:
getPreviousSibling
in interfaceNode
-
getNextSibling
public Node getNextSibling()
Deprecated.- Specified by:
getNextSibling
in interfaceNode
-
getAttributes
public NamedNodeMap getAttributes()
Deprecated.- Specified by:
getAttributes
in interfaceNode
-
getOwnerDocument
public Document getOwnerDocument()
Deprecated.- Specified by:
getOwnerDocument
in interfaceNode
-
insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException
Deprecated.- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
Deprecated.- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
removeChild
public Node removeChild(Node oldChild) throws DOMException
Deprecated.- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
appendChild
public Node appendChild(Node newChild) throws DOMException
Deprecated.- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()
Deprecated.- Specified by:
hasChildNodes
in interfaceNode
-
cloneNode
public Node cloneNode(boolean deep)
Deprecated.
-
isSupported
public boolean isSupported(String feature, String version)
Deprecated.- Specified by:
isSupported
in interfaceNode
-
getNamespaceURI
public String getNamespaceURI()
Deprecated.- Specified by:
getNamespaceURI
in interfaceNode
-
setPrefix
public void setPrefix(String prefix) throws DOMException
Deprecated.- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
getLocalName
public String getLocalName()
Deprecated.- Specified by:
getLocalName
in interfaceNode
-
hasAttributes
public boolean hasAttributes()
Deprecated.- Specified by:
hasAttributes
in interfaceNode
-
getBaseURI
public String getBaseURI()
Deprecated.- Specified by:
getBaseURI
in interfaceNode
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
Deprecated.- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
Deprecated.- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
setTextContent
public void setTextContent(String textContent) throws DOMException
Deprecated.- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
Deprecated.- Specified by:
isSameNode
in interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
Deprecated.- Specified by:
lookupPrefix
in interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
Deprecated.- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
Deprecated.- Specified by:
lookupNamespaceURI
in interfaceNode
-
isEqualNode
public boolean isEqualNode(Node arg)
Deprecated.- Specified by:
isEqualNode
in interfaceNode
-
getFeature
public Object getFeature(String feature, String version)
Deprecated.- Specified by:
getFeature
in interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
Deprecated.- Specified by:
setUserData
in interfaceNode
-
getUserData
public Object getUserData(String key)
Deprecated.- Specified by:
getUserData
in interfaceNode
-
-