Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.jdom.Element

Packages that use Element
org.jdom |
org.jdom.input |
org.jdom.output |

Uses of Element in org.jdom

Fields in org.jdom declared as Element
`protected Element` | `ProcessingInstruction.parent` Parent element, or null if none
`protected Element` | `Text.parent` This `Text` node's parent.
`protected Element` | `Comment.parent` Parent node, or null if none
`protected Element` | `EntityRef.parent` Parent element, or null if none
`protected Element` | `Attribute.parent` Parent element, or null if none

Methods in org.jdom that return Element
`Element` | `ProcessingInstruction.getParent()` This will return the parent of this `ProcessingInstruction`.
`Element` | `Text.getParent()` This will return the parent of this `Text` node, which is always a JDOM ``Element``.
`Element` | `Comment.getParent()` This will return the parent of this `Comment`.
`Element` | `EntityRef.getParent()` This will return the parent of this `EntityRef`.
`Element` | `Document.getRootElement()` This will return the root `Element` for this `Document`
`Element` | `Attribute.getParent()` This will return the parent of this `Attribute`.
`Element` | `Element.setName(String name)` This sets the (local) name of the `Element`.
`Element` | `Element.setNamespace(Namespace namespace)` This sets this `Element`'s ``Namespace``.
`Element` | `Element.getParent()` This will return the parent of this `Element`.
`protected Element` | `Element.setParent(Element parent)` This will set the parent of this `Element`.
`Element` | `Element.detach()` This detaches the element from its parent, or does nothing if the element has no parent.
`protected Element` | `Element.setDocument(Document document)` This sets the ``Document`` parent of this element and makes it the root element.
`Element` | `Element.setText(String text)` This sets the content of the element to be the text given.
`Element` | `Element.setContent(List newContent)` This sets the content of the element.
`Element` | `Element.setChildren(List children)` This sets the content of the element to be the List of `Element` objects within the supplied `List`.
`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` | `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.addContent(String text)` This adds text content to this element.
`Element` | `Element.addContent(Element element)` This adds element content to this element.
`Element` | `Element.addContent(ProcessingInstruction pi)` This adds a processing instruction as content to this element.
`Element` | `Element.addContent(EntityRef entity)` This adds entity content to this element.
`Element` | `Element.addContent(CDATA cdata)` This adds a CDATA section as content to this element.
`Element` | `Element.addContent(Comment comment)` This adds a comment as content to this element.
`Element` | `Element.setAttributes(List attributes)` This sets all the attributes for this element to be those in the given `List`; all existing attributes are removed.
`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` | `Element.setAttribute(Attribute attribute)` This sets an attribute value for this element.
`Element` | `Element.addAttribute(String name, String value)` Deprecated. Deprecated in beta7, use setAttribute(Attribute) instead
`Element` | `Element.getCopy(String name, Namespace ns)` Deprecated. Deprecated in beta7, use clone(), setName(), and setNamespace() instead
`Element` | `Element.getCopy(String name)` Deprecated. Deprecated in beta7, use clone() and setName() instead
`Element` | `Element.addAttribute(Attribute attribute)` Deprecated. Deprecated in beta7, use setAttribute(Attribute) instead
`Element` | `Element.setMixedContent(List mixedContent)` Deprecated. Deprecated in beta7, use setContent(List) instead

Methods in org.jdom with parameters of type Element
`protected ProcessingInstruction` | `ProcessingInstruction.setParent(Element parent)` This will set the parent of this `ProcessingInstruction`.
`protected Comment` | `Comment.setParent(Element parent)` This will set the parent of this `Comment`.
`protected EntityRef` | `EntityRef.setParent(Element parent)` This will set the parent of this `Entity`.
`Document` | `Document.setRootElement(Element rootElement)` This sets the root ``Element`` for the `Document`.
`protected Attribute` | `Attribute.setParent(Element parent)` This will set the parent of this `Comment`.
`protected Element` | `Element.setParent(Element parent)` This will set the parent of this `Element`.
`Element` | `Element.addContent(Element element)` This adds element content to this element.
`boolean` | `Element.removeContent(Element element)` This removes the specified `Element`.

