Uses of Class org.jdom.Element

Uses in package org.jdom.output

Methods with parameter type org.jdom.Element

org.w3c.dom.Element
This converts the JDOM Element parameter to a DOM Element, returning the DOM version.
void
XMLOutputter.output(Element element, OutputStream out)
Print out an Element, including it's Attributes, and all contained (child) elements, etc.
void
XMLOutputter.output(Element element, Writer out)
Print out an Element, including it's Attributes, and all contained (child) elements, etc.
org.w3c.dom.Element
DOMOutputter.output(Element element, org.w3c.dom.Document domDoc, org.jdom.output.NamespaceStack namespaces)
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(List attributes, Element parent, Writer out, org.jdom.output.NamespaceStack namespaces)
This will handle printing of a Attribute list.
void
XMLOutputter.printElement(Element element, Writer out, int level, org.jdom.output.NamespaceStack namespaces)
This will handle printing of a Element, it's Attributes, and all contained (child) elements, etc.
void
XMLOutputter.printElementContent(Element element, Writer out, int level, org.jdom.output.NamespaceStack namespaces)
This will handle printing of a Element's content only, not including it's tag, attributes, or namespace info.

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.
This will create an Exception indicating that the addition of the Element to the Document is illegal.
This will create an Exception indicating that the addition of the Attribute to the Element is illegal.
IllegalAddException.IllegalAddException(Element base, CDATA added, String reason)
This will create an Exception indicating that the addition of the CDATA
This will create an Exception indicating that the addition of the Comment to the Element is illegal.
This will create an Exception indicating that the addition of the Element to parent is illegal.
This will create an Exception indicating that the addition of the EntityRef to the Element is illegal.
This will create an Exception indicating that the addition of the Namespace to the Element is illegal.
This will create an Exception indicating that the addition of the ProcessingInstruction to the Element is illegal.
IllegalAddException.IllegalAddException(Element base, Text added, String reason)
This will create an Exception indicating that the addition of the Text to the Element is illegal.

Methods with parameter type org.jdom.Element

Element
This adds element content to this element.
String
Check if Attribute's namespace collides with a Element's namespace.
String
Check if a Namespace collides with a Element's namespace.
boolean
Determines if this element is the ancestor of another element.
boolean
This removes the specified Element.
Attribute
This will set the parent of this Attribute.
CDATA
This will set the parent of the CDATA node to the supplied Element.
Comment
This will set the parent of this Comment.
Element
This will set the parent of this Element.
EntityRef
This will set the parent of this Entity.
ProcessingInstruction
This will set the parent of this ProcessingInstruction.
Text
This will set the parent of the Text node to the supplied Element.
Document
This sets the root Element for the Document.

Methods with return type org.jdom.Element

Element
Element.addContent(String str)
This adds text content to this element.
Element
This adds a CDATA section as content to this element.
Element
This adds a comment as content to this element.
Element
This adds element content to this element.
Element
This adds entity content to this element.
Element
This adds a processing instruction as content to this element.
Element
This adds text content to this element.
Element
This detaches the element from its parent, or does nothing if the element has no parent.
Element
Detach the root Element from this document.
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
This will return the parent of this CDATA node, which is always a JDOM Element.
Element
This will return the parent of this Comment.
Element
This will return the parent of this Element.
Element
This will return the parent of this EntityRef.
Element
This will return the parent of this ProcessingInstruction.
Element
This will return the parent of this Text node, which is always a JDOM 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.setChildren(List children)
This sets the content of the element the same as setContent(List), except only Element objects are allowed in the supplied list.
Element
Element.setContent(List newContent)
This sets the content of the element.
Element
This sets the Document parent of this element and makes it the root element.
Element
Element.setName(String name)
This sets the (local) name of the Element.
Element
This sets this Element's Namespace.
Element
This will set the parent of this Element.
Element
Element.setText(String text)
This sets the content of the element to be the text given.

Uses in package org.jdom.input

Methods with parameter type org.jdom.Element

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)
This will create a new Document, with the supplied Element as the root element and the supplied DocType declaration.
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.

Methods with return type org.jdom.Element

Element
DOMBuilder.build(org.w3c.dom.Element domElement)
This will build a JDOM Element from an existing DOM Element
Element
This will create an Element in no Namespace.
Element
JDOMFactory.element(String name)
This will create an Element in no Namespace.
Element
DefaultJDOMFactory.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
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
DefaultJDOMFactory.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
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
DefaultJDOMFactory.element(String name, Namespace namespace)
This will create a new Element with the supplied (local) name, and define the Namespace to be used.
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
Returns the being-parsed element.

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