KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > util > Def


1 package org.sapia.soto.util;
2
3
4 /**
5  * This class holds name-to-class definitions that are mapped to a given
6  * namespace.
7  *
8  * @see org.sapia.soto.util.Namespace
9  *
10  * @author Yanick Duchesne
11  * <dl>
12  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
13  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
14  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
15  * </dl>
16  */

17 public class Def {
18   private String JavaDoc _class;
19   private String JavaDoc _name;
20
21   /**
22    * Constructor for Def.
23    */

24   public Def() {
25   }
26
27   /**
28    * Sets name of the class to which this definition corresponds.
29    *
30    * @param clazz a class name.
31    */

32   public void setClass(String JavaDoc clazz) {
33     _class = clazz;
34   }
35
36   /**
37    * Sets the name to which this definition is associated.
38    *
39    * @param name a name.
40    */

41   public void setName(String JavaDoc name) {
42     _name = name;
43   }
44
45   /**
46    * Returns the name associated to this definition.
47    *
48    * @return a name.
49    */

50   public String JavaDoc getName() {
51     return _name;
52   }
53
54   /**
55    * Returns the name of the class to which this definition corresponds.
56    *
57    * @return a class name.
58    */

59   public String JavaDoc getClazz() {
60     return _class;
61   }
62 }
63
Popular Tags