View Javadoc

1   /*
2   Copyright (C) 2007 Dirk Huenniger
3   
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8   
9   This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  Lesser General Public License for more details.
13  
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17   */
18  
19  package org.indi.objects;
20  
21  /**
22   * a indi object representing a singe text
23   * 
24   * @author Dirk Hünniger
25   * 
26   */
27  public class Text extends Element {
28      /**
29       * 
30       */
31      private static final long serialVersionUID = 1L;
32  
33      /**
34       * class constructor
35       * 
36       * @param name
37       *                the name of the Text
38       * @param label
39       *                the label of the Text (to be used for display in the GUI)
40       * @param value
41       *                the value of the Text
42       */
43      public Text(String name, String label, String value) {
44  	super(name, label, value);
45      }
46  
47      /**
48       * class constructor
49       * 
50       * @param name
51       *                the name of the Text
52       * @param value
53       *                the value of the Text
54       */
55      public Text(String name, String value) {
56  	super(name, null, value);
57      }
58  
59      @Override
60      protected String getType() {
61  	return "Text";
62      }
63  }