1:/*
   2: * Created on Nov 8, 2004
   3: *
   4: * Project: xtom
   5: * 
   6: */
   7:package xtom.parser.examples.rss;
   8:
   9:import java.util.Collection;
  10:
  11:
  12:/**
  13: * This is the holder for the RSS Channel Information.
  14: * @author taras
  15: * @version $Revision: 1.1 $
  16: * @since
  17: */
  18:public class Channel {
  19:        
  20:        String title;
  21:        String link;
  22:        String description;
  23:        String copyright;
  24:        String lastBuildDate;
  25:        String generator;
  26:        String managingEditor;
  27:        String webMaster;
  28:        Collection items;
  29:        
  30:        public Channel(String title){
  31:                this.title = title;
  32:        }
  33:        
  34:        /**
  35:         * @return Returns the copyright.
  36:         */
  37:        public String getCopyright() {
  38:                return copyright;
  39:        }
  40:        /**
  41:         * @param copyright The copyright to set.
  42:         */
  43:        public void setCopyright(String copyright) {
  44:                this.copyright = copyright;
  45:        }
  46:        /**
  47:         * @return Returns the description.
  48:         */
  49:        public String getDescription() {
  50:                return description;
  51:        }
  52:        /**
  53:         * @param description The description to set.
  54:         */
  55:        public void setDescription(String description) {
  56:                this.description = description;
  57:        }
  58:        /**
  59:         * @return Returns the generator.
  60:         */
  61:        public String getGenerator() {
  62:                return generator;
  63:        }
  64:        /**
  65:         * @param generator The generator to set.
  66:         */
  67:        public void setGenerator(String generator) {
  68:                this.generator = generator;
  69:        }
  70:        /**
  71:         * @return Returns the items.
  72:         */
  73:        public Collection getItems() {
  74:                return items;
  75:        }
  76:        /**
  77:         * @param items The items to set.
  78:         */
  79:        public void setItems(Collection items) {
  80:                this.items = items;
  81:        }
  82:        /**
  83:         * @return Returns the lastBuildDate.
  84:         */
  85:        public String getLastBuildDate() {
  86:                return lastBuildDate;
  87:        }
  88:        /**
  89:         * @param lastBuildDate The lastBuildDate to set.
  90:         */
  91:        public void setLastBuildDate(String lastBuildDate) {
  92:                this.lastBuildDate = lastBuildDate;
  93:        }
  94:        /**
  95:         * @return Returns the link.
  96:         */
  97:        public String getLink() {
  98:                return link;
  99:        }
 100:        /**
 101:         * @param link The link to set.
 102:         */
 103:        public void setLink(String link) {
 104:                this.link = link;
 105:        }
 106:        /**
 107:         * @return Returns the managingEditor.
 108:         */
 109:        public String getManagingEditor() {
 110:                return managingEditor;
 111:        }
 112:        /**
 113:         * @param managingEditor The managingEditor to set.
 114:         */
 115:        public void setManagingEditor(String managingEditor) {
 116:                this.managingEditor = managingEditor;
 117:        }
 118:        /**
 119:         * @return Returns the title.
 120:         */
 121:        public String getTitle() {
 122:                return title;
 123:        }
 124:        /**
 125:         * @param title The title to set.
 126:         */
 127:        public void setTitle(String title) {
 128:                this.title = title;
 129:        }
 130:        /**
 131:         * @return Returns the webMaster.
 132:         */
 133:        public String getWebMaster() {
 134:                return webMaster;
 135:        }
 136:        /**
 137:         * @param webMaster The webMaster to set.
 138:         */
 139:        public void setWebMaster(String webMaster) {
 140:                this.webMaster = webMaster;
 141:        }
 142:}