Class FileFolderNodeFilter
java.lang.Object
org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
org.apache.jackrabbit.vault.fs.filter.FileFolderNodeFilter
- All Implemented Interfaces:
Dumpable,Filter,ItemFilter
Defines an filter that matches file/folder like nodes. It matches
all nt:hierarchyNode nodes that have or define a jcr:content
child node.
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.vault.fs.api.ItemFilter
ALL, NONE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
dump, matches, setMaxDepth, setMinDepth
-
Constructor Details
-
FileFolderNodeFilter
public FileFolderNodeFilter()
-
-
Method Details
-
matches
Returnstrue. Subclasses can override to implement something useful that is dependant of the depth. Returnstrueif the item is a node of type nt:hierarchyNode that has or defines a 'jcr:content' child node.- Overrides:
matchesin classDepthItemFilter- Parameters:
item- the item to match- Returns:
trueif the item matches;falseotherwise.- Throws:
RepositoryException- if an error occurs.
-