Class FlyweightComment

All Implemented Interfaces:
Serializable, Cloneable, CharacterData, Comment, Node
Direct Known Subclasses:
DefaultComment

public class FlyweightComment extends AbstractComment implements Comment

FlyweightComment is a Flyweight pattern implementation of a singly linked, read-only XML Comment.

This node could be shared across documents and elements though it does not support the parent relationship.

Version:
$Revision: 1.7 $
Author:
James Strachan
See Also:
  • Field Details

    • text

      protected String text
      Text of the Comment node
  • Constructor Details

    • FlyweightComment

      public FlyweightComment(String text)
      DOCUMENT ME!
      Parameters:
      text - is the Comment text
  • Method Details