Uses of Interface org.dom4j.Element

Uses in package org.dom4j.io

Methods with parameter type org.dom4j.Element

void
SAXContentHandler.addAttributes(Element element, Attributes attributes)
Add all the attributes to the given elements
void
Add all namespaces declared before the startElement() SAX event to the current element so that they are available to child elements and attributes
void
DOMWriter.appendDOMTree(org.w3c.dom.Document domDocument, org.w3c.dom.Node domCurrent, Element element)
Attribute
STAXEventReader.createAttribute(Element elem, Attribute attr)
Constructs a new DOM4J Attribute from the provided StAX Attribute event.
Attributes
SAXWriter.createAttributes(Element element, Attributes namespaceAttributes)
EndElement
Constructs a STAX EndElementevent from a DOM4J Element.
StartElement
Constructs a STAX StartElementevent from a DOM4J Element.
void
boolean
Determines if element is a special case of XML elements where it contains an xml:space attribute of "preserve".
Element
Called by an event based processor when an elements closing tag is encountered.
void
SAXWriter.startElement(Element element, AttributesImpl namespaceAttributes)
AttributesImpl
SAXWriter.startPrefixMapping(Element element, org.dom4j.tree.NamespaceStack namespaceStack)
Fires a SAX startPrefixMapping event for all the namespaceStack which have just come into scope
void
Generates SAX events for the given Element and all its content
void
Writes the Element, including its Attribute s, and its value, and all its content (child nodes) to the current Writer.
void
SAXWriter.write(Element element, org.dom4j.tree.NamespaceStack namespaceStack)
void
Writes the attributes of the given element
void
Writes the closing tag of an Element
void
Writes the closing tag of an Element
void
This override handles any elements that should not remove whitespace, such as <PRE>, <SCRIPT>, <STYLE>, and <TEXTAREA>.
void
Writes a DOM4J Elementnode and its children to the stream.
void
void
Outputs the content of the given element.
void
Writes the opening tag of an Element, including its Attributes but without its content.
void
Writes the opening tag of an Element, including its Attributes but without its content.

Methods with return type org.dom4j.Element

Element
STAXEventReader.createElement(StartElement startEvent)
Constructs a new DOM4J Element from the provided StartElement event.
Element
Called by an event based processor when an elements closing tag is encountered.
Element
STAXEventReader.readElement(XMLEventReader eventReader)
Reads a DOM4J Element from the provided event stream.

Uses in package org.dom4j.util

Classes implementing org.dom4j.Element

class
IndexedElement is an implementation of Elementwhich 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 methods setData(Object)will get and set the values of a user data object.

Constructors with parameter type org.dom4j.Element

Methods with parameter type org.dom4j.Element

void
XMLErrorHandler.addException(Element element, SAXParseException e)
Adds the given parse exception information to the given element instance
void
void
boolean
AttributeHelper.booleanValue(Element element, String attributeName)
boolean
AttributeHelper.booleanValue(Element element, QName attributeQName)
int
Attribute
ProxyDocumentFactory.createAttribute(Element owner, String name, String value)
Attribute
ProxyDocumentFactory.createAttribute(Element owner, QName qname, String value)
Attribute
UserDataDocumentFactory.createAttribute(Element owner, QName qname, String value)
Document
void
void
void

Methods with return type org.dom4j.Element

Element
IndexedElement.asElement(Object object)
Element
Element
Element
Element
Element
Element
Element
Element
IndexedDocumentFactory.createElement(QName qname, int attributeCount)
Element
IndexedElement.element(String name)
Element
Element

Uses in package org.dom4j.datatype

Classes implementing org.dom4j.Element

class
DatatypeElement represents an Element which supports the XML Schema Data Types specification.

Methods with parameter type org.dom4j.Element

Attribute
DatatypeDocumentFactory.createAttribute(Element owner, QName qname, String value)
Attribute
DatatypeElementFactory.createAttribute(Element owner, QName qname, String value)
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.

Methods with return type org.dom4j.Element

Element
DatatypeElement.addText(String text)
Element
Element
getParent returns the parent Element if this node supports the parent relationship or null if it is the root element or does not support the parent relationship.

Uses in package org.dom4j.rule

Methods with parameter type org.dom4j.Element

void

Uses in package org.dom4j

Constructors with parameter type org.dom4j.Element

IllegalAddException.IllegalAddException(Element parent, Node node, String reason)

Methods with parameter type org.dom4j.Element

void
Branch.add(Element element)
Adds the given Element to this branch.
void
Appends the attributes of the given element to me.
Node
asXPathResult returns a version of this node which is capable of being an XPath result.
Attribute
DocumentFactory.createAttribute(Element owner, String name, String value)
Attribute
DocumentHelper.createAttribute(Element owner, String name, String value)
Attribute
DocumentFactory.createAttribute(Element owner, QName qname, String value)
Attribute
DocumentHelper.createAttribute(Element owner, QName qname, String value)
Document
Document
Node
String
Returns the relative XPath expression which will return a node set containing the given node such as a/b/@c.
String
Node.getPath(Element context)
Returns the relative XPath expression which will return a node set containing the given node such as a/b/@c.
String
Returns the relative unique XPath expression from the given context which will return a nodeset of one node which is the current node.
String
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 given Element 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
Sets the root element for this document
void
Visits the given Element
void

Methods with return type org.dom4j.Element

Element
Element.addAttribute(String name, String value)
Adds the attribute value of the given local name.
Element
Element.addAttribute(QName qName, String value)
Adds the attribute value of the given fully qualified name.
Element
Element.addCDATA(String cdata)
Adds a new CDATA node with the given text to this element.
Element
Element.addComment(String comment)
Adds a new Comment node with the given text to this element.
Element
Branch.addElement(String name)
Adds a new Element node with the given name to this branch and returns a reference to the new node.
Element
Branch.addElement(String qualifiedName, String namespaceURI)
Adds a new Element node with the given qualified name and namespace URI to this branch and returns a reference to the new node.
Element
Adds a new Element node with the given QNameto this branch and returns a reference to the new node.
Element
Element.addEntity(String name, String text)
Adds a new Entity node with the given name and text to this element and returns a reference to the new node.
Element
Element.addNamespace(String prefix, String uri)
Adds a namespace to this element for use by its child content
Element
Element.addProcessingInstruction(String target, Map data)
Adds a processing instruction for the given target
Element
Element.addProcessingInstruction(String target, String text)
Adds a processing instruction for the given target
Element
Element.addText(String text)
Adds a new Text node with the given text to this element.
Element
Creates a deep copy of this element The new element is detached from its parent, and getParent() on the clone will return null.
Element
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
Creates a deep copy of this element with the given fully qualified name.
Element
Element
Element
DocumentFactory.createElement(String qualifiedName, String namespaceURI)
Element
Element
Element
Element.element(String name)
Returns the first element for the given local name and any namespace.
Element
Returns the first element for the given fully qualified name.
Element
Branch.elementByID(String elementID)
Returns the element of the given ID attribute value.
Element
DOCUMENT ME!
Element
DOCUMENT ME!
Element
getParent returns the parent Element if this node supports the parent relationship or null if it is the root element or does not support the parent relationship.
Element
Returns the root Elementfor this document.
Element
DocumentHelper.makeElement(Branch source, String path)
makeElement a helper method which navigates from the given Document or Element node to some Element using the path expression, creating any necessary elements along the way.

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge Logo