BEA Systems, Inc.

com.beasys.commerce.util.dom
Class DOMBase

java.lang.Object
  |
  +--com.beasys.commerce.util.dom.DOMBase
Direct Known Subclasses:
NamedNodeMapImpl, NodeImpl, NodeListImpl

public abstract class DOMBase
extends java.lang.Object
implements java.io.Serializable

The base implementation class for most DOM objects.

These includes support for:

See Also:
Serialized Form

Constructor Summary
DOMBase()
          Constructor.
DOMBase(boolean readOnly)
          Constructor.
DOMBase(org.w3c.dom.Document owner)
          Constructor.
DOMBase(org.w3c.dom.Document owner, boolean readOnly)
          Constructor.
 
Method Summary
 void checkOwnerDocument(org.w3c.dom.Node node)
          Check if the given node is from the same document as us by throwing a WRONG_DOCUMENT_ERR DOMException if it's not.
 org.w3c.dom.Document getOwnerDocument()
          Get the document that owns this.
 boolean isReadOnly()
          Tell if this is node is set to be read-only.
 void setReadOnly(boolean readOnly)
          Set the read-only state of this node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMBase

public DOMBase(org.w3c.dom.Document owner,
               boolean readOnly)
Constructor.

DOMBase

public DOMBase(org.w3c.dom.Document owner)
Constructor.

DOMBase

public DOMBase(boolean readOnly)
Constructor.

DOMBase

public DOMBase()
Constructor.
Method Detail

getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
Get the document that owns this.

checkOwnerDocument

public void checkOwnerDocument(org.w3c.dom.Node node)
                        throws org.w3c.dom.DOMException
Check if the given node is from the same document as us by throwing a WRONG_DOCUMENT_ERR DOMException if it's not.

isReadOnly

public boolean isReadOnly()
Tell if this is node is set to be read-only.

setReadOnly

public void setReadOnly(boolean readOnly)
Set the read-only state of this node.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved