1 17 package com.sun.syndication.feed.module; 18 19 import com.sun.syndication.feed.impl.ObjectBean; 20 21 import java.io.Serializable ; 22 23 30 public abstract class ModuleImpl implements Cloneable ,Serializable ,Module { 31 private ObjectBean _objBean; 32 private String _uri; 33 34 40 protected ModuleImpl(Class beanClass,String uri) { 41 _objBean = new ObjectBean(beanClass,this); 42 _uri = uri; 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 getUri() { 96 return _uri; 97 } 98 99 } 100 | Popular Tags |