Class TinyCommentImpl

  • All Implemented Interfaces:
    NodeInfo, javax.xml.transform.dom.DOMLocator, javax.xml.transform.Source, javax.xml.transform.SourceLocator, org.w3c.dom.CharacterData, org.w3c.dom.Comment, org.w3c.dom.Node

    final class TinyCommentImpl
    extends TinyNodeImpl
    implements org.w3c.dom.Comment
    TinyCommentImpl is an implementation of CommentInfo
    Author:
    Michael H. Kay
    • Constructor Detail

      • TinyCommentImpl

        public TinyCommentImpl​(TinyDocumentImpl doc,
                               int nodeNr)
    • Method Detail

      • getStringValue

        public final java.lang.String getStringValue()
        Get the XPath string value of the comment
        Specified by:
        getStringValue in interface NodeInfo
        Returns:
        the string value of the node
      • getNodeType

        public final short getNodeType()
        Get the node type
        Specified by:
        getNodeType in interface org.w3c.dom.Node
        Specified by:
        getNodeType in interface NodeInfo
        Returns:
        NodeInfo.COMMENT
      • copy

        public void copy​(Outputter out)
                  throws javax.xml.transform.TransformerException
        Copy this node to a given outputter
        Specified by:
        copy in interface NodeInfo
        Throws:
        javax.xml.transform.TransformerException