1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */ 
16  
17  
18  package org.apache.commons.betwixt.examples.rss;
19  
20  import java.io.Serializable;
21  
22  
23  /***
24   * <p>Implementation object representing an <strong>item</strong> in the
25   * <em>Rich Site Summary</em> DTD, version 0.91.  This class may be subclassed
26   * to further specialize its behavior.</p>
27   *
28   * <p>Based on the Jakarta Commons <code>Digester</code> implementation.</p>
29   *
30   * @author Craig R. McClanahan
31   * @version $Revision: 1.3 $ $Date: 2004/03/31 21:11:53 $
32   */
33  
34  public class Item implements Serializable {
35  
36  
37      // ------------------------------------------------------------- Properties
38  
39  
40      /***
41       * The item description (1-500 characters).
42       */
43      protected String description = null;
44  
45      public String getDescription() {
46          if (this.description == null) {
47              return "";
48          }
49          return (this.description);
50      }
51  
52      public void setDescription(String description) {
53          this.description = description;
54      }
55  
56  
57      /***
58       * The item link (1-500 characters).
59       */
60      protected String link = null;
61  
62      public String getLink() {
63          return (this.link);
64      }
65  
66      public void setLink(String link) {
67          this.link = link;
68      }
69  
70  
71      /***
72       * The item title (1-100 characters).
73       */
74      protected String title = null;
75  
76      public String getTitle() {
77          return (this.title);
78      }
79  
80      public void setTitle(String title) {
81          this.title = title;
82      }
83  }