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 NodenodeDeprecated.-
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 protectedAbstractDomNodeProxy(Node node)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NodeappendChild(Node newChild)Deprecated.NodecloneNode(boolean deep)Deprecated.shortcompareDocumentPosition(Node other)Deprecated.NamedNodeMapgetAttributes()Deprecated.StringgetBaseURI()Deprecated.NodeListgetChildNodes()Deprecated.ObjectgetFeature(String feature, String version)Deprecated.NodegetFirstChild()Deprecated.NodegetLastChild()Deprecated.StringgetLocalName()Deprecated.StringgetNamespaceURI()Deprecated.NodegetNextSibling()Deprecated.StringgetNodeName()Deprecated.shortgetNodeType()Deprecated.StringgetNodeValue()Deprecated.DocumentgetOwnerDocument()Deprecated.NodegetParentNode()Deprecated.StringgetPrefix()Deprecated.NodegetPreviousSibling()Deprecated.StringgetTextContent()Deprecated.ObjectgetUserData(String key)Deprecated.booleanhasAttributes()Deprecated.booleanhasChildNodes()Deprecated.NodeinsertBefore(Node newChild, Node refChild)Deprecated.booleanisDefaultNamespace(String namespaceURI)Deprecated.booleanisEqualNode(Node arg)Deprecated.booleanisSameNode(Node other)Deprecated.booleanisSupported(String feature, String version)Deprecated.StringlookupNamespaceURI(String prefix)Deprecated.StringlookupPrefix(String namespaceURI)Deprecated.voidnormalize()Deprecated.NoderemoveChild(Node oldChild)Deprecated.NodereplaceChild(Node newChild, Node oldChild)Deprecated.voidsetNodeValue(String nodeValue)Deprecated.voidsetPrefix(String prefix)Deprecated.voidsetTextContent(String textContent)Deprecated.ObjectsetUserData(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:
getNodeNamein interfaceNode
-
getNodeValue
public String getNodeValue() throws DOMException
Deprecated.- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
setNodeValue
public void setNodeValue(String nodeValue) throws DOMException
Deprecated.- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
getNodeType
public short getNodeType()
Deprecated.- Specified by:
getNodeTypein interfaceNode
-
getParentNode
public Node getParentNode()
Deprecated.- Specified by:
getParentNodein interfaceNode
-
getChildNodes
public NodeList getChildNodes()
Deprecated.- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
public Node getFirstChild()
Deprecated.- Specified by:
getFirstChildin interfaceNode
-
getLastChild
public Node getLastChild()
Deprecated.- Specified by:
getLastChildin interfaceNode
-
getPreviousSibling
public Node getPreviousSibling()
Deprecated.- Specified by:
getPreviousSiblingin interfaceNode
-
getNextSibling
public Node getNextSibling()
Deprecated.- Specified by:
getNextSiblingin interfaceNode
-
getAttributes
public NamedNodeMap getAttributes()
Deprecated.- Specified by:
getAttributesin interfaceNode
-
getOwnerDocument
public Document getOwnerDocument()
Deprecated.- Specified by:
getOwnerDocumentin interfaceNode
-
insertBefore
public Node insertBefore(Node newChild, Node refChild) throws DOMException
Deprecated.- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
replaceChild
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
Deprecated.- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
removeChild
public Node removeChild(Node oldChild) throws DOMException
Deprecated.- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
appendChild
public Node appendChild(Node newChild) throws DOMException
Deprecated.- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()
Deprecated.- Specified by:
hasChildNodesin interfaceNode
-
cloneNode
public Node cloneNode(boolean deep)
Deprecated.
-
isSupported
public boolean isSupported(String feature, String version)
Deprecated.- Specified by:
isSupportedin interfaceNode
-
getNamespaceURI
public String getNamespaceURI()
Deprecated.- Specified by:
getNamespaceURIin interfaceNode
-
setPrefix
public void setPrefix(String prefix) throws DOMException
Deprecated.- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
getLocalName
public String getLocalName()
Deprecated.- Specified by:
getLocalNamein interfaceNode
-
hasAttributes
public boolean hasAttributes()
Deprecated.- Specified by:
hasAttributesin interfaceNode
-
getBaseURI
public String getBaseURI()
Deprecated.- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException
Deprecated.- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
public String getTextContent() throws DOMException
Deprecated.- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
public void setTextContent(String textContent) throws DOMException
Deprecated.- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
public boolean isSameNode(Node other)
Deprecated.- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
public String lookupPrefix(String namespaceURI)
Deprecated.- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)
Deprecated.- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
public String lookupNamespaceURI(String prefix)
Deprecated.- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
public boolean isEqualNode(Node arg)
Deprecated.- Specified by:
isEqualNodein interfaceNode
-
getFeature
public Object getFeature(String feature, String version)
Deprecated.- Specified by:
getFeaturein interfaceNode
-
setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)
Deprecated.- Specified by:
setUserDatain interfaceNode
-
getUserData
public Object getUserData(String key)
Deprecated.- Specified by:
getUserDatain interfaceNode
-
-