|
JDOM 2.0.2 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Filter | |
---|---|
org.jdom2 | Classes representing the components of an XML document. |
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. |
org.jdom2.xpath | Support for XPath from within JDOM. |
org.jdom2.xpath.jaxen | Support for the Jaxen XPath Library. |
org.jdom2.xpath.util | Classes useful for interfacing the JDOM XPath API to full XPath libraries. |
Uses of Filter in org.jdom2 |
---|
Methods in org.jdom2 with parameters of type Filter | ||
---|---|---|
|
Parent.getContent(Filter<E> filter)
Returns as a List the content of
this parent that matches the supplied filter. |
|
|
Element.getContent(Filter<E> filter)
Return a filter view of this Element 's content. |
|
|
Document.getContent(Filter<F> filter)
Return a filtered view of this Document 's content. |
|
|
Parent.getDescendants(Filter<E> filter)
Returns an Iterator that walks over all descendants
in document order applying the Filter to return only content that
match the filter rule. |
|
|
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. |
|
|
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. |
|
|
Parent.removeContent(Filter<E> filter)
Removes from this parent all child content matching the given filter and returns a list of the detached children. |
|
|
Element.removeContent(Filter<F> filter)
Remove all child content from this parent matching the supplied filter. |
|
|
Document.removeContent(Filter<F> filter)
Remove all child content from this parent matching the supplied filter. |
|
|
Element.sortContent(Filter<E> filter,
java.util.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 Filter | |
---|---|
class |
AbstractFilter<T>
Partial implementation of Filter . |
class |
AttributeFilter
A Filter that only matches Attribute objects. |
class |
ContentFilter
A general purpose Filter able to represent all legal JDOM objects or a specific subset. |
class |
ElementFilter
A Filter that only matches Element objects. |
Methods in org.jdom2.filter that return Filter | ||
---|---|---|
Filter<T> |
Filter.and(Filter<?> filter)
Creates an ANDing filter. |
|
Filter<T> |
AbstractFilter.and(Filter<?> filter)
|
|
static Filter<Attribute> |
Filters.attribute()
Return a Filter that matches any Attribute data. |
|
static Filter<Attribute> |
Filters.attribute(Namespace ns)
Return a Filter that matches any Attribute data with the
specified namespace. |
|
static Filter<Attribute> |
Filters.attribute(java.lang.String name)
Return a Filter that matches any Attribute data with the
specified name. |
|
static Filter<Attribute> |
Filters.attribute(java.lang.String name,
Namespace ns)
Return a Filter that matches any Attribute data with the
specified name and namespace. |
|
static Filter<CDATA> |
Filters.cdata()
Return a Filter that matches any CDATA data. |
|
static Filter<Comment> |
Filters.comment()
Return a Filter that matches any Comment data. |
|
static Filter<Content> |
Filters.content()
Return a Filter that matches any Content data. |
|
static Filter<DocType> |
Filters.doctype()
Return a Filter that matches any DocType data. |
|
static Filter<Document> |
Filters.document()
Return a Filter that matches any Document data. |
|
static Filter<Element> |
Filters.element()
Return a Filter that matches any Element data. |
|
static Filter<Element> |
Filters.element(Namespace ns)
Return a Filter that matches any Element data with the specified
Namespace. |
|
static Filter<Element> |
Filters.element(java.lang.String name)
Return a Filter that matches any Element data with the specified
name. |
|
static Filter<Element> |
Filters.element(java.lang.String name,
Namespace ns)
Return a Filter that matches any Element data with the specified
name and Namespace. |
|
static Filter<EntityRef> |
Filters.entityref()
Return a Filter that matches any EntityRef data. |
|
static Filter<java.lang.Boolean> |
Filters.fboolean()
Return a Filter that matches any Boolean data. |
|
static
|
Filters.fclass(java.lang.Class<F> clazz)
Return a Filter that matches any data of the specified Class. |
|
static Filter<java.lang.Double> |
Filters.fdouble()
Return a Filter that matches any Double data. |
|
static Filter<java.lang.Object> |
Filters.fpassthrough()
Return a filter that does no filtering at all - everything matches. |
|
static Filter<java.lang.String> |
Filters.fstring()
Return a Filter that matches any String data. |
|
Filter<? extends java.lang.Object> |
Filter.negate()
Creates an 'inverse' filter |
|
Filter<?> |
AbstractFilter.negate()
|
|
Filter<? extends java.lang.Object> |
Filter.or(Filter<?> filter)
Creates an ORing filter |
|
Filter<? extends Content> |
AbstractFilter.or(Filter<?> filter)
|
|
static Filter<ProcessingInstruction> |
Filters.processinginstruction()
Return a Filter that matches any ProcessingInstruction data. |
|
|
Filter.refine(Filter<R> filter)
This is similar to the and(Filter) method except the generic type is different. |
|
|
AbstractFilter.refine(Filter<R> filter)
|
|
static Filter<Text> |
Filters.text()
Return a Filter that matches any Text data (which includes
CDATA since that is a subclass of Text). |
|
static Filter<Text> |
Filters.textOnly()
Return a Filter that matches any Text data (excludes
CDATA instances). |
Methods in org.jdom2.filter with parameters of type Filter | ||
---|---|---|
Filter<T> |
Filter.and(Filter<?> filter)
Creates an ANDing filter. |
|
Filter<T> |
AbstractFilter.and(Filter<?> filter)
|
|
Filter<? extends java.lang.Object> |
Filter.or(Filter<?> filter)
Creates an ORing filter |
|
Filter<? extends Content> |
AbstractFilter.or(Filter<?> filter)
|
|
|
Filter.refine(Filter<R> filter)
This is similar to the and(Filter) method except the generic type is different. |
|
|
AbstractFilter.refine(Filter<R> filter)
|
Uses of Filter in org.jdom2.xpath |
---|
Methods in org.jdom2.xpath that return Filter | |
---|---|
Filter<T> |
XPathExpression.getFilter()
Get the Filter<T> used to coerce the raw XPath results in to
the correct Generic type. |
Filter<T> |
XPathBuilder.getFilter()
Get the Filter instance used for coercion. |
Methods in org.jdom2.xpath with parameters of type Filter | ||
---|---|---|
|
XPathFactory.compile(java.lang.String expression,
Filter<T> filter)
Create a XPathExpression<T> instance from this factory. |
|
|
XPathFactory.compile(java.lang.String expression,
Filter<T> filter,
java.util.Map<java.lang.String,java.lang.Object> variables,
java.util.Collection<Namespace> namespaces)
Create a XPathExpression<> instance from this factory. |
|
abstract
|
XPathFactory.compile(java.lang.String expression,
Filter<T> filter,
java.util.Map<java.lang.String,java.lang.Object> variables,
Namespace... namespaces)
Create a Compiled XPathExpression<> instance from this factory. |
Constructors in org.jdom2.xpath with parameters of type Filter | |
---|---|
XPathBuilder(java.lang.String expression,
Filter<T> filter)
Create a skeleton XPathBuilder with the given expression and result filter. |
Uses of Filter in org.jdom2.xpath.jaxen |
---|
Methods in org.jdom2.xpath.jaxen with parameters of type Filter | ||
---|---|---|
|
JaxenXPathFactory.compile(java.lang.String expression,
Filter<T> filter,
java.util.Map<java.lang.String,java.lang.Object> variables,
Namespace... namespaces)
|
Uses of Filter in org.jdom2.xpath.util |
---|
Methods in org.jdom2.xpath.util that return Filter | |
---|---|
Filter<T> |
AbstractXPathCompiled.getFilter()
|
Constructors in org.jdom2.xpath.util with parameters of type Filter | |
---|---|
AbstractXPathCompiled(java.lang.String query,
Filter<T> filter,
java.util.Map<java.lang.String,java.lang.Object> variables,
Namespace[] namespaces)
Construct an XPathExpression. |
|
JDOM 2.0.2 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |