1 17 package com.sun.syndication.feed.atom; 18 19 import com.sun.syndication.feed.impl.ObjectBean; 20 21 import java.io.Serializable ; 22 23 29 public class Link implements Cloneable ,Serializable { 30 private ObjectBean _objBean; 31 private String _rel; 32 private String _type; 33 private String _href; 34 private String _title; 35 36 41 public Link() { 42 _objBean = new ObjectBean(this.getClass(),this); 43 } 44 45 52 public Object clone() throws CloneNotSupportedException { 53 return _objBean.clone(); 54 } 55 56 63 public boolean equals(Object other) { 64 return _objBean.equals(other); 65 } 66 67 75 public int hashCode() { 76 return _objBean.hashCode(); 77 } 78 79 85 public String toString() { 86 return _objBean.toString(); 87 } 88 89 95 public String getRel() { 96 return _rel; 97 } 98 99 105 public void setRel(String rel) { 106 _rel = rel; 108 } 109 110 116 public String getType() { 117 return _type; 118 } 119 120 126 public void setType(String type) { 127 _type = type; 128 } 129 130 136 public String getHref() { 137 return _href; 138 } 139 140 146 public void setHref(String href) { 147 _href = href; 148 } 149 150 156 public String getTitle() { 157 return _title; 158 } 159 160 166 public void setTitle(String title) { 167 _title = title; 168 } 169 170 } 171 | Popular Tags |