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 Document.rootElement
          The root Element of the Document.
protected  Element Element.parent
          The parent of this Element
 

Methods in org.jdom that return Element
 Element Document.getRootElement()
           This will return the root Element for this Document, or return null in the case the root element hasn't been yet set.
 Element Element.getCopy(java.lang.String name, Namespace ns)
           This creates a copy of this Element, with the new name specified, and in the specified Namespace.
 Element Element.getCopy(java.lang.String name)
           This creates a copy of this Element, with the new name specified, and in no 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.
protected  Element Element.setDocument(Document document)
           This sets the Document parent of this element and makes it the root element.
 Element Element.setText(java.lang.String text)
           This sets the content of the element to be the text given.
 Element Element.setMixedContent(java.util.List mixedContent)
           This sets the content of the element.
 Element Element.setChildren(java.util.List children)
           This sets the content of the element to be the List of Element objects within the supplied List.
 Element Element.getChild(java.lang.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(java.lang.String name)
           This returns the first child element within this element with the given local name and belonging to no namespace.
 Element Element.addContent(java.lang.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(Entity 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(java.util.List attributes)
           This sets all the attributes for this element to be those in the given List; all existing attributes are removed.
 Element Element.addAttribute(Attribute attribute)
           This adds an attribute to this element.
 Element Element.addAttribute(java.lang.String name, java.lang.String value)
           This adds an attribute to this element with the given name and value.
 Element Element.setContent(java.lang.String text)
          Deprecated. Use setText(String) instead
 Element Element.addChild(java.lang.String text)
          Deprecated. Use addContent(String) instead
 Element Element.addChild(Element element)
          Deprecated. Use addContent(Element) instead
 Element Element.addChild(ProcessingInstruction pi)
          Deprecated. Use addContent(ProcessingInstruction) instead
 Element Element.addChild(Entity entity)
          Deprecated. Use addContent(Entity) instead
 Element Element.addChild(Comment comment)
          Deprecated. Use addContent(Comment) instead
 

Methods in org.jdom with parameters of type Element
 Document Document.setRootElement(Element rootElement)
           This sets the root Element for the Document.
 Document Document.addContent(Element element)
           This will add an element to the Document.
static Namespace Namespace.getNamespace(java.lang.String prefix, Element context)
           This will retrieve the Namespace for the supplied prefix in the specified context.
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.
 Element Element.addChild(Element element)
          Deprecated. Use addContent(Element) instead
 boolean Element.removeChild(Element element)
          Deprecated. Use getMixedContent().remove(element) instead
 boolean Element.removeContent(Element element)
          Deprecated. Use getMixedContent().remove(element) instead
 Entity Entity.addChild(Element element)
           This will add an Element as a child of this Entity.
 

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, java.lang.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, java.lang.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, java.lang.String reason)
           This will create an Exception indicating that the addition of the Element supplied as a child of the document is not allowed.
 

Uses of Element in org.jdom.input
 

Methods in org.jdom.input that return Element
 Element DOMBuilder.build(org.w3c.dom.Element domElement)
           This will build a JDOM Element from an existing DOM Element
 

Uses of Element in org.jdom.output
 

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



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