01: /*
02: This library is free software; you can redistribute it and/or
03: modify it under the terms of the GNU General Public
04: License as published by the Free Software Foundation; either
05: version 2 of the license, or (at your option) any later version.
06: */
07:
08: package org.gjt.jclasslib.browser.config.classpath;
09:
10: /**
11: Result of a search operation on the classpath.
12:
13: @author <a href="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
14: @version $Revision: 1.1 $ $Date: 2003/08/18 08:10:15 $
15: */
16: public class FindResult {
17:
18: private ClasspathEntry classpathEntry;
19: private String fileName;
20:
21: /**
22: * Constructor.
23: * @param classpathEntry the classpath entry in which the class has been found.
24: * @param fileName the file name of the found class.
25: */
26: public FindResult(ClasspathEntry classpathEntry, String fileName) {
27: this .classpathEntry = classpathEntry;
28: this .fileName = fileName;
29: }
30:
31: /**
32: * Get the classpath entry in which the class has been found.
33: * @return the classpath entry.
34: */
35: public ClasspathEntry getClasspathEntry() {
36: return classpathEntry;
37: }
38:
39: /**
40: * Get the file name of the found class.
41: * @return the file name.
42: */
43: public String getFileName() {
44: return fileName;
45: }
46:
47: }
|