BEA Systems, Inc.

com.beasys.commerce.util.dom
Class CommentImpl

java.lang.Object
  |
  +--com.beasys.commerce.util.dom.DOMBase
        |
        +--com.beasys.commerce.util.dom.NodeImpl
              |
              +--com.beasys.commerce.util.dom.CharacterDataImpl
                    |
                    +--com.beasys.commerce.util.dom.CommentImpl

public class CommentImpl
extends CharacterDataImpl
implements org.w3c.dom.Comment

An implementation of the W3C's DOM Comment object.

See Also:
Serialized Form

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
CommentImpl(org.w3c.dom.Document doc, org.w3c.dom.Node parent, java.lang.String data)
          Constructor.
 
Method Summary
 org.w3c.dom.Node cloneNode()
          Clone this node.
 java.lang.String getNodeName()
          Return #comment
 short getNodeType()
          Return Node.COMMENT_NODE.
 
Methods inherited from class com.beasys.commerce.util.dom.CharacterDataImpl
appendData, checkCount, checkOffset, deleteData, getData, getLength, getNodeValue, insertData, replaceData, setData, setNodeValue, substringData
 
Methods inherited from class com.beasys.commerce.util.dom.NodeImpl
allowsChildren, appendChild, appendChildren, checkAllowChild, cloneNode, getAllowableChildrenTypes, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeType, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, insertChildrenBefore, isAncestor, removeChild, replaceChild, setParentNode
 
Methods inherited from class com.beasys.commerce.util.dom.DOMBase
checkOwnerDocument, checkReadOnly, getOwnerDocument, isReadOnly, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentImpl

public CommentImpl(org.w3c.dom.Document doc,
                   org.w3c.dom.Node parent,
                   java.lang.String data)
Constructor.
Parameters:
doc - the owning document.
parent - the parent node.
data - the comment text.
Method Detail

cloneNode

public org.w3c.dom.Node cloneNode()
Clone this node.
Overrides:
cloneNode in class NodeImpl

getNodeType

public short getNodeType()
Return Node.COMMENT_NODE.
Overrides:
getNodeType in class NodeImpl

getNodeName

public java.lang.String getNodeName()
Return #comment
Overrides:
getNodeName in class NodeImpl

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved