Uses of Class
nu.xom.Document
Packages that use Document
Package
Description
nu.xom
is the core package of XOM
that contains all the basic classes representing the different kinds
of nodes: elements, attributes, comments, text nodes, and so forth.nu.xom.converters
contains
classes that convert XOM documents to other
models such as SAX and DOM.nu.xom.tests
contains the JUnit
based test suite for XOM.nu.xom.xinclude
supports XInclude processing of XOM documents and elements.nu.xom.xslt
connects
XOM documents to TrAX-based XSLT processors.-
Uses of Document in nu.xom
Modifier and TypeMethodDescriptionReads the document from a file.Builder.build
(InputStream in) Reads the document from an input stream.Builder.build
(InputStream in, String baseURI) Reads the document from an input stream while specifying a base URI (which need not be the stream's actual URI).Reads the document from a reader.Reads the document from a character stream while specifying a base URI.Parses the document at the specified URL.Reads the document from the contents of a string.Document.copy()
Returns a complete copy of this document.final Document
Node.getDocument()
Returns the document that contains this node, or null if this node is not currently part of a document.ValidityException.getDocument()
Returns aDocument
object for the document that caused this exception.NodeFactory.startMakingDocument()
Creates a newDocument
object.Modifier and TypeMethodDescriptionvoid
NodeFactory.finishMakingDocument
(Document document) Signals the end of a document.void
Serializes a document onto the output stream using the current options. -
Uses of Document in nu.xom.converters
Methods in nu.xom.converters that return DocumentModifier and TypeMethodDescriptionstatic Document
Translates a DOMorg.w3c.dom.Document
object into an equivalentnu.xom.Document
object.static Document
DOMConverter.convert
(Document domDocument, NodeFactory factory) Translates a DOMorg.w3c.dom.Document
object into an equivalentnu.xom.Document
object as controlled by a factory.Methods in nu.xom.converters with parameters of type Document -
Uses of Document in nu.xom.tests
Methods in nu.xom.tests with parameters of type DocumentModifier and TypeMethodDescriptionstatic void
XOMTestCase.assertEquals
(String message, Document expected, Document actual) Asserts that two document nodes are equal.static void
XOMTestCase.assertEquals
(Document expected, Document actual) Asserts that two document nodes are equal. -
Uses of Document in nu.xom.xinclude
Methods in nu.xom.xinclude that return DocumentModifier and TypeMethodDescriptionstatic Document
Returns a copy of the document in which allxinclude:include
elements have been replaced by their referenced content.static Document
Returns a copy of the document in which allxinclude:include
elements have been replaced by their referenced content as loaded by the builder.Methods in nu.xom.xinclude with parameters of type DocumentModifier and TypeMethodDescriptionstatic Document
Returns a copy of the document in which allxinclude:include
elements have been replaced by their referenced content.static Document
Returns a copy of the document in which allxinclude:include
elements have been replaced by their referenced content as loaded by the builder.static void
XIncluder.resolveInPlace
(Document in) Modifies a document by replacing allxinclude:include
elements by their referenced content.static void
XIncluder.resolveInPlace
(Document in, Builder builder) Modifies a document by replacing allxinclude:include
elements with their referenced content as loaded by the builder. -
Uses of Document in nu.xom.xslt
Methods in nu.xom.xslt that return DocumentModifier and TypeMethodDescriptionstatic Document
XSLTransform.toDocument
(Nodes nodes) Builds aDocument
object from aNodes
object.Methods in nu.xom.xslt with parameters of type DocumentModifier and TypeMethodDescriptionCreates a newNodes
from the inputDocument
by applying this object's stylesheet.Constructors in nu.xom.xslt with parameters of type DocumentModifierConstructorDescriptionXSLTransform
(Document stylesheet) Creates a newXSLTransform
by reading the stylesheet from the supplied document.XSLTransform
(Document stylesheet, NodeFactory factory) Creates a newXSLTransform
by reading the stylesheet from the supplied document.