android开发入门与实践源代码
源代码在线查看: noteentry.java
package com.google.gdata.data.douban; import java.util.List; import com.google.gdata.data.BaseEntry; import com.google.gdata.data.ExtensionDescription; import com.google.gdata.data.ExtensionProfile; import com.google.gdata.data.extensions.Rating; @ExtensionDescription.Default( nsAlias = "", nsUri ="http://www.w3.org/2005/Atom", localName = "entry") public class NoteEntry extends BaseEntry { public NoteEntry() { super(); } public NoteEntry(BaseEntry sourceEntry) { super(sourceEntry); } @Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); extProfile.declare(NoteEntry.class, Attribute.class); extProfile.declareArbitraryXmlExtension(NoteEntry.class); } protected List attributes; public List getAttributes() { return getRepeatingExtension(Attribute.class); } public void setAttributes(List atts) { if (atts == null) { removeExtension(Attribute.class); } else { for (Attribute att : atts) addRepeatingExtension(att); } } }