public class VisitorAttributes
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
VisitorAttributes.AcceptAnyFilter |
private static class |
VisitorAttributes.ImmutableVisitorAttributes
Immutable version of the attribues
|
| Modifier and Type | Field and Description |
|---|---|
static VisitorAttributes |
DEFAULT
The default attributes - visit leaves and non-leaves, no recursion, no root
|
private boolean |
ignoreErrors
Whether to ignore individual file errors
|
private boolean |
includeHidden
Whether to include hidden files
|
private boolean |
includeRoot
Whether to include the root
|
static VisitorAttributes |
LEAVES_ONLY
Visit leaves only and do not recurse non-leaf files
|
private boolean |
leavesOnly
Whether to only visit leaves
|
static VisitorAttributes |
RECURSE
Recurse and visit all non-leaf files
|
static VisitorAttributes.AcceptAnyFilter |
RECURSE_ALL
A VirtualFileFilter than accepts any file
|
static VisitorAttributes |
RECURSE_LEAVES_ONLY
Recurse all non-leaf files but only visit leaves
|
private VirtualFileFilter |
recurseFilter
A filter used to control whether a non-leaf is recursive visited
|
| Constructor and Description |
|---|
VisitorAttributes() |
| Modifier and Type | Method and Description |
|---|---|
VirtualFileFilter |
getRecurseFilter()
Get the recurse filter.
|
boolean |
isIgnoreErrors()
Whether to ignore individual errors
|
boolean |
isIncludeHidden()
Whether to include hidden files
|
boolean |
isIncludeRoot()
Whether to include the root of the visit
|
boolean |
isLeavesOnly()
Whether to visit leaves only
|
boolean |
isRecurse(VirtualFile file)
Whether to recurse into the non-leaf file
|
void |
setIgnoreErrors(boolean ignoreErrors)
Set the ignoreErrors.
|
void |
setIncludeHidden(boolean includeHidden)
Set the includeHidden.
|
void |
setIncludeRoot(boolean includeRoot)
Set the includeRoot.
|
void |
setLeavesOnly(boolean leavesOnly)
Set the leaves only.
|
void |
setRecurseFilter(VirtualFileFilter filter)
Set the recurse filter.
|
public static final VisitorAttributes.AcceptAnyFilter RECURSE_ALL
public static final VisitorAttributes DEFAULT
public static final VisitorAttributes LEAVES_ONLY
public static final VisitorAttributes RECURSE
public static final VisitorAttributes RECURSE_LEAVES_ONLY
private boolean includeRoot
private boolean leavesOnly
private boolean ignoreErrors
private boolean includeHidden
private VirtualFileFilter recurseFilter
public boolean isLeavesOnly()
Default: false
public void setLeavesOnly(boolean leavesOnly)
leavesOnly - the leaves onlyjava.lang.IllegalStateException - if you attempt to modify one of the preconfigured static values of this classpublic boolean isRecurse(VirtualFile file)
. If there is a recurse filter then the result will by its accepts(file) value.
Default: falsefile - the filepublic VirtualFileFilter getRecurseFilter()
public void setRecurseFilter(VirtualFileFilter filter)
filter - - the recurse filter.java.lang.IllegalStateException - if you attempt to modify one of the preconfigured static values of this classpublic boolean isIncludeRoot()
Default: false
public void setIncludeRoot(boolean includeRoot)
includeRoot - the includeRoot.java.lang.IllegalStateException - if you attempt to modify one of the preconfigured static values of this classpublic boolean isIgnoreErrors()
Default: false
public void setIgnoreErrors(boolean ignoreErrors)
ignoreErrors - the ignoreErrors.java.lang.IllegalStateException - if you attempt to modify one of the preconfigured static values of this classpublic boolean isIncludeHidden()
Default: false
public void setIncludeHidden(boolean includeHidden)
includeHidden - the includeHidden.java.lang.IllegalStateException - if you attempt to modify one of the preconfigured static values of this class