Class Comment

All Implemented Interfaces:
Serializable, Cloneable, CharacterData, Comment, Node, Item, Textual

public class Comment extends AbstractTextual implements Comment
The iDOM Comment.
Author:
tomyeh
See Also:
  • Constructor Details

    • Comment

      public Comment(String text)
      Constructor.
    • Comment

      public Comment()
      Constructor.
  • Method Details

    • isPartOfParentText

      public final boolean isPartOfParentText()
      Returns false to denote it is not part of parent's text,
      Specified by:
      isPartOfParentText in interface Textual
      Overrides:
      isPartOfParentText in class AbstractTextual
    • checkText

      protected void checkText(String text)
      Description copied from class: AbstractTextual
      Checks whether the text is valid. It is usually overridden by the deriving classes to check more specifically.
      Overrides:
      checkText in class AbstractTextual
    • getName

      public final String getName()
      Description copied from interface: Item
      Gets the name of the item. For vertices that support namespace (implements Namespaceable), it is the same as getTagName.
      Specified by:
      getName in interface Item
      See Also:
    • getNodeType

      public final short getNodeType()
      Specified by:
      getNodeType in interface Node