KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > nava > informa > impl > basic > TextInput


1 //
2
// Informa -- RSS Library for Java
3
// Copyright (c) 2002 by Niko Schmuck
4
//
5
// Niko Schmuck
6
// http://sourceforge.net/projects/informa
7
// mailto:niko_schmuck@users.sourceforge.net
8
//
9
// This library is free software.
10
//
11
// You may redistribute it and/or modify it under the terms of the GNU
12
// Lesser General Public License as published by the Free Software Foundation.
13
//
14
// Version 2.1 of the license should be included with this distribution in
15
// the file LICENSE. If the license is not included with this distribution,
16
// you may find a copy at the FSF web site at 'www.gnu.org' or 'www.fsf.org',
17
// or you may write to the Free Software Foundation, 675 Mass Ave, Cambridge,
18
// MA 02139 USA.
19
//
20
// This library is distributed in the hope that it will be useful,
21
// but WITHOUT ANY WARRANTY; without even the implied waranty of
22
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
// Lesser General Public License for more details.
24
//
25

26
27 // $Id: TextInput.java,v 1.12 2003/10/15 10:04:18 niko_schmuck Exp $
28

29 package de.nava.informa.impl.basic;
30
31 import java.net.URL JavaDoc;
32 import de.nava.informa.core.TextInputIF;
33
34 /**
35  * In-Memory implementation of the TextInputIF interface.
36  *
37  * @author Niko Schmuck (niko@nava.de)
38  */

39 public class TextInput implements TextInputIF, java.io.Serializable JavaDoc {
40
41   private long id;
42   private String JavaDoc title;
43   private String JavaDoc description;
44   private String JavaDoc name;
45   private URL JavaDoc link;
46
47   public TextInput() {
48     this("[Unknown TextInput]", null, null, null);
49   }
50
51   public TextInput(String JavaDoc title, String JavaDoc description, String JavaDoc name, URL JavaDoc link) {
52     this.id = IdGenerator.getInstance().getId();
53     this.title = title;
54     this.description = description;
55     this.name = name;
56     this.link = link;
57   }
58
59   // --------------------------------------------------------------
60
// implementation of TextInputIF interface
61
// --------------------------------------------------------------
62

63   public long getId() {
64     return id;
65   }
66
67   public void setId(long id) {
68     this.id = id;
69   }
70
71   public String JavaDoc getTitle() {
72     return title;
73   }
74
75   public void setTitle(String JavaDoc title) {
76     this.title = title;
77   }
78
79   public String JavaDoc getDescription() {
80     return description;
81   }
82
83   public void setDescription(String JavaDoc description) {
84     this.description = description;
85   }
86
87   public String JavaDoc getName() {
88     return name;
89   }
90
91   public void setName(String JavaDoc name) {
92     this.name = name;
93   }
94
95   public URL JavaDoc getLink() {
96     return link;
97   }
98
99   public void setLink(URL JavaDoc link) {
100     this.link = link;
101   }
102
103 }
104
Popular Tags