Package org.apache.commons.vfs2.provider
Class DefaultFileSelectorInfo
java.lang.Object
org.apache.commons.vfs2.provider.DefaultFileSelectorInfo
- All Implemented Interfaces:
FileSelectInfo
A default
FileSelectInfo implementation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the base folder of the traversal.intgetDepth()Gets the depth of the file relative to the base folder.getFile()Gets the file (or folder) to be considered.voidsetBaseFolder(FileObject baseFolder) voidsetDepth(int depth) voidsetFile(FileObject file) toString()
-
Field Details
-
baseFolder
-
file
-
depth
private int depth
-
-
Constructor Details
-
DefaultFileSelectorInfo
DefaultFileSelectorInfo()
-
-
Method Details
-
getBaseFolder
Description copied from interface:FileSelectInfoGets the base folder of the traversal.- Specified by:
getBaseFolderin interfaceFileSelectInfo- Returns:
- FileObject representing the base folder.
-
getDepth
public int getDepth()Description copied from interface:FileSelectInfoGets the depth of the file relative to the base folder.- Specified by:
getDepthin interfaceFileSelectInfo- Returns:
- The depth of the file relative to the base folder.
-
getFile
Description copied from interface:FileSelectInfoGets the file (or folder) to be considered.- Specified by:
getFilein interfaceFileSelectInfo- Returns:
- The FileObject.
-
setBaseFolder
-
setDepth
public void setDepth(int depth) -
setFile
-
toString
-