## Uses of Class
org.jdom.Document

Packages that use Document
org.jdom
org.jdom.input
org.jdom.output
org.jdom.transform

Uses of Document in org.jdom

Fields in org.jdom declared as Document
`protected Document` `DocType.document` The document having this DOCTYPE

Methods in org.jdom that return Document
`Document` `Comment.getDocument()` This retrieves the owning ``Document`` for this Comment, or null if not a currently a member of a ``Document``.
`Document` `Document.setRootElement(Element rootElement)` This sets the root ``Element`` for the `Document`.
`Document` `Document.setDocType(DocType docType)` This will set the ``DocType`` declaration for this `Document`.
`Document` `Document.addContent(ProcessingInstruction pi)` Adds the specified PI to the document.
`Document` `Document.addContent(Comment comment)` This will add a comment to the `Document`.
`Document` `Document.setContent(java.util.List newContent)` This sets the content of the `Document`.
`Document` `DocType.getDocument()` This retrieves the owning ``Document`` for this DocType, or null if not a currently a member of a ``Document``.
`Document` `Element.getDocument()` This retrieves the owning ``Document`` for this Element, or null if not a currently a member of a ``Document``.
`Document` `Text.getDocument()` This retrieves the owning ``Document`` for this `Text`, or null if not a currently a member of a ``Document``.
`Document` `EntityRef.getDocument()` This retrieves the owning ``Document`` for this Entity, or null if not a currently a member of a ``Document``.
`Document` `Attribute.getDocument()` This retrieves the owning ``Document`` for this Attribute, or null if not a currently a member of a ``Document``.
`Document` `ProcessingInstruction.getDocument()` This retrieves the owning ``Document`` for this PI, or null if not a currently a member of a ``Document``.
`Document` `CDATA.getDocument()` This retrieves the owning ``Document`` for this `CDATA`, or null if not a currently a member of a ``Document``.

Methods in org.jdom with parameters of type Document
`protected Comment` `Comment.setDocument(Document document)` This sets the ``Document`` parent of this comment.
`protected DocType` `DocType.setDocument(Document document)` This sets the ``Document`` holding this doctype.
`protected Element` `Element.setDocument(Document document)` This sets the ``Document`` parent of this element and makes it the root element.
`protected ProcessingInstruction` `ProcessingInstruction.setDocument(Document document)` This sets the ``Document`` parent of this PI.

Constructors in org.jdom with parameters of type Document
`IllegalAddException.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.IllegalAddException(Document base, ProcessingInstruction added, java.lang.String reason)` This will create an `Exception` indicating that the addition of the ``ProcessingInstruction`` to the ``Document`` is illegal.
`IllegalAddException.IllegalAddException(Document base, Comment added, java.lang.String reason)` This will create an `Exception` indicating that the addition of the ``Comment`` to the ``Document`` is illegal.
`IllegalAddException.IllegalAddException(Document base, DocType added, java.lang.String reason)` This will create an `Exception` indicating that the addition of the ``DocType`` to the ``Document`` is illegal.

Uses of Document in org.jdom.input

Methods in org.jdom.input that return Document
`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` `DOMBuilder.build(java.io.InputStream in)` Deprecated. Deprecated in Beta 7, ``SAXBuilder`` should be used for building from any input other than a DOM tree
`Document` `DOMBuilder.build(java.io.File file)` Deprecated. Deprecated in Beta 7, ``SAXBuilder`` should be used for building from any input other than a DOM tree
`Document` `DOMBuilder.build(java.net.URL url)` Deprecated. Deprecated in Beta 7, ``SAXBuilder`` should be used for building from any input other than a DOM tree
`Document` `DOMBuilder.build(org.w3c.dom.Document domDocument)` This will build a JDOM tree from an existing DOM tree.
`Document` `SAXBuilder.build(org.xml.sax.InputSource in)` This builds a document from the supplied input source.
`Document` `SAXBuilder.build(java.io.InputStream in)` This builds a document from the supplied input stream.
`Document` `SAXBuilder.build(java.io.File file)` This builds a document from the supplied filename.
`Document` `SAXBuilder.build(java.net.URL url)` This builds a document from the supplied URL.
`Document` `SAXBuilder.build(java.io.InputStream in, java.lang.String systemId)` This builds a document from the supplied input stream.
`Document` `SAXBuilder.build(java.io.Reader characterStream)` This builds a document from the supplied Reader.
`Document` `SAXBuilder.build(java.io.Reader characterStream, java.lang.String SystemId)` This builds a document from the supplied Reader.
`Document` `SAXBuilder.build(java.lang.String systemId)` This builds a document from the supplied URI.
`Document` `SAXHandler.getDocument()` Returns the document.
`Document` `DefaultJDOMFactory.document(Element rootElement, DocType docType)`
`Document` `DefaultJDOMFactory.document(Element rootElement)`

Constructors in org.jdom.input with parameters of type Document
`SAXHandler.SAXHandler(Document document)` Deprecated. Deprecated in beta7, use SAXHandler() instead and let SAXHandler create the Document, then retrieve it with getDocument()

Uses of Document in org.jdom.output

Methods in org.jdom.output with parameters of type Document
`void` `SAXOutputter.output(Document document)` This will output the `JDOM Document`, firing off the SAX events that have been registered.
`void` `XMLOutputter.output(Document doc, java.io.OutputStream out)` This will print the `Document` to the given output stream.
`void` `XMLOutputter.output(Document doc, java.io.Writer out)` This will print the `Document` to the given Writer.
`java.lang.String` `XMLOutputter.outputString(Document doc)` Return a string representing a document.
`protected void` `XMLOutputter.printDeclaration(Document doc, java.io.Writer out, java.lang.String encoding)` This will handle printing of the declaration.
`org.w3c.dom.Document` `DOMOutputter.output(Document document)` This converts the JDOM `Document` parameter to a DOM Document, returning the DOM version.

Uses of Document in org.jdom.transform

Methods in org.jdom.transform that return Document
`Document` `JDOMResult.getDocument()` Returns the document produced as result of an XSL Transformation.
`Document` `JDOMSource.getDocument()` Returns the source document used by this TRaX source.

Methods in org.jdom.transform with parameters of type Document
`void` `JDOMResult.setDocument(Document document)` Sets the document produced as result of an XSL Transformation.
`void` `JDOMSource.setDocument(Document source)` Sets the source document used by this TRaX source.

Constructors in org.jdom.transform with parameters of type Document
`JDOMSource.JDOMSource(Document source)` Creates a JDOM TRaX source wrapping a JDOM document.

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