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 newCommentnode 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 DocumentDocumentHelper.createDocument()static DocumentDocumentHelper.createDocument(Element rootElement) Node.getDocument()getDocumentreturns theDocumentthat thisNodeis part of if this node supports the parent relationship.static DocumentparseTextparses the given text as an XML document and returns the newly created Document.Modifier and TypeMethodDescriptionvoidNode.setDocument(Document document) setDocumentsets the document of this node if the parent relationship is supported or does nothing if the parent relationship is not supported.voidVisits the givenDocumentvoid -
Uses of Document in org.dom4j.dom
Classes in org.dom4j.dom that implement DocumentModifier and TypeClassDescriptionclassDOMDocumentimplements 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
Fields in org.dom4j.io declared as DocumentModifier and TypeFieldDescriptionprivate DocumentDocumentInputSource.documentThe document sourceprivate DocumentDOMSAXContentHandler.documentThe document that is being builtprivate DocumentSAXContentHandler.documentThe document that is being builtMethods in org.dom4j.io that return DocumentModifier and TypeMethodDescriptionprotected DocumentDOMReader.createDocument()protected DocumentDOMSAXContentHandler.createDocument()protected DocumentSAXContentHandler.createDocument()DOCUMENT ME!DocumentInputSource.getDocument()DOCUMENT ME!DocumentResult.getDocument()DOCUMENT ME!DocumentSource.getDocument()DOCUMENT ME!SAXContentHandler.getDocument()DOCUMENT ME!SAXModifier.modify(InputStream source) Reads a Document from the givenInputStreamand writes it to the specifiedXMLWriterusing SAX.SAXModifier.modify(InputStream source, String systemId) Reads a Document from the givenInputStreamand writes it to the specifiedXMLWriterusing SAX.Reads a Document from the given URL or filename and writes it to the specifiedXMLWriterusing SAX.SAXModifier.modify(InputSource source) Reads a Document from the givenInputSourceand writes it to the specifiedXMLWriterusing SAX.Reads a Document from the givenFileSAXReader.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 givenReaderusing SAXReads a Document from the givenReaderusing SAXReads a Document from the given URL or filename using SAX.Reads a Document from the givenURLusing SAXSAXReader.read(InputSource in) Reads a Document from the givenInputSourceusing 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 DOM4JDocumentfrom the provided stream.Methods in org.dom4j.io with parameters of type DocumentModifier and TypeMethodDescriptionprotected DocumentDOMWriter.createDomDocument(Document document) protected DocumentDOMWriter.createDomDocument(Document document, DOMImplementation domImpl) STAXEventWriter.createEndDocument(Document doc) Constructs a STAXEndDocumentevent from a DOM4JDocument.STAXEventWriter.createStartDocument(Document doc) Constructs a STAXStartDocumentevent from a DOM4JDocument.protected voidSAXWriter.documentLocator(Document document) TheLocatoris only really useful when parsing a textual document as its main purpose is to identify the line and column number.protected voidSAXWriter.dtdHandler(Document document) We do not yet support DTD or XML Schemas so this method does nothing right now.protected voidSAXWriter.entityResolver(Document document) voidDocumentInputSource.setDocument(Document document) Sets the document used as the SAXInputSourcevoidDocumentSource.setDocument(Document document) Sets the document used as the JAXPSAXSourcevoidValidates the givenDocumentby writing it to a validating SAX Parser.DOMWriter.write(Document document, DOMImplementation domImpl) voidGenerates SAX events for the given Document and all its contentvoidThis will print theDocumentto the current Writer.voidSTAXEventWriter.writeDocument(Document doc) Writes a DOM4JDocumentnode, and all its contents, to the stream.Constructors in org.dom4j.io with parameters of type DocumentModifierConstructorDescriptionDocumentInputSource(Document document) DocumentSource(Document document) -
Uses of Document in org.dom4j.jaxb
Methods in org.dom4j.jaxb that return DocumentModifier and TypeMethodDescriptionParses the specifiedFilewith SAXJAXBModifier.modify(InputStream source) Parses the specifiedInputStreamwith SAX.JAXBModifier.modify(InputStream source, String systemId) Parses the specifiedInputStreamwith SAX.Parses the specifiedReaderwith SAX.Parses the specifiedReaderwith SAX.Parses the the given URL or filename.Parses the the given URL.JAXBModifier.modify(InputSource source) Parses the specifiedInputSourcewith SAX.Parses the specifiedFileJAXBReader.read(InputStream source) Parses the specifiedInputStreamJAXBReader.read(InputStream source, String systemId) Parses the specifiedInputStreamParses the specifiedReaderParses the specifiedReaderParses 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 TypeMethodDescriptionvoidMode.applyTemplates(Document document) voidStylesheet.applyTemplates(Document document) If input is aNode, this will processes all of the children of that node.voidStylesheet.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 DocumentDocumentTreeModel.documentThe document for this modelMethods in org.dom4j.swing that return DocumentMethods in org.dom4j.swing with parameters of type DocumentModifier and TypeMethodDescriptionstatic XMLTableDefinitionLoads an XML table definition from an XML definition documentvoidDocumentTreeModel.setDocument(Document document) Sets theDocumentinstance that thisTreeModelis 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 TypeClassDescriptionclassAbstractDocumentis an abstract base class for tree implementors to use for implementation inheritence.classDefaultDocumentis 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 TypeMethodDescriptionvoidAbstractNode.setDocument(Document document) voidBaseElement.setDocument(Document document) voidDefaultElement.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