Constructors in org.jdom with parameters of type Element
`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)` This will create a new `Document`, with the supplied ``Element`` as the root element, and no ``DocType`` declaration.
`IllegalAddException.IllegalAddException(Element base, Attribute added, String reason)` This will create an `Exception` indicating that the addition of the ``Attribute`` supplied to the ``Element`` supplied is illegal.
`IllegalAddException.IllegalAddException(Element base, Element added, String reason)` This will create an `Exception` indicating that the addition of the ``Element`` supplied as a child of the supplied parent is not allowed.
`IllegalAddException.IllegalAddException(Document base, Element added, String reason)` This will create an `Exception` indicating that the addition of the ``Element`` supplied as a child of the document is not allowed.
`IllegalAddException.IllegalAddException(Element base, ProcessingInstruction added, String reason)` This will create an `Exception` indicating that the addition of the ``ProcessingInstruction`` supplied as content to the supplied element is not allowed.
`IllegalAddException.IllegalAddException(Element base, Comment added, String reason)` This will create an `Exception` indicating that the addition of the ``Comment`` supplied as content to the supplied element is not allowed.
`IllegalAddException.IllegalAddException(Element base, EntityRef added, String reason)` This will create an `Exception` indicating that the addition of the ``EntityRef`` supplied as content to the supplied element is not allowed.
`IllegalAddException.IllegalAddException(Element base, Namespace added, String reason)` This will create an `Exception` indicating that the addition of the ``Namespace`` to the supplied element is not allowed.

Uses of Element in org.jdom.input

Methods in org.jdom.input that return Element
`Element` | `DOMBuilder.build(Element domElement)` This will build a JDOM Element from an existing DOM Element
`Element` | `DefaultJDOMFactory.element(String name, Namespace namespace)`
`Element` | `DefaultJDOMFactory.element(String name)`
`Element` | `DefaultJDOMFactory.element(String name, String uri)`
`Element` | `DefaultJDOMFactory.element(String name, String prefix, String uri)`
`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` | `JDOMFactory.element(String name)` This will create an `Element` in no ``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` | `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.

Methods in org.jdom.input with parameters of type Element
`Document` | `DefaultJDOMFactory.document(Element rootElement, DocType docType)`
`Document` | `DefaultJDOMFactory.document(Element rootElement)`
`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` | `JDOMFactory.document(Element rootElement)` This will create a new `Document`, with the supplied ``Element`` as the root element, and no ``DocType`` declaration.

Uses of Element in org.jdom.output

Methods in org.jdom.output with parameters of type Element
`Element` | `DOMOutputter.output(Element element)` This converts the JDOM `Element` parameter to a DOM Element, returning the DOM version.
`protected Element` | `DOMOutputter.output(Element element, Document domDoc, org.jdom.output.NamespaceStack namespaces)`
`void` | `XMLOutputter.output(Element element, Writer out)` Print out an ``Element``, including its ``Attribute``s, and its value, and all contained (child) elements etc.
`void` | `XMLOutputter.output(Element element, OutputStream out)` Print out an ``Element``, including its ``Attribute``s, and its value, and all contained (child) elements etc.
`void` | `XMLOutputter.outputElementContent(Element element, Writer out)` This will handle printing out an ``Element``'s content only, not including its tag, and attributes.
`void` | `XMLOutputter.outputElementContent(Element element, OutputStream out)` This will handle printing out an ``Element``'s content only, not including its tag, and attributes.
`String` | `XMLOutputter.outputString(Element element)` Return a string representing an element.
`protected void` | `XMLOutputter.printElement(Element element, Writer out, int indentLevel, XMLOutputter.NamespaceStack namespaces)` This will handle printing out an ``Element``, its ``Attribute``s, and its value.
`protected void` | `XMLOutputter.printElementContent(Element element, Writer out, int indentLevel, XMLOutputter.NamespaceStack namespaces, List eltContent)` This will handle printing out an ``Element``'s content only, not including its tag, attributes, and namespace info.
`protected void` | `XMLOutputter.printAttributes(List attributes, Element parent, Writer out, XMLOutputter.NamespaceStack namespaces)` This will handle printing out an ``Attribute`` list.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

Copyright © 2001 Jason Hunter, Brett McLaughlin. All Rights Reserved.