public class

GphotoEntry

extends MediaEntry<E extends BaseEntry<E>>
implements AtomData GphotoData
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.media.MediaEntry<E extends com.google.gdata.data.BaseEntry<E>>
           ↳ com.google.gdata.data.photos.GphotoEntry<E extends com.google.gdata.data.photos.GphotoEntry<E>>
Known Direct Subclasses

Class Overview

The base entry class for Picasaweb data. This class provides access to the fields that all Picasaweb data objects contain, as well as helper methods for subclasses to use. It is also responsible for making the handling of the description field consistent across both atom and RSS, allowing the rss entries to match the atom entries in a more consistent fashion.

Summary

Fields
private final GphotoData delegate
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
GphotoEntry()
Constructs a new Entry instance.
Protected Constructors
GphotoEntry(BaseEntry<?> sourceEntry)
Constructs a new entry instance using the source for a shallow copy.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
void generateRss(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the RSS format.
GphotoEntry<?> getAdaptedEntry()
Returns an adapted entry that is a subclass of GphotoEntry.
TextConstruct getDescription()
Description on an entry is just the summary.
<F extends GphotoFeed<F>> F getFeed(Class<F> feedClass, String... kinds)
Get the feed of entries related to this entry.
Link getFeedLink()
Retrieves the feed link.
String getGphotoId()
Return the gphoto:id.
void setDescription(TextConstruct description)
Description on an entry is just the summary.
void setGphotoId(String id)
Set the gphoto:id.
void setGphotoId(Long id)
Set the gphoto:id.
[Expand]
Inherited Methods
From class com.google.gdata.data.media.MediaEntry
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor
From interface com.google.gdata.data.media.IMediaEntry
From interface com.google.gdata.data.photos.AtomData
From interface com.google.gdata.data.photos.Extensible
From interface com.google.gdata.data.photos.GphotoData

Fields

private final GphotoData delegate

Public Constructors

public GphotoEntry ()

Constructs a new Entry instance.

Protected Constructors

protected GphotoEntry (BaseEntry<?> sourceEntry)

Constructs a new entry instance using the source for a shallow copy.

Parameters
sourceEntry

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public void generateRss (XmlWriter w, ExtensionProfile extProfile)

Generates XML in the RSS format.

Parameters
w Output writer.
extProfile Extension profile.
Throws
IOException

public GphotoEntry<?> getAdaptedEntry ()

Returns an adapted entry that is a subclass of GphotoEntry.

public TextConstruct getDescription ()

Description on an entry is just the summary.

Returns
  • the description of the entry or feed.

public F getFeed (Class<F> feedClass, String... kinds)

Get the feed of entries related to this entry. The kinds parameter is a vararg array of associated kinds to return as entries. If the kinds parameter is empty, the default kind associated with this feed class will be used.

Parameters
feedClass
kinds
Throws
IOException
ServiceException

public Link getFeedLink ()

Retrieves the feed link. This is a link to the entry-as-feed, if this entry has associated data.

public String getGphotoId ()

Return the gphoto:id.

Returns
  • the Gphoto id.

public void setDescription (TextConstruct description)

Description on an entry is just the summary.

Parameters
description

public void setGphotoId (String id)

Set the gphoto:id.

Parameters
id The string version of the id of this feed or entry.

public void setGphotoId (Long id)

Set the gphoto:id.

Parameters
id The long version of the id of this feed or entry.