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