|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.virtual.VisitorAttributes
public class VisitorAttributes
Attributes used when visiting a virtual file system
Field Summary | |
---|---|
static VisitorAttributes |
DEFAULT
The default attributes - visit nothing both leaves, non-leaves, no recursion |
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.virtual.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 Summary | |
---|---|
VisitorAttributes()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.jboss.virtual.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
Constructor Detail |
---|
public VisitorAttributes()
Method Detail |
---|
public boolean isLeavesOnly()
Default: false
public void setLeavesOnly(boolean leavesOnly)
leavesOnly
- the leaves only
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: false
file
- the file
public 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 class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |