1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.commons.digester.rss;
20
21 import java.io.PrintWriter;
22 import java.io.Serializable;
23
24
25
26
27
28
29
30
31 public class TextInput implements Serializable {
32
33
34
35
36
37
38
39
40 protected String description = null;
41
42 public String getDescription() {
43 return (this.description);
44 }
45
46 public void setDescription(String description) {
47 this.description = description;
48 }
49
50
51
52
53
54 protected String link = null;
55
56 public String getLink() {
57 return (this.link);
58 }
59
60 public void setLink(String link) {
61 this.link = link;
62 }
63
64
65
66
67
68 protected String name = null;
69
70 public String getName() {
71 return (this.name);
72 }
73
74 public void setName(String name) {
75 this.name = name;
76 }
77
78
79
80
81
82 protected String title = null;
83
84 public String getTitle() {
85 return (this.title);
86 }
87
88 public void setTitle(String title) {
89 this.title = title;
90 }
91
92
93
94
95
96
97
98
99
100
101
102 void render(PrintWriter writer) {
103
104 writer.println(" <textinput>");
105
106 writer.print(" <title>");
107 writer.print(title);
108 writer.println("</title>");
109
110 writer.print(" <description>");
111 writer.print(description);
112 writer.println("</description>");
113
114 writer.print(" <name>");
115 writer.print(name);
116 writer.println("</name>");
117
118 writer.print(" <link>");
119 writer.print(link);
120 writer.println("</link>");
121
122 writer.println(" </textinput>");
123
124 }
125
126
127 }