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 Person implements Cloneable ,Serializable { 30 private ObjectBean _objBean; 31 private String _name; 32 private String _url; 33 private String _email; 34 35 40 public Person() { 41 _objBean = new ObjectBean(this.getClass(),this); 42 } 43 44 51 public Object clone() throws CloneNotSupportedException { 52 return _objBean.clone(); 53 } 54 55 62 public boolean equals(Object other) { 63 return _objBean.equals(other); 64 } 65 66 74 public int hashCode() { 75 return _objBean.hashCode(); 76 } 77 78 84 public String toString() { 85 return _objBean.toString(); 86 } 87 88 94 public String getName() { 95 return _name; 96 } 97 98 104 public void setName(String name) { 105 _name = name; 106 } 107 108 114 public String getUrl() { 115 return _url; 116 } 117 118 124 public void setUrl(String url) { 125 _url = url; 126 } 127 128 134 public String getEmail() { 135 return _email; 136 } 137 138 144 public void setEmail(String email) { 145 _email = email; 146 } 147 148 } 149 | Popular Tags |