Uses of Interface
org.dom4j.Document
Packages that use Document
Package
Description
Defines the XML Document Object Model in Java interfaces together with some helper classes.
An implementation of the dom4j API which also supports the W3C object model.
Provides input and output via SAX and DOM together with writing dom4j objects to streams as XML text.
A collection of adapters to allow easy integration with dom4j XML documents and Swing such as TreeModels and TableModels.
Contains the default implementations of the dom4j Document Object Model together with some helpful base classes for those wishing to implement their own document object model.
A collection of utility classes for the dom4j API.
-
Uses of Document in org.dom4j
Modifier and TypeMethodDescriptionDocument.addComment
(String comment) Adds a newComment
node with the given text to this branch.Document.addDocType
(String name, String publicId, String systemId) Adds a DOCTYPE declaration to this documentDocument.addProcessingInstruction
(String target, String text) Adds a processing instruction for the given targetDocument.addProcessingInstruction
(String target, Map<String, String> data) Adds a processing instruction for the given targetDocumentFactory.createDocument()
DocumentFactory.createDocument
(String encoding) DOCUMENT ME!DocumentFactory.createDocument
(Element rootElement) static Document
DocumentHelper.createDocument()
static Document
DocumentHelper.createDocument
(Element rootElement) Node.getDocument()
getDocument
returns theDocument
that thisNode
is part of if this node supports the parent relationship.static Document
parseText
parses the given text as an XML document and returns the newly created Document.Modifier and TypeMethodDescriptionvoid
Node.setDocument
(Document document) setDocument
sets the document of this node if the parent relationship is supported or does nothing if the parent relationship is not supported.void
Visits the givenDocument
void
-
Uses of Document in org.dom4j.dom
Classes in org.dom4j.dom that implement DocumentModifier and TypeClassDescriptionclass
DOMDocument
implements an XML document which supports the W3C DOM API.Methods in org.dom4j.dom that return DocumentMethods in org.dom4j.dom with parameters of type Document -
Uses of Document in org.dom4j.io
Methods in org.dom4j.io that return DocumentModifier and TypeMethodDescriptionprotected Document
DOMReader.createDocument()
protected Document
DOMSAXContentHandler.createDocument()
protected Document
SAXContentHandler.createDocument()
DOCUMENT ME!DocumentResult.getDocument()
DOCUMENT ME!DocumentSource.getDocument()
DOCUMENT ME!SAXContentHandler.getDocument()
DOCUMENT ME!SAXModifier.modify
(InputStream source) Reads a Document from the givenInputStream
and writes it to the specifiedXMLWriter
using SAX.SAXModifier.modify
(InputStream source, String systemId) Reads a Document from the givenInputStream
and writes it to the specifiedXMLWriter
using SAX.Reads a Document from the given URL or filename and writes it to the specifiedXMLWriter
using SAX.SAXModifier.modify
(InputSource source) Reads a Document from the givenInputSource
and writes it to the specifiedXMLWriter
using SAX.Reads a Document from the givenFile
SAXReader.read
(InputStream in) Reads a Document from the given stream using SAXSAXReader.read
(InputStream in, String systemId) Reads a Document from the given stream using SAXReads a Document from the givenReader
using SAXReads a Document from the givenReader
using SAXReads a Document from the given URL or filename using SAX.Reads a Document from the givenURL
using SAXSAXReader.read
(InputSource in) Reads a Document from the givenInputSource
using SAXSTAXEventReader.readDocument
(InputStream is) Constructs a StAX event stream from the provided I/O stream and reads a DOM4J document from it.STAXEventReader.readDocument
(InputStream is, String systemId) Constructs a StAX event stream from the provided I/O stream and reads a DOM4J document from it.STAXEventReader.readDocument
(Reader reader) Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it.STAXEventReader.readDocument
(Reader reader, String systemId) Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it.STAXEventReader.readDocument
(XMLEventReader reader) Reads a DOM4JDocument
from the provided stream.Methods in org.dom4j.io with parameters of type DocumentModifier and TypeMethodDescriptionprotected Document
DOMWriter.createDomDocument
(Document document) protected Document
DOMWriter.createDomDocument
(Document document, DOMImplementation domImpl) STAXEventWriter.createEndDocument
(Document doc) Constructs a STAXEndDocument
event from a DOM4JDocument
.STAXEventWriter.createStartDocument
(Document doc) Constructs a STAXStartDocument
event from a DOM4JDocument
.protected void
SAXWriter.documentLocator
(Document document) TheLocator
is only really useful when parsing a textual document as its main purpose is to identify the line and column number.protected void
SAXWriter.dtdHandler
(Document document) We do not yet support DTD or XML Schemas so this method does nothing right now.protected void
SAXWriter.entityResolver
(Document document) void
DocumentSource.setDocument
(Document document) Sets the document used as the JAXPSAXSource
void
Validates the givenDocument
by writing it to a validating SAX Parser.DOMWriter.write
(Document document, DOMImplementation domImpl) void
Generates SAX events for the given Document and all its contentvoid
This will print theDocument
to the current Writer.void
STAXEventWriter.writeDocument
(Document doc) Writes a DOM4JDocument
node, and all its contents, to the stream.Constructors in org.dom4j.io with parameters of type Document -
Uses of Document in org.dom4j.jaxb
Methods in org.dom4j.jaxb that return DocumentModifier and TypeMethodDescriptionParses the specifiedFile
with SAXJAXBModifier.modify
(InputStream source) Parses the specifiedInputStream
with SAX.JAXBModifier.modify
(InputStream source, String systemId) Parses the specifiedInputStream
with SAX.Parses the specifiedReader
with SAX.Parses the specifiedReader
with SAX.Parses the the given URL or filename.Parses the the given URL.JAXBModifier.modify
(InputSource source) Parses the specifiedInputSource
with SAX.Parses the specifiedFile
JAXBReader.read
(InputStream source) Parses the specifiedInputStream
JAXBReader.read
(InputStream source, String systemId) Parses the specifiedInputStream
Parses the specifiedReader
Parses the specifiedReader
Parses the the given URL or filename.Parses the the given URL.JAXBReader.read
(InputSource source) Parses the specifiedInputSource
-
Uses of Document in org.dom4j.rule
Methods in org.dom4j.rule with parameters of type DocumentModifier and TypeMethodDescriptionvoid
Mode.applyTemplates
(Document document) void
Stylesheet.applyTemplates
(Document document) If input is aNode
, this will processes all of the children of that node.void
Stylesheet.applyTemplates
(Document document, String mode) Processes the input object in the given mode. -
Uses of Document in org.dom4j.swing
Fields in org.dom4j.swing declared as DocumentModifier and TypeFieldDescriptionprotected Document
DocumentTreeModel.document
The document for this modelMethods in org.dom4j.swing that return DocumentMethods in org.dom4j.swing with parameters of type DocumentModifier and TypeMethodDescriptionstatic XMLTableDefinition
Loads an XML table definition from an XML definition documentvoid
DocumentTreeModel.setDocument
(Document document) Sets theDocument
instance that thisTreeModel
is based onConstructors in org.dom4j.swing with parameters of type DocumentModifierConstructorDescriptionDocumentTreeModel
(Document document) XMLTableModel
(Document tableDefinition, Object source) Creates a TableModel from an XML table definition document and an XML source -
Uses of Document in org.dom4j.tree
Classes in org.dom4j.tree that implement DocumentModifier and TypeClassDescriptionclass
AbstractDocument
is an abstract base class for tree implementors to use for implementation inheritence.class
DefaultDocument
is the default DOM4J default implementation of an XML document.Methods in org.dom4j.tree that return DocumentModifier and TypeMethodDescriptionAbstractDocument.addComment
(String comment) DefaultDocument.addDocType
(String docTypeName, String publicId, String systemId) AbstractDocument.addProcessingInstruction
(String target, String data) AbstractDocument.addProcessingInstruction
(String target, Map<String, String> data) AbstractDocument.getDocument()
AbstractNode.getDocument()
BaseElement.getDocument()
DefaultElement.getDocument()
Methods in org.dom4j.tree with parameters of type DocumentModifier and TypeMethodDescriptionvoid
AbstractNode.setDocument
(Document document) void
BaseElement.setDocument
(Document document) void
DefaultElement.setDocument
(Document document) -
Uses of Document in org.dom4j.util
Methods in org.dom4j.util that return DocumentModifier and TypeMethodDescriptionProxyDocumentFactory.createDocument()
ProxyDocumentFactory.createDocument
(Element rootElement) Methods in org.dom4j.util with parameters of type Document