Package | Description |
---|---|
org.jdom2 |
Classes representing the components of an XML document.
|
org.jdom2.adapters |
Classes to create specific DOM Document instances.
|
org.jdom2.input |
Classes to build JDOM documents from various sources.
|
org.jdom2.input.sax |
Support classes for building JDOM documents and content using SAX parsers.
|
org.jdom2.input.stax |
Support classes for building JDOM documents and content using StAX readers.
|
org.jdom2.output |
Classes to output JDOM documents to various destinations.
|
org.jdom2.output.support |
Classes used to implement output functionality that are not part of the
actual Output API, but rather part of the implementation.
|
org.jdom2.transform |
Classes to help with transformations, based on the JAXP TrAX classes.
|
org.jdom2.xpath |
Support for XPath from within JDOM.
|
org.jdom2.xpath.jaxen |
Support for the Jaxen XPath Library.
|
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 |
---|---|
org.w3c.dom.Document |
JAXPDOMAdapter.createDocument()
This creates an empty
Document object based
on the current JAXP parser implementation. |
org.w3c.dom.Document |
DOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
org.w3c.dom.Document |
AbstractDOMAdapter.createDocument(DocType doctype)
This creates an empty
Document object based
on a specific parser implementation with the given DOCTYPE. |
org.w3c.dom.Document |
DOMAdapter.createDocument(DocType doctype)
This creates an empty
Document object based
on a specific parser implementation with the given DOCTYPE. |
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(java.io.File file)
This builds a document from the supplied filename.
|
Document |
SAXBuilder.build(org.xml.sax.InputSource in)
This builds a document from the supplied input source.
|
Document |
SAXBuilder.build(java.io.InputStream in)
This builds a document from the supplied input stream.
|
Document |
SAXBuilder.build(java.io.InputStream in,
java.lang.String systemId)
This builds a document from the supplied input stream.
|
Document |
SAXBuilder.build(java.io.Reader characterStream)
This builds a document from the supplied Reader.
|
Document |
SAXBuilder.build(java.io.Reader characterStream,
java.lang.String systemId)
This builds a document from the supplied Reader.
|
Document |
SAXBuilder.build(java.lang.String systemId)
This builds a document from the supplied URI.
|
Document |
SAXBuilder.build(java.net.URL url)
This builds a document from the supplied URL.
|
Document |
StAXEventBuilder.build(javax.xml.stream.XMLEventReader events)
This builds a document from the supplied
XMLEventReader.
|
Document |
StAXStreamBuilder.build(javax.xml.stream.XMLStreamReader reader)
This builds a document from the supplied
XMLStreamReader.
|
SAXEngine |
SAXBuilder.buildEngine()
This method builds a new and reusable
SAXEngine . |
java.util.List<Content> |
StAXStreamBuilder.buildFragments(javax.xml.stream.XMLStreamReader reader,
StAXFilter filter)
Read the entire XMLStreamReader and from it build a list of Content that
conforms to the rules in the supplied StAXFilter.
|
protected void |
SAXBuilder.configureParser(org.xml.sax.XMLReader parser,
SAXHandler contentHandler)
This configures the XMLReader to be used for reading the XML document.
|
protected org.xml.sax.XMLReader |
SAXBuilder.createParser()
Allow overriding classes access to the Parser before it is used in a
SAXBuilderEngine.
|
Content |
StAXStreamBuilder.fragment(javax.xml.stream.XMLStreamReader reader)
Read the current XML Fragment from the XMLStreamReader.
|
Modifier and Type | Method and Description |
---|---|
Document |
SAXEngine.build(java.io.File file)
This builds a document from the supplied filename.
|
Document |
SAXBuilderEngine.build(java.io.File file) |
Document |
SAXEngine.build(org.xml.sax.InputSource in)
This builds a document from the supplied input source.
|
Document |
SAXBuilderEngine.build(org.xml.sax.InputSource in) |
Document |
SAXEngine.build(java.io.InputStream in)
This builds a document from the supplied input stream.
|
Document |
SAXBuilderEngine.build(java.io.InputStream in) |
Document |
SAXEngine.build(java.io.InputStream in,
java.lang.String systemId)
This builds a document from the supplied input stream.
|
Document |
SAXBuilderEngine.build(java.io.InputStream in,
java.lang.String systemId) |
Document |
SAXEngine.build(java.io.Reader characterStream)
This builds a document from the supplied Reader.
|
Document |
SAXBuilderEngine.build(java.io.Reader characterStream) |
Document |
SAXEngine.build(java.io.Reader characterStream,
java.lang.String systemId)
This builds a document from the supplied Reader.
|
Document |
SAXBuilderEngine.build(java.io.Reader characterStream,
java.lang.String systemId) |
Document |
SAXEngine.build(java.lang.String systemId)
This builds a document from the supplied URI.
|
Document |
SAXBuilderEngine.build(java.lang.String systemId) |
Document |
SAXEngine.build(java.net.URL url)
This builds a document from the supplied URL.
|
Document |
SAXBuilderEngine.build(java.net.URL url) |
org.xml.sax.XMLReader |
XMLReaderJAXPFactory.createXMLReader() |
org.xml.sax.XMLReader |
XMLReaderJDOMFactory.createXMLReader()
Return a new XMLReader according to the implementation of this
XMLReaderJDOMFactory instance.
|
org.xml.sax.XMLReader |
XMLReaderSAX2Factory.createXMLReader() |
org.xml.sax.XMLReader |
XMLReaders.createXMLReader()
Get a new XMLReader from this JAXP-based
XMLReaderJDOMFactory . |
org.xml.sax.XMLReader |
AbstractReaderSchemaFactory.createXMLReader() |
Constructor and Description |
---|
AbstractReaderXSDFactory(javax.xml.parsers.SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
java.io.File... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from File references.
|
AbstractReaderXSDFactory(javax.xml.parsers.SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
javax.xml.transform.Source... sources)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from Transform Source references.
|
AbstractReaderXSDFactory(javax.xml.parsers.SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
java.lang.String... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from SystemID references.
|
AbstractReaderXSDFactory(javax.xml.parsers.SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
java.net.URL... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from URL references.
|
XMLReaderXSDFactory(java.io.File... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from File references.
|
XMLReaderXSDFactory(javax.xml.transform.Source... sources)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from Transform Source references.
|
XMLReaderXSDFactory(java.lang.String... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from SystemID references.
|
XMLReaderXSDFactory(java.lang.String factoryClassName,
java.lang.ClassLoader classloader,
java.io.File... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from File references, and use the specified JAXP SAXParserFactory.
|
XMLReaderXSDFactory(java.lang.String factoryClassName,
java.lang.ClassLoader classloader,
javax.xml.transform.Source... sources)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from Transform Source references, and use the specified JAXP SAXParserFactory.
|
XMLReaderXSDFactory(java.lang.String factoryClassName,
java.lang.ClassLoader classloader,
java.lang.String... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from SystemID references, and use the specified JAXP SAXParserFactory.
|
XMLReaderXSDFactory(java.lang.String factoryClassName,
java.lang.ClassLoader classloader,
java.net.URL... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from URL references, and use the specified JAXP SAXParserFactory.
|
XMLReaderXSDFactory(java.net.URL... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from URL references.
|
Modifier and Type | Method and Description |
---|---|
static DocType |
DTDParser.parse(java.lang.String input,
JDOMFactory factory)
Parse out a DOCTYPE declaration as supplied by the standard StAX
readers.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Attr |
DOMOutputter.output(Attribute attribute)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
org.w3c.dom.CDATASection |
DOMOutputter.output(CDATA cdata)
This converts the JDOM
CDATA parameter to a DOM CDATASection
Node, returning the DOM version. |
org.w3c.dom.Comment |
DOMOutputter.output(Comment comment)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
org.w3c.dom.DocumentType |
DOMOutputter.output(DocType doctype)
This converts the JDOM
DocType parameter to a DOM DocumentType,
returning the DOM version. |
void |
SAXOutputter.output(Document document)
This will output the
JDOM Document , firing off the SAX
events that have been registered. |
org.w3c.dom.Document |
DOMOutputter.output(Document document)
This converts the JDOM
Document parameter to a DOM Document,
returning the DOM version. |
org.w3c.dom.Attr |
DOMOutputter.output(org.w3c.dom.Document basedoc,
Attribute attribute)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
org.w3c.dom.CDATASection |
DOMOutputter.output(org.w3c.dom.Document basedoc,
CDATA cdata)
This converts the JDOM
CDATA parameter to a DOM CDATASection
Node, returning the DOM version. |
org.w3c.dom.Comment |
DOMOutputter.output(org.w3c.dom.Document basedoc,
Comment comment)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
org.w3c.dom.Element |
DOMOutputter.output(org.w3c.dom.Document basedoc,
Element element)
This converts the JDOM
Element parameter to a DOM Element,
returning the DOM version. |
org.w3c.dom.EntityReference |
DOMOutputter.output(org.w3c.dom.Document basedoc,
EntityRef entity)
This converts the JDOM
EntityRef parameter to a DOM
EntityReference Node, returning the DOM version. |
java.util.List<org.w3c.dom.Node> |
DOMOutputter.output(org.w3c.dom.Document basedoc,
java.util.List<? extends Content> list)
This converts the list of JDOM
Content in to a list of DOM
Nodes, returning the DOM version. |
org.w3c.dom.ProcessingInstruction |
DOMOutputter.output(org.w3c.dom.Document basedoc,
ProcessingInstruction pi)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
org.w3c.dom.Text |
DOMOutputter.output(org.w3c.dom.Document basedoc,
Text text)
This converts the JDOM
Text parameter to a DOM Text Node,
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.
|
org.w3c.dom.Element |
DOMOutputter.output(Element element)
This converts the JDOM
Element parameter to a DOM Element,
returning the DOM version. |
org.w3c.dom.EntityReference |
DOMOutputter.output(EntityRef entity)
This converts the JDOM
EntityRef parameter to a DOM
EntityReference Node, returning the DOM version. |
void |
SAXOutputter.output(java.util.List<? extends Content> nodes)
This will output a list of JDOM nodes as a document, firing off the SAX
events that have been registered.
|
java.util.List<org.w3c.dom.Node> |
DOMOutputter.output(java.util.List<? extends Content> list)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
org.w3c.dom.ProcessingInstruction |
DOMOutputter.output(ProcessingInstruction pi)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
org.w3c.dom.Text |
DOMOutputter.output(Text text)
This converts the JDOM
Text parameter to a DOM Text Node,
returning the DOM version. |
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(java.util.List<? extends Content> 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 | Method and Description |
---|---|
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
CDATA cdata)
Print out a
node. |
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
CDATA cdata) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
Comment comment)
Print out a
. |
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
Comment comment) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
DocType doctype)
Print out the
. |
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
DocType doctype) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
Document doc)
This will print the
to the given SAXTarget. |
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
Document doc) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
Element element)
|
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
Element element) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
EntityRef entity)
Print out a
. |
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
EntityRef entity) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
java.util.List<? extends Content> list)
This will handle printing out a list of nodes.
|
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
java.util.List<? extends Content> list) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
ProcessingInstruction pi)
Print out a
. |
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
ProcessingInstruction pi) |
void |
SAXOutputProcessor.process(SAXTarget out,
Format format,
Text text)
Print out a
node. |
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
Text text) |
void |
SAXOutputProcessor.processAsDocument(SAXTarget out,
Format format,
Element element)
|
void |
AbstractSAXOutputProcessor.processAsDocument(SAXTarget out,
Format format,
Element node) |
void |
SAXOutputProcessor.processAsDocument(SAXTarget out,
Format format,
java.util.List<? extends Content> list)
This will handle printing out a list of nodes that is encapsulated in
start/end Document SAX events.
|
void |
AbstractSAXOutputProcessor.processAsDocument(SAXTarget out,
Format format,
java.util.List<? extends Content> nodes) |
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(java.lang.String path)
Deprecated.
Creates a new XPath wrapper object, compiling the specified
XPath expression.
|
abstract java.lang.Number |
XPath.numberValueOf(java.lang.Object context)
Deprecated.
Returns the number value of the first node selected by applying
the wrapped XPath expression to the given context.
|
abstract java.util.List<?> |
XPath.selectNodes(java.lang.Object context)
Deprecated.
Evaluates the wrapped XPath expression and returns the list
of selected items.
|
static java.util.List<?> |
XPath.selectNodes(java.lang.Object context,
java.lang.String path)
Deprecated.
Evaluates an XPath expression and returns the list of selected
items.
|
abstract java.lang.Object |
XPath.selectSingleNode(java.lang.Object context)
Deprecated.
Evaluates the wrapped XPath expression and returns the first
entry in the list of selected nodes (or atomics).
|
static java.lang.Object |
XPath.selectSingleNode(java.lang.Object context,
java.lang.String path)
Deprecated.
Evaluates the wrapped XPath expression and returns the first
entry in the list of selected nodes (or atomics).
|
static void |
XPath.setXPathClass(java.lang.Class<? extends XPath> aClass)
Deprecated.
Sets the concrete XPath subclass to use when allocating XPath
instances.
|
abstract java.lang.String |
XPath.valueOf(java.lang.Object context)
Deprecated.
Returns the string value of the first node selected by applying
the wrapped XPath expression to the given context.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
JDOMXPath.numberValueOf(java.lang.Object context)
Deprecated.
Returns the number value of the first item selected by applying the
wrapped XPath expression to the given context.
|
java.util.List<?> |
JDOMXPath.selectNodes(java.lang.Object context)
Deprecated.
Evaluates the wrapped XPath expression and returns the list of selected
items.
|
java.lang.Object |
JDOMXPath.selectSingleNode(java.lang.Object context)
Deprecated.
Evaluates the wrapped XPath expression and returns the first entry in the
list of selected nodes (or atomics).
|
java.lang.String |
JDOMXPath.valueOf(java.lang.Object context)
Deprecated.
Returns the string value of the first node selected by applying the
wrapped XPath expression to the given context.
|
Constructor and Description |
---|
JDOMXPath(java.lang.String expr)
Deprecated.
Creates a new XPath wrapper object, compiling the specified XPath
expression.
|
Copyright © 2021 Jason Hunter, Brett McLaughlin. All Rights Reserved.