|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.Source
com.google.gdata.data.BaseFeed<F,E>
com.google.gdata.data.media.MediaFeed<F,GphotoEntry>
com.google.gdata.data.photos.GphotoFeed<F>
public class GphotoFeed<F extends GphotoFeed>
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.BaseFeed |
---|
BaseFeed.FeedHandler, BaseFeed.FeedState |
Nested classes/interfaces inherited from class com.google.gdata.data.Source |
---|
Source.SourceHandler, Source.SourceState |
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary |
---|
Fields inherited from class com.google.gdata.data.BaseFeed |
---|
entries, entryClass, feedState |
Fields inherited from class com.google.gdata.data.Source |
---|
srcState |
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
|
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 |
GphotoFeed(java.lang.Class<? extends GphotoEntry> entryClass)
Construct a new GphotoFeed instance parameterized to contain the
given GphotoEntry type. |
protected |
GphotoFeed(java.lang.Class<? extends GphotoEntry> entryClass,
BaseFeed sourceFeed)
Construct a new GphotoFeed instance parameterized to contain the
given GphotoEntry subclass. |
Method Summary | |
---|---|
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. |
TextConstruct |
getDescription()
Description on a feed is just the subtitle. |
java.lang.String |
getGphotoId()
Return the gphoto:id of this feed. |
void |
setDescription(TextConstruct description)
Description on a feed is just the subtitle. |
void |
setGphotoId(java.lang.Long id)
Set the gphoto:id of this feed as a long. |
void |
setGphotoId(java.lang.String id)
Set the gphoto:id of this feed as a string. |
Methods inherited from class com.google.gdata.data.media.MediaFeed |
---|
insert, insert, setService |
Methods inherited from class com.google.gdata.data.BaseFeed |
---|
addAdaptor, createEntry, generate, generateAtom, generateFeedEnd, generateFeedStart, getAdaptedFeed, getAdaptor, getAdaptors, getCanPost, getEntries, getEntries, getEntryPostLink, getEtag, getFeedBatchLink, getHandler, getItemsPerPage, getNextLink, getPreviousLink, getSelf, getSelfLink, getService, getStartIndex, getTotalResults, insert, parseAtom, parseAtom, parseAtom, readFeed, readFeed, setCanPost, setEntries, setEtag, setItemsPerPage, setStartIndex, setTotalResults, visitChildren |
Methods inherited from class com.google.gdata.data.Source |
---|
addHtmlLink, addLink, addLink, generateInnerAtom, getAuthors, getCategories, getContributors, getGenerator, getHtmlLink, getIcon, getId, getLink, getLinks, getLinks, getLogo, getRights, getSubtitle, getTitle, getUpdated, removeLinks, setGenerator, setGenerator, setIcon, setId, setLogo, setRights, setSubtitle, setTitle, setUpdated |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.photos.AtomData |
---|
getAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated, setId, setRights, setTitle, setUpdated |
Methods inherited from interface com.google.gdata.data.photos.Extensible |
---|
addExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtension |
Methods inherited from interface com.google.gdata.data.IFeed |
---|
addLink, getCategories, getGenerator, getId, getLink, getLinks, getLogo, getSubtitle, getTitle, getUpdated, setGenerator, setId, setLogo, setUpdated |
Constructor Detail |
---|
public GphotoFeed()
GphotoFeed
instance that is parameterized to
contain GphotoEntry
instances.
protected GphotoFeed(java.lang.Class<? extends GphotoEntry> entryClass)
GphotoFeed
instance parameterized to contain the
given GphotoEntry
type. This should be used by subclasses to set up
subclassed entry types as needed.
public GphotoFeed(BaseFeed<?,?> sourceFeed)
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.
protected GphotoFeed(java.lang.Class<? extends GphotoEntry> entryClass, BaseFeed sourceFeed)
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.
Method Detail |
---|
public void declareExtensions(ExtensionProfile extProfile)
BaseFeed
The implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.
declareExtensions
in interface Kind.Adaptor
declareExtensions
in interface Extensible
declareExtensions
in class BaseFeed<F extends GphotoFeed,GphotoEntry>
extProfile
- the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)
public void generateRss(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
BaseFeed
generateRss
in class BaseFeed<F extends GphotoFeed,GphotoEntry>
w
- Output writer.extProfile
- Extension profile.
java.io.IOException
public TextConstruct getDescription()
getDescription
in interface AtomData
public void setDescription(TextConstruct description)
setDescription
in interface AtomData
public java.lang.String getGphotoId()
getGphotoId
in interface GphotoData
public void setGphotoId(java.lang.Long id)
setGphotoId
in interface GphotoData
id
- the long version of the id of this feed or entry.public void setGphotoId(java.lang.String id)
setGphotoId
in interface GphotoData
id
- the string version of the id of this feed or entry.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |