Package org.dom4j.tree
Class FlyweightComment
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractCharacterData
org.dom4j.tree.AbstractComment
org.dom4j.tree.FlyweightComment
- All Implemented Interfaces:
Serializable,Cloneable,CharacterData,Comment,Node
- Direct Known Subclasses:
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.
- Version:
- $Revision: 1.7 $
- Author:
- James Strachan
- See Also:
-
Field Summary
FieldsFields inherited from class org.dom4j.tree.AbstractNode
NODE_TYPE_NAMESFields inherited from interface org.dom4j.Node
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodecreateXPathResult(Element parent) getText()Returns the text of this node.Methods inherited from class org.dom4j.tree.AbstractComment
accept, asXML, getNodeType, getPath, getUniquePath, toString, writeMethods inherited from class org.dom4j.tree.AbstractCharacterData
appendTextMethods inherited from class org.dom4j.tree.AbstractNode
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getName, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOfMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.dom4j.CharacterData
appendTextMethods inherited from interface org.dom4j.Node
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getStringValue, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write
-
Field Details
-
text
Text of theCommentnode
-
-
Constructor Details
-
FlyweightComment
DOCUMENT ME!- Parameters:
text- is the Comment text
-
-
Method Details
-
getText
Description copied from interface:NodeReturns the text of this node.
- Specified by:
getTextin interfaceNode- Overrides:
getTextin classAbstractNode- Returns:
- the text for this node.
-
createXPathResult
- Overrides:
createXPathResultin classAbstractNode
-