1 16 package web.rss; 17 18 import java.io.Serializable ; 19 import java.util.ArrayList ; 20 import java.util.List ; 21 22 26 public class Channel implements Serializable { 27 28 protected String title; 29 protected String link; 30 protected String description; 31 32 protected List items; 33 34 public Channel() { 35 items = new ArrayList (); 36 } 37 38 public void addItem(Item item){ 39 items.add(item); 40 } 41 42 public String getDescription() { 43 return description; 44 } 45 public void setDescription(String description) { 46 this.description = description; 47 } 48 public List getItems() { 49 return items; 50 } 51 public void setItems(List items) { 52 this.items = items; 53 } 54 public String getLink() { 55 return link; 56 } 57 public void setLink(String link) { 58 this.link = link; 59 } 60 public String getTitle() { 61 return title; 62 } 63 public void setTitle(String title) { 64 this.title = title; 65 } 66 } 67 | Popular Tags |