com.jclark.xsl.dom
Class CommentNode

java.lang.Object
  extended by com.jclark.xsl.dom.NodeBase
      extended by com.jclark.xsl.dom.CommentNode
All Implemented Interfaces:
Node, javax.xml.transform.SourceLocator

 class CommentNode
extends NodeBase

Wraps a W3C DOM XML Comment Node as an om.Node


Field Summary
 
Fields inherited from class com.jclark.xsl.dom.NodeBase
domNode, level, parent, root
 
Fields inherited from interface com.jclark.xsl.om.Node
ALLTYPES, ATTRIBUTE, COMMENT, ELEMENT, N_TYPES, NAMESPACE, PROCESSING_INSTRUCTION, ROOT, TEXT
 
Constructor Summary
CommentNode(org.w3c.dom.Node domNode, ContainerNode parent, int childIndex)
           
 
Method Summary
 java.lang.String getData()
          default behavior -- return null.
 byte getType()
          returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT
 
Methods inherited from class com.jclark.xsl.dom.NodeBase
compareTo, equals, getAttribute, getAttributes, getAttributeValue, getChildren, getColumnNumber, getElementWithId, getFollowingSiblings, getGeneratedId, getLineNumber, getName, getNamespacePrefixMap, getNamespaces, getParent, getPublicId, getRoot, getSystemId, getUnparsedEntityURI, getURL, isId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentNode

CommentNode(org.w3c.dom.Node domNode,
            ContainerNode parent,
            int childIndex)
Method Detail

getType

public byte getType()
Description copied from interface: Node
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT


getData

public final java.lang.String getData()
Description copied from class: NodeBase
default behavior -- return null. Descendant classes override

Specified by:
getData in interface Node
Overrides:
getData in class NodeBase