Package org.apache.batik.dom
Class AbstractNode
- java.lang.Object
-
- org.apache.batik.dom.AbstractNode
-
- All Implemented Interfaces:
java.io.Serializable,NodeEventTarget,ExtendedNode,NodeXBL,XBLManagerData,org.w3c.dom.events.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 theNodeinterface.- Version:
- $Id: AbstractNode.java 1851346 2019-01-15 13:41:00Z ssteiner $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static shortDOCUMENT_POSITION_CONTAINED_BYstatic shortDOCUMENT_POSITION_CONTAINSstatic shortDOCUMENT_POSITION_DISCONNECTEDstatic shortDOCUMENT_POSITION_FOLLOWINGstatic shortDOCUMENT_POSITION_IMPLEMENTATION_SPECIFICstatic shortDOCUMENT_POSITION_PRECEDINGstatic org.w3c.dom.NodeListEMPTY_NODE_LISTAn empty instance of NodeList.protected EventSupporteventSupportThe event support.protected java.lang.ObjectmanagerDataThe XBL manager data.protected AbstractDocumentownerDocumentThe owner document.protected java.util.HashMapuserDataUser data.protected java.util.HashMapuserDataHandlersUser data handlers.
-
Constructor Summary
Constructors Constructor Description AbstractNode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddEventListener(java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)DOM: ImplementsEventTarget.addEventListener(String,EventListener,boolean).voidaddEventListenerNS(java.lang.String namespaceURI, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture, java.lang.Object evtGroup)org.w3c.dom.NodeappendChild(org.w3c.dom.Node newChild)DOM: ImplementsNode.appendChild(Node).protected voidcheckChildType(org.w3c.dom.Node n, boolean replace)Checks the validity of a node to be inserted.org.w3c.dom.NodecloneNode(boolean deep)DOM: ImplementsNode.cloneNode(boolean).shortcompareDocumentPosition(org.w3c.dom.Node other)DOM: ImplementsNode.compareDocumentPosition(Node).protected booleancompareNamedNodeMaps(org.w3c.dom.NamedNodeMap nnm1, org.w3c.dom.NamedNodeMap nnm2)Compare two NamedNodeMaps for equality.protected booleancompareStrings(java.lang.String s1, java.lang.String s2)Compare two strings for equality.protected org.w3c.dom.NodecopyInto(org.w3c.dom.Node n)Copy the fields of the current node into the given node.org.w3c.dom.DOMExceptioncreateDOMException(short type, java.lang.String key, java.lang.Object[] args)Creates an exception with the appropriate error message.protected org.w3c.dom.NodedeepCopyInto(org.w3c.dom.Node n)Deeply copy the fields of the current node into the given node.protected org.w3c.dom.NodedeepExport(org.w3c.dom.Node n, AbstractDocument d)Deeply exports this node to the given document.booleandispatchEvent(org.w3c.dom.events.Event evt)DOM: ImplementsEventTarget.dispatchEvent(Event).protected org.w3c.dom.Nodeexport(org.w3c.dom.Node n, AbstractDocument d)Exports this node to the given document.protected voidfireDOMCharacterDataModifiedEvent(java.lang.String oldv, java.lang.String newv)Fires a DOMCharacterDataModified event.voidfireDOMNodeInsertedIntoDocumentEvent()Recursively fires a DOMNodeInsertedIntoDocument event.voidfireDOMNodeRemovedFromDocumentEvent()Recursively fires a DOMNodeRemovedFromDocument event.protected voidfireUserDataHandlers(short type, org.w3c.dom.Node oldNode, org.w3c.dom.Node newNode)Fire any UserDataHandlers on the given oldNode.org.w3c.dom.NamedNodeMapgetAttributes()DOM: ImplementsNode.getAttributes().java.lang.StringgetBaseURI()DOM: ImplementsNode.getBaseURI().static java.lang.StringgetBaseURI(org.w3c.dom.Node n)protected java.lang.StringgetCascadedXMLBase(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.NodeListgetChildNodes()DOM: ImplementsNode.getChildNodes().protected AbstractDocumentgetCurrentDocument()Returns the current document.EventSupportgetEventSupport()Returns the event support instance for this node, or null if any.java.lang.ObjectgetFeature(java.lang.String feature, java.lang.String version)DOM: ImplementsNode.getFeature(String,String).org.w3c.dom.NodegetFirstChild()DOM: ImplementsNode.getFirstChild().org.w3c.dom.NodegetLastChild()DOM: ImplementsNode.getLastChild().java.lang.StringgetLocalName()DOM: ImplementsNode.getLocalName().java.lang.ObjectgetManagerData()Returns the XBL manager associated data for this node.java.lang.StringgetNamespaceURI()DOM: ImplementsNode.getNamespaceURI().org.w3c.dom.NodegetNextSibling()DOM: ImplementsNode.getNextSibling().java.lang.StringgetNodeValue()DOM: ImplementsNode.getNodeValue().org.w3c.dom.DocumentgetOwnerDocument()DOM: ImplementsNode.getOwnerDocument().org.w3c.dom.NodegetParentNode()DOM: ImplementsNode.getParentNode().NodeEventTargetgetParentNodeEventTarget()ImplementsNodeEventTarget.getParentNodeEventTarget().java.lang.StringgetPrefix()DOM: ImplementsNode.getPrefix().org.w3c.dom.NodegetPreviousSibling()DOM: ImplementsNode.getPreviousSibling().java.lang.StringgetTextContent()DOM: ImplementsNode.getTextContent().java.lang.ObjectgetUserData(java.lang.String key)DOM: ImplementsNode.getUserData(String).org.w3c.dom.ElementgetXblBoundElement()Get the bound element whose shadow tree this current node resides in.org.w3c.dom.NodeListgetXblChildNodes()Get the list of child nodes of this node in the fully flattened tree.org.w3c.dom.NodeListgetXblDefinitions()Get the xbl:definition elements currently binding this element.org.w3c.dom.NodegetXblFirstChild()Get the first child node of this node in the fully flattened tree.org.w3c.dom.ElementgetXblFirstElementChild()Get the first element child of this node in the fully flattened tree.org.w3c.dom.NodegetXblLastChild()Get the last child node of this node in the fully flattened tree.org.w3c.dom.ElementgetXblLastElementChild()Get the last element child of this node in the fully flattened tree.org.w3c.dom.ElementgetXblNextElementSibling()Get the first element that follows the current node in the xblParentNode's xblChildNodes list.org.w3c.dom.NodegetXblNextSibling()Get the node which directly follows the current node in the xblParentNode's xblChildNodes list.org.w3c.dom.NodegetXblParentNode()Get the parent of this node in the fully flattened tree.org.w3c.dom.ElementgetXblPreviousElementSibling()Get the first element that precedes the current node in the xblParentNode's xblChildNodes list.org.w3c.dom.NodegetXblPreviousSibling()Get the node which directly precedes the current node in the xblParentNode's xblChildNodes list.org.w3c.dom.NodeListgetXblScopedChildNodes()Get the list of child nodes of this node in the fully flattened tree that are within the same shadow scope.org.w3c.dom.ElementgetXblShadowTree()Get the shadow tree of this node.booleanhasAttributes()DOM: ImplementsNode.hasAttributes().booleanhasChildNodes()DOM: ImplementsNode.hasChildNodes().booleanhasEventListenerNS(java.lang.String namespaceURI, java.lang.String type)DOM: ImplementsEventTarget.hasEventListenerNS(String,String)from an old draft of DOM Level 3 Events.EventSupportinitializeEventSupport()Initializes the event support instance for this node if it has not been already, and returns it.org.w3c.dom.NodeinsertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)DOM: ImplementsNode.insertBefore(Node, Node).booleanisDefaultNamespace(java.lang.String namespaceURI)DOM: ImplementsNode.isDefaultNamespace(String).booleanisEqualNode(org.w3c.dom.Node other)DOM: ImplementsNode.isEqualNode(Node).booleanisSameNode(org.w3c.dom.Node other)DOM: ImplementsNode.isSameNode(Node).booleanisSupported(java.lang.String feature, java.lang.String version)DOM: ImplementsNode.isSupported(String,String).protected java.lang.StringlookupNamespacePrefix(java.lang.String namespaceURI, org.w3c.dom.Element originalElement)Helper function forlookupPrefix(java.lang.String).java.lang.StringlookupNamespaceURI(java.lang.String prefix)DOM: ImplementsNode.lookupNamespaceURI(String).java.lang.StringlookupPrefix(java.lang.String namespaceURI)DOM: ImplementsNode.lookupPrefix(String).protected abstract org.w3c.dom.NodenewNode()Returns a new uninitialized instance of this object's class.voidnormalize()DOM: ImplementsNode.normalize().org.w3c.dom.NoderemoveChild(org.w3c.dom.Node oldChild)DOM: ImplementsNode.removeChild(Node).voidremoveEventListener(java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)DOM: ImplementsEventTarget.removeEventListener(String,EventListener,boolean).voidremoveEventListenerNS(java.lang.String namespaceURI, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)org.w3c.dom.NodereplaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)DOM: ImplementsNode.replaceChild(Node, Node).voidsetManagerData(java.lang.Object data)Sets the XBL manager associated data for this node.voidsetNextSibling(org.w3c.dom.Node n)Sets the node immediately following this node.voidsetNodeName(java.lang.String v)Sets the name of this node.voidsetNodeValue(java.lang.String nodeValue)DOM: ImplementsNode.setNodeValue(String).voidsetOwnerDocument(org.w3c.dom.Document doc)Sets the owner document of this node.voidsetParentNode(org.w3c.dom.Node v)Sets the parent node.voidsetPrefix(java.lang.String prefix)DOM: ImplementsNode.setPrefix(String).voidsetPreviousSibling(org.w3c.dom.Node n)Sets the node immediately preceding this node.voidsetSpecified(boolean v)Sets the value of the specified attribute.voidsetTextContent(java.lang.String s)DOM: ImplementsNode.setTextContent(String).java.lang.ObjectsetUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)DOM: ImplementsNode.setUserData(String,Object,UserDataHandler).booleanwillTriggerNS(java.lang.String namespaceURI, java.lang.String type)DOM: ImplementsEventTarget#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
-
-
-
-
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
-
-
Method Detail
-
setNodeName
public void setNodeName(java.lang.String v)
Sets the name of this node. Do nothing.- Specified by:
setNodeNamein interfaceExtendedNode
-
setOwnerDocument
public void setOwnerDocument(org.w3c.dom.Document doc)
Sets the owner document of this node.- Specified by:
setOwnerDocumentin interfaceExtendedNode
-
setSpecified
public void setSpecified(boolean v)
Sets the value of the specified attribute. This method only applies to Attr objects.- Specified by:
setSpecifiedin interfaceExtendedNode
-
getNodeValue
public java.lang.String getNodeValue() throws org.w3c.dom.DOMExceptionDOM: ImplementsNode.getNodeValue().- Specified by:
getNodeValuein interfaceorg.w3c.dom.Node- Returns:
- null.
- Throws:
org.w3c.dom.DOMException
-
setNodeValue
public void setNodeValue(java.lang.String nodeValue) throws org.w3c.dom.DOMExceptionDOM: ImplementsNode.setNodeValue(String). Do nothing.- Specified by:
setNodeValuein interfaceorg.w3c.dom.Node- Throws:
org.w3c.dom.DOMException
-
getParentNode
public org.w3c.dom.Node getParentNode()
DOM: ImplementsNode.getParentNode().- Specified by:
getParentNodein interfaceorg.w3c.dom.Node- Returns:
- null.
-
setParentNode
public void setParentNode(org.w3c.dom.Node v)
Sets the parent node. Throws a HIERARCHY_REQUEST_ERRDOMException.- Specified by:
setParentNodein interfaceExtendedNode
-
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
DOM: ImplementsNode.getChildNodes().- Specified by:
getChildNodesin interfaceorg.w3c.dom.Node- Returns:
EMPTY_NODE_LIST.
-
getFirstChild
public org.w3c.dom.Node getFirstChild()
DOM: ImplementsNode.getFirstChild().- Specified by:
getFirstChildin interfaceorg.w3c.dom.Node- Returns:
- null.
-
getLastChild
public org.w3c.dom.Node getLastChild()
DOM: ImplementsNode.getLastChild().- Specified by:
getLastChildin interfaceorg.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_ERRDOMException.- Specified by:
setPreviousSiblingin interfaceExtendedNode
-
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
DOM: ImplementsNode.getPreviousSibling().- Specified by:
getPreviousSiblingin interfaceorg.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_ERRDOMException.- Specified by:
setNextSiblingin interfaceExtendedNode
-
getNextSibling
public org.w3c.dom.Node getNextSibling()
DOM: ImplementsNode.getNextSibling().- Specified by:
getNextSiblingin interfaceorg.w3c.dom.Node- Returns:
- null.
-
hasAttributes
public boolean hasAttributes()
DOM: ImplementsNode.hasAttributes().- Specified by:
hasAttributesin interfaceorg.w3c.dom.Node- Returns:
- false.
-
getAttributes
public org.w3c.dom.NamedNodeMap getAttributes()
DOM: ImplementsNode.getAttributes().- Specified by:
getAttributesin interfaceorg.w3c.dom.Node- Returns:
- null.
-
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
DOM: ImplementsNode.getOwnerDocument().- Specified by:
getOwnerDocumentin interfaceorg.w3c.dom.Node- Returns:
ownerDocument.
-
getNamespaceURI
public java.lang.String getNamespaceURI()
DOM: ImplementsNode.getNamespaceURI().- Specified by:
getNamespaceURIin interfaceorg.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.DOMExceptionDOM: ImplementsNode.insertBefore(Node, Node). Throws a HIERARCHY_REQUEST_ERRDOMException.- Specified by:
insertBeforein interfaceorg.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.DOMExceptionDOM: ImplementsNode.replaceChild(Node, Node). Throws a HIERARCHY_REQUEST_ERRDOMException.- Specified by:
replaceChildin interfaceorg.w3c.dom.Node- Throws:
org.w3c.dom.DOMException
-
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMExceptionDOM: ImplementsNode.removeChild(Node). Throws a HIERARCHY_REQUEST_ERRDOMException.- Specified by:
removeChildin interfaceorg.w3c.dom.Node- Throws:
org.w3c.dom.DOMException
-
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMExceptionDOM: ImplementsNode.appendChild(Node). Throws a HIERARCHY_REQUEST_ERRDOMException.- Specified by:
appendChildin interfaceorg.w3c.dom.Node- Throws:
org.w3c.dom.DOMException
-
hasChildNodes
public boolean hasChildNodes()
DOM: ImplementsNode.hasChildNodes().- Specified by:
hasChildNodesin interfaceorg.w3c.dom.Node- Returns:
- false.
-
cloneNode
public org.w3c.dom.Node cloneNode(boolean deep)
DOM: ImplementsNode.cloneNode(boolean).- Specified by:
cloneNodein interfaceorg.w3c.dom.Node
-
normalize
public void normalize()
DOM: ImplementsNode.normalize(). Do nothing.- Specified by:
normalizein interfaceorg.w3c.dom.Node
-
isSupported
public boolean isSupported(java.lang.String feature, java.lang.String version)DOM: ImplementsNode.isSupported(String,String).- Specified by:
isSupportedin interfaceorg.w3c.dom.Node
-
getPrefix
public java.lang.String getPrefix()
DOM: ImplementsNode.getPrefix().- Specified by:
getPrefixin interfaceorg.w3c.dom.Node
-
setPrefix
public void setPrefix(java.lang.String prefix) throws org.w3c.dom.DOMExceptionDOM: ImplementsNode.setPrefix(String).- Specified by:
setPrefixin interfaceorg.w3c.dom.Node- Throws:
org.w3c.dom.DOMException
-
getLocalName
public java.lang.String getLocalName()
DOM: ImplementsNode.getLocalName().- Specified by:
getLocalNamein interfaceorg.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: ImplementsNode.getBaseURI().- Specified by:
getBaseURIin interfaceorg.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.DOMExceptionDOM: ImplementsNode.compareDocumentPosition(Node). XXX Doesn't handle notation or entity nodes.- Specified by:
compareDocumentPositionin interfaceorg.w3c.dom.Node- Throws:
org.w3c.dom.DOMException
-
getTextContent
public java.lang.String getTextContent()
DOM: ImplementsNode.getTextContent().- Specified by:
getTextContentin interfaceorg.w3c.dom.Node
-
setTextContent
public void setTextContent(java.lang.String s) throws org.w3c.dom.DOMExceptionDOM: ImplementsNode.setTextContent(String).- Specified by:
setTextContentin interfaceorg.w3c.dom.Node- Throws:
org.w3c.dom.DOMException
-
isSameNode
public boolean isSameNode(org.w3c.dom.Node other)
DOM: ImplementsNode.isSameNode(Node).- Specified by:
isSameNodein interfaceorg.w3c.dom.Node
-
lookupPrefix
public java.lang.String lookupPrefix(java.lang.String namespaceURI)
DOM: ImplementsNode.lookupPrefix(String).- Specified by:
lookupPrefixin interfaceorg.w3c.dom.Node
-
lookupNamespacePrefix
protected java.lang.String lookupNamespacePrefix(java.lang.String namespaceURI, org.w3c.dom.Element originalElement)Helper function forlookupPrefix(java.lang.String).
-
isDefaultNamespace
public boolean isDefaultNamespace(java.lang.String namespaceURI)
DOM: ImplementsNode.isDefaultNamespace(String).- Specified by:
isDefaultNamespacein interfaceorg.w3c.dom.Node
-
lookupNamespaceURI
public java.lang.String lookupNamespaceURI(java.lang.String prefix)
DOM: ImplementsNode.lookupNamespaceURI(String).- Specified by:
lookupNamespaceURIin interfaceorg.w3c.dom.Node
-
isEqualNode
public boolean isEqualNode(org.w3c.dom.Node other)
DOM: ImplementsNode.isEqualNode(Node).- Specified by:
isEqualNodein interfaceorg.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: ImplementsNode.getFeature(String,String).- Specified by:
getFeaturein interfaceorg.w3c.dom.Node
-
getUserData
public java.lang.Object getUserData(java.lang.String key)
DOM: ImplementsNode.getUserData(String).- Specified by:
getUserDatain interfaceorg.w3c.dom.Node
-
setUserData
public java.lang.Object setUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)DOM: ImplementsNode.setUserData(String,Object,UserDataHandler).- Specified by:
setUserDatain interfaceorg.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, org.w3c.dom.events.EventListener listener, boolean useCapture)DOM: ImplementsEventTarget.addEventListener(String,EventListener,boolean).- Specified by:
addEventListenerin interfaceorg.w3c.dom.events.EventTarget
-
addEventListenerNS
public void addEventListenerNS(java.lang.String namespaceURI, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture, java.lang.Object evtGroup)- Specified by:
addEventListenerNSin interfaceNodeEventTarget- Parameters:
namespaceURI- Specifies theEvent.namespaceURIassociated with the event for which the user is registering.type- Refer to theEventTarget.addEventListener()method for a description of this parameter.listener- Refer to theEventTarget.addEventListener()method for a description of this parameter.useCapture- Refer to theEventTarget.addEventListener()method for a description of this parameter.evtGroup- The object that represents the event group to associate with theEventListener(see also ). Usenullto attach the event listener to the default group.
-
removeEventListener
public void removeEventListener(java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)DOM: ImplementsEventTarget.removeEventListener(String,EventListener,boolean).- Specified by:
removeEventListenerin interfaceorg.w3c.dom.events.EventTarget
-
removeEventListenerNS
public void removeEventListenerNS(java.lang.String namespaceURI, java.lang.String type, org.w3c.dom.events.EventListener listener, boolean useCapture)- Specified by:
removeEventListenerNSin interfaceNodeEventTarget- Parameters:
namespaceURI- Specifies theEvent.namespaceURIassociated with the event for which the user registered the event listener.type- Refer to theEventTarget.removeEventListener()method for a description of this parameter.listener- Refer to theEventTarget.removeEventListener()method for a description of this parameter.useCapture- Refer to theEventTarget.removeEventListener()method for a description of this parameter.
-
getParentNodeEventTarget
public NodeEventTarget getParentNodeEventTarget()
ImplementsNodeEventTarget.getParentNodeEventTarget().- Specified by:
getParentNodeEventTargetin interfaceNodeEventTarget
-
dispatchEvent
public boolean dispatchEvent(org.w3c.dom.events.Event evt) throws org.w3c.dom.events.EventExceptionDOM: ImplementsEventTarget.dispatchEvent(Event).- Specified by:
dispatchEventin interfaceorg.w3c.dom.events.EventTarget- Specified by:
dispatchEventin interfaceNodeEventTarget- Parameters:
evt- The event to be dispatched.- Returns:
- Indicates whether any of the listeners which handled the
event called
Event.preventDefault(). IfEvent.preventDefault()was called the returned value isfalse, else it istrue. - Throws:
org.w3c.dom.events.EventException- UNSPECIFIED_EVENT_TYPE_ERR: Raised if theEvent.typewas not specified by initializing the event beforedispatchEventwas called. Specification of theEvent.typeasnullor an empty string will also trigger this exception.
DISPATCH_REQUEST_ERR: Raised if theEventobject is already being dispatched.
-
willTriggerNS
public boolean willTriggerNS(java.lang.String namespaceURI, java.lang.String type)DOM: ImplementsEventTarget#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: ImplementsEventTarget.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:
getEventSupportin interfaceNodeEventTarget
-
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:
getXblParentNodein interfaceNodeXBL
-
getXblChildNodes
public org.w3c.dom.NodeList getXblChildNodes()
Get the list of child nodes of this node in the fully flattened tree.- Specified by:
getXblChildNodesin interfaceNodeXBL
-
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:
getXblScopedChildNodesin interfaceNodeXBL
-
getXblFirstChild
public org.w3c.dom.Node getXblFirstChild()
Get the first child node of this node in the fully flattened tree.- Specified by:
getXblFirstChildin interfaceNodeXBL
-
getXblLastChild
public org.w3c.dom.Node getXblLastChild()
Get the last child node of this node in the fully flattened tree.- Specified by:
getXblLastChildin interfaceNodeXBL
-
getXblPreviousSibling
public org.w3c.dom.Node getXblPreviousSibling()
Get the node which directly precedes the current node in the xblParentNode's xblChildNodes list.- Specified by:
getXblPreviousSiblingin interfaceNodeXBL
-
getXblNextSibling
public org.w3c.dom.Node getXblNextSibling()
Get the node which directly follows the current node in the xblParentNode's xblChildNodes list.- Specified by:
getXblNextSiblingin interfaceNodeXBL
-
getXblFirstElementChild
public org.w3c.dom.Element getXblFirstElementChild()
Get the first element child of this node in the fully flattened tree.- Specified by:
getXblFirstElementChildin interfaceNodeXBL
-
getXblLastElementChild
public org.w3c.dom.Element getXblLastElementChild()
Get the last element child of this node in the fully flattened tree.- Specified by:
getXblLastElementChildin interfaceNodeXBL
-
getXblPreviousElementSibling
public org.w3c.dom.Element getXblPreviousElementSibling()
Get the first element that precedes the current node in the xblParentNode's xblChildNodes list.- Specified by:
getXblPreviousElementSiblingin interfaceNodeXBL
-
getXblNextElementSibling
public org.w3c.dom.Element getXblNextElementSibling()
Get the first element that follows the current node in the xblParentNode's xblChildNodes list.- Specified by:
getXblNextElementSiblingin interfaceNodeXBL
-
getXblBoundElement
public org.w3c.dom.Element getXblBoundElement()
Get the bound element whose shadow tree this current node resides in.- Specified by:
getXblBoundElementin interfaceNodeXBL
-
getXblShadowTree
public org.w3c.dom.Element getXblShadowTree()
Get the shadow tree of this node.- Specified by:
getXblShadowTreein interfaceNodeXBL
-
getXblDefinitions
public org.w3c.dom.NodeList getXblDefinitions()
Get the xbl:definition elements currently binding this element.- Specified by:
getXblDefinitionsin interfaceNodeXBL
-
getManagerData
public java.lang.Object getManagerData()
Returns the XBL manager associated data for this node.- Specified by:
getManagerDatain interfaceXBLManagerData
-
setManagerData
public void setManagerData(java.lang.Object data)
Sets the XBL manager associated data for this node.- Specified by:
setManagerDatain interfaceXBLManagerData
-
-