Uses of Interface
org.dom4j.Node
-
Packages that use Node Package Description org.dom4j Defines the XML Document Object Model in Java interfaces together with some helper classes.org.dom4j.bean An implementation of the dom4j API which allows JavaBeans to be used to store and retrieve attribute values from Element.org.dom4j.datatype An implementation of the dom4j API which supports the XML Schema Data Types specification.org.dom4j.dom An implementation of the dom4j API which also supports the W3C object model.org.dom4j.io Provides input and output via SAX and DOM together with writing dom4j objects to streams as XML text.org.dom4j.rule org.dom4j.rule.pattern org.dom4j.swing A collection of adapters to allow easy integration with dom4j XML documents and Swing such as TreeModels and TableModels.org.dom4j.tree 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.org.dom4j.util A collection of utility classes for the dom4j API.org.dom4j.xpath Provides the core tools needed to use the XPath library -
-
Uses of Node in org.dom4j
Subinterfaces of Node in org.dom4j Modifier and Type Interface Description interfaceAttributeAttributedefines an XML attribute.interfaceBranchBranchinterface defines the common behaviour for Nodes which can contain child nodes (content) such as XML elements and documents.interfaceCDATACDATAdefines an XML CDATA section.interfaceCharacterDataCharacterDatais a marker interface for character based nodes such as theCDATA,CommentandTextnodes.interfaceCommentCommentdefines the behavior of an XML comment.interfaceDocumentDocumentdefines an XML Document.interfaceDocumentTypeDocumentTypedefines an XML DOCTYPE declaration.interfaceElementElementinterface defines an XML element.interfaceEntityEntitydefines an XML entity.interfaceProcessingInstructionProcessingInstructiondefines an XML processing instruction.interfaceTextTextdefines an XML Text node.Classes in org.dom4j that implement Node Modifier and Type Class Description classNamespaceNamespaceis a Flyweight Namespace that can be shared amongst nodes.Methods in org.dom4j that return Node Modifier and Type Method Description NodeNode. asXPathResult(Element parent)asXPathResultreturns a version of this node which is capable of being an XPath result.protected NodeNamespace. createXPathResult(Element parent)NodeNode. detach()Removes this node from its parent if there is one.NodeElement. getXPathResult(int index)Returns a node at the given index suitable for an XPath result set.NodeBranch. node(int index)Returns theNodeat the specified index position.NodeNode. selectSingleNode(String xpathExpression)selectSingleNodeevaluates an XPath expression and returns the result as a singleNodeinstance.NodeXPath. selectSingleNode(Object context)Methods in org.dom4j that return types with arguments of type Node Modifier and Type Method Description List<Node>Branch. content()Iterator<Node>Branch. nodeIterator()Returns an iterator through the content nodes of this branchstatic List<Node>DocumentHelper. selectNodes(String xpathFilterExpression, List<Node> nodes)static List<Node>DocumentHelper. selectNodes(String xpathFilterExpression, Node node)List<Node>Node. selectNodes(String xpathExpression)selectNodesevaluates an XPath expression and returns the result as aListofNodeinstances orStringinstances depending on the XPath expression.List<Node>Node. selectNodes(String xpathExpression, String comparisonXPathExpression)selectNodesevaluates an XPath expression then sorts the results using a secondary XPath expression Returns a sortedListofNodeinstances.List<Node>Node. selectNodes(String xpathExpression, String comparisonXPathExpression, boolean removeDuplicates)selectNodesevaluates an XPath expression then sorts the results using a secondary XPath expression Returns a sortedListofNodeinstances.List<Node>XPath. selectNodes(Object context)List<Node>XPath. selectNodes(Object context, XPath sortXPath)List<Node>XPath. selectNodes(Object context, XPath sortXPath, boolean distinct)Methods in org.dom4j with parameters of type Node Modifier and Type Method Description voidBranch. add(Node node)Adds the givenNodeor throwsIllegalAddExceptionif the given node is not of a valid type.intBranch. indexOf(Node node)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.booleanNodeFilter. matches(Node node)matchesreturns true if the given node matches the filter condition.booleanXPath. matches(Node node)matchesreturns true if the given node matches the XPath expression.booleanBranch. remove(Node node)Removes the givenNodeif the node is an immediate child of this branch.static List<Node>DocumentHelper. selectNodes(String xpathFilterExpression, Node node)Method parameters in org.dom4j with type arguments of type Node Modifier and Type Method Description static List<Node>DocumentHelper. selectNodes(String xpathFilterExpression, List<Node> nodes)voidBranch. setContent(List<Node> content)Sets the contents of this branch as aListofNodeinstances.static voidDocumentHelper. sort(List<Node> list, String xpathExpression)sortsorts the given List of Nodes using an XPath expression as aComparator.static voidDocumentHelper. sort(List<Node> list, String expression, boolean distinct)sortsorts the given List of Nodes using an XPath expression as aComparatorand optionally removing duplicates.voidXPath. sort(List<Node> list)sortsorts the given List of Nodes using this XPath expression as aComparator.voidXPath. sort(List<Node> list, boolean distinct)sortsorts the given List of Nodes using this XPath expression as aComparatorand optionally removing duplicates.Constructors in org.dom4j with parameters of type Node Constructor Description IllegalAddException(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 Node Modifier and Type Class Description classBeanAttributeBeanAttributerepresents a mutable XML attribute which is backed by a property of the JavaBean of its parent element.classBeanElementBeanElementuses a Java Bean to store its attributes. -
Uses of Node in org.dom4j.datatype
Classes in org.dom4j.datatype that implement Node Modifier and Type Class Description classDatatypeAttributeDatatypeAttributerepresents an Attribute which supports the XML Schema Data Types specification.classDatatypeElementDatatypeElementrepresents an Element which supports the XML Schema Data Types specification.Methods in org.dom4j.datatype with parameters of type Node Modifier and Type Method Description protected voidDatatypeElement. childAdded(Node node)Override to force lazy recreation of data objectprotected voidDatatypeElement. childRemoved(Node node)Override to force lazy recreation of data object -
Uses of Node in org.dom4j.dom
Classes in org.dom4j.dom that implement Node Modifier and Type Class Description classDOMAttributeDOMAttributeimplements a doubly linked attribute which supports the W3C DOM API.classDOMCDATADOMCDATAimplements a CDATA Section which supports the W3C DOM API.classDOMCommentDOMTextimplements a Text node which supports the W3C DOM API.classDOMDocumentDOMDocumentimplements an XML document which supports the W3C DOM API.classDOMDocumentTypeDOMDocumentTypeimplements a DocumentType node which supports the W3C DOM API.classDOMElementDOMElementimplements an XML element which supports the W3C DOM API.classDOMEntityReferenceDOMEntityimplements a Entity node which supports the W3C DOM API.classDOMNamespaceDOMNamespaceimplements a Namespace that is compatable with the DOM API.classDOMProcessingInstructionDOMProcessingInstructionimplements a ProcessingInstruction node which supports the W3C DOM API.classDOMTextDOMTextimplements a Text node which supports the W3C DOM API.Methods in org.dom4j.dom with parameters of type Node Modifier and Type Method Description static NodeDOMNodeHelper. appendChild(Node node, Node newChild)static AttrDOMNodeHelper. asDOMAttr(Node attribute)static ElementDOMNodeHelper. asDOMElement(Node element)static NodeDOMNodeHelper. asDOMNode(Node node)static NodeDOMNodeHelper. cloneNode(Node node, boolean deep)static NamedNodeMapDOMNodeHelper. getAttributes(Node node)static NodeListDOMNodeHelper. getChildNodes(Node node)static NodeDOMNodeHelper. getFirstChild(Node node)static NodeDOMNodeHelper. getLastChild(Node node)static StringDOMNodeHelper. getLocalName(Node node)static StringDOMNodeHelper. getNamespaceURI(Node node)static NodeDOMNodeHelper. getNextSibling(Node node)static StringDOMNodeHelper. getNodeValue(Node node)static DocumentDOMNodeHelper. getOwnerDocument(Node node)static NodeDOMNodeHelper. getParentNode(Node node)static StringDOMNodeHelper. getPrefix(Node node)static NodeDOMNodeHelper. getPreviousSibling(Node node)static booleanDOMNodeHelper. hasAttributes(Node node)static booleanDOMNodeHelper. hasChildNodes(Node node)static NodeDOMNodeHelper. insertBefore(Node node, Node newChild, Node refChild)static booleanDOMNodeHelper. isSupported(Node n, String feature, String version)static voidDOMNodeHelper. normalize(Node node)static NodeDOMNodeHelper. removeChild(Node node, Node oldChild)static NodeDOMNodeHelper. replaceChild(Node node, Node newChild, Node oldChild)static voidDOMNodeHelper. setNodeValue(Node node, String nodeValue)static voidDOMNodeHelper. setPrefix(Node node, String prefix)static booleanDOMNodeHelper. supports(Node node, String feature, String version)Method parameters in org.dom4j.dom with type arguments of type Node Modifier and Type Method Description static NodeListDOMNodeHelper. createNodeList(List<Node> list) -
Uses of Node in org.dom4j.io
Methods in org.dom4j.io that return Node Modifier and Type Method Description NodeSTAXEventReader. readNode(XMLEventReader reader)Reads aNodefrom the event stream.Methods in org.dom4j.io with parameters of type Node Modifier and Type Method Description voidSAXWriter. write(Node node)A polymorphic method to write any Node to this SAX streamvoidXMLWriter. write(Node node)Writes the givenNode.voidSTAXEventWriter. writeNode(Node n)Writes a DOM4JNodeto the stream.protected voidXMLWriter. writeNode(Node node)protected voidXMLWriter. 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 Node Modifier and Type Method Description protected voidDOMWriter. appendDOMTree(Document domDocument, Node domCurrent, List<Node> content)Constructors in org.dom4j.io with parameters of type Node Constructor Description DocumentSource(Node node) -
Uses of Node in org.dom4j.rule
Methods in org.dom4j.rule with parameters of type Node Modifier and Type Method Description voidStylesheet. applyTemplates(Node node)If input is aNode, this will processes all of the children of that node.voidStylesheet. applyTemplates(Node node, String mode)Processes the input object in the given mode.voidMode. fireRule(Node node)Runs the actions associated with the given nodeRuleMode. getMatchingRule(Node node)Performs an XSLT processing model match for the rule which matches the given Node the best.RuleRuleManager. getMatchingRule(String modeName, Node node)Performs an XSLT processing model match for the rule which matches the given Node the best.RuleRuleSet. getMatchingRule(Node node)Performs an XSLT processing model match for the rule which matches the given Node the best.booleanPattern. matches(Node node)DOCUMENT ME!booleanRule. matches(Node node)DOCUMENT ME!voidAction. run(Node node)voidNullAction. run(Node node)voidStylesheet. run(Node node)voidStylesheet. run(Node node, String mode)Method parameters in org.dom4j.rule with type arguments of type Node Modifier and Type Method Description voidStylesheet. applyTemplates(List<? extends Node> list, String mode)Processes the input object in the given mode.voidStylesheet. applyTemplates(List<Node> list)If input is aNode, this will processes all of the children of that node.voidStylesheet. run(List<Node> list)voidStylesheet. run(List<Node> list, String mode) -
Uses of Node in org.dom4j.rule.pattern
Methods in org.dom4j.rule.pattern with parameters of type Node Modifier and Type Method Description booleanDefaultPattern. matches(Node node)booleanNodeTypePattern. matches(Node node) -
Uses of Node in org.dom4j.swing
Fields in org.dom4j.swing declared as Node Modifier and Type Field Description protected NodeLeafTreeNode. xmlNodeThe dom4j Node which contains theMethods in org.dom4j.swing that return Node Modifier and Type Method Description NodeLeafTreeNode. getXmlNode()Methods in org.dom4j.swing that return types with arguments of type Node Modifier and Type Method Description List<Node>XMLTableModel. getRows()Methods in org.dom4j.swing with parameters of type Node Modifier and Type Method Description protected TreeNodeBranchTreeNode. createChildTreeNode(Node xmlNode)Factory method to create child tree nodes for a given XML node typeConstructors in org.dom4j.swing with parameters of type Node Constructor Description LeafTreeNode(TreeNode parent, Node xmlNode)LeafTreeNode(Node xmlNode) -
Uses of Node in org.dom4j.tree
Classes in org.dom4j.tree with type parameters of type Node Modifier and Type Class Description classBackedList<T extends Node>BackedListrepresents a list of content of aBranch.classContentListFacade<T extends Node>ContentListFacaderepresents a facade of the content of aBranchwhich is returned via calls to theBranch.content()method to allow users to modify the content of aBranchdirectly using theListinterface.Classes in org.dom4j.tree that implement Node Modifier and Type Class Description classAbstractAttributeAbstractNamespaceis an abstract base class for tree implementors to use for implementation inheritence.classAbstractBranchAbstractBranchis an abstract base class for tree implementors to use for implementation inheritence.classAbstractCDATAAbstractCDATAis an abstract base class for tree implementors to use for implementation inheritence.classAbstractCharacterDataAbstractCharacterDatais an abstract base class for tree implementors to use for implementation inheritence.classAbstractCommentAbstractCommentis an abstract base class for tree implementors to use for implementation inheritence.classAbstractDocumentAbstractDocumentis an abstract base class for tree implementors to use for implementation inheritence.classAbstractDocumentTypeAbstractDocumentTypeis an abstract base class for tree implementors to use for implementation inheritence.classAbstractElementAbstractElementis an abstract base class for tree implementors to use for implementation inheritence.classAbstractEntityAbstractEntityis an abstract base class for tree implementors to use for implementation inheritence.classAbstractNodeAbstractNodeis an abstract base class for tree implementors to use for implementation inheritence.classAbstractProcessingInstructionAbstractProcessingInstructionis an abstract base class for tree implementors to use for implementation inheritence.classAbstractTextAbstractTextis an abstract base class for tree implementors to use for implementation inheritence.classBaseElementBaseElementis a useful base class for implemementation inheritence of an XML element.classDefaultAttributeDefaultAttributeimplements a doubly linked node which supports the parent relationship and is mutable.classDefaultCDATADefaultCDATAis the default CDATA implementation.classDefaultCommentDefaultCommentis the default Comment implementation.classDefaultDocumentDefaultDocumentis the default DOM4J default implementation of an XML document.classDefaultDocumentTypeDefaultDocumentTypeis the DOM4J default implementation of an XML document type.classDefaultElementDefaultElementis the default DOM4J default implementation of an XML element.classDefaultEntityDefaultEntityis the default Entity implementation.classDefaultNamespaceDefaultNamespaceimplements a doubly linked node which supports the parent relationship and is mutable.classDefaultProcessingInstructionDefaultProcessingInstructionis the default Processing Instruction implementation.classDefaultTextDefaultTextis the default Text implementation.classFlyweightAttributeFlyweightAttributeis a Flyweight pattern implementation of a singly linked, read-only XML Attribute.classFlyweightCDATAFlyweightCDATAis a Flyweight pattern implementation of a singly linked, read-only XML CDATA.classFlyweightCommentFlyweightCommentis a Flyweight pattern implementation of a singly linked, read-only XML Comment.classFlyweightEntityFlyweightEntityis a Flyweight pattern implementation of a singly linked, read-only XML entity.classFlyweightProcessingInstructionFlyweightProcessingInstructionis a Flyweight pattern implementation of a singly linked, read-only XML Processing Instruction.classFlyweightTextFlyweightTextis a Flyweight pattern implementation of a singly linked, read-only XML Text.Fields in org.dom4j.tree with type parameters of type Node Modifier and Type Field Description protected List<Node>BaseElement. contentList of content nodes.Methods in org.dom4j.tree with type parameters of type Node Modifier and Type Method Description protected <T extends Node>
List<T>AbstractBranch. 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.protected <T extends Node>
List<T>AbstractBranch. createSingleResultList(T result)A Factory Method pattern which creates a BackedList implementation which contains a single resultMethods in org.dom4j.tree that return Node Modifier and Type Method Description protected NodeContentListFacade. asNode(Object object)NodeAbstractDocument. asXPathResult(Element parent)NodeAbstractNode. asXPathResult(Element parent)protected NodeAbstractAttribute. createXPathResult(Element parent)protected NodeAbstractNode. createXPathResult(Element parent)protected NodeFlyweightCDATA. createXPathResult(Element parent)protected NodeFlyweightComment. createXPathResult(Element parent)protected NodeFlyweightEntity. createXPathResult(Element parent)protected NodeFlyweightProcessingInstruction. createXPathResult(Element parent)protected NodeFlyweightText. createXPathResult(Element parent)NodeAbstractNode. detach()NodeAbstractElement. getXPathResult(int index)NodeAbstractBranch. node(int index)NodeAbstractElement. node(int index)NodeDefaultElement. node(int index)NodeAbstractNode. selectSingleNode(String xpathExpression)Methods in org.dom4j.tree that return types with arguments of type Node Modifier and Type Method Description List<Node>AbstractBranch. content()protected abstract List<Node>AbstractBranch. contentList()DOCUMENT ME!protected List<Node>BaseElement. contentList()protected List<Node>DefaultDocument. contentList()protected List<Node>DefaultElement. contentList()protected List<Node>AbstractBranch. createContentList()A Factory Method pattern which creates a List implementation used to store contentprotected List<Node>AbstractBranch. createContentList(int size)A Factory Method pattern which creates a List implementation used to store contentIterator<Node>AbstractBranch. nodeIterator()Iterator<Node>AbstractElement. nodeIterator()Iterator<Node>DefaultElement. nodeIterator()List<Node>AbstractNode. selectNodes(String xpathExpression)List<Node>AbstractNode. selectNodes(String xpathExpression, String comparisonXPathExpression)List<Node>AbstractNode. selectNodes(String xpathExpression, String comparisonXPathExpression, boolean removeDuplicates)Methods in org.dom4j.tree with parameters of type Node Modifier and Type Method Description voidAbstractBranch. add(Node node)voidAbstractElement. add(Node node)protected voidAbstractElement. addNewNode(int index, Node node)protected voidAbstractElement. addNewNode(Node node)Like addNode() but does not require a parent checkprotected voidDefaultElement. addNewNode(Node node)protected abstract voidAbstractBranch. addNode(int index, Node node)protected abstract voidAbstractBranch. addNode(Node node)protected voidAbstractElement. addNode(int index, Node node)protected voidAbstractElement. addNode(Node node)protected voidDefaultDocument. addNode(int index, Node node)protected voidDefaultDocument. addNode(Node node)protected abstract voidAbstractBranch. 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 voidAbstractDocument. childAdded(Node node)protected voidAbstractElement. childAdded(Node node)Called when a new child node is added to create any parent relationshipsprotected abstract voidAbstractBranch. 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 voidAbstractDocument. childRemoved(Node node)protected voidAbstractElement. childRemoved(Node node)intAbstractBranch. indexOf(Node node)intAbstractElement. indexOf(Node node)intDefaultElement. indexOf(Node node)protected voidAbstractBranch. invalidNodeTypeAddException(Node node)Called when an invalid node has been added.protected booleanElementIterator. matches(Node element)Deprecated.DOCUMENT ME!protected booleanElementNameIterator. matches(Node object)Deprecated.DOCUMENT ME!protected booleanElementQNameIterator. matches(Node object)Deprecated.DOCUMENT ME!booleanAbstractBranch. remove(Node node)booleanAbstractElement. remove(Node node)protected abstract booleanAbstractBranch. removeNode(Node node)protected booleanAbstractElement. removeNode(Node node)protected booleanDefaultDocument. removeNode(Node node)protected booleanDefaultElement. removeNode(Node node)Method parameters in org.dom4j.tree with type arguments of type Node Modifier and Type Method Description voidBaseElement. setContent(List<Node> content)voidDefaultDocument. setContent(List<Node> content)voidDefaultElement. setContent(List<Node> content)Constructor parameters in org.dom4j.tree with type arguments of type Node Constructor Description BackedList(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 Node Modifier and Type Class Description classIndexedElementIndexedElementis an implementation ofElementwhich maintains an index of the attributes and elements it contains to optimise lookups via name.classNonLazyElementNonLazyElementis the default DOM4J default implementation of an XML element.classUserDataAttributeUserDataAttributesupport 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.classUserDataElementUserDataElementsupport 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.Methods in org.dom4j.util with type parameters of type Node Modifier and Type Method Description protected <T extends Node>
List<T>IndexedElement. createList()Factory method to return a list implementation for indicesMethods in org.dom4j.util with parameters of type Node Modifier and Type Method Description protected voidIndexedElement. addNode(Node node)intNodeComparator. compare(Node n1, Node n2)protected booleanIndexedElement. removeNode(Node node) -
Uses of Node in org.dom4j.xpath
Methods in org.dom4j.xpath that return Node Modifier and Type Method Description NodeDefaultXPath. selectSingleNode(Object context)Methods in org.dom4j.xpath that return types with arguments of type Node Modifier and Type Method Description List<Node>DefaultXPath. selectNodes(Object context)List<Node>DefaultXPath. selectNodes(Object context, XPath sortXPath)List<Node>DefaultXPath. selectNodes(Object context, XPath sortXPath, boolean distinct)Methods in org.dom4j.xpath with parameters of type Node Modifier and Type Method Description protected ObjectDefaultXPath. getCompareValue(Node node)DOCUMENT ME!booleanDefaultXPath. matches(Node node)booleanXPathPattern. matches(Node node)Method parameters in org.dom4j.xpath with type arguments of type Node Modifier and Type Method Description protected voidDefaultXPath. removeDuplicates(List<Node> list, Map<Node,Object> sortValues)Removes items from the list which have duplicate valuesprotected voidDefaultXPath. removeDuplicates(List<Node> list, Map<Node,Object> sortValues)Removes items from the list which have duplicate valuesvoidDefaultXPath. sort(List<Node> list)sortsorts the given List of Nodes using this XPath expression as aComparator.voidDefaultXPath. sort(List<Node> list, boolean distinct)sortsorts the given List of Nodes using this XPath expression as aComparatorand optionally removing duplicates.protected voidDefaultXPath. sort(List<Node> list, Map<Node,Object> sortValues)Sorts the list based on the sortValues for each nodeprotected voidDefaultXPath. sort(List<Node> list, Map<Node,Object> sortValues)Sorts the list based on the sortValues for each node
-