Uses of Interface
org.jdom2.filter.Filter
-
Packages that use Filter Package Description 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. -
-
Uses of Filter in org.jdom2
Methods in org.jdom2 with parameters of type Filter Modifier and Type Method Description <F extends Content>
java.util.List<F>Document. getContent(Filter<F> filter)Return a filtered view of thisDocument's content.<E extends Content>
java.util.List<E>Element. getContent(Filter<E> filter)Return a filter view of thisElement's content.<E extends Content>
java.util.List<E>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.<F extends Content>
java.util.List<F>Document. removeContent(Filter<F> filter)Remove all child content from this parent matching the supplied filter.<F extends Content>
java.util.List<F>Element. removeContent(Filter<F> filter)Remove all child content from this parent matching the supplied filter.<E extends Content>
java.util.List<E>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, 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 Modifier and Type Class Description classAbstractFilter<T>Partial implementation ofFilter.classAttributeFilterA Filter that only matchesAttributeobjects.classContentFilterA general purpose Filter able to represent all legal JDOM objects or a specific subset.classElementFilterA Filter that only matchesElementobjects.Methods in org.jdom2.filter that return Filter Modifier and Type Method Description Filter<T>AbstractFilter. and(Filter<?> filter)Filter<T>Filter. and(Filter<?> filter)Creates an ANDing filter.static Filter<Attribute>Filters. attribute()Return a Filter that matches anyAttributedata.static Filter<Attribute>Filters. attribute(java.lang.String name)Return a Filter that matches anyAttributedata with the specified name.static Filter<Attribute>Filters. attribute(java.lang.String name, Namespace ns)Return a Filter that matches anyAttributedata with the specified name and namespace.static Filter<Attribute>Filters. attribute(Namespace ns)Return a Filter that matches anyAttributedata with the specified namespace.static Filter<CDATA>Filters. cdata()Return a Filter that matches anyCDATAdata.static Filter<Comment>Filters. comment()Return a Filter that matches anyCommentdata.static Filter<Content>Filters. content()Return a Filter that matches anyContentdata.static Filter<DocType>Filters. doctype()Return a Filter that matches anyDocTypedata.static Filter<Document>Filters. document()Return a Filter that matches anyDocumentdata.static Filter<Element>Filters. element()Return a Filter that matches anyElementdata.static Filter<Element>Filters. element(java.lang.String name)Return a Filter that matches anyElementdata with the specified name.static Filter<Element>Filters. element(java.lang.String name, Namespace ns)Return a Filter that matches anyElementdata with the specified name and Namespace.static Filter<Element>Filters. element(Namespace ns)Return a Filter that matches anyElementdata with the specified Namespace.static Filter<EntityRef>Filters. entityref()Return a Filter that matches anyEntityRefdata.static Filter<java.lang.Boolean>Filters. fboolean()Return a Filter that matches any Boolean data.static <F> Filter<F>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<?>AbstractFilter. negate()Filter<? extends java.lang.Object>Filter. negate()Creates an 'inverse' filterFilter<? extends Content>AbstractFilter. or(Filter<?> filter)Filter<? extends java.lang.Object>Filter. or(Filter<?> filter)Creates an ORing filterstatic Filter<ProcessingInstruction>Filters. processinginstruction()Return a Filter that matches anyProcessingInstructiondata.<R> Filter<R>AbstractFilter. refine(Filter<R> filter)<R> Filter<R>Filter. refine(Filter<R> filter)This is similar to the and(Filter) method except the generic type is different.static Filter<Text>Filters. text()static Filter<Text>Filters. textOnly()Methods in org.jdom2.filter with parameters of type Filter Modifier and Type Method Description Filter<T>AbstractFilter. and(Filter<?> filter)Filter<T>Filter. and(Filter<?> filter)Creates an ANDing filter.Filter<? extends Content>AbstractFilter. or(Filter<?> filter)Filter<? extends java.lang.Object>Filter. or(Filter<?> filter)Creates an ORing filter<R> Filter<R>AbstractFilter. refine(Filter<R> filter)<R> Filter<R>Filter. refine(Filter<R> filter)This is similar to the and(Filter) method except the generic type is different.
-