Package 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. Filters can be used in methods like
getContent(Filter) and getDescendants(Filter). Filters are also used
extensively in the XPath API. The
Filters
class provides access
to a large number of useful filters, and also a sampling of generally useful
filters is provided here. Additional filters can be user defined, and that
is made easier by extending thr AbstractFilter class.-
Interface Summary Interface Description Filter<T> A generalized filter to restrict visibility or mutability on a list. -
Class Summary Class Description AbstractFilter<T> Partial implementation ofFilter
.AttributeFilter A Filter that only matchesAttribute
objects.ContentFilter A general purpose Filter able to represent all legal JDOM objects or a specific subset.ElementFilter A Filter that only matchesElement
objects.Filters Factory class of convenience methods to create Filter instances of common types.