KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > browser > config > window > ReferenceHolder


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.window;
9
10 /**
11     Browser path component for named class member (field or method).
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 ReferenceHolder implements PathComponent {
17
18     private String JavaDoc name;
19     private String JavaDoc type;
20
21     /**
22      * Constructor.
23      * @param name the name of the reference.
24      * @param type the type of the reference.
25      */

26     public ReferenceHolder(String JavaDoc name, String JavaDoc type) {
27         this.name = name;
28         this.type = type;
29     }
30
31     /**
32      * Constructor.
33      */

34     public ReferenceHolder() {
35     }
36
37     /**
38      * Get the name of the reference.
39      * @return the name.
40      */

41     public String JavaDoc getName() {
42         return name;
43     }
44
45     /**
46      * Set the name of the reference.
47      * @param name the name.
48      */

49     public void setName(String JavaDoc name) {
50         this.name = name;
51     }
52
53     /**
54      * Get the type of the reference.
55      * @return the type.
56      */

57     public String JavaDoc getType() {
58         return type;
59     }
60
61     /**
62      * Set the type of the reference.
63      * @param type the type.
64      */

65     public void setType(String JavaDoc type) {
66         this.type = type;
67     }
68 }
69
Popular Tags