Top Description Interfaces Classes
[default module]

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

Modifier and TypeInterface and Description
public interface
Filter<
The Generic type of content returned by this Filter
T
>

A generalized filter to restrict visibility or mutability on a list.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractFilter<
The Generic type of content returned by this Filter
T
>

Partial implementation of Filter.

pack-priv class
AndFilter<
The Generic type of content returned by this Filter
T
>

Allow two filters to be chained together with a logical and operation.

public class
AttributeFilter

A Filter that only matches org.jdom2.Attribute objects.

pack-priv class
ClassFilter<
The generic type of the filtered data.
T
>

Filter input according to the input class.

public class
ContentFilter

A general purpose Filter able to represent all legal JDOM objects or a specific subset.

public class
ElementFilter

A Filter that only matches org.jdom2.Element objects.

public class
Filters

Factory class of convenience methods to create Filter instances of common types.

pack-priv class
NegateFilter

Filter that is the logical negation operation of another filter.

pack-priv class
OrFilter

Allow two filters to be chained together with a logical or operation.

pack-priv class
PassThroughFilter

A filter that does not actual filtering.

pack-priv class
TextOnlyFilter

A filter that matches Text, but not CDATA content.