1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 }