1 17 package com.sun.syndication.feed.synd; 18 19 import com.sun.syndication.feed.impl.ObjectBean; 20 import com.sun.syndication.feed.impl.CopyFromHelper; 21 22 import java.util.Collections ; 23 import java.util.HashMap ; 24 import java.util.Map ; 25 import java.io.Serializable ; 26 27 33 public class SyndImageImpl implements Serializable ,SyndImage { 34 private ObjectBean _objBean; 35 private String _title; 36 private String _url; 37 private String _link; 38 private String _description; 39 40 45 public SyndImageImpl() { 46 _objBean = new ObjectBean(SyndImage.class,this); 47 } 48 49 56 public Object clone() throws CloneNotSupportedException { 57 return _objBean.clone(); 58 } 59 60 67 public boolean equals(Object other) { 68 return _objBean.equals(other); 69 } 70 71 79 public int hashCode() { 80 return _objBean.hashCode(); 81 } 82 83 89 public String toString() { 90 return _objBean.toString(); 91 } 92 93 99 public String getTitle() { 100 return _title; 101 } 102 103 109 public void setTitle(String title) { 110 _title = title; 111 } 112 113 119 public String getUrl() { 120 return _url; 121 } 122 123 129 public void setUrl(String url) { 130 _url = url; 131 } 132 133 139 public String getLink() { 140 return _link; 141 } 142 143 149 public void setLink(String link) { 150 _link = link; 151 } 152 153 159 public String getDescription() { 160 return _description; 161 } 162 163 169 public void setDescription(String description) { 170 _description = description; 171 } 172 173 public Class getInterface() { 174 return SyndImage.class; 175 } 176 177 public void copyFrom(Object syndImage) { 178 COPY_FROM_HELPER.copy(this,syndImage); 179 } 180 181 private static final CopyFromHelper COPY_FROM_HELPER; 182 183 static { 184 Map basePropInterfaceMap = new HashMap (); 185 basePropInterfaceMap.put("title",String .class); 186 basePropInterfaceMap.put("url",String .class); 187 basePropInterfaceMap.put("link",String .class); 188 basePropInterfaceMap.put("description",String .class); 189 190 Map basePropClassImplMap = Collections.EMPTY_MAP; 191 192 COPY_FROM_HELPER = new CopyFromHelper(SyndImage.class,basePropInterfaceMap,basePropClassImplMap); 193 } 194 195 } 196 | Popular Tags |