Uses of Class
org.jdom.Document
Packages that use Document
Package
Description
Classes to represent the components of an XML document.
Classes to build JDOM documents from various sources.
Classes to output JDOM documents to various destinations.
Classes to help with transformations, based on the JAXP TrAX classes.
-
Uses of Document in org.jdom
Modifier and TypeMethodDescriptionDocument.addContent(int index, Collection c) Inserts the content in a collection into the content list at the given index.Document.addContent(int index, Content child) Inserts the child into the content list at the given index.Document.addContent(Collection c) Appends all children in the given collection to the end of the content list.Document.addContent(Content child) Appends the child to the end of the content list.Attribute.getDocument()Content.getDocument()Return this child's owning document or null if the branch containing this child is currently not attached to a document.Document.getDocument()Parent.getDocument()Return this parent's owning document or null if the branch containing this parent is currently not attached to a document.Document.setContent(int index, Collection collection) Replace the child at the given index whith the supplied collection.Document.setContent(int index, Content child) Document.setContent(Collection newContent) This sets the content of theDocument.Document.setContent(Content child) Set this document's content to be the supplied child.Document.setDocType(DocType docType) This will set thedeclaration for thisDocTypeDocument.Document.setRootElement(Element rootElement) This sets the rootfor theElementDocument. -
Uses of Document in org.jdom.input
Methods in org.jdom.input that return DocumentModifier and TypeMethodDescriptionThis will build a JDOM tree from an existing DOM tree.This builds a document from the supplied filename.SAXBuilder.build(InputStream in) This builds a document from the supplied input stream.SAXBuilder.build(InputStream in, String systemId) This builds a document from the supplied input stream.This builds a document from the supplied Reader.This builds a document from the supplied Reader.This builds a document from the supplied URI.This builds a document from the supplied URL.SAXBuilder.build(InputSource in) This builds a document from the supplied input source.SAXHandler.getDocument()Returns the document.JDOMParseException.getPartialDocument()Returns the partial document that was successfully built before the error occurred.Constructors in org.jdom.input with parameters of type DocumentModifierConstructorDescriptionJDOMParseException(String message, Throwable cause, Document partialDocument) This will create a parseExceptionwith the given message and the partial document and wrap theExceptionthat cause a document parse to fail. -
Uses of Document in org.jdom.output
Methods in org.jdom.output with parameters of type DocumentModifier and TypeMethodDescriptionThis converts the JDOMDocumentparameter to a DOM Document, returning the DOM version.voidThis will output theJDOM Document, firing off the SAX events that have been registered.voidXMLOutputter.output(Document doc, OutputStream out) This will print theDocumentto the given output stream.voidThis will print theDocumentto the given Writer.XMLOutputter.outputString(Document doc) Return a string representing a document.protected voidXMLOutputter.printDeclaration(Writer out, Document doc, String encoding) This will handle printing of the declaration. -
Uses of Document in org.jdom.transform
Methods in org.jdom.transform that return DocumentModifier and TypeMethodDescriptionJDOMResult.getDocument()Returns the result of an XSL Transformation as a JDOM document.JDOMSource.getDocument()Returns the source document used by this TrAX source.Transforms the given document to an output document.XSLTransformer.transform(Document inputDoc, EntityResolver resolver) Transforms the given document to an output document.Methods in org.jdom.transform with parameters of type DocumentModifier and TypeMethodDescriptionvoidJDOMResult.setDocument(Document document) Sets the document produced as result of an XSL Transformation.voidJDOMSource.setDocument(Document source) Sets the source document used by this TrAX source.Transforms the given document to an output document.XSLTransformer.transform(Document inputDoc, EntityResolver resolver) Transforms the given document to an output document.Constructors in org.jdom.transform with parameters of type DocumentModifierConstructorDescriptionJDOMSource(Document source) Creates a JDOM TrAX source wrapping a JDOM document.JDOMSource(Document source, EntityResolver resolver) Creates a JDOM TrAX source wrapping a JDOM element with an associated EntityResolver to resolve external entities.XSLTransformer(Document stylesheet) This will create a newXSLTransformerby reading the stylesheet from the specifiedDocument.