## org.apache.batik.dom
Class AbstractNode

    java.lang.Object
      org.apache.batik.dom.AbstractNode

All Implemented Interfaces:
  java.io.Serializable, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, EventTarget, org.w3c.dom.Node

Direct Known Subclasses:
  AbstractChildNode, AbstractNotation, AbstractParentNode

    public abstract class AbstractNode

extends java.lang.Object
implements ExtendedNode, NodeXBL, XBLManagerData, java.io.Serializable

This class implements the `Node` interface.

See Also:
  Serialized Form

Field Summary
`static short` `DOCUMENT_POSITION_CONTAINED_BY`
`static short` `DOCUMENT_POSITION_CONTAINS`
`static short` `DOCUMENT_POSITION_DISCONNECTED`
`static short` `DOCUMENT_POSITION_FOLLOWING`
`static short` `DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC`
`static short` `DOCUMENT_POSITION_PRECEDING`
`static org.w3c.dom.NodeList` `EMPTY_NODE_LIST` An empty instance of NodeList.
`protected EventSupport` `eventSupport` The event support.
`protected java.lang.Object` `managerData` The XBL manager data.
`protected AbstractDocument` `ownerDocument` The owner document.
`protected java.util.HashMap` `userData` User data.
`protected java.util.HashMap` `userDataHandlers` User data handlers.

Fields inherited from interface org.w3c.dom.Node
`ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE`

Constructor Summary
`AbstractNode()`

