jodd.lagarto.dom
Class Comment

java.lang.Object
  extended by jodd.lagarto.dom.Node
      extended by jodd.lagarto.dom.Comment
All Implemented Interfaces:
java.lang.Cloneable

public class Comment
extends Node

Comment and conditional comment node.


Nested Class Summary
 
Nested classes/interfaces inherited from class jodd.lagarto.dom.Node
Node.NodeType
 
Field Summary
protected  java.lang.Boolean conditionalDownlevelHidden
           
protected  boolean isStartingTag
           
 
Fields inherited from class jodd.lagarto.dom.Node
attributes, caseSensitive, childElementNodes, childElementNodesCount, childNodes, deepLevel, nodeName, nodeType, nodeValue, parentNode, siblingElementIndex, siblingIndex, siblingNameIndex
 
Constructor Summary
Comment(java.lang.String comment)
          Creates regular comment.
Comment(java.lang.String comment, boolean isStartingTag, boolean conditionalDownlevelHidden)
          Creates conditional comment.
 
Method Summary
 Comment clone()
           
 boolean isConditionalComment()
          Returns true if this is a conditional comment.
 boolean isDownlevelHidden()
          If conditional comment, returns trueif downlevel is hidden.
 void toHtml(java.lang.Appendable appendable)
          Generates HTML by appending it to the provided Appendable.
 
Methods inherited from class jodd.lagarto.dom.Node
appendChild, appendChild, cloneTo, detachFromParent, getAttribute, getAttribute, getAttributeInstance, getAttributesCount, getChild, getChildElement, getChildElements, getChildElementsCount, getChildElementsCount, getChildNodes, getChildNodesCount, getCssPath, getDeepLevel, getFirstChild, getFirstChildElement, getFirstChildElement, getHtml, getInnerHtml, getLastChild, getLastChildElement, getLastChildElement, getNextSibling, getNextSiblingElement, getNextSiblingName, getNodeName, getNodeType, getNodeValue, getParentNode, getPreviousSibling, getPreviousSiblingElement, getPreviousSiblingName, getSiblingElementIndex, getSiblingIndex, getSiblingNameIndex, getTextContent, hasAttribute, hasAttributes, hasChildNodes, indexOfAttributeInstance, initAttributes, initChildElementNodes, initChildNodes, initSiblingNames, insertAfter, insertBefore, insertChild, isAttributeIncluding, reindexChildren, removeAllChilds, removeAttribute, removeChild, removeChild, setAttribute, setAttribute, setNodeValue, toInnerHtml
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conditionalDownlevelHidden

protected final java.lang.Boolean conditionalDownlevelHidden

isStartingTag

protected final boolean isStartingTag
Constructor Detail

Comment

public Comment(java.lang.String comment)
Creates regular comment.


Comment

public Comment(java.lang.String comment,
               boolean isStartingTag,
               boolean conditionalDownlevelHidden)
Creates conditional comment.

Method Detail

clone

public Comment clone()
Specified by:
clone in class Node

isConditionalComment

public boolean isConditionalComment()
Returns true if this is a conditional comment.


isDownlevelHidden

public boolean isDownlevelHidden()
If conditional comment, returns trueif downlevel is hidden.


toHtml

public void toHtml(java.lang.Appendable appendable)
            throws java.io.IOException
Description copied from class: Node
Generates HTML by appending it to the provided Appendable.

Overrides:
toHtml in class Node
Throws:
java.io.IOException


Copyright © 2003-2011 Jodd Team