Save This Page
Home » dom4j-1.6.1 » org.dom4j.tree » [javadoc | source]
org.dom4j.tree
public class: FlyweightComment [javadoc | source]
java.lang.Object
   org.dom4j.tree.AbstractNode
      org.dom4j.tree.AbstractCharacterData
         org.dom4j.tree.AbstractComment
            org.dom4j.tree.FlyweightComment

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

Direct Known Subclasses:
    DOMComment, DefaultComment

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.

Field Summary
protected  String text    Text of the Comment node 
Fields inherited from org.dom4j.tree.AbstractNode:
NODE_TYPE_NAMES
Constructor:
 public FlyweightComment(String text) 
    DOCUMENT ME!
    Parameters:
    text - is the Comment text
Method from org.dom4j.tree.FlyweightComment Summary:
createXPathResult,   getText
Methods from org.dom4j.tree.AbstractComment:
accept,   asXML,   getNodeType,   getPath,   getUniquePath,   toString,   write
Methods from org.dom4j.tree.AbstractCharacterData:
appendText,   getPath,   getUniquePath
Methods from org.dom4j.tree.AbstractNode:
asXPathResult,   clone,   createPattern,   createXPath,   createXPathFilter,   createXPathResult,   detach,   getDocument,   getDocumentFactory,   getName,   getNodeType,   getNodeTypeName,   getParent,   getPath,   getStringValue,   getText,   getUniquePath,   hasContent,   isReadOnly,   matches,   numberValueOf,   selectNodes,   selectNodes,   selectNodes,   selectObject,   selectSingleNode,   setDocument,   setName,   setParent,   setText,   supportsParent,   valueOf,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.tree.FlyweightComment Detail:
 protected Node createXPathResult(Element parent) 
 public String getText()