Method Summary
`void` `addEventListener(java.lang.String type, EventListener listener, boolean useCapture)` DOM: Implements `EventTarget.addEventListener(String,EventListener,boolean)`.
`void` `addEventListenerNS(java.lang.String namespaceURI, java.lang.String type, EventListener listener, boolean useCapture, java.lang.Object evtGroup)` DOM: Implements `NodeEventTarget.addEventListenerNS(String,String,EventListener,boolean,Object)`.
`org.w3c.dom.Node` `appendChild(org.w3c.dom.Node newChild)` DOM: Implements `Node.appendChild(Node)`.
`protected void` `checkChildType(org.w3c.dom.Node n, boolean replace)` Checks the validity of a node to be inserted.
`org.w3c.dom.Node` `cloneNode(boolean deep)` DOM: Implements `Node.cloneNode(boolean)`.
`short` `compareDocumentPosition(org.w3c.dom.Node other)` DOM: Implements `Node.compareDocumentPosition(Node)`.
`protected boolean` `compareNamedNodeMaps(org.w3c.dom.NamedNodeMap nnm1, org.w3c.dom.NamedNodeMap nnm2)` Compare two NamedNodeMaps for equality.
`protected boolean` `compareStrings(java.lang.String s1, java.lang.String s2)` Compare two strings for equality.
`protected org.w3c.dom.Node` `copyInto(org.w3c.dom.Node n)` Copy the fields of the current node into the given node.
`org.w3c.dom.DOMException` `createDOMException(short type, java.lang.String key, java.lang.Object[] args)` Creates an exception with the appropriate error message.
`protected org.w3c.dom.Node` `deepCopyInto(org.w3c.dom.Node n)` Deeply copy the fields of the current node into the given node.
`protected org.w3c.dom.Node` `deepExport(org.w3c.dom.Node n, AbstractDocument d)` Deeply exports this node to the given document.
`boolean` `dispatchEvent(Event evt)` DOM: Implements `EventTarget.dispatchEvent(Event)`.
`protected org.w3c.dom.Node` `export(org.w3c.dom.Node n, AbstractDocument d)` Exports this node to the given document.
`protected void` `fireDOMCharacterDataModifiedEvent(java.lang.String oldv, java.lang.String newv)` Fires a DOMCharacterDataModified event.
`void` `fireDOMNodeInsertedIntoDocumentEvent()` Recursively fires a DOMNodeInsertedIntoDocument event.
`void` `fireDOMNodeRemovedFromDocumentEvent()` Recursively fires a DOMNodeRemovedFromDocument event.
`protected void` `fireUserDataHandlers(short type, org.w3c.dom.Node oldNode, org.w3c.dom.Node newNode)` Fire any UserDataHandlers on the given oldNode.
`org.w3c.dom.NamedNodeMap` `getAttributes()` DOM: Implements `Node.getAttributes()`.
`java.lang.String` `getBaseURI()` DOM: Implements `Node.getBaseURI()`.
`static java.lang.String` `getBaseURI(org.w3c.dom.Node n)`
`protected java.lang.String` `getCascadedXMLBase(org.w3c.dom.Node node)` Returns the xml:base attribute value of the given element, resolving any dependency on parent bases if needed.
`org.w3c.dom.NodeList` `getChildNodes()` DOM: Implements `Node.getChildNodes()`.
`protected AbstractDocument` `getCurrentDocument()` Returns the current document.
`EventSupport` `getEventSupport()` Returns the event support instance for this node, or null if any.
`java.lang.Object` `getFeature(java.lang.String feature, java.lang.String version)` DOM: Implements `Node.getFeature(String,String)`.
`org.w3c.dom.Node` `getFirstChild()` DOM: Implements `Node.getFirstChild()`.
`org.w3c.dom.Node` `getLastChild()` DOM: Implements `Node.getLastChild()`.
`java.lang.String` `getLocalName()` DOM: Implements `Node.getLocalName()`.
`java.lang.Object` `getManagerData()` Returns the XBL manager associated data for this node.
`java.lang.String` `getNamespaceURI()` DOM: Implements `Node.getNamespaceURI()`.
`org.w3c.dom.Node` `getNextSibling()` DOM: Implements `Node.getNextSibling()`.
`java.lang.String` `getNodeValue()` DOM: Implements `Node.getNodeValue()`.
`org.w3c.dom.Document` `getOwnerDocument()` DOM: Implements `Node.getOwnerDocument()`.
`org.w3c.dom.Node` `getParentNode()` DOM: Implements `Node.getParentNode()`.
`NodeEventTarget` `getParentNodeEventTarget()` Implements `NodeEventTarget.getParentNodeEventTarget()`.
`java.lang.String` `getPrefix()` DOM: Implements `Node.getPrefix()`.
`org.w3c.dom.Node` `getPreviousSibling()` DOM: Implements `Node.getPreviousSibling()`.
`java.lang.String` `getTextContent()` DOM: Implements `Node.getTextContent()`.
`java.lang.Object` `getUserData(java.lang.String key)` DOM: Implements `Node.getUserData(String)`.
`org.w3c.dom.Element` `getXblBoundElement()` Get the bound element whose shadow tree this current node resides in.
`org.w3c.dom.NodeList` `getXblChildNodes()` Get the list of child nodes of this node in the fully flattened tree.
`org.w3c.dom.NodeList` `getXblDefinitions()` Get the xbl:definition elements currently binding this element.
`org.w3c.dom.Node` `getXblFirstChild()` Get the first child node of this node in the fully flattened tree.
`org.w3c.dom.Element` `getXblFirstElementChild()` Get the first element child of this node in the fully flattened tree.
`org.w3c.dom.Node` `getXblLastChild()` Get the last child node of this node in the fully flattened tree.
`org.w3c.dom.Element` `getXblLastElementChild()` Get the last element child of this node in the fully flattened tree.
`org.w3c.dom.Element` `getXblNextElementSibling()` Get the first element that follows the current node in the xblParentNode's xblChildNodes list.
`org.w3c.dom.Node` `getXblNextSibling()` Get the node which directly follows the current node in the xblParentNode's xblChildNodes list.
`org.w3c.dom.Node` `getXblParentNode()` Get the parent of this node in the fully flattened tree.
`org.w3c.dom.Element` `getXblPreviousElementSibling()` Get the first element that precedes the current node in the xblParentNode's xblChildNodes list.
`org.w3c.dom.Node` `getXblPreviousSibling()` Get the node which directly precedes the current node in the xblParentNode's xblChildNodes list.
`org.w3c.dom.NodeList` `getXblScopedChildNodes()` Get the list of child nodes of this node in the fully flattened tree that are within the same shadow scope.
`org.w3c.dom.Element` `getXblShadowTree()` Get the shadow tree of this node.
`boolean` `hasAttributes()` DOM: Implements `Node.hasAttributes()`.
`boolean` `hasChildNodes()` DOM: Implements `Node.hasChildNodes()`.
`boolean` `hasEventListenerNS(java.lang.String namespaceURI, java.lang.String type)` DOM: Implements `EventTarget.hasEventListenerNS(String,String)` from an old draft of DOM Level 3 Events.
`EventSupport` `initializeEventSupport()` Initializes the event support instance for this node if it has not been already, and returns it.
`org.w3c.dom.Node` `insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)` DOM: Implements `Node.insertBefore(Node, Node)`.
`boolean` `isDefaultNamespace(java.lang.String namespaceURI)` DOM: Implements `Node.isDefaultNamespace(String)`.
`boolean` `isEqualNode(org.w3c.dom.Node other)` DOM: Implements `Node.isEqualNode(Node)`.
`boolean` `isSameNode(org.w3c.dom.Node other)` DOM: Implements `Node.isSameNode(Node)`.
`boolean` `isSupported(java.lang.String feature, java.lang.String version)` DOM: Implements `Node.isSupported(String,String)`.
`protected java.lang.String` `lookupNamespacePrefix(java.lang.String namespaceURI, org.w3c.dom.Element originalElement)` Helper function for `lookupPrefix(java.lang.String)`.
`java.lang.String` `lookupNamespaceURI(java.lang.String prefix)` DOM: Implements `Node.lookupNamespaceURI(String)`.
`java.lang.String` `lookupPrefix(java.lang.String namespaceURI)` DOM: Implements `Node.lookupPrefix(String)`.
`protected abstract org.w3c.dom.Node` `newNode()` Returns a new uninitialized instance of this object's class.
`void` `normalize()` DOM: Implements `Node.normalize()`.
`org.w3c.dom.Node` `removeChild(org.w3c.dom.Node oldChild)` DOM: Implements `Node.removeChild(Node)`.
`void` `removeEventListener(java.lang.String type, EventListener listener, boolean useCapture)` DOM: Implements `EventTarget.removeEventListener(String,EventListener,boolean)`.
`void` `removeEventListenerNS(java.lang.String namespaceURI, java.lang.String type, EventListener listener, boolean useCapture)` DOM: Implements `NodeEventTarget.removeEventListenerNS(String,String,EventListener,boolean)`.
`org.w3c.dom.Node` `replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)` DOM: Implements `Node.replaceChild(Node, Node)`.
`void` `setManagerData(java.lang.Object data)` Sets the XBL manager associated data for this node.
`void` `setNextSibling(org.w3c.dom.Node n)` Sets the node immediately following this node.
`void` `setNodeName(java.lang.String v)` Sets the name of this node.
`void` `setNodeValue(java.lang.String nodeValue)` DOM: Implements `Node.setNodeValue(String)`.
`void` `setOwnerDocument(org.w3c.dom.Document doc)` Sets the owner document of this node.
`void` `setParentNode(org.w3c.dom.Node v)` Sets the parent node.
`void` `setPrefix(java.lang.String prefix)` DOM: Implements `Node.setPrefix(String)`.
`void` `setPreviousSibling(org.w3c.dom.Node n)` Sets the node immediately preceding this node.
`void` `setSpecified(boolean v)` Sets the value of the specified attribute.
`void` `setTextContent(java.lang.String s)` DOM: Implements `Node.setTextContent(String)`.
`java.lang.Object` `setUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)` DOM: Implements `Node.setUserData(String,Object,UserDataHandler)`.
`boolean` `willTriggerNS(java.lang.String namespaceURI, java.lang.String type)` DOM: Implements `EventTarget#willTriggerNS(String,String)` from an old draft of DOM Level 3 Events.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.apache.batik.dom.ExtendedNode
`isReadonly, setReadonly`

