public class VisitorAttributes extends Object
Modifier and Type | Field and Description |
---|---|
static VisitorAttributes |
DEFAULT
The default attributes - visit leaves and non-leaves, no recursion, no root
|
static VisitorAttributes |
LEAVES_ONLY
Visit leaves only and do not recurse non-leaf files
|
static VisitorAttributes |
RECURSE
Recurse and visit all non-leaf files
|
static org.jboss.vfs.VisitorAttributes.AcceptAnyFilter |
RECURSE_ALL
A VirtualFileFilter than accepts any file
|
static VisitorAttributes |
RECURSE_LEAVES_ONLY
Recurse all non-leaf files but only visit leaves
|
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 org.jboss.vfs.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
public boolean isLeavesOnly()
Default: false
public void setLeavesOnly(boolean leavesOnly)
leavesOnly
- the leaves onlyIllegalStateException
- 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.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.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.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.IllegalStateException
- if you attempt to modify one of the preconfigured static values of this classCopyright © 2012 JBoss by Red Hat. All Rights Reserved.