Class FlyweightAttribute
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractAttribute
org.dom4j.tree.FlyweightAttribute
- All Implemented Interfaces:
Serializable, Cloneable, Attribute, Node
- Direct Known Subclasses:
DefaultAttribute
FlyweightAttribute
is a Flyweight pattern implementation of a
singly linked, read-only XML Attribute.
This node could be shared across documents and elements though it does not support the parent relationship.
- Version:
- $Revision: 1.7 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate QName
TheQName
for this elementprotected String
The value of theAttribute
Fields inherited from class AbstractNode
NODE_TYPE_NAMES
Fields inherited from interface 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
ConstructorsConstructorDescriptionFlyweightAttribute
(String name, String value) Creates theAttribute
with the specified local name and value.FlyweightAttribute
(String name, String value, Namespace namespace) Creates theAttribute
with the specified local name, value andNamespace
.FlyweightAttribute
(QName qname) FlyweightAttribute
(QName qname, String value) -
Method Summary
Methods inherited from class AbstractAttribute
accept, asXML, createXPathResult, getData, getName, getNamespace, getNamespacePrefix, getNamespaceURI, getNodeType, getPath, getQualifiedName, getText, getUniquePath, setData, setNamespace, setText, setValue, toString, write
Methods inherited from class AbstractNode
asXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, supportsParent, valueOf
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface Node
asXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getParent, getPath, getStringValue, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, supportsParent, valueOf
-
Field Details
-
qname
TheQName
for this element -
value
The value of theAttribute
-
-
Constructor Details
-
FlyweightAttribute
-
FlyweightAttribute
-
FlyweightAttribute
-
FlyweightAttribute
-
-
Method Details
-
getValue
Description copied from interface:Attribute
Returns the value of the attribute. This method returns the same value as theNode.getText()
method.- Returns:
- the value of the attribute
-
getQName
-