Methods inherited from interface org.w3c.dom.Node
`getNodeName, getNodeType`

Field Detail

### EMPTY_NODE_LIST

    public static final org.w3c.dom.NodeList EMPTY_NODE_LIST

  An empty instance of NodeList.

### ownerDocument

    protected AbstractDocument ownerDocument

  The owner document.

### eventSupport

    protected transient EventSupport eventSupport

  The event support.

### userData

    protected java.util.HashMap userData

  User data.

### userDataHandlers

    protected java.util.HashMap userDataHandlers

  User data handlers.

### managerData

    protected java.lang.Object managerData

  The XBL manager data.

### DOCUMENT_POSITION_DISCONNECTED

    public static final short DOCUMENT_POSITION_DISCONNECTED

See Also:
  Constant Field Values

### DOCUMENT_POSITION_PRECEDING

    public static final short DOCUMENT_POSITION_PRECEDING

See Also:
  Constant Field Values

### DOCUMENT_POSITION_FOLLOWING

    public static final short DOCUMENT_POSITION_FOLLOWING

See Also:
  Constant Field Values

### DOCUMENT_POSITION_CONTAINS

    public static final short DOCUMENT_POSITION_CONTAINS

See Also:
  Constant Field Values

### DOCUMENT_POSITION_CONTAINED_BY

    public static final short DOCUMENT_POSITION_CONTAINED_BY

