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 |
---|---|
Document |
DOMAdapter.createDocument()
This creates an empty
Document object based
on a specific parser implementation. |
Document |
JAXPDOMAdapter.createDocument()
This creates an empty
Document object based
on the current JAXP 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. |
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.
|
Document |
StAXEventBuilder.build(XMLEventReader events)
This builds a document from the supplied
XMLEventReader.
|
Document |
StAXStreamBuilder.build(XMLStreamReader reader)
This builds a document from the supplied
XMLStreamReader.
|
SAXEngine |
SAXBuilder.buildEngine()
This method builds a new and reusable
SAXEngine . |
List<Content> |
StAXStreamBuilder.buildFragments(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(XMLReader parser,
SAXHandler contentHandler)
This configures the XMLReader to be used for reading the XML document.
|
protected XMLReader |
SAXBuilder.createParser()
Allow overriding classes access to the Parser before it is used in a
SAXBuilderEngine.
|
Content |
StAXStreamBuilder.fragment(XMLStreamReader reader)
Read the current XML Fragment from the XMLStreamReader.
|
Modifier and Type | Method and Description |
---|---|
Document |
SAXEngine.build(File file)
This builds a document from the supplied filename.
|
Document |
SAXBuilderEngine.build(File file) |
Document |
SAXEngine.build(InputSource in)
This builds a document from the supplied input source.
|
Document |
SAXBuilderEngine.build(InputSource in) |
Document |
SAXEngine.build(InputStream in)
This builds a document from the supplied input stream.
|
Document |
SAXBuilderEngine.build(InputStream in) |
Document |
SAXEngine.build(InputStream in,
String systemId)
This builds a document from the supplied input stream.
|
Document |
SAXBuilderEngine.build(InputStream in,
String systemId) |
Document |
SAXEngine.build(Reader characterStream)
This builds a document from the supplied Reader.
|
Document |
SAXBuilderEngine.build(Reader characterStream) |
Document |
SAXEngine.build(Reader characterStream,
String systemId)
This builds a document from the supplied Reader.
|
Document |
SAXBuilderEngine.build(Reader characterStream,
String systemId) |
Document |
SAXEngine.build(String systemId)
This builds a document from the supplied URI.
|
Document |
SAXBuilderEngine.build(String systemId) |
Document |
SAXEngine.build(URL url)
This builds a document from the supplied URL.
|
Document |
SAXBuilderEngine.build(URL url) |
XMLReader |
XMLReaderJAXPFactory.createXMLReader() |
XMLReader |
AbstractReaderSchemaFactory.createXMLReader() |
XMLReader |
XMLReaders.createXMLReader()
Get a new XMLReader from this JAXP-based
XMLReaderJDOMFactory . |
XMLReader |
XMLReaderSAX2Factory.createXMLReader() |
XMLReader |
XMLReaderJDOMFactory.createXMLReader()
Return a new XMLReader according to the implementation of this
XMLReaderJDOMFactory instance.
|
Constructor and Description |
---|
AbstractReaderXSDFactory(SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
File... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from File references.
|
AbstractReaderXSDFactory(SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
Source... sources)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from Transform Source references.
|
AbstractReaderXSDFactory(SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
String... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from SystemID references.
|
AbstractReaderXSDFactory(SAXParserFactory fac,
AbstractReaderXSDFactory.SchemaFactoryProvider sfp,
URL... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from URL references.
|
XMLReaderXSDFactory(File... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from File references.
|
XMLReaderXSDFactory(Source... sources)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from Transform Source references.
|
XMLReaderXSDFactory(String... systemid)
Create an XML Schema validating XMLReader factory using one or more XSD
sources from SystemID references.
|
XMLReaderXSDFactory(String factoryClassName,
ClassLoader classloader,
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(String factoryClassName,
ClassLoader classloader,
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(String factoryClassName,
ClassLoader classloader,
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(String factoryClassName,
ClassLoader classloader,
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(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(String input,
JDOMFactory factory)
Parse out a DOCTYPE declaration as supplied by the standard StAX
readers.
|
Modifier and Type | Method and Description |
---|---|
Attr |
DOMOutputter.output(Attribute attribute)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
CDATASection |
DOMOutputter.output(CDATA cdata)
This converts the JDOM
CDATA parameter to a DOM CDATASection
Node, returning the DOM version. |
Comment |
DOMOutputter.output(Comment comment)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
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. |
Document |
DOMOutputter.output(Document document)
This converts the JDOM
Document parameter to a DOM Document,
returning the DOM version. |
Attr |
DOMOutputter.output(Document basedoc,
Attribute attribute)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
CDATASection |
DOMOutputter.output(Document basedoc,
CDATA cdata)
This converts the JDOM
CDATA parameter to a DOM CDATASection
Node, returning the DOM version. |
Comment |
DOMOutputter.output(Document basedoc,
Comment comment)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
Element |
DOMOutputter.output(Document basedoc,
Element element)
This converts the JDOM
Element parameter to a DOM Element,
returning the DOM version. |
EntityReference |
DOMOutputter.output(Document basedoc,
EntityRef entity)
This converts the JDOM
EntityRef parameter to a DOM
EntityReference Node, returning the DOM version. |
List<Node> |
DOMOutputter.output(Document basedoc,
List<? extends Content> list)
This converts the list of JDOM
Content in to a list of DOM
Nodes, returning the DOM version. |
ProcessingInstruction |
DOMOutputter.output(Document basedoc,
ProcessingInstruction pi)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
Text |
DOMOutputter.output(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.
|
Element |
DOMOutputter.output(Element element)
This converts the JDOM
Element parameter to a DOM Element,
returning the DOM version. |
EntityReference |
DOMOutputter.output(EntityRef entity)
This converts the JDOM
EntityRef parameter to a DOM
EntityReference Node, returning the DOM version. |
void |
SAXOutputter.output(List<? extends Content> nodes)
This will output a list of JDOM nodes as a document, firing off the SAX
events that have been registered.
|
List<Node> |
DOMOutputter.output(List<? extends Content> list)
This converts the JDOM
Attribute parameter to a DOM Attr
Node, returning the DOM version. |
ProcessingInstruction |
DOMOutputter.output(ProcessingInstruction pi)
This converts the JDOM
ProcessingInstruction parameter to a
DOM ProcessingInstruction, returning the DOM version. |
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(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,
List<? extends Content> list)
This will handle printing out a list of nodes.
|
void |
AbstractSAXOutputProcessor.process(SAXTarget out,
Format format,
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,
List<? extends Content> list)
This will handle printing out a list of nodes thats encapsulated in
start/end Document SAX events.
|
void |
AbstractSAXOutputProcessor.processAsDocument(SAXTarget out,
Format format,
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(String path)
Deprecated.
Creates a new XPath wrapper object, compiling the specified
XPath expression.
|
abstract Number |
XPath.numberValueOf(Object context)
Deprecated.
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)
Deprecated.
Evaluates the wrapped XPath expression and returns the list
of selected items.
|
static List<?> |
XPath.selectNodes(Object context,
String path)
Deprecated.
Evaluates an XPath expression and returns the list of selected
items.
|
abstract Object |
XPath.selectSingleNode(Object context)
Deprecated.
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)
Deprecated.
Evaluates the wrapped XPath expression and returns the first
entry in the list of selected nodes (or atomics).
|
static void |
XPath.setXPathClass(Class<? extends XPath> aClass)
Deprecated.
Sets the concrete XPath subclass to use when allocating XPath
instances.
|
abstract String |
XPath.valueOf(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 |
---|---|
Number |
JDOMXPath.numberValueOf(Object context)
Deprecated.
Returns the number value of the first item selected by applying the
wrapped XPath expression to the given context.
|
List<?> |
JDOMXPath.selectNodes(Object context)
Deprecated.
Evaluates the wrapped XPath expression and returns the list of selected
items.
|
Object |
JDOMXPath.selectSingleNode(Object context)
Deprecated.
Evaluates the wrapped XPath expression and returns the first entry in the
list of selected nodes (or atomics).
|
String |
JDOMXPath.valueOf(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(String expr)
Deprecated.
Creates a new XPath wrapper object, compiling the specified XPath
expression.
|
Copyright ? 2015 Jason Hunter, Brett McLaughlin. All Rights Reserved.