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 boolean
matches(javax.jcr.Item item)
Returnstrue
.-
Methods inherited from class org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
dump, matches, setMaxDepth, setMinDepth
-
-
-
-
Method Detail
-
matches
public boolean matches(javax.jcr.Item item) throws javax.jcr.RepositoryException
Returnstrue
. Subclasses can override to implement something useful that is dependant of the depth. Returnstrue
if the item is a node of type nt:hierarchyNode that has or defines a 'jcr:content' child node.- Overrides:
matches
in classDepthItemFilter
- Parameters:
item
- the item to match- Returns:
true
if the item matches;false
otherwise.- Throws:
javax.jcr.RepositoryException
- if an error occurs.
-
-