Uses of Class org.jdom.Element

Uses in package org.jdom.input

Methods with parameter type org.jdom.Element

void
Pushes an element onto the tree under construction.

Methods with return type org.jdom.Element

Element
DOMBuilder.build(Element domElement)
This will build a JDOM Element from an existing DOM Element
Element
Returns the being-parsed element.

Uses in package org.jdom

Constructors with parameter type org.jdom.Element

Document.Document(Element rootElement)
This will create a new Document, with the supplied Element as the root element, and no DocType declaration.
Document.Document(Element rootElement, DocType docType)
This will create a new Document, with the supplied Element as the root element and the supplied DocType declaration.
Document.Document(Element rootElement, DocType docType, String baseURI)
This will create a new Document, with the supplied Element as the root element, the supplied DocType declaration, and the specified base URI.

Methods with parameter type org.jdom.Element

void
void
void
String
Check if Attribute's namespace collides with a Element's namespace.
String
Check if a Namespace collides with a Element's namespace.
Document
Document
This will create a new Document, with the supplied Element as the root element, and no DocType declaration.
Document
This will create a new Document, with the supplied Element as the root element, and no DocType declaration.
Document
DefaultJDOMFactory.document(Element rootElement, DocType docType)
Document
JDOMFactory.document(Element rootElement, DocType docType)
This will create a new Document, with the supplied Element as the root element and the supplied DocType declaration.
Document
This will create a new Document, with the supplied Element as the root element and the supplied DocType declaration.
Document
DefaultJDOMFactory.document(Element rootElement, DocType docType, String baseURI)
Document
JDOMFactory.document(Element rootElement, DocType docType, String baseURI)
This will create a new Document, with the supplied Element as the root element and the supplied DocType declaration.
Document
UncheckedJDOMFactory.document(Element rootElement, DocType docType, String baseURI)
This will create a new Document, with the supplied Element as the root element and the supplied DocType declaration.
boolean
Determines if this element is the ancestor of another element.
void
void
void
Attribute
This will set the parent of this Attribute.
Document
This sets the root Element for the Document.

Methods with return type org.jdom.Element

Element
Element.addContent(Collection collection)
Appends all children in the given collection to the end of the content list.
Element
Element.addContent(String str)
This adds text content to this element.
Element
Element.addContent(int index, Collection c)
Inserts the content in a collection into the content list at the given index.
Element
Element.addContent(int index, Content child)
Inserts the child into the content list at the given index.
Element
Appends the child to the end of the element's content list.
Element
Detach the root Element from this document.
Element
Element
JDOMFactory.element(String name)
This will create an Element in no Namespace.
Element
This will create an Element in no Namespace.
Element
DefaultJDOMFactory.element(String name, String uri)
Element
JDOMFactory.element(String name, String uri)
This will create a new Element with the supplied (local) name, and specifies the URI of the Namespace the Element should be in, resulting it being unprefixed (in the default namespace).
Element
UncheckedJDOMFactory.element(String name, String uri)
This will create a new Element with the supplied (local) name, and specifies the URI of the Namespace the Element should be in, resulting it being unprefixed (in the default namespace).
Element
DefaultJDOMFactory.element(String name, String prefix, String uri)
Element
JDOMFactory.element(String name, String prefix, String uri)
This will create a new Element with the supplied (local) name, and specifies the prefix and URI of the Namespace the Element should be in.
Element
UncheckedJDOMFactory.element(String name, String prefix, String uri)
This will create a new Element with the supplied (local) name, and specifies the prefix and URI of the Namespace the Element should be in.
Element
DefaultJDOMFactory.element(String name, Namespace namespace)
Element
JDOMFactory.element(String name, Namespace namespace)
This will create a new Element with the supplied (local) name, and define the Namespace to be used.
Element
UncheckedJDOMFactory.element(String name, Namespace namespace)
This will create a new Element with the supplied (local) name, and define the Namespace to be used.
Element
Element.getChild(String name)
This returns the first child element within this element with the given local name and belonging to no namespace.
Element
Element.getChild(String name, Namespace ns)
This returns the first child element within this element with the given local name and belonging to the given namespace.
Element
This will return the parent of this Attribute.
Element
A convenience method that returns any parent element for this element, or null if the element is unattached or is a root element.
Element
This will return the root Element for this Document
Element
Element.setAttribute(String name, String value)
This sets an attribute value for this element.
Element
Element.setAttribute(String name, String value, Namespace ns)
This sets an attribute value for this element.
Element
This sets an attribute value for this element.
Element
Element.setAttributes(List newAttributes)
This sets the attributes of the element.
Element
Element.setContent(Collection newContent)
This sets the content of the element.
Element
Element.setContent(int index, Content child)
Replace the current child the given index with the supplied child.
Element
Set this element's content to be the supplied child.
Element
Element.setName(String name)
Sets the (local) name of the element.
Element
Sets the element's Namespace.
Element
Element.setText(String text)
Sets the content of the element to be the text given.

Uses in package org.jdom.output

Methods with parameter type org.jdom.Element

void
This will output a single JDOM element as a document, firing off the SAX events that have been registered.
void
XMLOutputter.output(Element element, OutputStream out)
Print out an Element, including its Attributes, and all contained (child) elements, etc.
void
XMLOutputter.output(Element element, Writer out)
Print out an Element, including its Attributes, and all contained (child) elements, etc.
void
XMLOutputter.outputElementContent(Element element, OutputStream out)
This will handle printing out an Element's content only, not including its tag, and attributes.
void
This will handle printing out an Element's content only, not including its tag, and attributes.
String
Return a string representing an element.
void
XMLOutputter.printAttributes(Writer out, List attributes, Element parent, org.jdom.output.NamespaceStack namespaces)
This will handle printing of a Attribute list.
void
XMLOutputter.printElement(Writer out, Element element, int level, org.jdom.output.NamespaceStack namespaces)
This will handle printing of a Element, its Attributes, and all contained (child) elements, etc.

Uses in package org.jdom.transform

Constructors with parameter type org.jdom.Element

Creates a JDOM TrAX source wrapping a JDOM element.

Copyright B) 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.