Package org.jdom2.filter


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.
  • Class
    Description
    Partial implementation of Filter.
    A Filter that only matches Attribute objects.
    A general purpose Filter able to represent all legal JDOM objects or a specific subset.
    A Filter that only matches Element objects.
    A generalized filter to restrict visibility or mutability on a list.
    Factory class of convenience methods to create Filter instances of common types.