Class FlyweightComment

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Comment, CharacterData, 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.

    See Also:
    Serialized Form
    • Field Detail

      • text

        protected java.lang.String text
        Text of the Comment node
    • Constructor Detail

      • FlyweightComment

        public FlyweightComment(java.lang.String text)
        DOCUMENT ME!
        Parameters:
        text - is the Comment text