View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/filestore/common/src/java/org/astrogrid/filestore/common/file/FileProperty.java,v $</cvs:source>
3    * <cvs:author>$Author: clq2 $</cvs:author>
4    * <cvs:date>$Date: 2005/01/28 10:44:01 $</cvs:date>
5    * <cvs:version>$Revision: 1.3 $</cvs:version>
6    * <cvs:log>
7    *   $Log: FileProperty.java,v $
8    *   Revision 1.3  2005/01/28 10:44:01  clq2
9    *   dave_dev_200501141257 (filemanager)
10   *
11   *   Revision 1.2.104.1  2005/01/18 14:54:49  dave
12   *   Refactored properties ..
13   *
14   *   Revision 1.2  2004/07/14 13:50:29  dave
15   *   Merged development branch, dave-dev-200406301228, into HEAD
16   *
17   *   Revision 1.1.2.1  2004/07/13 16:37:29  dave
18   *   Refactored common and client to use an array of FileProperties (more SOAP friendly)
19   *
20   * </cvs:log>
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