See Also:
  Constant Field Values

### DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

    public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

See Also:
  Constant Field Values

Constructor Detail

### AbstractNode

    public AbstractNode()

Method Detail

### setNodeName

    public void setNodeName(java.lang.String v)

  Sets the name of this node. Do nothing.

  Specified by:
    `setNodeName` in interface `ExtendedNode`

### setOwnerDocument

    public void setOwnerDocument(org.w3c.dom.Document doc)

  Sets the owner document of this node.

  Specified by:
    `setOwnerDocument` in interface `ExtendedNode`

### setSpecified

    public void setSpecified(boolean v)

  Sets the value of the specified attribute. This method only applies to Attr objects.

  Specified by:
    `setSpecified` in interface `ExtendedNode`

### getNodeValue

    public java.lang.String getNodeValue()
                                  throws org.w3c.dom.DOMException

  DOM: Implements `Node.getNodeValue()`.

  Specified by:
    `getNodeValue` in interface `org.w3c.dom.Node`
  Returns:
    null.
  Throws:
    `org.w3c.dom.DOMException`

### setNodeValue

    public void setNodeValue(java.lang.String nodeValue)
                      throws org.w3c.dom.DOMException

  DOM: Implements `Node.setNodeValue(String)`. Do nothing.

  Specified by:
    `setNodeValue` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### getParentNode

    public org.w3c.dom.Node getParentNode()

  DOM: Implements `Node.getParentNode()`.

  Specified by:
    `getParentNode` in interface `org.w3c.dom.Node`
  Returns:
    null.

### setParentNode

    public void setParentNode(org.w3c.dom.Node v)

  Sets the parent node. Throws a HIERARCHY_REQUEST_ERR `DOMException`.

  Specified by:
    `setParentNode` in interface `ExtendedNode`

### getChildNodes

    public org.w3c.dom.NodeList getChildNodes()

  DOM: Implements `Node.getChildNodes()`.

  Specified by:
    `getChildNodes` in interface `org.w3c.dom.Node`
  Returns:
    `EMPTY_NODE_LIST`.

### getFirstChild

    public org.w3c.dom.Node getFirstChild()

  DOM: Implements `Node.getFirstChild()`.

  Specified by:
    `getFirstChild` in interface `org.w3c.dom.Node`
  Returns:
    null.

### getLastChild

    public org.w3c.dom.Node getLastChild()

  DOM: Implements `Node.getLastChild()`.

  Specified by:
    `getLastChild` in interface `org.w3c.dom.Node`
  Returns:
    null.

### setPreviousSibling

    public void setPreviousSibling(org.w3c.dom.Node n)

  Sets the node immediately preceding this node. Throws a HIERARCHY_REQUEST_ERR `DOMException`.

  Specified by:
    `setPreviousSibling` in interface `ExtendedNode`

### getPreviousSibling

    public org.w3c.dom.Node getPreviousSibling()

  DOM: Implements `Node.getPreviousSibling()`.

  Specified by:
    `getPreviousSibling` in interface `org.w3c.dom.Node`
  Returns:
    null.

### setNextSibling

    public void setNextSibling(org.w3c.dom.Node n)

  Sets the node immediately following this node. Throws a HIERARCHY_REQUEST_ERR `DOMException`.

  Specified by:
    `setNextSibling` in interface `ExtendedNode`

### getNextSibling

    public org.w3c.dom.Node getNextSibling()

  DOM: Implements `Node.getNextSibling()`.

  Specified by:
    `getNextSibling` in interface `org.w3c.dom.Node`
  Returns:
    null.

### hasAttributes

    public boolean hasAttributes()

  DOM: Implements `Node.hasAttributes()`.

  Specified by:
    `hasAttributes` in interface `org.w3c.dom.Node`
  Returns:
    false.

### getAttributes

    public org.w3c.dom.NamedNodeMap getAttributes()

  DOM: Implements `Node.getAttributes()`.

  Specified by:
    `getAttributes` in interface `org.w3c.dom.Node`
  Returns:
    null.

### getOwnerDocument

    public org.w3c.dom.Document getOwnerDocument()

  DOM: Implements `Node.getOwnerDocument()`.

  Specified by:
    `getOwnerDocument` in interface `org.w3c.dom.Node`
  Returns:
    `ownerDocument`.

