Uses of Class
org.jdom2.Content
-
Packages that use Content Package Description org.jdom2 Classes representing the components of an XML document.org.jdom2.filter Classes to both filter and generically type-cast nodes of a document based on type, name, value, or other aspects, and to boolean AND/OR/NEGATE these rules.org.jdom2.input Classes to build JDOM documents from various sources.org.jdom2.located Extended JDOM Content Classes that contain location coordinates.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. -
-
Uses of Content in org.jdom2
Subclasses of Content in org.jdom2 Modifier and Type Class Description class
CDATA
An XML CDATA section.class
Comment
An XML comment.class
DocType
An XML DOCTYPE declaration.class
Element
An XML element.class
EntityRef
An XML entity reference.class
ProcessingInstruction
An XML processing instruction.class
Text
An XML character sequence.Methods in org.jdom2 with type parameters of type Content Modifier and Type Method Description <F extends Content>
java.util.List<F>Document. getContent(Filter<F> filter)
Return a filtered view of thisDocument
's content.<E extends Content>
java.util.List<E>Element. getContent(Filter<E> filter)
Return a filter view of thisElement
's content.<E extends Content>
java.util.List<E>Parent. getContent(Filter<E> filter)
Returns as aList
the content of this parent that matches the supplied filter.<F extends Content>
IteratorIterable<F>Document. getDescendants(Filter<F> filter)
Returns an iterator that walks over all descendants in document order applying the Filter to return only elements that match the filter rule.<F extends Content>
IteratorIterable<F>Element. getDescendants(Filter<F> filter)
Returns an iterator that walks over all descendants in document order applying the Filter to return only content that match the filter rule.<E extends Content>
IteratorIterable<E>Parent. getDescendants(Filter<E> filter)
Returns anIterator
that walks over all descendants in document order applying the Filter to return only content that match the filter rule.<F extends Content>
java.util.List<F>Document. removeContent(Filter<F> filter)
Remove all child content from this parent matching the supplied filter.<F extends Content>
java.util.List<F>Element. removeContent(Filter<F> filter)
Remove all child content from this parent matching the supplied filter.<E extends Content>
java.util.List<E>Parent. removeContent(Filter<E> filter)
Removes from this parent all child content matching the given filter and returns a list of the detached children.<E extends Content>
voidElement. sortContent(Filter<E> filter, java.util.Comparator<? super E> comparator)
Sort the child content of this Element that matches the Filter, using a mechanism that is safe for JDOM content.Methods in org.jdom2 that return Content Modifier and Type Method Description Content
Content. clone()
Content
Content. detach()
Detaches this child from its parent or does nothing if the child has no parent.Content
Document. getContent(int index)
Content
Element. getContent(int index)
Content
Parent. getContent(int index)
Returns the child at the given index.Content
Document. removeContent(int index)
Content
Element. removeContent(int index)
Content
Parent. removeContent(int index)
Removes and returns the child at the given index, or returns null if there's no such child.protected Content
Content. setParent(Parent parent)
Sets the parent of this Content.Methods in org.jdom2 that return types with arguments of type Content Modifier and Type Method Description java.util.List<Content>
Document. cloneContent()
java.util.List<Content>
Element. cloneContent()
java.util.List<Content>
Parent. cloneContent()
Returns a list containing detached clones of this parent's content list.java.util.List<Content>
Document. getContent()
This will return all content for theDocument
.java.util.List<Content>
Element. getContent()
This returns the full content of the element as a List which may contain objects of typeText
,Element
,Comment
,ProcessingInstruction
,CDATA
, andEntityRef
.java.util.List<Content>
Parent. getContent()
Returns the full content of this parent as aList
which contains objects of typeContent
.IteratorIterable<Content>
Document. getDescendants()
Returns an iterator that walks over all descendants in document order.IteratorIterable<Content>
Element. getDescendants()
Returns an iterator that walks over all descendants in document order.IteratorIterable<Content>
Parent. getDescendants()
Returns anIterator
that walks over all descendants in document order.java.util.List<Content>
Document. removeContent()
Removes all child content from this parent.java.util.List<Content>
Element. removeContent()
Removes all child content from this parent.java.util.List<Content>
Parent. removeContent()
Removes all content from this parent and returns the detached children.Methods in org.jdom2 with parameters of type Content Modifier and Type Method Description void
DefaultJDOMFactory. addContent(Parent parent, Content child)
Document
Document. addContent(int index, Content child)
Inserts the child into the content list at the given index.Document
Document. addContent(Content child)
Appends the child to the end of the content list.Element
Element. addContent(int index, Content child)
Inserts the child into the content list at the given index.Element
Element. addContent(Content child)
Appends the child to the end of the element's content list.void
JDOMFactory. addContent(Parent parent, Content content)
This will add the specified content to the specified parent instanceParent
Parent. addContent(int index, Content child)
Inserts the child into the content list at the given index.Parent
Parent. addContent(Content child)
Appends the child to the end of the content list.void
UncheckedJDOMFactory. addContent(Parent parent, Content child)
void
Document. canContainContent(Content child, int index, boolean replace)
void
Element. canContainContent(Content child, int index, boolean replace)
void
Parent. canContainContent(Content content, int index, boolean replace)
Test whether this Parent instance can contain the specified content at the specified position.int
Document. indexOf(Content child)
int
Element. indexOf(Content child)
int
Parent. indexOf(Content child)
Returns the index of the supplied child in the content list, or -1 if not a child of this parent.boolean
Document. removeContent(Content child)
boolean
Element. removeContent(Content child)
boolean
Parent. removeContent(Content child)
Removes a single child node from the content list.Document
Document. setContent(int index, Content child)
Replace the current child the given index with the supplied child.Document
Document. setContent(Content child)
Set this document's content to be the supplied child.Element
Element. setContent(int index, Content child)
Replace the current child the given index with the supplied child.Element
Element. setContent(Content child)
Set this element's content to be the supplied child.Method parameters in org.jdom2 with type arguments of type Content Modifier and Type Method Description Document
Document. addContent(int index, java.util.Collection<? extends Content> c)
Inserts the content in a collection into the content list at the given index.Document
Document. addContent(java.util.Collection<? extends Content> c)
Appends all children in the given collection to the end of the content list.Element
Element. addContent(int index, java.util.Collection<? extends Content> newContent)
Inserts the content in a collection into the content list at the given index.Element
Element. addContent(java.util.Collection<? extends Content> newContent)
Appends all children in the given collection to the end of the content list.Parent
Parent. addContent(int index, java.util.Collection<? extends Content> c)
Inserts the content in a collection into the content list at the given index.Parent
Parent. addContent(java.util.Collection<? extends Content> c)
Appends all children in the given collection to the end of the content list.Document
Document. setContent(int index, java.util.Collection<? extends Content> collection)
Replace the child at the given index with the supplied collection.Document
Document. setContent(java.util.Collection<? extends Content> newContent)
This sets the content of theDocument
.Parent
Element. setContent(int index, java.util.Collection<? extends Content> newContent)
Replace the child at the given index with the supplied collection.Element
Element. setContent(java.util.Collection<? extends Content> newContent)
This sets the content of the element.void
Element. sortContent(java.util.Comparator<? super Content> comparator)
Sort the contents of this Element using a mechanism that is safe for JDOM content.Constructor parameters in org.jdom2 with type arguments of type Content Constructor Description Document(java.util.List<? extends Content> content)
This will create a newDocument
, with the supplied list of content, and a
declaration only if the content contains a DocType instance.DocType
-
Uses of Content in org.jdom2.filter
Methods in org.jdom2.filter that return Content Modifier and Type Method Description Content
ContentFilter. filter(java.lang.Object obj)
Check to see if the object matches according to the filter mask.Methods in org.jdom2.filter that return types with arguments of type Content Modifier and Type Method Description static Filter<Content>
Filters. content()
Return a Filter that matches anyContent
data.Filter<? extends Content>
AbstractFilter. or(Filter<?> filter)
-
Uses of Content in org.jdom2.input
Methods in org.jdom2.input that return Content Modifier and Type Method Description Content
StAXStreamBuilder. fragment(javax.xml.stream.XMLStreamReader reader)
Read the current XML Fragment from the XMLStreamReader.Methods in org.jdom2.input that return types with arguments of type Content Modifier and Type Method Description 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. -
Uses of Content in org.jdom2.located
Subclasses of Content in org.jdom2.located Modifier and Type Class Description class
LocatedCDATA
An XML CDATA section.class
LocatedComment
An XML comment.class
LocatedDocType
An XML DOCTYPE declaration.class
LocatedElement
This Element specialization contains the location information as parsed.class
LocatedEntityRef
An XML entity reference.class
LocatedProcessingInstruction
An XML processing instruction.class
LocatedText
An XML character sequence. -
Uses of Content in org.jdom2.output
Methods in org.jdom2.output with parameters of type Content Modifier and Type Method Description 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.Method parameters in org.jdom2.output with type arguments of type Content Modifier and Type Method Description java.util.List<org.w3c.dom.Node>
DOMOutputter. output(java.util.List<? extends Content> list)
This converts the JDOMAttribute
parameter to a DOM Attr 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 JDOMContent
in to a list of DOM Nodes, 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.void
StAXEventOutputter. output(java.util.List<? extends Content> list, javax.xml.stream.util.XMLEventConsumer out)
This will handle printing out a list of nodes.void
StAXStreamOutputter. output(java.util.List<? extends Content> list, javax.xml.stream.XMLStreamWriter out)
This will handle printing out a list of nodes.void
XMLOutputter. output(java.util.List<? extends Content> list, java.io.OutputStream out)
This will handle printing out a list of nodes.void
XMLOutputter. output(java.util.List<? extends Content> list, java.io.Writer out)
This will handle printing out a list of nodes.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.java.lang.String
XMLOutputter. outputString(java.util.List<? extends Content> list)
Return a string representing a List ofContent
nodes. -
Uses of Content in org.jdom2.output.support
Methods in org.jdom2.output.support that return Content Modifier and Type Method Description protected Content
AbstractFormattedWalker. get(int index)
Get the content at a position in the input content.Content
AbstractFormattedWalker. next()
Content
Walker. next()
Similar to an Iterator, but null return values need special treatment.Content
WalkerPRESERVE. next()
Methods in org.jdom2.output.support with parameters of type Content Modifier and Type Method Description void
AbstractFormattedWalker.MultiText. appendRaw(Content c)
Add some JDOM Content (typically an EntityRef) that will be treated as part of the Text-like sequence.protected org.w3c.dom.Node
AbstractDOMOutputProcessor. helperContentDispatcher(FormatStack fstack, NamespaceStack nstack, org.w3c.dom.Document basedoc, Content content)
This method contains code which is reused in a number of places.Method parameters in org.jdom2.output.support with type arguments of type Content Modifier and Type Method Description protected Walker
AbstractOutputProcessor. buildWalker(FormatStack fstack, java.util.List<? extends Content> content, boolean escape)
Create a walker to process Content List values.java.util.List<org.w3c.dom.Node>
AbstractDOMOutputProcessor. process(org.w3c.dom.Document basedoc, Format format, java.util.List<? extends Content> list)
void
AbstractSAXOutputProcessor. process(SAXTarget out, Format format, java.util.List<? extends Content> list)
void
AbstractStAXEventProcessor. process(javax.xml.stream.util.XMLEventConsumer out, Format format, javax.xml.stream.XMLEventFactory eventfactory, java.util.List<? extends Content> list)
void
AbstractStAXStreamProcessor. process(javax.xml.stream.XMLStreamWriter out, Format format, java.util.List<? extends Content> list)
void
AbstractXMLOutputProcessor. process(java.io.Writer out, Format format, java.util.List<? extends Content> list)
java.util.List<org.w3c.dom.Node>
DOMOutputProcessor. process(org.w3c.dom.Document basedoc, Format format, java.util.List<? extends Content> list)
This will convert the list of JDOM
using the given DOM Document to create the resulting list of DOM Nodes.Content
void
SAXOutputProcessor. process(SAXTarget out, Format format, java.util.List<? extends Content> list)
This will handle printing out a list of nodes.void
StAXEventProcessor. process(javax.xml.stream.util.XMLEventConsumer out, Format format, javax.xml.stream.XMLEventFactory eventfactory, java.util.List<? extends Content> list)
This will handle printing out a list of nodes.void
StAXStreamProcessor. process(javax.xml.stream.XMLStreamWriter out, Format format, java.util.List<? extends Content> list)
This will handle printing out a list of nodes.void
XMLOutputProcessor. process(java.io.Writer out, Format format, java.util.List<? extends Content> list)
This will handle printing out a list of nodes.void
AbstractSAXOutputProcessor. processAsDocument(SAXTarget out, Format format, java.util.List<? extends Content> nodes)
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.Constructor parameters in org.jdom2.output.support with type arguments of type Content Constructor Description AbstractFormattedWalker(java.util.List<? extends Content> xx, FormatStack fstack, boolean doescape)
Create a Walker that preserves all content in its raw state.WalkerNORMALIZE(java.util.List<? extends Content> content, FormatStack fstack, boolean escape)
Create the Trimmed walker instance.WalkerPRESERVE(java.util.List<? extends Content> content)
Create a Walker that preserves all content in its raw state.WalkerTRIM(java.util.List<? extends Content> content, FormatStack fstack, boolean escape)
Create the Trimmed walker instance.WalkerTRIM_FULL_WHITE(java.util.List<? extends Content> content, FormatStack fstack, boolean escape)
Create the Trimmed walker instance. -
Uses of Content in org.jdom2.transform
Methods in org.jdom2.transform that return types with arguments of type Content Modifier and Type Method Description java.util.List<? extends Content>
JDOMSource. getNodes()
Returns the source node list used by this TrAX source.java.util.List<Content>
JDOMResult. getResult()
Returns the result of an XSL Transformation as a list of JDOM nodes.java.util.List<Content>
XSLTransformer. transform(java.util.List<Content> inputNodes)
Transforms the given input nodes to a list of output nodes.Method parameters in org.jdom2.transform with type arguments of type Content Modifier and Type Method Description void
JDOMSource. setNodes(java.util.List<? extends Content> source)
Sets the source node list used by this TrAX source.void
JDOMResult. setResult(java.util.List<Content> result)
Sets the object(s) produced as result of an XSL Transformation.java.util.List<Content>
XSLTransformer. transform(java.util.List<Content> inputNodes)
Transforms the given input nodes to a list of output nodes.Constructor parameters in org.jdom2.transform with type arguments of type Content Constructor Description JDOMSource(java.util.List<? extends Content> source)
Creates a JDOM TrAX source wrapping a list of JDOM nodes.
-