Uses of Class
org.jdom2.Document
Packages that use Document
Package
Description
Classes representing the components of an XML document.
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.
Classes to build JDOM documents from various sources.
Support classes for building JDOM documents and content using SAX parsers.
Classes to output JDOM documents to various destinations.
Classes used to implement output functionality that are not part of the
actual Output API, but rather part of the implementation.
Classes to help with transformations, based on the JAXP TrAX classes.
-
Uses of Document in org.jdom2
Modifier and TypeMethodDescriptionDocument.addContent
(int index, Collection<? extends Content> 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<? extends Content> 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.Document.clone()
This will return a deep clone of thisDocument
.Attribute.getDocument()
Get this Attribute's Document.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()
Always returns this Document InstanceParent.getDocument()
Return this parent's owning document or null if the branch containing this parent is currently not attached to a document.DocType.getParent()
Document.setContent
(int index, Collection<? extends Content> collection) Replace the child at the given index with the supplied collection.Document.setContent
(int index, Content child) Replace the current child the given index with the supplied child.Document.setContent
(Collection<? extends Content> 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 the
declaration for thisDocType
Document
.Document.setRootElement
(Element rootElement) This sets the root
for theElement
Document
. -
Uses of Document in org.jdom2.filter
Methods in org.jdom2.filter that return types with arguments of type Document -
Uses of Document in org.jdom2.input
Methods in org.jdom2.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.StAXEventBuilder.build
(XMLEventReader events) This builds a document from the supplied XMLEventReader.StAXStreamBuilder.build
(XMLStreamReader reader) This builds a document from the supplied XMLStreamReader.StAXStreamWriter.getDocument()
Gets theDocument
that was created by this writer.JDOMParseException.getPartialDocument()
Returns the partial document that was successfully built before the error occurred.Constructors in org.jdom2.input with parameters of type DocumentModifierConstructorDescriptionJDOMParseException
(String message, Throwable cause, Document partialDocument) This will create a parseException
with the given message and the partial document and wrap theException
that cause a document parse to fail. -
Uses of Document in org.jdom2.input.sax
Methods in org.jdom2.input.sax that return DocumentModifier and TypeMethodDescriptionSAXBuilderEngine.build
(InputStream in) SAXBuilderEngine.build
(InputStream in, String systemId) SAXBuilderEngine.build
(InputSource in) This builds a document from the supplied filename.SAXEngine.build
(InputStream in) This builds a document from the supplied input stream.SAXEngine.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.SAXEngine.build
(InputSource in) This builds a document from the supplied input source.SAXHandler.getDocument()
Returns the document. -
Uses of Document in org.jdom2.output
Methods in org.jdom2.output with parameters of type DocumentModifier and TypeMethodDescriptionThis converts the JDOMDocument
parameter to a DOM Document, returning the DOM version.void
This will output theJDOM Document
, firing off the SAX events that have been registered.final void
StAXEventOutputter.output
(Document doc, XMLEventConsumer out) This will print theDocument
to the given Writer.final void
StAXStreamOutputter.output
(Document doc, XMLStreamWriter out) This will print theDocument
to the given Writer.final XMLStreamReader
This will expose the
as a StAX XMLStreamReader.Document
final void
XMLOutputter.output
(Document doc, OutputStream out) This will print the
to the given OutputStream.Document
final void
This will print theDocument
to the given Writer.final String
XMLOutputter.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 DocumentModifier and TypeMethodDescriptionAbstractStAXStreamReaderProcessor.buildReader
(Document doc, Format format) StAXStreamReaderProcessor.buildReader
(Document doc, Format format) Return an implementation of an XMLStreamReader that represents a JDOM Document.protected Document
AbstractDOMOutputProcessor.printDocument
(FormatStack fstack, NamespaceStack nstack, Document basedoc, Document doc) This will handle printing of aDocument
.protected void
AbstractSAXOutputProcessor.printDocument
(SAXTarget out, FormatStack fstack, NamespaceStack nstack, Document document) This will handle printing of aDocument
.protected void
AbstractStAXEventProcessor.printDocument
(XMLEventConsumer out, FormatStack fstack, NamespaceStack nstack, XMLEventFactory eventfactory, Document doc) This will handle printing of aDocument
.protected void
AbstractStAXStreamProcessor.printDocument
(XMLStreamWriter out, FormatStack fstack, NamespaceStack nstack, Document doc) This will handle printing of aDocument
.protected void
AbstractXMLOutputProcessor.printDocument
(Writer out, FormatStack fstack, NamespaceStack nstack, Document doc) This will handle printing of aDocument
.void
void
AbstractStAXEventProcessor.process
(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Document doc) void
AbstractStAXStreamProcessor.process
(XMLStreamWriter out, Format format, Document doc) void
This will convert the
to the given DOM Document.Document
void
This will print the
to the given SAXTarget.Document
void
StAXEventProcessor.process
(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, Document doc) This will print the
to the given XMLEventConsumer.Document
void
StAXStreamProcessor.process
(XMLStreamWriter out, Format format, Document doc) This will print the
to the given XMLStreamWriter.Document
void
This will print the
to the given Writer.Document
Constructors in org.jdom2.output.support with parameters of type DocumentModifierConstructorDescriptionAbstractStAXStreamReader
(Document document) Create a new AbstractStAXStreamReader that outputs a JDOM Document as an XMLStream using the Format.getRawFormat() format.AbstractStAXStreamReader
(Document document, Format format) Create a new AbstractStAXStreamReader that outputs a JDOM Document as an XMLStream. -
Uses of Document in org.jdom2.transform
Methods in org.jdom2.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.jdom2.transform with parameters of type DocumentModifier and TypeMethodDescriptionvoid
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.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.jdom2.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 newXSLTransformer
by reading the stylesheet from the specifiedDocument
.