Uses of Interface
org.dom4j.Node
Packages that use Node
Package
Description
Defines the XML Document Object Model in Java interfaces together with some helper classes.
An implementation of the dom4j API which allows JavaBeans to be used to store and retrieve attribute values from Element.
An implementation of the dom4j API which also supports the W3C object model.
Provides input and output via SAX and DOM together with writing dom4j objects to streams as XML text.
A collection of adapters to allow easy integration with dom4j XML documents and Swing such as TreeModels and TableModels.
Contains the default implementations of the dom4j Document Object Model together with some helpful base classes for those wishing to implement their own document object model.
A collection of utility classes for the dom4j API.
Provides the core tools needed to use the XPath library
-
Uses of Node in org.dom4j
Modifier and TypeInterfaceDescriptioninterface
Attribute
defines an XML attribute.interface
Branch
interface defines the common behaviour for Nodes which can contain child nodes (content) such as XML elements and documents.interface
CDATA
defines an XML CDATA section.interface
CharacterData
is a marker interface for character based nodes such as theCDATA
,Comment
andText
nodes.interface
Comment
defines the behavior of an XML comment.interface
Document
defines an XML Document.interface
DocumentType
defines an XML DOCTYPE declaration.interface
Element
interface defines an XML element.interface
Entity
defines an XML entity.interface
ProcessingInstruction
defines an XML processing instruction.interface
Text
defines an XML Text node.Modifier and TypeClassDescriptionclass
Namespace
is a Flyweight Namespace that can be shared amongst nodes.Modifier and TypeMethodDescriptionNode.asXPathResult
(Element parent) asXPathResult
returns a version of this node which is capable of being an XPath result.protected Node
Namespace.createXPathResult
(Element parent) Node.detach()
Removes this node from its parent if there is one.Element.getXPathResult
(int index) Returns a node at the given index suitable for an XPath result set.Branch.node
(int index) Returns theNode
at the specified index position.Node.selectSingleNode
(String xpathExpression) selectSingleNode
evaluates an XPath expression and returns the result as a singleNode
instance.XPath.selectSingleNode
(Object context) Modifier and TypeMethodDescriptionBranch.content()
Branch.nodeIterator()
Returns an iterator through the content nodes of this branchDocumentHelper.selectNodes
(String xpathFilterExpression, List<Node> nodes) DocumentHelper.selectNodes
(String xpathFilterExpression, Node node) Node.selectNodes
(String xpathExpression) selectNodes
evaluates an XPath expression and returns the result as aList
ofNode
instances orString
instances depending on the XPath expression.Node.selectNodes
(String xpathExpression, String comparisonXPathExpression) selectNodes
evaluates an XPath expression then sorts the results using a secondary XPath expression Returns a sortedList
ofNode
instances.Node.selectNodes
(String xpathExpression, String comparisonXPathExpression, boolean removeDuplicates) selectNodes
evaluates an XPath expression then sorts the results using a secondary XPath expression Returns a sortedList
ofNode
instances.XPath.selectNodes
(Object context) XPath.selectNodes
(Object context, XPath sortXPath) XPath.selectNodes
(Object context, XPath sortXPath, boolean distinct) Modifier and TypeMethodDescriptionvoid
Adds the givenNode
or throwsIllegalAddException
if the given node is not of a valid type.int
Returns the index of the given node if it is a child node of this branch or -1 if the given node is not a child node.boolean
matches
returns true if the given node matches the filter condition.boolean
matches
returns true if the given node matches the XPath expression.boolean
Removes the givenNode
if the node is an immediate child of this branch.DocumentHelper.selectNodes
(String xpathFilterExpression, Node node) Modifier and TypeMethodDescriptionDocumentHelper.selectNodes
(String xpathFilterExpression, List<Node> nodes) void
Branch.setContent
(List<Node> content) Sets the contents of this branch as aList
ofNode
instances.static void
sort
sorts the given List of Nodes using an XPath expression as aComparator
.static void
sort
sorts the given List of Nodes using an XPath expression as aComparator
and optionally removing duplicates.void
sort
sorts the given List of Nodes using this XPath expression as aComparator
.void
sort
sorts the given List of Nodes using this XPath expression as aComparator
and optionally removing duplicates.ModifierConstructorDescriptionIllegalAddException
(Branch parent, Node node, String reason) IllegalAddException
(Element parent, Node node, String reason) -
Uses of Node in org.dom4j.bean
Classes in org.dom4j.bean that implement NodeModifier and TypeClassDescriptionclass
BeanAttribute
represents a mutable XML attribute which is backed by a property of the JavaBean of its parent element.class
BeanElement
uses a Java Bean to store its attributes. -
Uses of Node in org.dom4j.dom
Classes in org.dom4j.dom that implement NodeModifier and TypeClassDescriptionclass
DOMAttribute
implements a doubly linked attribute which supports the W3C DOM API.class
DOMCDATA
implements a CDATA Section which supports the W3C DOM API.class
DOMText
implements a Text node which supports the W3C DOM API.class
DOMDocument
implements an XML document which supports the W3C DOM API.class
DOMDocumentType
implements a DocumentType node which supports the W3C DOM API.class
DOMElement
implements an XML element which supports the W3C DOM API.class
DOMEntity
implements a Entity node which supports the W3C DOM API.class
DOMNamespace
implements a Namespace that is compatable with the DOM API.class
DOMProcessingInstruction
implements a ProcessingInstruction node which supports the W3C DOM API.class
DOMText
implements a Text node which supports the W3C DOM API.Methods in org.dom4j.dom with parameters of type NodeModifier and TypeMethodDescriptionstatic Node
DOMNodeHelper.appendChild
(Node node, Node newChild) static Attr
static Element
DOMNodeHelper.asDOMElement
(Node element) static Node
static Node
static NamedNodeMap
DOMNodeHelper.getAttributes
(Node node) static NodeList
DOMNodeHelper.getChildNodes
(Node node) static Node
DOMNodeHelper.getFirstChild
(Node node) static Node
DOMNodeHelper.getLastChild
(Node node) static String
DOMNodeHelper.getLocalName
(Node node) static String
DOMNodeHelper.getNamespaceURI
(Node node) static Node
DOMNodeHelper.getNextSibling
(Node node) static String
DOMNodeHelper.getNodeValue
(Node node) static Document
DOMNodeHelper.getOwnerDocument
(Node node) static Node
DOMNodeHelper.getParentNode
(Node node) static String
static Node
DOMNodeHelper.getPreviousSibling
(Node node) static boolean
DOMNodeHelper.hasAttributes
(Node node) static boolean
DOMNodeHelper.hasChildNodes
(Node node) static Node
DOMNodeHelper.insertBefore
(Node node, Node newChild, Node refChild) static boolean
DOMNodeHelper.isSupported
(Node n, String feature, String version) static void
static Node
DOMNodeHelper.removeChild
(Node node, Node oldChild) static Node
DOMNodeHelper.replaceChild
(Node node, Node newChild, Node oldChild) static void
DOMNodeHelper.setNodeValue
(Node node, String nodeValue) static void
static boolean
Method parameters in org.dom4j.dom with type arguments of type Node -
Uses of Node in org.dom4j.io
Methods in org.dom4j.io that return NodeModifier and TypeMethodDescriptionSTAXEventReader.readNode
(XMLEventReader reader) Reads aNode
from the event stream.Methods in org.dom4j.io with parameters of type NodeModifier and TypeMethodDescriptionvoid
A polymorphic method to write any Node to this SAX streamvoid
Writes the givenNode
.void
Writes a DOM4JNode
to the stream.protected void
protected void
XMLWriter.writeNodeText
(Node node) This method is used to write out Nodes that contain text and still allow for xml:space to be handled properly.Method parameters in org.dom4j.io with type arguments of type NodeModifier and TypeMethodDescriptionprotected void
DOMWriter.appendDOMTree
(Document domDocument, Node domCurrent, List<Node> content) Constructors in org.dom4j.io with parameters of type Node -
Uses of Node in org.dom4j.rule
Methods in org.dom4j.rule with parameters of type NodeModifier and TypeMethodDescriptionvoid
Stylesheet.applyTemplates
(Node node) If input is aNode
, this will processes all of the children of that node.void
Stylesheet.applyTemplates
(Node node, String mode) Processes the input object in the given mode.void
Runs the actions associated with the given nodeMode.getMatchingRule
(Node node) Performs an XSLT processing model match for the rule which matches the given Node the best.RuleManager.getMatchingRule
(String modeName, Node node) Performs an XSLT processing model match for the rule which matches the given Node the best.RuleSet.getMatchingRule
(Node node) Performs an XSLT processing model match for the rule which matches the given Node the best.boolean
DOCUMENT ME!final boolean
DOCUMENT ME!void
void
void
void
Method parameters in org.dom4j.rule with type arguments of type NodeModifier and TypeMethodDescriptionvoid
Stylesheet.applyTemplates
(List<? extends Node> list, String mode) Processes the input object in the given mode.void
Stylesheet.applyTemplates
(List<Node> list) If input is aNode
, this will processes all of the children of that node.void
void
-
Uses of Node in org.dom4j.rule.pattern
Methods in org.dom4j.rule.pattern with parameters of type Node -
Uses of Node in org.dom4j.swing
Fields in org.dom4j.swing declared as NodeModifier and TypeFieldDescriptionprotected Node
LeafTreeNode.xmlNode
The dom4j Node which contains theFields in org.dom4j.swing with type parameters of type NodeModifier and TypeFieldDescriptionXMLTableModel.rows
The rows evaluated from the row XPath expressionMethods in org.dom4j.swing that return NodeMethods in org.dom4j.swing that return types with arguments of type NodeMethods in org.dom4j.swing with parameters of type NodeModifier and TypeMethodDescriptionprotected TreeNode
BranchTreeNode.createChildTreeNode
(Node xmlNode) Factory method to create child tree nodes for a given XML node typeConstructors in org.dom4j.swing with parameters of type NodeModifierConstructorDescriptionLeafTreeNode
(TreeNode parent, Node xmlNode) LeafTreeNode
(Node xmlNode) -
Uses of Node in org.dom4j.tree
Classes in org.dom4j.tree with type parameters of type NodeModifier and TypeClassDescriptionclass
BackedList<T extends Node>
BackedList
represents a list of content of aBranch
.class
ContentListFacade<T extends Node>
ContentListFacade
represents a facade of the content of aBranch
which is returned via calls to theBranch.content()
method to allow users to modify the content of aBranch
directly using theList
interface.Classes in org.dom4j.tree that implement NodeModifier and TypeClassDescriptionclass
AbstractNamespace
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractBranch
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractCDATA
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractCharacterData
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractComment
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractDocument
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractDocumentType
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractElement
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractEntity
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractNode
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractProcessingInstruction
is an abstract base class for tree implementors to use for implementation inheritence.class
AbstractText
is an abstract base class for tree implementors to use for implementation inheritence.class
BaseElement
is a useful base class for implemementation inheritence of an XML element.class
DefaultAttribute
implements a doubly linked node which supports the parent relationship and is mutable.class
DefaultCDATA
is the default CDATA implementation.class
DefaultComment
is the default Comment implementation.class
DefaultDocument
is the default DOM4J default implementation of an XML document.class
DefaultDocumentType
is the DOM4J default implementation of an XML document type.class
DefaultElement
is the default DOM4J default implementation of an XML element.class
DefaultEntity
is the default Entity implementation.class
DefaultNamespace
implements a doubly linked node which supports the parent relationship and is mutable.class
DefaultProcessingInstruction
is the default Processing Instruction implementation.class
DefaultText
is the default Text implementation.class
FlyweightAttribute
is a Flyweight pattern implementation of a singly linked, read-only XML Attribute.class
FlyweightCDATA
is a Flyweight pattern implementation of a singly linked, read-only XML CDATA.class
FlyweightComment
is a Flyweight pattern implementation of a singly linked, read-only XML Comment.class
FlyweightEntity
is a Flyweight pattern implementation of a singly linked, read-only XML entity.class
FlyweightProcessingInstruction
is a Flyweight pattern implementation of a singly linked, read-only XML Processing Instruction.class
FlyweightText
is a Flyweight pattern implementation of a singly linked, read-only XML Text.Subclasses with type arguments of type Node in org.dom4j.treeModifier and TypeClassDescriptionclass
Deprecated.THIS CLASS WILL BE REMOVED IN dom4j-1.6 !!class
Deprecated.THIS CLASS WILL BE REMOVED IN dom4j-1.6 !!class
Deprecated.THIS CLASS WILL BE REMOVED IN dom4j-1.6 !!Fields in org.dom4j.tree with type parameters of type NodeModifier and TypeFieldDescriptionBackedList.branchContent
The content of the Branch which is modified if I am modifiedBaseElement.content
List of content nodes.DefaultDocument.content
Store the contents of the document as a lazily createdList
Methods in org.dom4j.tree with type parameters of type NodeModifier and TypeMethodDescriptionAbstractBranch.createEmptyList()
A Factory Method pattern which creates an empty a BackedList implementationprotected <T extends Node>
BackedList<T> AbstractBranch.createResultList()
A Factory Method pattern which creates a BackedList implementation used to store results of a filtered content query.AbstractBranch.createSingleResultList
(T result) A Factory Method pattern which creates a BackedList implementation which contains a single resultMethods in org.dom4j.tree that return NodeModifier and TypeMethodDescriptionprotected Node
AbstractDocument.asXPathResult
(Element parent) AbstractNode.asXPathResult
(Element parent) protected Node
AbstractAttribute.createXPathResult
(Element parent) protected Node
AbstractNode.createXPathResult
(Element parent) protected Node
FlyweightCDATA.createXPathResult
(Element parent) protected Node
FlyweightComment.createXPathResult
(Element parent) protected Node
FlyweightEntity.createXPathResult
(Element parent) protected Node
FlyweightProcessingInstruction.createXPathResult
(Element parent) protected Node
FlyweightText.createXPathResult
(Element parent) AbstractNode.detach()
AbstractElement.getXPathResult
(int index) AbstractBranch.node
(int index) AbstractElement.node
(int index) DefaultElement.node
(int index) AbstractNode.selectSingleNode
(String xpathExpression) Methods in org.dom4j.tree that return types with arguments of type NodeModifier and TypeMethodDescriptionAbstractBranch.content()
AbstractBranch.contentList()
DOCUMENT ME!BaseElement.contentList()
DefaultDocument.contentList()
DefaultElement.contentList()
AbstractBranch.createContentList()
A Factory Method pattern which creates a List implementation used to store contentAbstractBranch.createContentList
(int size) A Factory Method pattern which creates a List implementation used to store contentAbstractBranch.nodeIterator()
AbstractElement.nodeIterator()
DefaultElement.nodeIterator()
AbstractNode.selectNodes
(String xpathExpression) AbstractNode.selectNodes
(String xpathExpression, String comparisonXPathExpression) AbstractNode.selectNodes
(String xpathExpression, String comparisonXPathExpression, boolean removeDuplicates) Methods in org.dom4j.tree with parameters of type NodeModifier and TypeMethodDescriptionvoid
void
protected void
AbstractElement.addNewNode
(int index, Node node) protected void
AbstractElement.addNewNode
(Node node) Like addNode() but does not require a parent checkprotected void
DefaultElement.addNewNode
(Node node) protected abstract void
protected abstract void
protected void
protected void
protected void
protected void
protected abstract void
AbstractBranch.childAdded
(Node node) Called when a new child node has been added to me to allow any parent relationships to be created or events to be fired.protected void
AbstractDocument.childAdded
(Node node) protected void
AbstractElement.childAdded
(Node node) Called when a new child node is added to create any parent relationshipsprotected abstract void
AbstractBranch.childRemoved
(Node node) Called when a child node has been removed to allow any parent relationships to be deleted or events to be fired.protected void
AbstractDocument.childRemoved
(Node node) protected void
AbstractElement.childRemoved
(Node node) int
int
int
protected void
AbstractBranch.invalidNodeTypeAddException
(Node node) Called when an invalid node has been added.protected boolean
Deprecated.DOCUMENT ME!protected boolean
Deprecated.DOCUMENT ME!protected boolean
Deprecated.DOCUMENT ME!boolean
boolean
protected abstract boolean
AbstractBranch.removeNode
(Node node) protected boolean
AbstractElement.removeNode
(Node node) protected boolean
DefaultDocument.removeNode
(Node node) protected boolean
DefaultElement.removeNode
(Node node) Method parameters in org.dom4j.tree with type arguments of type NodeModifier and TypeMethodDescriptionvoid
BaseElement.setContent
(List<Node> content) void
DefaultDocument.setContent
(List<Node> content) void
DefaultElement.setContent
(List<Node> content) Constructor parameters in org.dom4j.tree with type arguments of type NodeModifierConstructorDescriptionBackedList
(AbstractBranch branch, List<Node> branchContent) BackedList
(AbstractBranch branch, List<Node> branchContent, int capacity) BackedList
(AbstractBranch branch, List<Node> branchContent, List<T> initialContent) ElementIterator
(Iterator<Node> proxy) Deprecated.ElementNameIterator
(Iterator<Node> proxy, String name) Deprecated.ElementQNameIterator
(Iterator<Node> proxy, QName qName) Deprecated. -
Uses of Node in org.dom4j.util
Classes in org.dom4j.util that implement NodeModifier and TypeClassDescriptionclass
IndexedElement
is an implementation ofElement
which maintains an index of the attributes and elements it contains to optimise lookups via name.class
NonLazyElement
is the default DOM4J default implementation of an XML element.class
UserDataAttribute
support the adornment of a user data object on an Element or Attribute instance such that the methodsUserDataAttribute.getData()
UserDataAttribute.setData(Object)
will get and set the values of a user data object.class
UserDataElement
support the adornment of a user data object on an Element or Attribute instance such that the methodsUserDataElement.getData()
UserDataElement.setData(Object)
will get and set the values of a user data object.Classes in org.dom4j.util that implement interfaces with type arguments of type NodeModifier and TypeClassDescriptionclass
NodeComparator
is aComparator
of Node instances which is capable of comparing Nodes for equality based on their values.Methods in org.dom4j.util with type parameters of type NodeModifier and TypeMethodDescriptionIndexedElement.createList()
Factory method to return a list implementation for indicesMethods in org.dom4j.util with parameters of type Node -
Uses of Node in org.dom4j.xpath
Methods in org.dom4j.xpath that return NodeMethods in org.dom4j.xpath that return types with arguments of type NodeModifier and TypeMethodDescriptionDefaultXPath.selectNodes
(Object context) DefaultXPath.selectNodes
(Object context, XPath sortXPath) DefaultXPath.selectNodes
(Object context, XPath sortXPath, boolean distinct) Methods in org.dom4j.xpath with parameters of type NodeModifier and TypeMethodDescriptionprotected Object
DefaultXPath.getCompareValue
(Node node) DOCUMENT ME!boolean
boolean
Method parameters in org.dom4j.xpath with type arguments of type NodeModifier and TypeMethodDescriptionprotected void
Removes items from the list which have duplicate valuesprotected void
Removes items from the list which have duplicate valuesvoid
sort
sorts the given List of Nodes using this XPath expression as aComparator
.void
sort
sorts the given List of Nodes using this XPath expression as aComparator
and optionally removing duplicates.protected void
Sorts the list based on the sortValues for each nodeprotected void
Sorts the list based on the sortValues for each node