View Javadoc

1   package org.devaki.nextobjects.workspace.models;
2   /*
3   
4   nextobjects Copyright (C) 2001-2005 Emmanuel Florent
5   
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by the
8   Free Software Foundation; either version 2 of the License, or (at your
9   option) any later version.
10  
11  This program is distributed in the hope that it will
12  be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13  of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the GNU General Public License for more details.
15  
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc., 59
18  Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  
20  */
21  import java.io.Serializable;
22  /***
23   * Represent a property - was a stub
24   * @author <a href="mailto:eflorent@devaki.org">Emmanuel Florent</a>
25   */
26  public class Property implements Serializable
27  {
28      /***
29       * the name
30       */
31      private String name;
32      /***
33       * the value
34       */
35      private String value;
36      /***
37       * Initialize a property
38       * @param pName the name
39       * @param pValue the value
40       */
41      public Property(final String pName, final String pValue)
42      {
43          this.name = pName;
44          this.value = pValue;
45      }
46      /***
47       * Get the name
48       * @return the name
49       */
50      public final String getName()
51      {
52          return name;
53      }
54      /***
55       * Get the value
56       * @return the balue
57       */
58      public final String getValue()
59      {
60          return value;
61      }
62      /***
63       * Set the name
64       * @param string name
65       */
66      public final void setName(final String string)
67      {
68          name = string;
69      }
70      /***
71       * Set the value
72       * @param string the value
73       */
74      public final void setValue(final String string)
75      {
76          value = string;
77      }
78  }