Package | Description |
---|---|
org.jdom |
Classes to represent the components of an XML document.
|
org.jdom.input |
Classes to build JDOM documents from various sources.
|
org.jdom.output |
Classes to output JDOM documents to various destinations.
|
org.jdom.transform |
Classes to help with transformations, based on the JAXP TrAX classes.
|
Modifier and Type | Method and Description |
---|---|
Document |
Document.addContent(Collection c)
Appends all children in the given collection to the end of
the content list.
|
Document |
Document.addContent(Content child)
Appends the child to the end of the content list.
|
Document |
Document.addContent(int index,
Collection c)
Inserts the content in a collection into the content list
at the given index.
|
Document |
Document.addContent(int index,
Content child)
Inserts the child into the content list at the given index.
|
Document |
UncheckedJDOMFactory.document(Element rootElement) |
Document |
JDOMFactory.document(Element rootElement)
|
Document |
DefaultJDOMFactory.document(Element rootElement) |
Document |
UncheckedJDOMFactory.document(Element rootElement,
DocType docType) |
Document |
JDOMFactory.document(Element rootElement,
DocType docType)
|
Document |
DefaultJDOMFactory.document(Element rootElement,
DocType docType) |
Document |
UncheckedJDOMFactory.document(Element rootElement,
DocType docType,
String baseURI) |
Document |
JDOMFactory.document(Element rootElement,
DocType docType,
String baseURI)
|
Document |
DefaultJDOMFactory.document(Element rootElement,
DocType docType,
String baseURI) |
Document |
Parent.getDocument()
Return this parent's owning document or null if the branch containing
this parent is currently not attached to a document.
|
Document |
Document.getDocument() |
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 |
Attribute.getDocument()
|
Document |
Document.setContent(Collection newContent)
This sets the content of the
Document . |
Document |
Document.setContent(Content child)
Set this document's content to be the supplied child.
|
Document |
Document.setContent(int index,
Collection collection)
Replace the child at the given index whith the supplied
collection.
|
Document |
Document.setContent(int index,
Content child) |
Document |
Document.setDocType(DocType docType)
This will set the
declaration for this Document . |
Document |
Document.setRootElement(Element rootElement)
This sets the root
for the
Document . |
Modifier and Type | Method and Description |
---|---|
Document |
DOMBuilder.build(Document domDocument)
This will build a JDOM tree from an existing DOM tree.
|
Document |
SAXBuilder.build(File file)
This builds a document from the supplied
filename.
|
Document |
SAXBuilder.build(InputSource in)
This builds a document from the supplied
input source.
|
Document |
SAXBuilder.build(InputStream in)
This builds a document from the supplied
input stream.
|
Document |
SAXBuilder.build(InputStream in,
String systemId)
This builds a document from the supplied
input stream.
|
Document |
SAXBuilder.build(Reader characterStream)
This builds a document from the supplied
Reader.
|
Document |
SAXBuilder.build(Reader characterStream,
String systemId)
This builds a document from the supplied
Reader.
|
Document |
SAXBuilder.build(String systemId)
This builds a document from the supplied
URI.
|
Document |
SAXBuilder.build(URL url)
This builds a document from the supplied
URL.
|
Document |
SAXHandler.getDocument()
Returns the document.
|
Document |
JDOMParseException.getPartialDocument()
Returns the partial document that was successfully built before
the error occurred.
|
Constructor and Description |
---|
JDOMParseException(String message,
Throwable cause,
Document partialDocument)
This will create a parse
Exception with the given
message and the partial document and wrap the
Exception that cause a document parse to fail. |
Modifier and Type | Method and Description |
---|---|
void |
SAXOutputter.output(Document document)
This will output the
JDOM Document , firing off the
SAX events that have been registered. |
Document |
DOMOutputter.output(Document document)
This converts the JDOM
Document parameter to a
DOM Document, returning the DOM version. |
void |
XMLOutputter.output(Document doc,
OutputStream out)
This will print the
Document to the given output stream. |
void |
XMLOutputter.output(Document doc,
Writer out)
This will print the
Document to the given Writer. |
String |
XMLOutputter.outputString(Document doc)
Return a string representing a document.
|
protected void |
XMLOutputter.printDeclaration(Writer out,
Document doc,
String encoding)
This will handle printing of the declaration.
|
Modifier and Type | Method and Description |
---|---|
Document |
JDOMSource.getDocument()
Returns the source document used by this TrAX source.
|
Document |
JDOMResult.getDocument()
Returns the result of an XSL Transformation as a JDOM document.
|
Document |
XSLTransformer.transform(Document inputDoc)
Transforms the given document to an output document.
|
Document |
XSLTransformer.transform(Document inputDoc,
EntityResolver resolver)
Transforms the given document to an output document.
|
Modifier and Type | Method and Description |
---|---|
void |
JDOMSource.setDocument(Document source)
Sets the source document used by this TrAX source.
|
void |
JDOMResult.setDocument(Document document)
Sets the document produced as result of an XSL Transformation.
|
Document |
XSLTransformer.transform(Document inputDoc)
Transforms the given document to an output document.
|
Document |
XSLTransformer.transform(Document inputDoc,
EntityResolver resolver)
Transforms the given document to an output document.
|
Constructor and Description |
---|
JDOMSource(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 new
XSLTransformer by
reading the stylesheet from the specified
Document . |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.