1 26 27 29 package de.nava.informa.impl.basic; 30 31 import java.io.Serializable ; 32 import java.net.URL ; 33 import java.util.Date ; 34 35 import de.nava.informa.core.ChannelIF; 36 import de.nava.informa.core.FeedIF; 37 38 43 public class Feed implements FeedIF, Serializable { 44 45 private String title; 46 private String text; 47 private URL location; 48 private URL site; 49 private String contentType; 50 private String copyright; 51 private Date dateFound; 52 private Date lastUpdated; 53 private ChannelIF feed; 54 55 public Feed() { 56 this("No title"); 57 } 58 59 63 public Feed(ChannelIF channel) 64 { 65 setChannel(channel); 66 setTitle(channel.getTitle()); 67 setLocation(channel.getLocation()); 68 setSite(channel.getSite()); 69 setCopyright(channel.getCopyright()); 70 } 71 72 public Feed(String title) { 73 this.title = title; 74 } 75 76 public String getContentType() { 77 return contentType; 78 } 79 80 public String getCopyright() { 81 return copyright; 82 } 83 84 public Date getDateFound() { 85 return dateFound; 86 } 87 88 public Date getLastUpdated() { 89 return lastUpdated; 90 } 91 92 public URL getLocation() { 93 return location; 94 } 95 96 public URL getSite() { 97 return site; 98 } 99 100 public String getText() { 101 return text; 102 } 103 104 public String getTitle() { 105 return title; 106 } 107 108 public void setContentType(String string) { 109 this.contentType = string; 110 } 111 112 public void setCopyright(String string) { 113 this.copyright = string; 114 } 115 116 public void setDateFound(Date date) { 117 this.dateFound = date; 118 } 119 120 public void setLastUpdated(Date date) { 121 this.lastUpdated = date; 122 } 123 124 public void setLocation(URL location) { 125 this.location = location; 126 } 127 128 public void setSite(URL site) { 129 this.site = site; 130 } 131 132 public void setText(String string) { 133 this.text = string; 134 } 135 136 public void setTitle(String string) { 137 this.title = string; 138 } 139 140 public ChannelIF getChannel() { 141 return feed; 142 } 143 144 public void setChannel(ChannelIF channelIF) { 145 feed = channelIF; 146 } 147 148 } 149 | Popular Tags |