KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > browser > config > classpath > FindResult


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.browser.config.classpath;
9
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 JavaDoc 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 JavaDoc 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 JavaDoc getFileName() {
44         return fileName;
45     }
46
47 }
48
Popular Tags