1 16 17 18 package org.apache.commons.digester.rss; 19 20 import java.io.PrintWriter ; 21 import java.io.Serializable ; 22 23 24 29 30 public class TextInput implements Serializable { 31 32 33 35 36 39 protected String description = null; 40 41 public String getDescription() { 42 return (this.description); 43 } 44 45 public void setDescription(String description) { 46 this.description = description; 47 } 48 49 50 53 protected String link = null; 54 55 public String getLink() { 56 return (this.link); 57 } 58 59 public void setLink(String link) { 60 this.link = link; 61 } 62 63 64 67 protected String name = null; 68 69 public String getName() { 70 return (this.name); 71 } 72 73 public void setName(String name) { 74 this.name = name; 75 } 76 77 78 81 protected String title = null; 82 83 public String getTitle() { 84 return (this.title); 85 } 86 87 public void setTitle(String title) { 88 this.title = title; 89 } 90 91 92 94 95 101 void render(PrintWriter writer) { 102 103 writer.println(" <textinput>"); 104 105 writer.print(" <title>"); 106 writer.print(title); 107 writer.println("</title>"); 108 109 writer.print(" <description>"); 110 writer.print(description); 111 writer.println("</description>"); 112 113 writer.print(" <name>"); 114 writer.print(name); 115 writer.println("</name>"); 116 117 writer.print(" <link>"); 118 writer.print(link); 119 writer.println("</link>"); 120 121 writer.println(" </textinput>"); 122 123 } 124 125 126 } 127 | Popular Tags |