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 aListthe 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 anIteratorthat 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 TypeClassDescriptionclassPartial implementation ofFilter.classA Filter that only matchesAttributeobjects.classA general purpose Filter able to represent all legal JDOM objects or a specific subset.classA Filter that only matchesElementobjects.Methods in org.jdom2.filter that return FilterModifier and TypeMethodDescriptionCreates an ANDing filter.Filters.attribute()Return a Filter that matches anyAttributedata.Return a Filter that matches anyAttributedata with the specified name.Return a Filter that matches anyAttributedata with the specified name and namespace.Return a Filter that matches anyAttributedata with the specified namespace.Filters.cdata()Return a Filter that matches anyCDATAdata.Filters.comment()Return a Filter that matches anyCommentdata.Filters.content()Return a Filter that matches anyContentdata.Filters.doctype()Return a Filter that matches anyDocTypedata.Filters.document()Return a Filter that matches anyDocumentdata.Filters.element()Return a Filter that matches anyElementdata.Return a Filter that matches anyElementdata with the specified name.Return a Filter that matches anyElementdata with the specified name and Namespace.Return a Filter that matches anyElementdata with the specified Namespace.Filters.entityref()Return a Filter that matches anyEntityRefdata.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 anyProcessingInstructiondata.<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