01: /*
02: * SearchFileSet.java - Abstract file matcher interface
03: * Copyright (C) 1999, 2001 Slava Pestov
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License
07: * as published by the Free Software Foundation; either version 2
08: * of the License, or any later version.
09: *
10: * This program is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU General Public License for more details.
14: *
15: * You should have received a copy of the GNU General Public License
16: * along with this program; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18: */
19:
20: package org.gjt.sp.jedit.search;
21:
22: import org.gjt.sp.jedit.*;
23:
24: /**
25: * An abstract interface representing a set of files.
26: * @author Slava Pestov
27: * @version $Id: SearchFileSet.java 5004 2004-03-28 00:07:27Z spestov $
28: */
29: public interface SearchFileSet {
30: /**
31: * Returns the first file to search.
32: * @param view The view performing the search
33: */
34: String getFirstFile(View view);
35:
36: /**
37: * Returns the next file to search.
38: * @param view The view performing the search
39: * @param path The last file searched
40: */
41: String getNextFile(View view, String path);
42:
43: /**
44: * Returns all path names in this file set.
45: * @param view The view performing the search
46: */
47: String[] getFiles(View view);
48:
49: /**
50: * Returns the number of files in this file set.
51: */
52: int getFileCount(View view);
53:
54: /**
55: * Returns the BeanShell code that will recreate this file set.
56: */
57: String getCode();
58: }
|