Uses of Class
org.jdom.Element

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

Uses of Element in org.jdom
 

Methods in org.jdom that return Element
 Element Comment.getParent()
           This will return the parent of this Comment.
 Element Attribute.getParent()
           This will return the parent of this Attribute.
 Element Document.getRootElement()
           This will return the root Element for this Document
 Element Document.detachRootElement()
           Detach the root Element from this document.
 Element Text.getParent()
          This will return the parent of this Text node, which is always a JDOM Element.
 Element Element.setName(java.lang.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(java.lang.String text)
           This sets the content of the element to be the text given.
 Element Element.setContent(java.util.List newContent)
           This sets the content of the element.
 Element Element.setChildren(java.util.List children)
           This sets the content of the element the same as setContent(java.util.List), except only Element objects are allowed in 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 str)
           This adds text content to this element.
 Element Element.addContent(Text text)
           This adds text content to this element.
 Element Element.addContent(CDATA cdata)
           This adds a CDATA section as 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(Comment comment)
           This adds a comment as content to this element.
 Element Element.setAttributes(java.util.List newAttributes)
           This sets the attributes of the element.
 Element Element.setAttribute(java.lang.String name, java.lang.String value)
           This sets an attribute value for this element.
 Element Element.setAttribute(java.lang.String name, java.lang.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 EntityRef.getParent()
           This will return the parent of this EntityRef.
 Element ProcessingInstruction.getParent()
           This will return the parent of this ProcessingInstruction.
 

Methods in org.jdom with parameters of type Element
static java.lang.String Verifier.checkNamespaceCollision(Attribute attribute, Element element)
           Check if Attribute's namespace collides with a Element's namespace.
static java.lang.String Verifier.checkNamespaceCollision(Namespace namespace, Element element)
           Check if a Namespace collides with a Element's namespace.
protected  Comment Comment.setParent(Element parent)
           This will set the parent of this Comment.
protected  Attribute Attribute.setParent(Element parent)
           This will set the parent of this Attribute.
 Document Document.setRootElement(Element rootElement)
           This sets the root Element for the Document.
protected  Text Text.setParent(Element parent)
          This will set the parent of the Text node to the supplied Element.
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.isAncestor(Element element)
           Determines if this element is the ancestor of another element.
 boolean Element.removeContent(Element element)
           This removes the specified Element.
protected  EntityRef EntityRef.setParent(Element parent)
           This will set the parent of this Entity.
protected  ProcessingInstruction ProcessingInstruction.setParent(Element parent)
           This will set the parent of this ProcessingInstruction.
 

Constructors in org.jdom with parameters of type Element
IllegalAddException(Element base, Attribute added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Attribute to the Element is illegal.
IllegalAddException(Element base, Element added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Element to parent is illegal.
IllegalAddException(Document base, Element added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Element to the Document is illegal.
IllegalAddException(Element base, ProcessingInstruction added, java.lang.String reason)
           This will create an Exception indicating that the addition of the ProcessingInstruction to the Element is illegal.
IllegalAddException(Element base, Comment added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Comment to the Element is illegal.
IllegalAddException(Element base, CDATA added, java.lang.String reason)
           This will create an Exception indicating that the addition of the CDATA
IllegalAddException(Element base, Text added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Text to the Element is illegal.
IllegalAddException(Element base, EntityRef added, java.lang.String reason)
           This will create an Exception indicating that the addition of the EntityRef to the Element is illegal.
IllegalAddException(Element base, Namespace added, java.lang.String reason)
           This will create an Exception indicating that the addition of the Namespace to the Element is illegal.
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(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.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
protected  Element SAXHandler.getCurrentElement()
           Returns the being-parsed element.
 Element JDOMFactory.element(java.lang.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(java.lang.String name)
           This will create an Element in no Namespace.
 Element JDOMFactory.element(java.lang.String name, java.lang.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(java.lang.String name, java.lang.String prefix, java.lang.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(java.lang.String name, Namespace namespace)
           
 Element DefaultJDOMFactory.element(java.lang.String name)
           
 Element DefaultJDOMFactory.element(java.lang.String name, java.lang.String uri)
           
 Element DefaultJDOMFactory.element(java.lang.String name, java.lang.String prefix, java.lang.String uri)
           
 

Methods in org.jdom.input with parameters of type Element
 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.
 Document DefaultJDOMFactory.document(Element rootElement, DocType docType)
           
 Document DefaultJDOMFactory.document(Element rootElement)
           
 

Uses of Element in org.jdom.output
 

Methods in org.jdom.output with parameters of type Element
 void XMLOutputter.output(Element element, java.io.OutputStream out)
           Print out an Element, including it's Attributes, and all contained (child) elements, etc.
 void XMLOutputter.outputElementContent(Element element, java.io.OutputStream out)
          This will handle printing out an Element's content only, not including its tag, and attributes.
 void XMLOutputter.output(Element element, java.io.Writer out)
           Print out an Element, including it's Attributes, and all contained (child) elements, etc.
 void XMLOutputter.outputElementContent(Element element, java.io.Writer out)
           This will handle printing out an Element's content only, not including its tag, and attributes.
 java.lang.String XMLOutputter.outputString(Element element)
           Return a string representing an element.
protected  void XMLOutputter.printElement(Element element, java.io.Writer out, int level, XMLOutputter.NamespaceStack namespaces)
           This will handle printing of a Element, it's Attributes, and all contained (child) elements, etc.
protected  void XMLOutputter.printAttributes(java.util.List attributes, Element parent, java.io.Writer out, XMLOutputter.NamespaceStack namespaces)
           This will handle printing of a Attribute list.
 org.w3c.dom.Element DOMOutputter.output(Element element)
          Deprecated. Deprecated in Beta 9, since a DOM Element should not be isolated from its Document; use output(Document) instead
protected  org.w3c.dom.Element DOMOutputter.output(Element element, org.w3c.dom.Document domDoc, org.jdom.output.NamespaceStack namespaces)
           
 



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