Package | Description |
---|---|
org.jdom |
Classes to represent the components of an XML document.
|
org.jdom.adapters |
Classes to interface with various DOM implementations.
|
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.
|
org.jdom.xpath |
Support for XPath from within JDOM.
|
Modifier and Type | Class and Description |
---|---|
class |
DataConversionException
Thrown when a data conversion from a string to value type fails, such as
can happen with the
Attribute convenience getter functions. |
Modifier and Type | Method and Description |
---|---|
Document |
XercesDOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
XML4JDOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
OracleV2DOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
OracleV1DOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
JAXPDOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
DOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
CrimsonDOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
abstract Document |
AbstractDOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
DOMAdapter.createDocument(DocType doctype)
This creates an empty
Document object based
on a specific parser implementation with the given DOCTYPE. |
Document |
AbstractDOMAdapter.createDocument(DocType doctype)
This creates an empty
Document object based
on a specific parser implementation with the given DOCTYPE. |
Document |
DOMAdapter.getDocument(File filename,
boolean validate)
This creates a new
Document from a
given filename by letting a DOM parser handle parsing from the file. |
Document |
AbstractDOMAdapter.getDocument(File filename,
boolean validate)
This creates a new
from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
Document |
XercesDOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
Document |
XML4JDOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
Document |
OracleV2DOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
Document |
OracleV1DOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
Document |
JAXPDOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
from an
existing InputStream by letting a JAXP
parser handle parsing using the supplied stream. |
Document |
DOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
Document from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
Document |
CrimsonDOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
abstract Document |
AbstractDOMAdapter.getDocument(InputStream in,
boolean validate)
This creates a new
from an
existing InputStream by letting a DOM
parser handle parsing using the supplied stream. |
Modifier and Type | Class and Description |
---|---|
class |
JDOMParseException
Thrown during parse errors, with information about where the parse error
occurred as well as access to the partially built document.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
SAXBuilder.configureParser(XMLReader parser,
SAXHandler contentHandler)
This configures the XMLReader to be used for reading the XML document.
|
protected XMLReader |
SAXBuilder.createParser()
This creates the XMLReader to be used for reading the XML document.
|
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 |
SAXOutputter.output(Element node)
This will output a single JDOM element as a document, firing
off the SAX events that have been registered.
|
void |
SAXOutputter.output(List nodes)
This will output a list of JDOM nodes as a document, firing
off the SAX events that have been registered.
|
void |
SAXOutputter.outputFragment(Content node)
This will output a single JDOM nodes as a fragment of an XML
document, firing off the SAX events that have been registered.
|
void |
SAXOutputter.outputFragment(List nodes)
This will output a list of JDOM nodes as a fragment of an XML
document, firing off the SAX events that have been registered.
|
Modifier and Type | Class and Description |
---|---|
class |
XSLTransformException
Thrown when an XSL stylesheet fails to compile or an XSL transform fails
|
Modifier and Type | Method and Description |
---|---|
static XPath |
XPath.newInstance(String path)
Creates a new XPath wrapper object, compiling the specified
XPath expression.
|
abstract Number |
XPath.numberValueOf(Object context)
Returns the number value of the first node selected by applying
the wrapped XPath expression to the given context.
|
abstract List |
XPath.selectNodes(Object context)
Evaluates the wrapped XPath expression and returns the list
of selected items.
|
static List |
XPath.selectNodes(Object context,
String path)
Evaluates an XPath expression and returns the list of selected
items.
|
abstract Object |
XPath.selectSingleNode(Object context)
Evaluates the wrapped XPath expression and returns the first
entry in the list of selected nodes (or atomics).
|
static Object |
XPath.selectSingleNode(Object context,
String path)
Evaluates the wrapped XPath expression and returns the first
entry in the list of selected nodes (or atomics).
|
static void |
XPath.setXPathClass(Class aClass)
Sets the concrete XPath subclass to use when allocating XPath
instances.
|
abstract String |
XPath.valueOf(Object context)
Returns the string value of the first node selected by applying
the wrapped XPath expression to the given context.
|
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.