KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > jmx > config > Attribute


1 package org.sapia.soto.jmx.config;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.List JavaDoc;
5
6
7 /**
8  * @author Yanick Duchesne
9  * 18-Aug-2003
10  * <dl>
11  * <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>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public class Attribute {
17   private String JavaDoc _name;
18   private String JavaDoc _desc;
19   private boolean _write = true;
20   private List JavaDoc _params = new ArrayList JavaDoc();
21   private String JavaDoc _type;
22
23   /**
24    * Constructor for Attribute.
25    */

26   public Attribute() {
27     super();
28   }
29
30   public void setName(String JavaDoc name) {
31     _name = name;
32   }
33
34   String JavaDoc getName() {
35     return _name;
36   }
37
38   public void setDescription(String JavaDoc desc) {
39     _desc = desc;
40   }
41
42   String JavaDoc getDescription() {
43     return _desc;
44   }
45
46   public void setType(String JavaDoc type) {
47     _type = type;
48   }
49
50   String JavaDoc getType() {
51     return _type;
52   }
53
54   public void setWritable(boolean write) {
55     _write = write;
56   }
57
58   public boolean isWritable() {
59     return _write;
60   }
61 }
62
Popular Tags