### getNamespaceURI

    public java.lang.String getNamespaceURI()

  DOM: Implements `Node.getNamespaceURI()`.

  Specified by:
    `getNamespaceURI` in interface `org.w3c.dom.Node`
  Returns:
    null.

### insertBefore

    public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
                                         org.w3c.dom.Node refChild)
                                  throws org.w3c.dom.DOMException

  DOM: Implements `Node.insertBefore(Node, Node)`. Throws a HIERARCHY_REQUEST_ERR `DOMException`.

  Specified by:
    `insertBefore` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### replaceChild

    public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
                                         org.w3c.dom.Node oldChild)
                                  throws org.w3c.dom.DOMException

  DOM: Implements `Node.replaceChild(Node, Node)`. Throws a HIERARCHY_REQUEST_ERR `DOMException`.

  Specified by:
    `replaceChild` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### removeChild

    public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
                                 throws org.w3c.dom.DOMException

  DOM: Implements `Node.removeChild(Node)`. Throws a HIERARCHY_REQUEST_ERR `DOMException`.

  Specified by:
    `removeChild` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### appendChild

    public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
                                 throws org.w3c.dom.DOMException

  DOM: Implements `Node.appendChild(Node)`. Throws a HIERARCHY_REQUEST_ERR `DOMException`.

  Specified by:
    `appendChild` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### hasChildNodes

    public boolean hasChildNodes()

  DOM: Implements `Node.hasChildNodes()`.

  Specified by:
    `hasChildNodes` in interface `org.w3c.dom.Node`
  Returns:
    false.

### cloneNode

    public org.w3c.dom.Node cloneNode(boolean deep)

  DOM: Implements `Node.cloneNode(boolean)`.

  Specified by:
    `cloneNode` in interface `org.w3c.dom.Node`

### normalize

    public void normalize()

  DOM: Implements `Node.normalize()`. Do nothing.

  Specified by:
    `normalize` in interface `org.w3c.dom.Node`

### isSupported

    public boolean isSupported(java.lang.String feature,
                               java.lang.String version)

  DOM: Implements `Node.isSupported(String,String)`.

  Specified by:
    `isSupported` in interface `org.w3c.dom.Node`

### getPrefix

    public java.lang.String getPrefix()

  DOM: Implements `Node.getPrefix()`.

  Specified by:
    `getPrefix` in interface `org.w3c.dom.Node`

### setPrefix

    public void setPrefix(java.lang.String prefix)
                   throws org.w3c.dom.DOMException

  DOM: Implements `Node.setPrefix(String)`.

  Specified by:
    `setPrefix` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### getLocalName

    public java.lang.String getLocalName()

  DOM: Implements `Node.getLocalName()`.

  Specified by:
    `getLocalName` in interface `org.w3c.dom.Node`

### createDOMException

    public org.w3c.dom.DOMException createDOMException(short type,
                                                       java.lang.String key,
                                                       java.lang.Object[] args)

  Creates an exception with the appropriate error message.

### getCascadedXMLBase

    protected java.lang.String getCascadedXMLBase(org.w3c.dom.Node node)

  Returns the xml:base attribute value of the given element, resolving any dependency on parent bases if needed.

### getBaseURI

    public java.lang.String getBaseURI()

  DOM: Implements `Node.getBaseURI()`.

  Specified by:
    `getBaseURI` in interface `org.w3c.dom.Node`

### getBaseURI

    public static java.lang.String getBaseURI(org.w3c.dom.Node n)

### compareDocumentPosition

    public short compareDocumentPosition(org.w3c.dom.Node other)
                                  throws org.w3c.dom.DOMException

  DOM: Implements `Node.compareDocumentPosition(Node)`. XXX Doesn't handle notation or entity nodes.

  Specified by:
    `compareDocumentPosition` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### getTextContent

    public java.lang.String getTextContent()

  DOM: Implements `Node.getTextContent()`.

  Specified by:
    `getTextContent` in interface `org.w3c.dom.Node`

### setTextContent

    public void setTextContent(java.lang.String s)
                        throws org.w3c.dom.DOMException

  DOM: Implements `Node.setTextContent(String)`.

  Specified by:
    `setTextContent` in interface `org.w3c.dom.Node`
  Throws:
    `org.w3c.dom.DOMException`

### isSameNode

    public boolean isSameNode(org.w3c.dom.Node other)

  DOM: Implements `Node.isSameNode(Node)`.

  Specified by:
    `isSameNode` in interface `org.w3c.dom.Node`

