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 newCDATA
node with the given text to this element.Element.addComment
(String comment) Adds a newComment
node with the given text to this element.Branch.addElement
(String name) Adds a newElement
node with the given name to this branch and returns a reference to the new node.Branch.addElement
(String qualifiedName, String namespaceURI) Adds a newElement
node 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 newElement
node with the givenQName
to this branch and returns a reference to the new node.Adds a newEntity
node 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 newText
node 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 Element
DocumentHelper.createElement
(String name) static Element
DocumentHelper.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()
getParent
returns the parentElement
if 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 rootElement
for this document.static Element
DocumentHelper.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 TypeMethodDescriptionvoid
Adds the givenElement
to this branch.void
Element.appendAttributes
(Element element) Appends the attributes of the given element to me.Node.asXPathResult
(Element parent) asXPathResult
returns 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 Attribute
DocumentHelper.createAttribute
(Element owner, String name, String value) static Attribute
DocumentHelper.createAttribute
(Element owner, QName qname, String value) DocumentFactory.createDocument
(Element rootElement) static Document
DocumentHelper.createDocument
(Element rootElement) protected Node
Namespace.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.boolean
Removes the givenElement
if the node is an immediate child of this branch.void
setParent
sets the parent relationship of this node if the parent relationship is supported or does nothing if the parent relationship is not supported.void
Document.setRootElement
(Element rootElement) Sets the root element for this documentvoid
Visits the givenElement
void
-
Uses of Element in org.dom4j.bean
Classes in org.dom4j.bean that implement ElementModifier and TypeClassDescriptionclass
BeanElement
uses 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 TypeClassDescriptionclass
DOMElement
implements 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 void
DOMNodeHelper.appendElementsByTagName
(List<? super Element> list, Branch parent, String name) static void
DOMNodeHelper.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
Methods in org.dom4j.io that return ElementModifier and TypeMethodDescriptionSTAXEventReader.createElement
(StartElement startEvent) Constructs a new DOM4J Element from the provided StartElement event.ElementModifier.modifyElement
(Element element) Called by an event based processor when an elements closing tag is encountered.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 void
DOMSAXContentHandler.addAttributes
(Element element, Attributes attributes) protected void
SAXContentHandler.addAttributes
(Element element, Attributes attributes) Add all the attributes to the given elementsprotected void
DOMSAXContentHandler.addDeclaredNamespaces
(Element element) protected void
SAXContentHandler.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 void
DOMWriter.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 Attributes
SAXWriter.createAttributes
(Element element, Attributes namespaceAttributes) STAXEventWriter.createEndElement
(Element elem) Constructs a STAXEndElement
event from a DOM4JElement
.STAXEventWriter.createStartElement
(Element elem) Constructs a STAXStartElement
event from a DOM4JElement
.protected void
SAXWriter.endElement
(Element element) protected final boolean
XMLWriter.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 void
SAXWriter.startElement
(Element element, AttributesImpl namespaceAttributes) protected AttributesImpl
SAXWriter.startPrefixMapping
(Element element, NamespaceStack namespaceStack) Fires a SAX startPrefixMapping event for all the namespaceStack which have just come into scopevoid
Generates SAX events for the given Element and all its contentprotected void
SAXWriter.write
(Element element, NamespaceStack namespaceStack) void
protected void
XMLWriter.writeAttributes
(Element element) Writes the attributes of the given elementvoid
SAXWriter.writeClose
(Element element) Writes the closing tag of anElement
void
XMLWriter.writeClose
(Element element) Writes the closing tag of anElement
protected void
HTMLWriter.writeElement
(Element element) This override handles any elements that should not remove whitespace, such as <PRE>, <SCRIPT>, <STYLE>, and <TEXTAREA>.void
STAXEventWriter.writeElement
(Element elem) Writes a DOM4JElement
node and its children to the stream.protected void
XMLWriter.writeElement
(Element element) protected void
XMLWriter.writeElementContent
(Element element) Outputs the content of the given element.protected void
XMLWriter.writeNamespaces
(Element element) Writes all namespaces declared directly on element.void
void
-
Uses of Element in org.dom4j.jaxb
Methods in org.dom4j.jaxb with parameters of type ElementModifier and TypeMethodDescriptionvoid
JAXBWriter.writeCloseElement
(Element element) Writes the closing tag of the specifiedElement
to the document.void
JAXBWriter.writeElement
(Element element) Writes the specifiedElement
to the document.void
JAXBWriter.writeOpenElement
(Element element) Writes the opening tag of the specifiedElement
to the document. -
Uses of Element in org.dom4j.rule
Methods in org.dom4j.rule with parameters of type ElementModifier and TypeMethodDescriptionvoid
Mode.applyTemplates
(Element element) void
Stylesheet.applyTemplates
(Element element) If input is aNode
, this will processes all of the children of that node.void
Stylesheet.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 XMLTableDefinition
Loads 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 TypeClassDescriptionclass
AbstractElement
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
DefaultElement
is the default DOM4J default implementation of an XML element.Methods 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 Element
AbstractElement.createElement
(String name) protected Element
AbstractElement.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 TypeMethodDescriptionvoid
void
void
void
AbstractElement.appendAttributes
(Element element) AbstractDocument.asXPathResult
(Element parent) AbstractNode.asXPathResult
(Element parent) protected void
AbstractDocument.checkAddElementAllowed
(Element element) 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) protected String
DOCUMENT 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) boolean
boolean
boolean
protected abstract void
AbstractDocument.rootElementAdded
(Element rootElement) Called to set the root element variableprotected void
DefaultDocument.rootElementAdded
(Element element) void
void
void
void
void
void
void
void
void
void
void
AbstractDocument.setRootElement
(Element rootElement) Constructors in org.dom4j.tree with parameters of type ElementModifierConstructorDescriptionDefaultAttribute
(Element parent, String name, String value, Namespace namespace) Creates theAttribute
with 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 theEntity
with 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 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
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.Methods in org.dom4j.util that return ElementModifier and TypeMethodDescriptionprotected Element
IndexedDocumentFactory.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 Element
UserDataElement.createElement
(String name) protected Element
UserDataElement.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 void
XMLErrorHandler.addException
(Element element, SAXParseException e) Adds the given parse exception information to the given element instanceprotected void
IndexedElement.addToElementIndex
(Object key, Element value) protected void
IndexedElement.addToElementIndex
(Element element) static boolean
AttributeHelper.booleanValue
(Element element, String attributeName) static boolean
AttributeHelper.booleanValue
(Element element, QName attributeQName) int
ProxyDocumentFactory.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 void
IndexedElement.removeFromElementIndex
(Object key, Element value) protected void
IndexedElement.removeFromElementIndex
(Element element) void
Constructors in org.dom4j.util with parameters of type Element -
Uses of Element in org.dom4j.xpath
Constructors in org.dom4j.xpath with parameters of type Element