1 17 package com.sun.syndication.feed.module; 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 34 public class DCSubjectImpl implements Cloneable ,Serializable , DCSubject { 35 private ObjectBean _objBean; 36 private String _taxonomyUri; 37 private String _value; 38 39 44 public DCSubjectImpl() { 45 _objBean = new ObjectBean(this.getClass(),this); 46 } 47 48 55 public Object clone() throws CloneNotSupportedException { 56 return _objBean.clone(); 57 } 58 59 66 public boolean equals(Object other) { 67 return _objBean.equals(other); 68 } 69 70 78 public int hashCode() { 79 return _objBean.hashCode(); 80 } 81 82 88 public String toString() { 89 return _objBean.toString(); 90 } 91 92 98 public String getTaxonomyUri() { 99 return _taxonomyUri; 100 } 101 102 108 public void setTaxonomyUri(String taxonomyUri) { 109 _taxonomyUri = taxonomyUri; 110 } 111 112 118 public String getValue() { 119 return _value; 120 } 121 122 128 public void setValue(String value) { 129 _value = value; 130 } 131 132 public Class getInterface() { 133 return DCSubject.class; 134 } 135 136 public void copyFrom(Object obj) { 137 COPY_FROM_HELPER.copy(this,obj); 138 } 139 140 private static final CopyFromHelper COPY_FROM_HELPER; 141 142 static { 143 Map basePropInterfaceMap = new HashMap (); 144 basePropInterfaceMap.put("taxonomyUri",String .class); 145 basePropInterfaceMap.put("value",String .class); 146 147 Map basePropClassImplMap = Collections.EMPTY_MAP; 148 149 COPY_FROM_HELPER = new CopyFromHelper(DCSubject.class,basePropInterfaceMap,basePropClassImplMap); 150 } 151 152 } 153 | Popular Tags |