### lookupPrefix

    public java.lang.String lookupPrefix(java.lang.String namespaceURI)

  DOM: Implements `Node.lookupPrefix(String)`.

  Specified by:
    `lookupPrefix` in interface `org.w3c.dom.Node`

### lookupNamespacePrefix

    protected java.lang.String lookupNamespacePrefix(java.lang.String namespaceURI,
                                                     org.w3c.dom.Element originalElement)

  Helper function for `lookupPrefix(java.lang.String)`.

### isDefaultNamespace

    public boolean isDefaultNamespace(java.lang.String namespaceURI)

  DOM: Implements `Node.isDefaultNamespace(String)`.

  Specified by:
    `isDefaultNamespace` in interface `org.w3c.dom.Node`

### lookupNamespaceURI

    public java.lang.String lookupNamespaceURI(java.lang.String prefix)

  DOM: Implements `Node.lookupNamespaceURI(String)`.

  Specified by:
    `lookupNamespaceURI` in interface `org.w3c.dom.Node`

### isEqualNode

    public boolean isEqualNode(org.w3c.dom.Node other)

  DOM: Implements `Node.isEqualNode(Node)`.

  Specified by:
    `isEqualNode` in interface `org.w3c.dom.Node`

### compareStrings

    protected boolean compareStrings(java.lang.String s1,
                                     java.lang.String s2)

  Compare two strings for equality.

### compareNamedNodeMaps

    protected boolean compareNamedNodeMaps(org.w3c.dom.NamedNodeMap nnm1,
                                           org.w3c.dom.NamedNodeMap nnm2)

  Compare two NamedNodeMaps for equality.

### getFeature

    public java.lang.Object getFeature(java.lang.String feature,
                                       java.lang.String version)

  DOM: Implements `Node.getFeature(String,String)`.

  Specified by:
    `getFeature` in interface `org.w3c.dom.Node`

### getUserData

    public java.lang.Object getUserData(java.lang.String key)

  DOM: Implements `Node.getUserData(String)`.

  Specified by:
    `getUserData` in interface `org.w3c.dom.Node`

### setUserData

    public java.lang.Object setUserData(java.lang.String key,
                                        java.lang.Object data,
                                        org.w3c.dom.UserDataHandler handler)

  DOM: Implements `Node.setUserData(String,Object,UserDataHandler)`.

  Specified by:
    `setUserData` in interface `org.w3c.dom.Node`

### fireUserDataHandlers

    protected void fireUserDataHandlers(short type,
                                        org.w3c.dom.Node oldNode,
                                        org.w3c.dom.Node newNode)

  Fire any UserDataHandlers on the given oldNode.

### addEventListener

    public void addEventListener(java.lang.String type,
                                 EventListener listener,
                                 boolean useCapture)

  DOM: Implements `EventTarget.addEventListener(String,EventListener,boolean)`.

  Specified by:
    `addEventListener` in interface `EventTarget`
  Parameters:
    `type` - Specifies the `Event.type` associated with the event for which the user is registering.
    `listener` - The `listener` parameter takes an object implemented by the user which implements the `EventListener` interface and contains the method to be called when the event occurs.
    `useCapture` - If true, `useCapture` indicates that the user wishes to add the event listener for the capture phase only, i.e. this event listener will not be triggered during the target and bubbling phases. If `false`, the event listener will only be triggered during the target and bubbling phases.

### addEventListenerNS

    public void addEventListenerNS(java.lang.String namespaceURI,
                                   java.lang.String type,
                                   EventListener listener,
                                   boolean useCapture,
                                   java.lang.Object evtGroup)

  DOM: Implements `NodeEventTarget.addEventListenerNS(String,String,EventListener,boolean,Object)`.

  Specified by:
    `addEventListenerNS` in interface `NodeEventTarget`
  Specified by:
    `addEventListenerNS` in interface `EventTarget`
  Parameters:
    `namespaceURI` - Specifies the `Event.namespaceURI` associated with the event for which the user is registering.
    `type` - Refer to the `EventTarget.addEventListener()` method for a description of this parameter.
    `listener` - Refer to the `EventTarget.addEventListener()` method for a description of this parameter.
    `useCapture` - Refer to the `EventTarget.addEventListener()` method for a description of this parameter.
    `evtGroup` - The object that represents the event group to associate with the `EventListener` (see also ). Use `null` to attach the event listener to the default group.

