com.jclark.xsl.dom

Class CommentNode

Implemented Interfaces:
Node, SourceLocator

(package private) 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, PROCESSING_INSTRUCTION, ROOT, TEXT

Constructor Summary

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

Method Summary

String
getData()
Returns text for TEXT node; value for attribute node; content for comment node; content after PI for PI node;
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, getAttributeValue, getAttributes, getChildren, getColumnNumber, getData, getElementWithId, getFollowingSiblings, getGeneratedId, getLineNumber, getName, getNamespacePrefixMap, getParent, getPublicId, getRoot, getSystemId, getURL, getUnparsedEntityURI, isId

Constructor Details

CommentNode

(package private)  CommentNode(org.w3c.dom.Node domNode,
                               ContainerNode parent,
                               int childIndex)

Method Details

getData

public final String getData()
Returns text for TEXT node; value for attribute node; content for comment node; content after PI for PI node;
Specified by:
getData in interface Node
Overrides:
getData in interface NodeBase


getType

public byte getType()
returns one of: ELEMENT, TEXT, ATTRIBUTE, ROOT, PROCESSING_INSTRUCTION or COMMENT
Specified by:
getType in interface Node