01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: package org.apache.commons.betwixt.examples.rss;
19:
20: import java.io.Serializable;
21:
22: /**
23: * <p>Implementation object representing an <strong>item</strong> in the
24: * <em>Rich Site Summary</em> DTD, version 0.91. This class may be subclassed
25: * to further specialize its behavior.</p>
26: *
27: * <p>Based on the Jakarta Commons <code>Digester</code> implementation.</p>
28: *
29: * @author Craig R. McClanahan
30: * @version $Revision: 438373 $ $Date: 2006-08-30 06:17:21 +0100 (Wed, 30 Aug 2006) $
31: */
32:
33: public class Item implements Serializable {
34:
35: // ------------------------------------------------------------- Properties
36:
37: /**
38: * The item description (1-500 characters).
39: */
40: protected String description = null;
41:
42: public String getDescription() {
43: if (this .description == null) {
44: return "";
45: }
46: return (this .description);
47: }
48:
49: public void setDescription(String description) {
50: this .description = description;
51: }
52:
53: /**
54: * The item link (1-500 characters).
55: */
56: protected String link = null;
57:
58: public String getLink() {
59: return (this .link);
60: }
61:
62: public void setLink(String link) {
63: this .link = link;
64: }
65:
66: /**
67: * The item title (1-100 characters).
68: */
69: protected String title = null;
70:
71: public String getTitle() {
72: return (this .title);
73: }
74:
75: public void setTitle(String title) {
76: this.title = title;
77: }
78: }
|