1 17 package com.sun.syndication.feed.atom; 18 19 import com.sun.syndication.feed.impl.ObjectBean; 20 import com.sun.syndication.feed.module.Module; 21 import com.sun.syndication.feed.module.impl.ModuleUtils; 22 import com.sun.syndication.feed.impl.ObjectBean; 23 24 import java.util.ArrayList ; 25 import java.util.Date ; 26 import java.util.List ; 27 import java.io.Serializable ; 28 29 35 public class Entry implements Cloneable ,Serializable { 36 private ObjectBean _objBean; 37 private String _title; 38 private List _alternateLinks; 39 private List _otherLinks; 40 private Person _author; 41 private List _contributors; 42 private String _id; 43 private Date _modified; 44 private Date _issued; 45 private Date _created; 46 private Content _summary; 47 private List _contents; 48 private List _modules; 49 50 55 public Entry() { 56 _objBean = new ObjectBean(this.getClass(),this); 57 } 58 59 66 public Object clone() throws CloneNotSupportedException { 67 return _objBean.clone(); 68 } 69 70 77 public boolean equals(Object other) { 78 return _objBean.equals(other); 79 } 80 81 89 public int hashCode() { 90 return _objBean.hashCode(); 91 } 92 93 99 public String toString() { 100 return _objBean.toString(); 101 } 102 103 109 public String getTitle() { 110 return _title; 111 } 112 113 119 public void setTitle(String title) { 120 _title = title; 121 } 122 123 129 public List getAlternateLinks() { 130 return (_alternateLinks==null) ? (_alternateLinks=new ArrayList ()) : _alternateLinks; 131 } 132 133 140 public void setAlternateLinks(List alternateLinks) { 141 _alternateLinks = alternateLinks; 142 } 143 144 151 public List getOtherLinks() { 152 return (_otherLinks==null) ? (_otherLinks=new ArrayList ()) : _otherLinks; 153 } 154 155 162 public void setOtherLinks(List otherLinks) { 163 _otherLinks = otherLinks; 164 } 165 166 172 public Person getAuthor() { 173 return _author; 174 } 175 176 182 public void setAuthor(Person author) { 183 _author = author; 184 } 185 186 193 public List getContributors() { 194 return (_contributors==null) ? (_contributors=new ArrayList ()) : _contributors; 195 } 196 197 204 public void setContributors(List contributors) { 205 _contributors = contributors; 206 } 207 208 214 public String getId() { 215 return _id; 216 } 217 218 224 public void setId(String id) { 225 _id = id; 226 } 227 228 234 public Date getModified() { 235 return _modified; 236 } 237 238 244 public void setModified(Date modified) { 245 _modified = modified; 246 } 247 248 254 public Date getIssued() { 255 return _issued; 256 } 257 258 264 public void setIssued(Date issued) { 265 _issued = issued; 266 } 267 268 274 public Date getCreated() { 275 return _created; 276 } 277 278 284 public void setCreated(Date created) { 285 _created = created; 286 } 287 288 294 public Content getSummary() { 295 return _summary; 296 } 297 298 304 public void setSummary(Content summary) { 305 _summary = summary; 306 } 307 308 315 public List getContents() { 316 return (_contents==null) ? (_contents=new ArrayList ()) : _contents; 317 } 318 319 326 public void setContents(List contents) { 327 _contents = contents; 328 } 329 330 337 public List getModules() { 338 return (_modules==null) ? (_modules=new ArrayList ()) : _modules; 339 } 340 341 348 public void setModules(List modules) { 349 _modules = modules; 350 } 351 352 358 public Module getModule(String uri) { 359 return ModuleUtils.getModule(_modules,uri); 360 } 361 362 } 363 | Popular Tags |