1 17 package com.sun.syndication.feed.atom; 18 19 import com.sun.syndication.feed.WireFeed; 20 import com.sun.syndication.feed.module.Module; 21 import com.sun.syndication.feed.module.impl.ModuleUtils; 22 23 import java.util.ArrayList ; 24 import java.util.Date ; 25 import java.util.List ; 26 27 35 public class Feed extends WireFeed { 36 private String _language; 37 private String _title; 38 private List _alternateLinks; 39 private List _otherLinks; 40 private Person _author; 41 private List _contributors; 42 private Content _tagline; 43 private String _id; 44 private Generator _generator; 45 private String _copyright; 46 private Content _info; 47 private Date _modified; 48 private List _entries; 49 private List _modules; 50 51 55 public Feed() { 56 } 57 58 64 public Feed(String type) { 65 super(type); 66 } 67 68 74 public String getLanguage() { 75 return _language; 76 } 77 78 84 public void setLanguage(String language) { 85 _language = language; 86 } 87 88 94 public String getTitle() { 95 return _title; 96 } 97 98 104 public void setTitle(String title) { 105 _title = title; 106 } 107 108 115 public List getAlternateLinks() { 116 return (_alternateLinks==null) ? (_alternateLinks=new ArrayList ()) : _alternateLinks; 117 } 118 119 126 public void setAlternateLinks(List alternateLinks) { 127 _alternateLinks = alternateLinks; 128 } 129 130 137 public List getOtherLinks() { 138 return (_otherLinks==null) ? (_otherLinks=new ArrayList ()) : _otherLinks; 139 } 140 141 148 public void setOtherLinks(List otherLinks) { 149 _otherLinks = otherLinks; 150 } 151 152 158 public Person getAuthor() { 159 return _author; 160 } 161 162 168 public void setAuthor(Person author) { 169 _author = author; 170 } 171 172 179 public List getContributors() { 180 return (_contributors==null) ? (_contributors=new ArrayList ()) : _contributors; 181 } 182 183 190 public void setContributors(List contributors) { 191 _contributors = contributors; 192 } 193 194 200 public Content getTagline() { 201 return _tagline; 202 } 203 204 210 public void setTagline(Content tagline) { 211 _tagline = tagline; 212 } 213 214 220 public String getId() { 221 return _id; 222 } 223 224 230 public void setId(String id) { 231 _id = id; 232 } 233 234 240 public Generator getGenerator() { 241 return _generator; 242 } 243 244 250 public void setGenerator(Generator generator) { 251 _generator = generator; 252 } 253 254 260 public String getCopyright() { 261 return _copyright; 262 } 263 264 270 public void setCopyright(String copyright) { 271 _copyright = copyright; 272 } 273 274 280 public Content getInfo() { 281 return _info; 282 } 283 284 290 public void setInfo(Content info) { 291 _info = info; 292 } 293 294 300 public Date getModified() { 301 return _modified; 302 } 303 304 310 public void setModified(Date modified) { 311 _modified = modified; 312 } 313 314 321 public List getEntries() { 322 return (_entries==null) ? (_entries=new ArrayList ()) : _entries; 323 } 324 325 332 public void setEntries(List entries) { 333 _entries = entries; 334 } 335 336 343 public List getModules() { 344 return (_modules==null) ? (_modules=new ArrayList ()) : _modules; 345 } 346 347 354 public void setModules(List modules) { 355 _modules = modules; 356 } 357 358 364 public Module getModule(String uri) { 365 return ModuleUtils.getModule(_modules,uri); 366 } 367 368 369 } 370 371 | Popular Tags |