1 17 package com.sun.syndication.feed.rss; 18 19 import com.sun.syndication.feed.impl.ObjectBean; 20 21 import java.io.Serializable ; 22 23 29 public class Image implements Cloneable ,Serializable { 30 private ObjectBean _objBean; 31 private String _title; 32 private String _url; 33 private String _link; 34 private int _width = -1; 35 private int _height = -1; 36 private String _description; 37 38 43 public Image() { 44 _objBean = new ObjectBean(this.getClass(),this); 45 } 46 47 54 public Object clone() throws CloneNotSupportedException { 55 return _objBean.clone(); 56 } 57 58 65 public boolean equals(Object other) { 66 return _objBean.equals(other); 67 } 68 69 77 public int hashCode() { 78 return _objBean.hashCode(); 79 } 80 81 87 public String toString() { 88 return _objBean.toString(); 89 } 90 91 97 public String getTitle() { 98 return _title; 99 } 100 101 107 public void setTitle(String title) { 108 _title = title; 109 } 110 111 117 public String getUrl() { 118 return _url; 119 } 120 121 127 public void setUrl(String url) { 128 _url = url; 129 } 130 131 137 public String getLink() { 138 return _link; 139 } 140 141 147 public void setLink(String link) { 148 _link = link; 149 } 150 151 157 public int getWidth() { 158 return _width; 159 } 160 161 167 public void setWidth(int width) { 168 _width = width; 169 } 170 171 177 public int getHeight() { 178 return _height; 179 } 180 181 187 public void setHeight(int height) { 188 _height = height; 189 } 190 191 197 public String getDescription() { 198 return _description; 199 } 200 201 207 public void setDescription(String description) { 208 _description = description; 209 } 210 211 } 212 | Popular Tags |