⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userentry.java

📁 android开发入门与实践源代码
💻 JAVA
字号:
package com.google.gdata.data.douban;import com.google.gdata.data.BaseEntry;import com.google.gdata.data.ExtensionDescription;import com.google.gdata.data.ExtensionProfile;/** * User entry specific for a douban user. Contains setters and getters for all * fields specific to user data. */@ExtensionDescription.Default(nsAlias = "", nsUri = "http://www.w3.org/2005/Atom", localName = "entry")public class UserEntry extends BaseEntry<UserEntry> {	public UserEntry() {		super();	}	/**	 * Constructs a new UserEntry by doing a shallow copy of data from an	 * existing BaseEntry intance.	 */	public UserEntry(BaseEntry sourceEntry) {		super(sourceEntry);	}	@Override	public void declareExtensions(ExtensionProfile extProfile) {		super.declareExtensions(extProfile);		extProfile.declare(UserEntry.class, Location.class);		extProfile.declare(UserEntry.class, Uid.class);		extProfile.declareAdditionalNamespace(Namespaces.doubanNs);	}	/** Gets the plaintext user location. */	public String getLocation() {		Location loc = getExtension(Location.class);		return loc == null ? null : loc.getContent();	}	/** Sets the plaintext user location. */	public void setLocation(String location) {//		setExtension(new Location(location));	}		/** Gets the plaintext user uid. */	public String getUid() {		Uid uid = getExtension(Uid.class);		return uid == null ? null : uid.getContent();	}	/** Sets the plaintext user uid. */	public void setUid(String uid) {		setExtension(new Uid(uid));	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -