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
public class FileFolderNodeFilter extends DepthItemFilter
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 Constructor Description FileFolderNodeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(Item item)Returnstrue.-
Methods inherited from class org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
dump, matches, setMaxDepth, setMinDepth
-
-
-
-
Method Detail
-
matches
public boolean matches(Item item) throws RepositoryException
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.
-
-