Uses of Class
org.jdom2.Document
-
Packages that use Document Package Description org.jdom2 Classes representing the components of an XML document.org.jdom2.filter Classes to both filter and generically type-cast nodes of a document based on type, name, value, or other aspects, and to boolean AND/OR/NEGATE these rules.org.jdom2.input Classes to build JDOM documents from various sources.org.jdom2.input.sax Support classes for building JDOM documents and content using SAX parsers.org.jdom2.output Classes to output JDOM documents to various destinations.org.jdom2.output.support Classes used to implement output functionality that are not part of the actual Output API, but rather part of the implementation.org.jdom2.transform Classes to help with transformations, based on the JAXP TrAX classes. -
-
Uses of Document in org.jdom2
Methods in org.jdom2 that return Document Modifier and Type Method Description DocumentDocument. addContent(int index, java.util.Collection<? extends Content> c)Inserts the content in a collection into the content list at the given index.DocumentDocument. addContent(int index, Content child)Inserts the child into the content list at the given index.DocumentDocument. addContent(java.util.Collection<? extends Content> c)Appends all children in the given collection to the end of the content list.DocumentDocument. addContent(Content child)Appends the child to the end of the content list.DocumentDocument. clone()This will return a deep clone of thisDocument.DocumentDefaultJDOMFactory. document(Element rootElement)DocumentDefaultJDOMFactory. document(Element rootElement, DocType docType)DocumentDefaultJDOMFactory. document(Element rootElement, DocType docType, java.lang.String baseURI)DocumentJDOMFactory. document(Element rootElement)DocumentJDOMFactory. document(Element rootElement, DocType docType)DocumentJDOMFactory. document(Element rootElement, DocType docType, java.lang.String baseURI)DocumentUncheckedJDOMFactory. document(Element rootElement)DocumentUncheckedJDOMFactory. document(Element rootElement, DocType docType)DocumentUncheckedJDOMFactory. document(Element rootElement, DocType docType, java.lang.String baseURI)DocumentAttribute. getDocument()Get this Attribute's Document.DocumentContent. getDocument()Return this child's owning document or null if the branch containing this child is currently not attached to a document.DocumentDocument. getDocument()Always returns this Document InstanceDocumentParent. getDocument()Return this parent's owning document or null if the branch containing this parent is currently not attached to a document.DocumentDocType. getParent()DocumentDocument. setContent(int index, java.util.Collection<? extends Content> collection)Replace the child at the given index whith the supplied collection.DocumentDocument. setContent(int index, Content child)Replace the current child the given index with the supplied child.DocumentDocument. setContent(java.util.Collection<? extends Content> newContent)This sets the content of theDocument.DocumentDocument. setContent(Content child)Set this document's content to be the supplied child.DocumentDocument. setDocType(DocType docType)This will set thedeclaration for thisDocTypeDocument.DocumentDocument. setRootElement(Element rootElement)This sets the rootfor theElementDocument.Methods in org.jdom2 with parameters of type Document Modifier and Type Method Description voidDefaultJDOMFactory. setRoot(Document doc, Element root)voidJDOMFactory. setRoot(Document doc, Element root)Sets the 'root' Element for a Document.voidUncheckedJDOMFactory. setRoot(Document doc, Element root) -
Uses of Document in org.jdom2.filter
Methods in org.jdom2.filter that return types with arguments of type Document Modifier and Type Method Description static Filter<Document>Filters. document()Return a Filter that matches anyDocumentdata. -
Uses of Document in org.jdom2.input
Methods in org.jdom2.input that return Document Modifier and Type Method Description DocumentDOMBuilder. build(org.w3c.dom.Document domDocument)This will build a JDOM tree from an existing DOM tree.DocumentSAXBuilder. build(java.io.File file)This builds a document from the supplied filename.DocumentSAXBuilder. build(java.io.InputStream in)This builds a document from the supplied input stream.DocumentSAXBuilder. build(java.io.InputStream in, java.lang.String systemId)This builds a document from the supplied input stream.DocumentSAXBuilder. build(java.io.Reader characterStream)This builds a document from the supplied Reader.DocumentSAXBuilder. build(java.io.Reader characterStream, java.lang.String systemId)This builds a document from the supplied Reader.DocumentSAXBuilder. build(java.lang.String systemId)This builds a document from the supplied URI.DocumentSAXBuilder. build(java.net.URL url)This builds a document from the supplied URL.DocumentSAXBuilder. build(org.xml.sax.InputSource in)This builds a document from the supplied input source.DocumentStAXEventBuilder. build(javax.xml.stream.XMLEventReader events)This builds a document from the supplied XMLEventReader.DocumentStAXStreamBuilder. build(javax.xml.stream.XMLStreamReader reader)This builds a document from the supplied XMLStreamReader.DocumentJDOMParseException. getPartialDocument()Returns the partial document that was successfully built before the error occurred.Constructors in org.jdom2.input with parameters of type Document Constructor Description JDOMParseException(java.lang.String message, java.lang.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.jdom2.input.sax
Methods in org.jdom2.input.sax that return Document Modifier and Type Method Description DocumentSAXBuilderEngine. build(java.io.File file)DocumentSAXBuilderEngine. build(java.io.InputStream in)DocumentSAXBuilderEngine. build(java.io.InputStream in, java.lang.String systemId)DocumentSAXBuilderEngine. build(java.io.Reader characterStream)DocumentSAXBuilderEngine. build(java.io.Reader characterStream, java.lang.String systemId)DocumentSAXBuilderEngine. build(java.lang.String systemId)DocumentSAXBuilderEngine. build(java.net.URL url)DocumentSAXBuilderEngine. build(org.xml.sax.InputSource in)DocumentSAXEngine. build(java.io.File file)This builds a document from the supplied filename.DocumentSAXEngine. build(java.io.InputStream in)This builds a document from the supplied input stream.DocumentSAXEngine. build(java.io.InputStream in, java.lang.String systemId)This builds a document from the supplied input stream.DocumentSAXEngine. build(java.io.Reader characterStream)This builds a document from the supplied Reader.DocumentSAXEngine. build(java.io.Reader characterStream, java.lang.String systemId)This builds a document from the supplied Reader.DocumentSAXEngine. build(java.lang.String systemId)This builds a document from the supplied URI.DocumentSAXEngine. build(java.net.URL url)This builds a document from the supplied URL.DocumentSAXEngine. build(org.xml.sax.InputSource in)This builds a document from the supplied input source.DocumentSAXHandler. getDocument()Returns the document. -
Uses of Document in org.jdom2.output
Methods in org.jdom2.output with parameters of type Document Modifier and Type Method Description org.w3c.dom.DocumentDOMOutputter. output(Document document)This converts the JDOMDocumentparameter to a DOM Document, returning the DOM version.voidSAXOutputter. output(Document document)This will output theJDOM Document, firing off the SAX events that have been registered.voidStAXEventOutputter. output(Document doc, javax.xml.stream.util.XMLEventConsumer out)This will print theDocumentto the given Writer.voidStAXStreamOutputter. output(Document doc, javax.xml.stream.XMLStreamWriter out)This will print theDocumentto the given Writer.voidXMLOutputter. output(Document doc, java.io.OutputStream out)This will print theto the given OutputStream.DocumentvoidXMLOutputter. output(Document doc, java.io.Writer out)This will print theDocumentto the given Writer.java.lang.StringXMLOutputter. outputString(Document doc)Return a string representing aDocument. -
Uses of Document in org.jdom2.output.support
Methods in org.jdom2.output.support with parameters of type Document Modifier and Type Method Description protected org.w3c.dom.DocumentAbstractDOMOutputProcessor. printDocument(FormatStack fstack, NamespaceStack nstack, org.w3c.dom.Document basedoc, Document doc)This will handle printing of aDocument.protected voidAbstractSAXOutputProcessor. printDocument(SAXTarget out, FormatStack fstack, NamespaceStack nstack, Document document)This will handle printing of aDocument.protected voidAbstractStAXEventProcessor. printDocument(javax.xml.stream.util.XMLEventConsumer out, FormatStack fstack, NamespaceStack nstack, javax.xml.stream.XMLEventFactory eventfactory, Document doc)This will handle printing of aDocument.protected voidAbstractStAXStreamProcessor. printDocument(javax.xml.stream.XMLStreamWriter out, FormatStack fstack, NamespaceStack nstack, Document doc)This will handle printing of aDocument.protected voidAbstractXMLOutputProcessor. printDocument(java.io.Writer out, FormatStack fstack, NamespaceStack nstack, Document doc)This will handle printing of aDocument.org.w3c.dom.DocumentAbstractDOMOutputProcessor. process(org.w3c.dom.Document basedoc, Format format, Document doc)voidAbstractSAXOutputProcessor. process(SAXTarget out, Format format, Document doc)voidAbstractStAXEventProcessor. process(javax.xml.stream.util.XMLEventConsumer out, Format format, javax.xml.stream.XMLEventFactory eventfactory, Document doc)voidAbstractStAXStreamProcessor. process(javax.xml.stream.XMLStreamWriter out, Format format, Document doc)voidAbstractXMLOutputProcessor. process(java.io.Writer out, Format format, Document doc)org.w3c.dom.DocumentDOMOutputProcessor. process(org.w3c.dom.Document basedoc, Format format, Document doc)This will convert theto the given DOM Document.DocumentvoidSAXOutputProcessor. process(SAXTarget out, Format format, Document doc)This will print theto the given SAXTarget.DocumentvoidStAXEventProcessor. process(javax.xml.stream.util.XMLEventConsumer out, Format format, javax.xml.stream.XMLEventFactory eventfactory, Document doc)This will print theto the given XMLEventConsumer.DocumentvoidStAXStreamProcessor. process(javax.xml.stream.XMLStreamWriter out, Format format, Document doc)This will print theto the given XMLStreamWriter.DocumentvoidXMLOutputProcessor. process(java.io.Writer out, Format format, Document doc)This will print theto the given Writer.Document -
Uses of Document in org.jdom2.transform
Methods in org.jdom2.transform that return Document Modifier and Type Method Description DocumentJDOMResult. getDocument()Returns the result of an XSL Transformation as a JDOM document.DocumentJDOMSource. getDocument()Returns the source document used by this TrAX source.DocumentXSLTransformer. transform(Document inputDoc)Transforms the given document to an output document.DocumentXSLTransformer. transform(Document inputDoc, org.xml.sax.EntityResolver resolver)Transforms the given document to an output document.Methods in org.jdom2.transform with parameters of type Document Modifier and Type Method Description voidJDOMResult. 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.DocumentXSLTransformer. transform(Document inputDoc)Transforms the given document to an output document.DocumentXSLTransformer. transform(Document inputDoc, org.xml.sax.EntityResolver resolver)Transforms the given document to an output document.Constructors in org.jdom2.transform with parameters of type Document Constructor Description JDOMSource(Document source)Creates a JDOM TrAX source wrapping a JDOM document.JDOMSource(Document source, org.xml.sax.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.
-