Uses of Class
org.jdom2.Content
Packages that use Content
Package
Description
Classes representing the components of an XML document.
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.
Classes to build JDOM documents from various sources.
Extended JDOM Content Classes that contain location coordinates.
Classes to output JDOM documents to various destinations.
Classes used to implement output functionality that are not part of the
actual Output API, but rather part of the implementation.
Classes to help with transformations, based on the JAXP TrAX classes.
-
Uses of Content in org.jdom2
Modifier and TypeClassDescriptionclass
An XML CDATA section.class
An XML comment.class
An XML DOCTYPE declaration.class
An XML element.class
An XML entity reference.class
An XML processing instruction.class
An XML character sequence.Modifier and TypeMethodDescriptionDocument.getContent
(Filter<F> filter) Return a filtered view of thisDocument
's content.Element.getContent
(Filter<E> filter) Return a filter view of thisElement
's content.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.Document.removeContent
(Filter<F> filter) Remove all child content from this parent matching the supplied filter.Element.removeContent
(Filter<F> filter) Remove all child content from this parent matching the supplied filter.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, Comparator<? super E> comparator) Sort the child content of this Element that matches the Filter, using a mechanism that is safe for JDOM content.Modifier and TypeMethodDescriptionContent.clone()
Content.detach()
Detaches this child from its parent or does nothing if the child has no parent.Document.getContent
(int index) Element.getContent
(int index) Parent.getContent
(int index) Returns the child at the given index.Document.removeContent
(int index) Element.removeContent
(int index) Parent.removeContent
(int index) Removes and returns the child at the given index, or returns null if there's no such child.protected Content
Sets the parent of this Content.Modifier and TypeMethodDescriptionDocument.cloneContent()
Element.cloneContent()
Parent.cloneContent()
Returns a list containing detached clones of this parent's content list.Document.getContent()
This will return all content for theDocument
.Element.getContent()
This returns the full content of the element as a List which may contain objects of typeText
,Element
,Comment
,ProcessingInstruction
,CDATA
, andEntityRef
.Parent.getContent()
Document.getDescendants()
Returns an iterator that walks over all descendants in document order.Element.getDescendants()
Returns an iterator that walks over all descendants in document order.Parent.getDescendants()
Returns anIterator
that walks over all descendants in document order.Document.removeContent()
Removes all child content from this parent.Element.removeContent()
Removes all child content from this parent.Parent.removeContent()
Removes all content from this parent and returns the detached children.Modifier and TypeMethodDescriptionvoid
DefaultJDOMFactory.addContent
(Parent parent, Content child) Document.addContent
(int index, Content child) Inserts the child into the content list at the given index.Document.addContent
(Content child) Appends the child to the end of the content list.Element.addContent
(int index, Content child) Inserts the child into the content list at the given index.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.addContent
(int index, Content child) Inserts the child into the content list at the given index.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
int
int
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.setContent
(int index, Content child) Replace the current child the given index with the supplied child.Document.setContent
(Content child) Set this document's content to be the supplied child.Element.setContent
(int index, Content child) Replace the current child the given index with the supplied child.Element.setContent
(Content child) Set this element's content to be the supplied child.Modifier and TypeMethodDescriptionDocument.addContent
(int index, Collection<? extends Content> c) Inserts the content in a collection into the content list at the given index.Document.addContent
(Collection<? extends Content> c) Appends all children in the given collection to the end of the content list.Element.addContent
(int index, Collection<? extends Content> newContent) Inserts the content in a collection into the content list at the given index.Element.addContent
(Collection<? extends Content> newContent) Appends all children in the given collection to the end of the content list.Parent.addContent
(int index, Collection<? extends Content> c) Inserts the content in a collection into the content list at the given index.Parent.addContent
(Collection<? extends Content> c) Appends all children in the given collection to the end of the content list.Document.setContent
(int index, Collection<? extends Content> collection) Replace the child at the given index with the supplied collection.Document.setContent
(Collection<? extends Content> newContent) This sets the content of theDocument
.Element.setContent
(int index, Collection<? extends Content> newContent) Replace the child at the given index with the supplied collection.Element.setContent
(Collection<? extends Content> newContent) This sets the content of the element.void
Element.sortContent
(Comparator<? super Content> comparator) Sort the contents of this Element using a mechanism that is safe for JDOM content. -
Uses of Content in org.jdom2.filter
Methods in org.jdom2.filter that return ContentModifier and TypeMethodDescriptionCheck to see if the object matches according to the filter mask.Methods in org.jdom2.filter that return types with arguments of type Content -
Uses of Content in org.jdom2.input
Methods in org.jdom2.input that return ContentModifier and TypeMethodDescriptionStAXStreamBuilder.fragment
(XMLStreamReader reader) Read the current XML Fragment from the XMLStreamReader.Methods in org.jdom2.input that return types with arguments of type ContentModifier and TypeMethodDescriptionStAXStreamBuilder.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. -
Uses of Content in org.jdom2.located
Subclasses of Content in org.jdom2.locatedModifier and TypeClassDescriptionclass
An XML CDATA section.class
An XML comment.class
An XML DOCTYPE declaration.class
This Element specialization contains the location information as parsed.class
An XML entity reference.class
An XML processing instruction.class
An XML character sequence. -
Uses of Content in org.jdom2.output
Methods in org.jdom2.output with parameters of type ContentModifier and TypeMethodDescriptionvoid
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 ContentModifier and TypeMethodDescriptionThis converts the JDOMAttribute
parameter to a DOM Attr Node, returning the DOM version.This converts the list of JDOMContent
in to a list of DOM Nodes, returning the DOM version.void
This will output a list of JDOM nodes as a document, firing off the SAX events that have been registered.final void
StAXEventOutputter.output
(List<? extends Content> list, XMLEventConsumer out) This will handle printing out a list of nodes.final void
StAXStreamOutputter.output
(List<? extends Content> list, XMLStreamWriter out) This will handle printing out a list of nodes.final void
XMLOutputter.output
(List<? extends Content> list, OutputStream out) This will handle printing out a list of nodes.final void
This will handle printing out a list of nodes.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.final String
XMLOutputter.outputString
(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 ContentModifier and TypeMethodDescriptionprotected final Content
AbstractFormattedWalker.get
(int index) Get the content at a position in the input content.final Content
AbstractFormattedWalker.next()
Walker.next()
Similar to an Iterator, but null return values need special treatment.WalkerPRESERVE.next()
Methods in org.jdom2.output.support with parameters of type ContentModifier and TypeMethodDescriptionvoid
Add some JDOM Content (typically an EntityRef) that will be treated as part of the Text-like sequence.protected Node
AbstractDOMOutputProcessor.helperContentDispatcher
(FormatStack fstack, NamespaceStack nstack, 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 ContentModifier and TypeMethodDescriptionprotected Walker
AbstractOutputProcessor.buildWalker
(FormatStack fstack, List<? extends Content> content, boolean escape) Create a walker to process Content List values.void
void
AbstractStAXEventProcessor.process
(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, List<? extends Content> list) void
AbstractStAXStreamProcessor.process
(XMLStreamWriter out, Format format, List<? extends Content> list) void
This will convert the list of JDOM
using the given DOM Document to create the resulting list of DOM Nodes.Content
void
This will handle printing out a list of nodes.void
StAXEventProcessor.process
(XMLEventConsumer out, Format format, XMLEventFactory eventfactory, List<? extends Content> list) This will handle printing out a list of nodes.void
StAXStreamProcessor.process
(XMLStreamWriter out, Format format, List<? extends Content> list) This will handle printing out a list of nodes.void
This will handle printing out a list of nodes.void
AbstractSAXOutputProcessor.processAsDocument
(SAXTarget out, Format format, List<? extends Content> nodes) void
SAXOutputProcessor.processAsDocument
(SAXTarget out, Format format, 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 ContentModifierConstructorDescriptionAbstractFormattedWalker
(List<? extends Content> xx, FormatStack fstack, boolean doescape) Create a Walker that preserves all content in its raw state.WalkerNORMALIZE
(List<? extends Content> content, FormatStack fstack, boolean escape) Create the Trimmed walker instance.WalkerPRESERVE
(List<? extends Content> content) Create a Walker that preserves all content in its raw state.WalkerTRIM
(List<? extends Content> content, FormatStack fstack, boolean escape) Create the Trimmed walker instance.WalkerTRIM_FULL_WHITE
(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 ContentModifier and TypeMethodDescriptionJDOMSource.getNodes()
Returns the source node list used by this TrAX source.JDOMResult.getResult()
Returns the result of an XSL Transformation as a list of JDOM nodes.Transforms the given input nodes to a list of output nodes.Method parameters in org.jdom2.transform with type arguments of type ContentModifier and TypeMethodDescriptionvoid
Sets the source node list used by this TrAX source.void
Sets the object(s) produced as result of an XSL Transformation.Transforms the given input nodes to a list of output nodes.Constructor parameters in org.jdom2.transform with type arguments of type ContentModifierConstructorDescriptionJDOMSource
(List<? extends Content> source) Creates a JDOM TrAX source wrapping a list of JDOM nodes.