1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.astrogrid.filestore.common.file ;
24
25 import java.util.Map.Entry ;
26
27 /***
28 * A single property value.
29 *
30 */
31 public class FileProperty
32 {
33 /***
34 * Public constructor.
35 *
36 */
37 public FileProperty()
38 {
39 }
40
41 /***
42 * Public constructor from a name and value.
43 * @param name The property name.
44 * @param value The property value.
45 *
46 */
47 public FileProperty(String name, String value)
48 {
49 this.name = name ;
50 this.value = value ;
51 }
52
53 /***
54 * Public constructor from a Map entry.
55 * @param name The property name.
56 * @param value The property value.
57 *
58 */
59 public FileProperty(Entry entry)
60 {
61 this.name = (String) entry.getKey() ;
62 this.value = (String) entry.getValue() ;
63 }
64
65 /***
66 * The property name.
67 *
68 */
69 private String name ;
70
71 /***
72 * Access to the property name.
73 *
74 */
75 public String getName()
76 {
77 return this.name ;
78 }
79
80 /***
81 * Access to the property name.
82 *
83 */
84 public void setName(String name)
85 {
86 this.name = name ;
87 }
88
89 /***
90 * The property value.
91 *
92 */
93 private String value ;
94
95 /***
96 * Access to the property value.
97 *
98 */
99 public String getValue()
100 {
101 return this.value ;
102 }
103
104 /***
105 * Access to the property value.
106 *
107 */
108 public void setValue(String value)
109 {
110 this.value = value ;
111 }
112
113 }
114