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