### removeEventListener

    public void removeEventListener(java.lang.String type,
                                    EventListener listener,
                                    boolean useCapture)

  DOM: Implements `EventTarget.removeEventListener(String,EventListener,boolean)`.

  Specified by:
    `removeEventListener` in interface `EventTarget`
  Parameters:
    `type` - Specifies the `Event.type` for which the user registered the event listener.
    `listener` - The `EventListener` to be removed.
    `useCapture` - Specifies whether the `EventListener` being removed was registered for the capture phase or not. If a listener was registered twice, once for the capture phase and once for the target and bubbling phases, each must be removed separately. Removal of an event listener registered for the capture phase does not affect the same event listener registered for the target and bubbling phases, and vice versa.

### removeEventListenerNS

    public void removeEventListenerNS(java.lang.String namespaceURI,
                                      java.lang.String type,
                                      EventListener listener,
                                      boolean useCapture)

  DOM: Implements `NodeEventTarget.removeEventListenerNS(String,String,EventListener,boolean)`.

  Specified by:
    `removeEventListenerNS` in interface `NodeEventTarget`
  Specified by:
    `removeEventListenerNS` in interface `EventTarget`
  Parameters:
    `namespaceURI` - Specifies the `Event.namespaceURI` associated with the event for which the user registered the event listener.
    `type` - Refer to the `EventTarget.removeEventListener()` method for a description of this parameter.
    `listener` - Refer to the `EventTarget.removeEventListener()` method for a description of this parameter.
    `useCapture` - Refer to the `EventTarget.removeEventListener()` method for a description of this parameter.

### getParentNodeEventTarget

    public NodeEventTarget getParentNodeEventTarget()

  Implements `NodeEventTarget.getParentNodeEventTarget()`.

  Specified by:
    `getParentNodeEventTarget` in interface `NodeEventTarget`

### dispatchEvent

    public boolean dispatchEvent(Event evt)
                          throws EventException

  DOM: Implements `EventTarget.dispatchEvent(Event)`.

  Specified by:
    `dispatchEvent` in interface `NodeEventTarget`
  Specified by:
    `dispatchEvent` in interface `EventTarget`
  Parameters:
    `evt` - The event to be dispatched.
  Returns:
    Indicates whether any of the listeners which handled the event called `Event.preventDefault()`. If `Event.preventDefault()` was called the returned value is `false`, else it is `true`.
  Throws:
    `EventException` - UNSPECIFIED_EVENT_TYPE_ERR: Raised if the `Event.type` was not specified by initializing the event before `dispatchEvent` was called. Specification of the `Event.type` as `null` or an empty string will also trigger this exception.
    DISPATCH_REQUEST_ERR: Raised if the `Event` object is already being dispatched.

### willTriggerNS

    public boolean willTriggerNS(java.lang.String namespaceURI,
                                 java.lang.String type)

  DOM: Implements `EventTarget#willTriggerNS(String,String)` from an old draft of DOM Level 3 Events.

### hasEventListenerNS

    public boolean hasEventListenerNS(java.lang.String namespaceURI,
                                      java.lang.String type)

  DOM: Implements `EventTarget.hasEventListenerNS(String,String)` from an old draft of DOM Level 3 Events.

### getEventSupport

    public EventSupport getEventSupport()

  Returns the event support instance for this node, or null if any.

  Specified by:
    `getEventSupport` in interface `NodeEventTarget`

### initializeEventSupport

    public EventSupport initializeEventSupport()

  Initializes the event support instance for this node if it has not been already, and returns it.

### fireDOMNodeInsertedIntoDocumentEvent

    public void fireDOMNodeInsertedIntoDocumentEvent()

  Recursively fires a DOMNodeInsertedIntoDocument event.

### fireDOMNodeRemovedFromDocumentEvent

    public void fireDOMNodeRemovedFromDocumentEvent()

  Recursively fires a DOMNodeRemovedFromDocument event.

### fireDOMCharacterDataModifiedEvent

    protected void fireDOMCharacterDataModifiedEvent(java.lang.String oldv,
                                                     java.lang.String newv)

  Fires a DOMCharacterDataModified event.

### getCurrentDocument

    protected AbstractDocument getCurrentDocument()

  Returns the current document.

### newNode

    protected abstract org.w3c.dom.Node newNode()

  Returns a new uninitialized instance of this object's class.

