android开发入门与实践源代码

源代码在线查看: subjectentry.java

软件大小: 7821 K
上传用户: 茗笑弑痛
关键词: android 实践 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				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 SubjectEntry extends BaseEntry {									public SubjectEntry() {						super();					}										public SubjectEntry(BaseEntry sourceEntry) {						super(sourceEntry);					}									@Override					public void declareExtensions(ExtensionProfile extProfile) {										super.declareExtensions(extProfile);						ExtensionDescription desc = Tag.getDefaultDescription();						desc.setRepeatable(true);						extProfile.declare(SubjectEntry.class, desc);										extProfile.declare(SubjectEntry.class, Attribute.class);						extProfile.declare(SubjectEntry.class, Rating								.getDefaultDescription(false));											extProfile.declareArbitraryXmlExtension(SubjectEntry.class);					}																		protected List attributes;									public List getAttributes() {						return getRepeatingExtension(Attribute.class);					}														public List getTags() {						return getRepeatingExtension(Tag.class);					}									/** Gets the gd:rating tag. */					public Rating getRating() {						return getExtension(Rating.class);					}									/** Sets the gd:rating tag. */					public void setRating(Rating rating) {						if (rating == null) {							removeExtension(Rating.class);						} else {							setExtension(rating);						}					}								}			

相关资源