View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/community/common/src/java/org/astrogrid/community/common/policy/data/ResourceData.java,v $</cvs:source>
3    * <cvs:author>$Author: dave $</cvs:author>
4    * <cvs:date>$Date: 2004/06/18 13:45:20 $</cvs:date>
5    * <cvs:version>$Revision: 1.3 $</cvs:version>
6    *
7    * <cvs:log>
8    *   $Log: ResourceData.java,v $
9    *   Revision 1.3  2004/06/18 13:45:20  dave
10   *   Merged development branch, dave-dev-200406081614, into HEAD
11   *
12   *   Revision 1.2.70.2  2004/06/17 13:38:58  dave
13   *   Tidied up old CVS log entries
14   *
15   * </cvs:log>
16   *
17   */
18  package org.astrogrid.community.common.policy.data ;
19  
20  import org.astrogrid.community.common.identifier.ResourceIdentifier ;
21  
22  public class ResourceData
23      {
24      /***
25       * Public constructor.
26       *
27       */
28      public ResourceData()
29          {
30          this(null, null) ;
31          }
32  
33      /***
34       * Public constructor.
35       * @param ident The Resource identifier.
36       *
37       */
38      public ResourceData(String ident)
39          {
40          this(ident, null) ;
41          }
42  
43      /***
44       * Public constructor.
45       * @param ident The Resource identifier.
46       *
47       */
48      public ResourceData(ResourceIdentifier ident)
49          {
50          this(ident.toString(), null) ;
51          }
52  
53      /***
54       * Public constructor.
55       *
56       */
57      public ResourceData(String ident, String description)
58          {
59          this.ident = ident ;
60          this.description = description ;
61          }
62  
63      /***
64       * Our Resource ident.
65       *
66       */
67      private String ident ;
68  
69      /***
70       * Access to our Resource ident.
71       *
72       */
73      public String getIdent()
74          {
75          return this.ident ;
76          }
77  
78      /***
79       * Access to our Resource ident.
80       *
81       */
82      public void setIdent(String value)
83          {
84          this.ident = value ;
85          }
86  
87  
88        /***
89         * Our Resource description.
90         *
91         */
92        private String description ;
93  
94        /***
95         * Access to our Resource description.
96         *
97         */
98        public String getDescription()
99           {
100          return this.description ;
101          }
102 
103       /***
104        * Access to our Resource description.
105        *
106        */
107       public void setDescription(String value)
108          {
109          this.description = value ;
110          }
111     }