public class

GphotoFeed

extends MediaFeed<F extends BaseFeed, E extends BaseEntry>
implements AtomData GphotoData
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Source
         ↳ com.google.gdata.data.BaseFeed<F extends com.google.gdata.data.BaseFeed, E extends com.google.gdata.data.BaseEntry>
           ↳ com.google.gdata.data.media.MediaFeed<F extends com.google.gdata.data.BaseFeed, E extends com.google.gdata.data.BaseEntry>
             ↳ com.google.gdata.data.photos.GphotoFeed<F extends com.google.gdata.data.photos.GphotoFeed>
Known Direct Subclasses

Class Overview

This class customizes the generic MediaFeed class to define a feed of GphotoEntries. It also adds support for the GphotoData interface methods so all subclasses have the base access methods available. In addition it provides access to a consistent description field across both RSS and ATOM.

Summary

Fields
private final GphotoData delegate
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseFeed
From class com.google.gdata.data.Source
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
GphotoFeed()
Construct a new GphotoFeed instance that is parameterized to contain GphotoEntry instances.
GphotoFeed(BaseFeed<?, ?> sourceFeed)
Construct a new GphotoFeed instance parameterized to contain GphotoEntry instances.
Protected Constructors
GphotoFeed(Class<? extends GphotoEntry> entryClass)
Construct a new GphotoFeed instance parameterized to contain the given GphotoEntry type.
GphotoFeed(Class<? extends GphotoEntry> entryClass, BaseFeed sourceFeed)
Construct a new GphotoFeed instance parameterized to contain the given GphotoEntry subclass.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.

The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.

void generateRss(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the RSS format.
TextConstruct getDescription()
Description on a feed is just the subtitle.
String getGphotoId()
Return the gphoto:id of this feed.
void setDescription(TextConstruct description)
Description on a feed is just the subtitle.
void setGphotoId(String id)
Set the gphoto:id of this feed as a string.
void setGphotoId(Long id)
Set the gphoto:id of this feed as a long.
[Expand]
Inherited Methods
From class com.google.gdata.data.media.MediaFeed
From class com.google.gdata.data.BaseFeed
From class com.google.gdata.data.Source
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.IFeed
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor
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 GphotoFeed ()

Construct a new GphotoFeed instance that is parameterized to contain GphotoEntry instances.

public GphotoFeed (BaseFeed<?, ?> sourceFeed)

Construct a new GphotoFeed instance parameterized to contain GphotoEntry instances. The source data for the feed will be pulled from the BaseFeed instance that was passed as source.

Parameters
sourceFeed

Protected Constructors

protected GphotoFeed (Class<? extends GphotoEntry> entryClass)

Construct a new GphotoFeed instance parameterized to contain the given GphotoEntry type. This should be used by subclasses to set up subclassed entry types as needed.

Parameters
entryClass

protected GphotoFeed (Class<? extends GphotoEntry> entryClass, BaseFeed sourceFeed)

Construct a new GphotoFeed instance parameterized to contain the given GphotoEntry subclass. The base state of the feed will be drawn from the passed in BaseFeed instance. This constructor should be used by subclasses to change the entry type supported by the feed.

Parameters
entryClass
sourceFeed

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.

The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.

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 TextConstruct getDescription ()

Description on a feed is just the subtitle.

Returns
  • the description of the entry or feed.

public String getGphotoId ()

Return the gphoto:id of this feed.

Returns
  • the Gphoto id.

public void setDescription (TextConstruct description)

Description on a feed is just the subtitle.

Parameters
description

public void setGphotoId (String id)

Set the gphoto:id of this feed as a string.

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

public void setGphotoId (Long id)

Set the gphoto:id of this feed as a long.

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