Uses of Interface
org.dom4j.Element
Packages that use Element
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 Element in org.dom4j
Modifier and TypeMethodDescriptionElement.addAttribute(String name, String value) Adds the attribute value of the given local name.Element.addAttribute(QName qName, String value) Adds the attribute value of the given fully qualified name.Adds a newCDATAnode with the given text to this element.Element.addComment(String comment) Adds a newCommentnode with the given text to this element.Branch.addElement(String name) Adds a newElementnode with the given name to this branch and returns a reference to the new node.Branch.addElement(String qualifiedName, String namespaceURI) Adds a newElementnode with the given qualified name and namespace URI to this branch and returns a reference to the new node.Branch.addElement(QName qname) Adds a newElementnode with the givenQNameto this branch and returns a reference to the new node.Adds a newEntitynode with the given name and text to this element and returns a reference to the new node.Element.addNamespace(String prefix, String uri) Adds a namespace to this element for use by its child contentElement.addProcessingInstruction(String target, String text) Adds a processing instruction for the given targetElement.addProcessingInstruction(String target, Map<String, String> data) Adds a processing instruction for the given targetAdds a newTextnode with the given text to this element.Element.createCopy()Creates a deep copy of this element The new element is detached from its parent, and getParent() on the clone will return null.Element.createCopy(String name) Creates a deep copy of this element with the given local name The new element is detached from its parent, and getParent() on the clone will return null.Element.createCopy(QName qName) Creates a deep copy of this element with the given fully qualified name.DocumentFactory.createElement(String name) DocumentFactory.createElement(String qualifiedName, String namespaceURI) DocumentFactory.createElement(QName qname) static ElementDocumentHelper.createElement(String name) static ElementDocumentHelper.createElement(QName qname) Returns the first element for the given local name and any namespace.Returns the first element for the given fully qualified name.Branch.elementByID(String elementID) Returns the element of the given ID attribute value.ElementPath.getCurrent()DOCUMENT ME!ElementPath.getElement(int depth) DOCUMENT ME!Node.getParent()getParentreturns the parentElementif this node supports the parent relationship or null if it is the root element or does not support the parent relationship.Document.getRootElement()Returns the rootElementfor this document.static ElementDocumentHelper.makeElement(Branch source, String path) makeElementModifier and TypeMethodDescriptionElement.elementIterator()Returns an iterator over all this elements child elements.Element.elementIterator(String name) Returns an iterator over the elements contained in this element which match the given local name and any namespace.Element.elementIterator(QName qName) Returns an iterator over the elements contained in this element which match the given fully qualified name.Element.elements()Returns the elements contained in this element.Returns the elements contained in this element with the given local name and any namespace.Returns the elements contained in this element with the given fully qualified name.Modifier and TypeMethodDescriptionvoidAdds the givenElementto this branch.voidElement.appendAttributes(Element element) Appends the attributes of the given element to me.Node.asXPathResult(Element parent) asXPathResultreturns a version of this node which is capable of being an XPath result.DocumentFactory.createAttribute(Element owner, String name, String value) DocumentFactory.createAttribute(Element owner, QName qname, String value) static AttributeDocumentHelper.createAttribute(Element owner, String name, String value) static AttributeDocumentHelper.createAttribute(Element owner, QName qname, String value) DocumentFactory.createDocument(Element rootElement) static DocumentDocumentHelper.createDocument(Element rootElement) protected NodeNamespace.createXPathResult(Element parent) Returns the relative XPath expression which will return a node set containing the given node such as a/b/@c.Namespace.getUniquePath(Element context) Node.getUniquePath(Element context) Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node.booleanRemoves the givenElementif the node is an immediate child of this branch.voidsetParentsets the parent relationship of this node if the parent relationship is supported or does nothing if the parent relationship is not supported.voidDocument.setRootElement(Element rootElement) Sets the root element for this documentvoidVisits the givenElementvoid -
Uses of Element in org.dom4j.bean
Classes in org.dom4j.bean that implement ElementModifier and TypeClassDescriptionclassBeanElementuses a Java Bean to store its attributes.Methods in org.dom4j.bean that return ElementModifier and TypeMethodDescriptionBeanElement.addAttribute(String name, String value) BeanElement.addAttribute(QName qName, String value) BeanDocumentFactory.createElement(QName qname) BeanDocumentFactory.createElement(QName qname, Attributes attributes) BeanAttribute.getParent()Methods in org.dom4j.bean with parameters of type ElementModifier and TypeMethodDescriptionBeanDocumentFactory.createAttribute(Element owner, QName qname, String value) -
Uses of Element in org.dom4j.dom
Classes in org.dom4j.dom that implement ElementModifier and TypeClassDescriptionclassDOMElementimplements an XML element which supports the W3C DOM API.Methods in org.dom4j.dom that return ElementModifier and TypeMethodDescriptionDOMDocumentFactory.createElement(QName qname) DOMDocumentFactory.createElement(QName qname, int attributeCount) Methods in org.dom4j.dom with parameters of type ElementModifier and TypeMethodDescriptionDOMDocumentFactory.createAttribute(Element owner, QName qname, String value) Method parameters in org.dom4j.dom with type arguments of type ElementModifier and TypeMethodDescriptionstatic voidDOMNodeHelper.appendElementsByTagName(List<? super Element> list, Branch parent, String name) static voidDOMNodeHelper.appendElementsByTagNameNS(List<? super Element> list, Branch parent, String namespace, String localName) Constructors in org.dom4j.dom with parameters of type ElementModifierConstructorDescriptionDOMAttribute(Element parent, QName qname, String value) DOMComment(Element parent, String text) DOMEntityReference(Element parent, String name, String text) DOMNamespace(Element parent, String prefix, String uri) DOMProcessingInstruction(Element parent, String target, String val) -
Uses of Element in org.dom4j.io
Fields in org.dom4j.io declared as ElementModifier and TypeFieldDescriptionprivate ElementDOMSAXContentHandler.currentElementThe current element we are onprivate ElementSAXContentHandler.currentElementThe current element we are onprivate ElementSAXModifyElementHandler.modifiedElementprotected Element[]ElementStack.stackstack ofElementobjectsMethods in org.dom4j.io that return ElementModifier and TypeMethodDescriptionSTAXEventReader.createElement(StartElement startEvent) Constructs a new DOM4J Element from the provided StartElement event.ElementStack.getCurrent()ElementStack.getElement(int depth) protected ElementSAXModifyElementHandler.getModifiedElement()DOCUMENT ME!ElementModifier.modifyElement(Element element) Called by an event based processor when an elements closing tag is encountered.ElementStack.peekElement()Peeks at the top element on the stack without changing the contents of the stack.ElementStack.popElement()Pops the element off the stackPruningElementStack.popElement()STAXEventReader.readElement(XMLEventReader eventReader) Reads a DOM4J Element from the provided event stream.Methods in org.dom4j.io with parameters of type ElementModifier and TypeMethodDescriptionprotected voidDOMSAXContentHandler.addAttributes(Element element, Attributes attributes) protected voidSAXContentHandler.addAttributes(Element element, Attributes attributes) Add all the attributes to the given elementsprotected voidDOMSAXContentHandler.addDeclaredNamespaces(Element element) protected voidSAXContentHandler.addDeclaredNamespaces(Element element) Add all namespaces declared before the startElement() SAX event to the current element so that they are available to child elements and attributesprotected voidDOMWriter.appendDOMTree(Document domDocument, Node domCurrent, Element element) STAXEventReader.createAttribute(Element elem, Attribute attr) Constructs a new DOM4J Attribute from the provided StAX Attribute event.protected AttributesSAXWriter.createAttributes(Element element, Attributes namespaceAttributes) STAXEventWriter.createEndElement(Element elem) Constructs a STAXEndElementevent from a DOM4JElement.STAXEventWriter.createStartElement(Element elem) Constructs a STAXStartElementevent from a DOM4JElement.protected voidSAXWriter.endElement(Element element) protected final booleanXMLWriter.isElementSpacePreserved(Element element) Determines if element is a special case of XML elements where it contains an xml:space attribute of "preserve".ElementModifier.modifyElement(Element element) Called by an event based processor when an elements closing tag is encountered.protected voidPruningElementStack.pathMatches(Element parent, Element selectedNode) voidElementStack.pushElement(Element element) Pushes a new element onto the stackprotected voidSAXWriter.startElement(Element element, AttributesImpl namespaceAttributes) protected AttributesImplSAXWriter.startPrefixMapping(Element element, NamespaceStack namespaceStack) Fires a SAX startPrefixMapping event for all the namespaceStack which have just come into scopeprotected booleanPruningElementStack.validElement(Element element, int index) voidGenerates SAX events for the given Element and all its contentprotected voidSAXWriter.write(Element element, NamespaceStack namespaceStack) voidprotected voidXMLWriter.writeAttributes(Element element) Writes the attributes of the given elementvoidSAXWriter.writeClose(Element element) Writes the closing tag of anElementvoidXMLWriter.writeClose(Element element) Writes the closing tag of anElementprotected voidHTMLWriter.writeElement(Element element) This override handles any elements that should not remove whitespace, such as <PRE>, <SCRIPT>, <STYLE>, and <TEXTAREA>.voidSTAXEventWriter.writeElement(Element elem) Writes a DOM4JElementnode and its children to the stream.protected voidXMLWriter.writeElement(Element element) protected voidXMLWriter.writeElementContent(Element element) Outputs the content of the given element.protected voidXMLWriter.writeNamespaces(Element element) Writes all namespaces declared directly on element.voidvoid -
Uses of Element in org.dom4j.jaxb
Methods in org.dom4j.jaxb that return ElementModifier and TypeMethodDescriptionprotected ElementMarshals the givenElementin to its DOM4J counterpart.JAXBModifier.JAXBElementModifier.modifyElement(Element element) Methods in org.dom4j.jaxb with parameters of type ElementModifier and TypeMethodDescriptionJAXBModifier.JAXBElementModifier.modifyElement(Element element) protected ElementvoidJAXBWriter.writeCloseElement(Element element) Writes the closing tag of the specifiedElementto the document.voidJAXBWriter.writeElement(Element element) Writes the specifiedElementto the document.voidJAXBWriter.writeOpenElement(Element element) Writes the opening tag of the specifiedElementto the document. -
Uses of Element in org.dom4j.rule
Methods in org.dom4j.rule with parameters of type ElementModifier and TypeMethodDescriptionvoidMode.applyTemplates(Element element) voidStylesheet.applyTemplates(Element element) If input is aNode, this will processes all of the children of that node.voidStylesheet.applyTemplates(Element element, String mode) Processes the input object in the given mode. -
Uses of Element in org.dom4j.swing
Methods in org.dom4j.swing with parameters of type ElementModifier and TypeMethodDescriptionstatic XMLTableDefinitionLoads an XML table definition from an XML definition documentConstructors in org.dom4j.swing with parameters of type ElementModifierConstructorDescriptionXMLTableModel(Element tableDefinition, Object source) Creates a TableModel from an XML table definition document and an XML source -
Uses of Element in org.dom4j.tree
Classes in org.dom4j.tree that implement ElementModifier and TypeClassDescriptionclassAbstractElementis an abstract base class for tree implementors to use for implementation inheritence.classBaseElementis a useful base class for implemementation inheritence of an XML element.classDefaultElementis the default DOM4J default implementation of an XML element.Fields in org.dom4j.tree declared as ElementModifier and TypeFieldDescriptionprivate ElementDefaultAttribute.parentThe parent of this nodeprivate ElementDefaultCDATA.parentThe parent of this nodeprivate ElementDefaultComment.parentThe parent of this nodeprivate ElementDefaultEntity.parentThe parent of this nodeprivate ElementDefaultNamespace.parentThe parent of this nodeprivate ElementDefaultProcessingInstruction.parentThe parent of this nodeprivate ElementDefaultText.parentThe parent of this nodeprivate ElementDefaultDocument.rootElementThe root element of this documentMethods in org.dom4j.tree that return ElementModifier and TypeMethodDescriptionAbstractElement.addAttribute(String name, String value) AbstractElement.addAttribute(QName qName, String value) AbstractElement.addComment(String comment) AbstractBranch.addElement(String name) AbstractBranch.addElement(String qualifiedName, String namespaceURI) AbstractBranch.addElement(String name, String prefix, String uri) AbstractBranch.addElement(QName qname) AbstractDocument.addElement(String name) AbstractDocument.addElement(String qualifiedName, String namespaceURI) AbstractDocument.addElement(QName qName) AbstractElement.addElement(String name) AbstractElement.addNamespace(String prefix, String uri) AbstractElement.addProcessingInstruction(String target, String data) AbstractElement.addProcessingInstruction(String target, Map<String, String> data) AbstractElement.createCopy()This returns a deep clone of this element.AbstractElement.createCopy(String name) AbstractElement.createCopy(QName qName) protected ElementAbstractElement.createElement(String name) protected ElementAbstractElement.createElement(QName qName) AbstractBranch.elementByID(String elementID) AbstractNode.getParent()BaseElement.getParent()DefaultAttribute.getParent()DefaultCDATA.getParent()DefaultComment.getParent()DefaultElement.getParent()DefaultEntity.getParent()DefaultNamespace.getParent()DefaultProcessingInstruction.getParent()DefaultText.getParent()DefaultDocument.getRootElement()Methods in org.dom4j.tree that return types with arguments of type ElementModifier and TypeMethodDescriptionAbstractElement.elementIterator()AbstractElement.elementIterator(String name) AbstractElement.elementIterator(String name, Namespace ns) AbstractElement.elementIterator(QName qName) AbstractElement.elements()Methods in org.dom4j.tree with parameters of type ElementModifier and TypeMethodDescriptionvoidvoidvoidvoidAbstractElement.appendAttributes(Element element) AbstractDocument.asXPathResult(Element parent) AbstractNode.asXPathResult(Element parent) protected voidAbstractDocument.checkAddElementAllowed(Element element) 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) protected StringDOCUMENT ME!AbstractAttribute.getUniquePath(Element context) AbstractCharacterData.getUniquePath(Element context) AbstractComment.getUniquePath(Element context) AbstractDocument.getUniquePath(Element context) AbstractDocumentType.getUniquePath(Element context) AbstractElement.getUniquePath(Element context) AbstractEntity.getUniquePath(Element context) AbstractProcessingInstruction.getUniquePath(Element context) booleanbooleanbooleanprotected abstract voidAbstractDocument.rootElementAdded(Element rootElement) Called to set the root element variableprotected voidDefaultDocument.rootElementAdded(Element element) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidAbstractDocument.setRootElement(Element rootElement) Constructors in org.dom4j.tree with parameters of type ElementModifierConstructorDescriptionDefaultAttribute(Element parent, String name, String value, Namespace namespace) Creates theAttributewith the specified local name, value andNamespace.DefaultAttribute(Element parent, QName qname, String value) DefaultCDATA(Element parent, String text) DOCUMENT ME!DefaultComment(Element parent, String text) DOCUMENT ME!DefaultDocument(String name, Element rootElement, DocumentType docType) DefaultDocument(Element rootElement) DefaultDocument(Element rootElement, DocumentType docType) DefaultEntity(Element parent, String name, String text) Creates theEntitywith the specified name and text.DefaultNamespace(Element parent, String prefix, String uri) DOCUMENT ME!DefaultProcessingInstruction(Element parent, String target, String values) This will create a new PI with the given target and valuesDefaultText(Element parent, String text) DOCUMENT ME! -
Uses of Element in org.dom4j.util
Classes in org.dom4j.util that implement ElementModifier and TypeClassDescriptionclassIndexedElementis an implementation ofElementwhich maintains an index of the attributes and elements it contains to optimise lookups via name.classNonLazyElementis the default DOM4J default implementation of an XML element.classUserDataElementsupport 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.Fields in org.dom4j.util declared as ElementModifier and TypeFieldDescriptionprivate ElementXMLErrorHandler.errorsStores the errors that occur during a SAX parseMethods in org.dom4j.util that return ElementModifier and TypeMethodDescriptionprotected ElementIndexedDocumentFactory.createElement(QName qname) IndexedDocumentFactory.createElement(QName qname, int attributeCount) NonLazyDocumentFactory.createElement(QName qname) ProxyDocumentFactory.createElement(String name) ProxyDocumentFactory.createElement(QName qname) UserDataDocumentFactory.createElement(QName qname) protected ElementUserDataElement.createElement(String name) protected ElementUserDataElement.createElement(QName qName) XMLErrorHandler.getErrors()Methods in org.dom4j.util that return types with arguments of type ElementModifier and TypeMethodDescriptionIndexedElement.asElementIterator(Object object) Deprecated.WILL BE REMOVED IN dom4j-1.6 !!IndexedElement.asElementList(Object object) Methods in org.dom4j.util with parameters of type ElementModifier and TypeMethodDescriptionprotected voidXMLErrorHandler.addException(Element element, SAXParseException e) Adds the given parse exception information to the given element instanceprotected voidIndexedElement.addToElementIndex(Object key, Element value) protected voidIndexedElement.addToElementIndex(Element element) static booleanAttributeHelper.booleanValue(Element element, String attributeName) static booleanAttributeHelper.booleanValue(Element element, QName attributeQName) intProxyDocumentFactory.createAttribute(Element owner, String name, String value) ProxyDocumentFactory.createAttribute(Element owner, QName qname, String value) UserDataDocumentFactory.createAttribute(Element owner, QName qname, String value) ProxyDocumentFactory.createDocument(Element rootElement) protected voidIndexedElement.removeFromElementIndex(Object key, Element value) protected voidIndexedElement.removeFromElementIndex(Element element) voidConstructors in org.dom4j.util with parameters of type Element -
Uses of Element in org.dom4j.xpath
Fields in org.dom4j.xpath declared as ElementConstructors in org.dom4j.xpath with parameters of type Element