protected static class QuerySources.CompositeNodeFilter extends Object implements NodeCacheIterator.NodeFilter
Modifier | Constructor and Description |
---|---|
protected |
CompositeNodeFilter(NodeCacheIterator.NodeFilter... filters) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueProcessingChildren(CachedNode node,
NodeCache cache)
Determine if for a given node that isn't included by
NodeCacheIterator.NodeFilter.includeNode(CachedNode, NodeCache) , its children
should be processed or not. |
boolean |
includeNode(CachedNode node,
NodeCache cache)
Determine if the supplied node is to be included in the iterator.
|
String |
toString() |
protected CompositeNodeFilter(NodeCacheIterator.NodeFilter... filters)
public boolean includeNode(CachedNode node, NodeCache cache)
NodeCacheIterator.NodeFilter
NodeCacheIterator.NodeFilter.continueProcessingChildren(CachedNode, NodeCache)
method to determine if any of the children of the node should be processed.
By default, this method always returns true.includeNode
in interface NodeCacheIterator.NodeFilter
node
- the node; never nullcache
- the node cache; never nullpublic boolean continueProcessingChildren(CachedNode node, NodeCache cache)
NodeCacheIterator.NodeFilter
NodeCacheIterator.NodeFilter.includeNode(CachedNode, NodeCache)
, its children
should be processed or not.continueProcessingChildren
in interface NodeCacheIterator.NodeFilter
true
if any children of an excluded node should be taken into account, false
otherwise.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.