Uses of Interface
org.jdom2.filter.Filter
Packages that use Filter
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.
-
Uses of Filter in org.jdom2
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. -
Uses of Filter in org.jdom2.filter
Classes in org.jdom2.filter that implement FilterModifier and TypeClassDescriptionclass
Partial implementation ofFilter
.class
A Filter that only matchesAttribute
objects.class
A general purpose Filter able to represent all legal JDOM objects or a specific subset.class
A Filter that only matchesElement
objects.Methods in org.jdom2.filter that return FilterModifier and TypeMethodDescriptionCreates an ANDing filter.Filters.attribute()
Return a Filter that matches anyAttribute
data.Return a Filter that matches anyAttribute
data with the specified name.Return a Filter that matches anyAttribute
data with the specified name and namespace.Return a Filter that matches anyAttribute
data with the specified namespace.Filters.cdata()
Return a Filter that matches anyCDATA
data.Filters.comment()
Return a Filter that matches anyComment
data.Filters.content()
Return a Filter that matches anyContent
data.Filters.doctype()
Return a Filter that matches anyDocType
data.Filters.document()
Return a Filter that matches anyDocument
data.Filters.element()
Return a Filter that matches anyElement
data.Return a Filter that matches anyElement
data with the specified name.Return a Filter that matches anyElement
data with the specified name and Namespace.Return a Filter that matches anyElement
data with the specified Namespace.Filters.entityref()
Return a Filter that matches anyEntityRef
data.Filters.fboolean()
Return a Filter that matches any Boolean data.static final <F> Filter
<F> Return a Filter that matches any data of the specified Class.Filters.fdouble()
Return a Filter that matches any Double data.Filters.fpassthrough()
Return a filter that does no filtering at all - everything matches.Filters.fstring()
Return a Filter that matches any String data.final Filter
<?> AbstractFilter.negate()
Filter.negate()
Creates an 'inverse' filterCreates an ORing filterstatic final Filter
<ProcessingInstruction> Filters.processinginstruction()
Return a Filter that matches anyProcessingInstruction
data.<R> Filter
<R> <R> Filter
<R> This is similar to the and(Filter) method except the generic type is different.Filters.text()
Filters.textOnly()
Methods in org.jdom2.filter with parameters of type Filter