### export

    protected org.w3c.dom.Node export(org.w3c.dom.Node n,
                                      AbstractDocument d)

  Exports this node to the given document.

### deepExport

    protected org.w3c.dom.Node deepExport(org.w3c.dom.Node n,
                                          AbstractDocument d)

  Deeply exports this node to the given document.

### copyInto

    protected org.w3c.dom.Node copyInto(org.w3c.dom.Node n)

  Copy the fields of the current node into the given node.

  Parameters:
    `n` - a node of the type of this.

### deepCopyInto

    protected org.w3c.dom.Node deepCopyInto(org.w3c.dom.Node n)

  Deeply copy the fields of the current node into the given node.

  Parameters:
    `n` - a node of the type of this.

### checkChildType

    protected void checkChildType(org.w3c.dom.Node n,
                                  boolean replace)

  Checks the validity of a node to be inserted.

### getXblParentNode

    public org.w3c.dom.Node getXblParentNode()

  Get the parent of this node in the fully flattened tree.

  Specified by:
    `getXblParentNode` in interface `NodeXBL`

### getXblChildNodes

    public org.w3c.dom.NodeList getXblChildNodes()

  Get the list of child nodes of this node in the fully flattened tree.

  Specified by:
    `getXblChildNodes` in interface `NodeXBL`

### getXblScopedChildNodes

    public org.w3c.dom.NodeList getXblScopedChildNodes()

  Get the list of child nodes of this node in the fully flattened tree that are within the same shadow scope.

  Specified by:
    `getXblScopedChildNodes` in interface `NodeXBL`

### getXblFirstChild

    public org.w3c.dom.Node getXblFirstChild()

  Get the first child node of this node in the fully flattened tree.

  Specified by:
    `getXblFirstChild` in interface `NodeXBL`

### getXblLastChild

    public org.w3c.dom.Node getXblLastChild()

  Get the last child node of this node in the fully flattened tree.

  Specified by:
    `getXblLastChild` in interface `NodeXBL`

### getXblPreviousSibling

    public org.w3c.dom.Node getXblPreviousSibling()

  Get the node which directly precedes the current node in the xblParentNode's xblChildNodes list.

  Specified by:
    `getXblPreviousSibling` in interface `NodeXBL`

### getXblNextSibling

    public org.w3c.dom.Node getXblNextSibling()

  Get the node which directly follows the current node in the xblParentNode's xblChildNodes list.

  Specified by:
    `getXblNextSibling` in interface `NodeXBL`

### getXblFirstElementChild

    public org.w3c.dom.Element getXblFirstElementChild()

  Get the first element child of this node in the fully flattened tree.

  Specified by:
    `getXblFirstElementChild` in interface `NodeXBL`

### getXblLastElementChild

    public org.w3c.dom.Element getXblLastElementChild()

  Get the last element child of this node in the fully flattened tree.

  Specified by:
    `getXblLastElementChild` in interface `NodeXBL`

### getXblPreviousElementSibling

    public org.w3c.dom.Element getXblPreviousElementSibling()

  Get the first element that precedes the current node in the xblParentNode's xblChildNodes list.

  Specified by:
    `getXblPreviousElementSibling` in interface `NodeXBL`

### getXblNextElementSibling

    public org.w3c.dom.Element getXblNextElementSibling()

  Get the first element that follows the current node in the xblParentNode's xblChildNodes list.

  Specified by:
    `getXblNextElementSibling` in interface `NodeXBL`

### getXblBoundElement

    public org.w3c.dom.Element getXblBoundElement()

  Get the bound element whose shadow tree this current node resides in.

  Specified by:
    `getXblBoundElement` in interface `NodeXBL`

### getXblShadowTree

    public org.w3c.dom.Element getXblShadowTree()

  Get the shadow tree of this node.

  Specified by:
    `getXblShadowTree` in interface `NodeXBL`

### getXblDefinitions

    public org.w3c.dom.NodeList getXblDefinitions()

  Get the xbl:definition elements currently binding this element.

  Specified by:
    `getXblDefinitions` in interface `NodeXBL`

### getManagerData

    public java.lang.Object getManagerData()

  Returns the XBL manager associated data for this node.

  Specified by:
    `getManagerData` in interface `XBLManagerData`

### setManagerData

    public void setManagerData(java.lang.Object data)

  Sets the XBL manager associated data for this node.

  Specified by:
    `setManagerData` in interface `XBLManagerData`

Copyright © 2008 Apache Software Foundation. All Rights Reserved.