public class PseudoFileListSearchContext extends SearchContext
Returns files from a pseudo file list for a wildcard search.
| Constructor and Description |
|---|
PseudoFileListSearchContext(PseudoFileList fileList,
int attrib,
WildCard filter,
boolean readOnly)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getResumeId()
Return the resume id for the current file/directory in the search.
|
boolean |
hasMoreFiles()
Determine if there are more files for the active search.
|
boolean |
nextFileInfo(FileInfo info)
Return file information for the next file in the active search.
|
String |
nextFileName()
Return the file name of the next file in the active search.
|
int |
numberOfEntries()
Return the total number of file entries for this search if known, else return -1
|
boolean |
restartAt(FileInfo info)
Restart the current search at the specified file.
|
boolean |
restartAt(int resumeId)
Restart a search at the specified resume point.
|
closeSearch, getDotDotInfo, getDotInfo, getFlags, getMaximumFiles, getSearchString, getTreeId, hasDotFiles, setFlags, setMaximumFiles, setSearchString, setTreeId, toStringpublic PseudoFileListSearchContext(PseudoFileList fileList, int attrib, WildCard filter, boolean readOnly)
fileList - PseudoFileListattrib - intfilter - WildCardreadOnly - booleanpublic boolean hasMoreFiles()
hasMoreFiles in class SearchContextpublic boolean nextFileInfo(FileInfo info)
nextFileInfo in class SearchContextinfo - FileInfo to return the file information.public String nextFileName()
nextFileName in class SearchContextpublic int numberOfEntries()
numberOfEntries in class SearchContextpublic int getResumeId()
getResumeId in class SearchContextpublic boolean restartAt(int resumeId)
restartAt in class SearchContextresumeId - Resume point id.public boolean restartAt(FileInfo info)
restartAt in class SearchContextinfo - File to restart the search at.Copyright © 2005–2014 Alfresco Software. All rights reserved.