java.lang.Object
org.apache.batik.dom.AbstractNode
- All Implemented Interfaces:
- org.w3c.dom.events.EventTarget, ExtendedNode, org.w3c.dom.Node, org.apache.batik.dom.events.NodeEventTarget, java.io.Serializable
- Direct Known Subclasses:
- AbstractChildNode, AbstractNotation, AbstractParentNode
- public abstract class AbstractNode
- extends java.lang.Object
- implements ExtendedNode, java.io.Serializable
This class implements the org.w3c.dom.Node interface.
- Version:
- $Id: AbstractNode.java,v 1.19 2005/03/27 08:58:32 cam Exp $
| 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 |
|
Method Summary |
void |
addEventListener(java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
DOM: Implements
EventTarget.addEventListener(String,EventListener,boolean)>EventTarget.addEventListener(String,EventListener,boolean) 55 . |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
DOM: Implements Node.appendChild(Node)>Node.appendChild(Node) 55 . |
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)>Node.cloneNode(boolean) 55 . |
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(org.w3c.dom.events.Event evt)
DOM: Implements
EventTarget.dispatchEvent(Event)>EventTarget.dispatchEvent(Event) 55 . |
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. |
org.w3c.dom.NamedNodeMap |
getAttributes()
DOM: Implements Node.getAttributes()>Node.getAttributes() 55 . |
org.w3c.dom.NodeList |
getChildNodes()
DOM: Implements Node.getChildNodes()>Node.getChildNodes() 55 . |
protected AbstractDocument |
getCurrentDocument()
Returns the current document. |
org.apache.batik.dom.events.EventSupport |
getEventSupport()
Returns the event support instance for this node, or null if any. |
org.w3c.dom.Node |
getFirstChild()
DOM: Implements Node.getFirstChild()>Node.getFirstChild() 55 . |
org.w3c.dom.Node |
getLastChild()
DOM: Implements Node.getLastChild()>Node.getLastChild() 55 . |
java.lang.String |
getLocalName()
DOM: Implements Node.getLocalName()>Node.getLocalName() 55 . |
java.lang.String |
getNamespaceURI()
DOM: Implements Node.getNamespaceURI()>Node.getNamespaceURI() 55 . |
org.w3c.dom.Node |
getNextSibling()
DOM: Implements Node.getNextSibling()>Node.getNextSibling() 55 . |
java.lang.String |
getNodeValue()
DOM: Implements Node.getNodeValue()>Node.getNodeValue() 55 . |
org.w3c.dom.Document |
getOwnerDocument()
DOM: Implements Node.getOwnerDocument()>Node.getOwnerDocument() 55 . |
org.w3c.dom.Node |
getParentNode()
DOM: Implements Node.getParentNode()>Node.getParentNode() 55 . |
org.apache.batik.dom.events.NodeEventTarget |
getParentNodeEventTarget()
Implements NodeEventTarget.getParentNodeEventTarget()>NodeEventTarget.getParentNodeEventTarget() 55 . |
java.lang.String |
getPrefix()
DOM: Implements Node.getPrefix()>Node.getPrefix() 55 . |
org.w3c.dom.Node |
getPreviousSibling()
DOM: Implements Node.getPreviousSibling()>Node.getPreviousSibling() 55 . |
boolean |
hasAttributes()
DOM: Implements Node.hasAttributes()>Node.hasAttributes() 55 . |
boolean |
hasChildNodes()
DOM: Implements Node.hasChildNodes()>Node.hasChildNodes() 55 . |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
DOM: Implements Node.insertBefore(Node, Node)>Node.insertBefore(Node, Node) 55 . |
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
DOM: Implements Node.isSupported(String,String)>Node.isSupported(String,String) 55 . |
protected abstract org.w3c.dom.Node |
newNode()
Returns a new uninitialized instance of this object's class. |
void |
normalize()
DOM: Implements Node.normalize()>Node.normalize() 55 . |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
DOM: Implements Node.removeChild(Node)>Node.removeChild(Node) 55 . |
void |
removeEventListener(java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
DOM: Implements
EventTarget.removeEventListener(String,EventListener,boolean)>EventTarget.removeEventListener(String,EventListener,boolean) 55 . |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
DOM: Implements Node.replaceChild(Node, Node)>Node.replaceChild(Node, Node) 55 . |
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)>Node.setNodeValue(String) 55 . |
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)>Node.setPrefix(String) 55 . |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
compareDocumentPosition, getBaseURI, getFeature, getNodeName, getNodeType, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
EMPTY_NODE_LIST
protected static final org.w3c.dom.NodeList EMPTY_NODE_LIST
- An empty instance of NodeList.
ownerDocument
protected AbstractDocument ownerDocument
- The owner document.
eventSupport
protected transient org.apache.batik.dom.events.EventSupport eventSupport
- The event support.
AbstractNode
public AbstractNode()
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()>
Node.getNodeValue() 55 .
- Specified by:
getNodeValue in interface org.w3c.dom.Node
setNodeValue
public void setNodeValue(java.lang.String nodeValue)
throws org.w3c.dom.DOMException
- DOM: Implements Node.setNodeValue(String)>
Node.setNodeValue(String) 55 .
Do nothing.
- Specified by:
setNodeValue in interface org.w3c.dom.Node
getParentNode
public org.w3c.dom.Node getParentNode()
- DOM: Implements Node.getParentNode()>
Node.getParentNode() 55 .
- Specified by:
getParentNode in interface org.w3c.dom.Node
setParentNode
public void setParentNode(org.w3c.dom.Node v)
- Sets the parent node.
Throws a HIERARCHY_REQUEST_ERR org.w3c.dom.DOMException.
- Specified by:
setParentNode in interface ExtendedNode
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
- DOM: Implements Node.getChildNodes()>
Node.getChildNodes() 55 .
- Specified by:
getChildNodes in interface org.w3c.dom.Node
getFirstChild
public org.w3c.dom.Node getFirstChild()
- DOM: Implements Node.getFirstChild()>
Node.getFirstChild() 55 .
- Specified by:
getFirstChild in interface org.w3c.dom.Node
getLastChild
public org.w3c.dom.Node getLastChild()
- DOM: Implements Node.getLastChild()>
Node.getLastChild() 55 .
- Specified by:
getLastChild in interface org.w3c.dom.Node
setPreviousSibling
public void setPreviousSibling(org.w3c.dom.Node n)
- Sets the node immediately preceding this node.
Throws a HIERARCHY_REQUEST_ERR org.w3c.dom.DOMException.
- Specified by:
setPreviousSibling in interface ExtendedNode
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
- DOM: Implements Node.getPreviousSibling()>
Node.getPreviousSibling() 55 .
- Specified by:
getPreviousSibling in interface org.w3c.dom.Node
setNextSibling
public void setNextSibling(org.w3c.dom.Node n)
- Sets the node immediately following this node.
Throws a HIERARCHY_REQUEST_ERR org.w3c.dom.DOMException.
- Specified by:
setNextSibling in interface ExtendedNode
getNextSibling
public org.w3c.dom.Node getNextSibling()
- DOM: Implements Node.getNextSibling()>
Node.getNextSibling() 55 .
- Specified by:
getNextSibling in interface org.w3c.dom.Node
hasAttributes
public boolean hasAttributes()
- DOM: Implements Node.hasAttributes()>
Node.hasAttributes() 55 .
- Specified by:
hasAttributes in interface org.w3c.dom.Node
getAttributes
public org.w3c.dom.NamedNodeMap getAttributes()
- DOM: Implements Node.getAttributes()>
Node.getAttributes() 55 .
- Specified by:
getAttributes in interface org.w3c.dom.Node
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
- DOM: Implements Node.getOwnerDocument()>
Node.getOwnerDocument() 55 .
- Specified by:
getOwnerDocument in interface org.w3c.dom.Node
getNamespaceURI
public java.lang.String getNamespaceURI()
- DOM: Implements Node.getNamespaceURI()>
Node.getNamespaceURI() 55 .
- Specified by:
getNamespaceURI in interface org.w3c.dom.Node
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)>
Node.insertBefore(Node, Node) 55 .
Throws a HIERARCHY_REQUEST_ERR org.w3c.dom.DOMException.
- Specified by:
insertBefore in interface org.w3c.dom.Node
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)>
Node.replaceChild(Node, Node) 55 .
Throws a HIERARCHY_REQUEST_ERR org.w3c.dom.DOMException.
- Specified by:
replaceChild in interface org.w3c.dom.Node
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- DOM: Implements Node.removeChild(Node)>
Node.removeChild(Node) 55 .
Throws a HIERARCHY_REQUEST_ERR org.w3c.dom.DOMException.
- Specified by:
removeChild in interface org.w3c.dom.Node
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
- DOM: Implements Node.appendChild(Node)>
Node.appendChild(Node) 55 .
Throws a HIERARCHY_REQUEST_ERR org.w3c.dom.DOMException.
- Specified by:
appendChild in interface org.w3c.dom.Node
hasChildNodes
public boolean hasChildNodes()
- DOM: Implements Node.hasChildNodes()>
Node.hasChildNodes() 55 .
- Specified by:
hasChildNodes in interface org.w3c.dom.Node
cloneNode
public org.w3c.dom.Node cloneNode(boolean deep)
- DOM: Implements Node.cloneNode(boolean)>
Node.cloneNode(boolean) 55 .
- Specified by:
cloneNode in interface org.w3c.dom.Node
normalize
public void normalize()
- DOM: Implements Node.normalize()>
Node.normalize() 55 .
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)>
Node.isSupported(String,String) 55 .
- Specified by:
isSupported in interface org.w3c.dom.Node
getPrefix
public java.lang.String getPrefix()
- DOM: Implements Node.getPrefix()>
Node.getPrefix() 55 .
- 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)>
Node.setPrefix(String) 55 .
- Specified by:
setPrefix in interface org.w3c.dom.Node
getLocalName
public java.lang.String getLocalName()
- DOM: Implements Node.getLocalName()>
Node.getLocalName() 55 .
- 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.
addEventListener
public void addEventListener(java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
- DOM: Implements
EventTarget.addEventListener(String,EventListener,boolean)>
EventTarget.addEventListener(String,EventListener,boolean) 55 .
- Specified by:
addEventListener in interface org.w3c.dom.events.EventTarget
removeEventListener
public void removeEventListener(java.lang.String type,
org.w3c.dom.events.EventListener listener,
boolean useCapture)
- DOM: Implements
EventTarget.removeEventListener(String,EventListener,boolean)>
EventTarget.removeEventListener(String,EventListener,boolean) 55 .
- Specified by:
removeEventListener in interface org.w3c.dom.events.EventTarget
getParentNodeEventTarget
public org.apache.batik.dom.events.NodeEventTarget getParentNodeEventTarget()
- Implements NodeEventTarget.getParentNodeEventTarget()>
NodeEventTarget.getParentNodeEventTarget() 55 .
- Specified by:
getParentNodeEventTarget in interface org.apache.batik.dom.events.NodeEventTarget
dispatchEvent
public boolean dispatchEvent(org.w3c.dom.events.Event evt)
throws org.w3c.dom.events.EventException
- DOM: Implements
EventTarget.dispatchEvent(Event)>
EventTarget.dispatchEvent(Event) 55 .
- Specified by:
dispatchEvent in interface org.w3c.dom.events.EventTarget
getEventSupport
public org.apache.batik.dom.events.EventSupport getEventSupport()
- Returns the event support instance for this node, or null if any.
- Specified by:
getEventSupport in interface org.apache.batik.dom.events.NodeEventTarget
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.
deepCopyInto
protected org.w3c.dom.Node deepCopyInto(org.w3c.dom.Node n)
- Deeply copy the fields of the current node into the given node.
checkChildType
protected void checkChildType(org.w3c.dom.Node n,
boolean replace)
- Checks the validity of a node to be inserted.