public class GphotoFeed<F extends GphotoFeed> extends MediaFeed<F,GphotoEntry> implements GphotoData, AtomData
BaseFeed.FeedHandler, BaseFeed.FeedStateSource.SourceHandler, Source.SourceStateExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerentries, entryClass, feedStatexmlBloblocalName, namespace| Modifier | Constructor and Description |
|---|---|
|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
insert, insert, setServiceaddAdaptor, createEntry, generate, generateAtom, generateFeedEnd, generateFeedStart, getAdaptedFeed, getAdaptor, getAdaptors, getCanPost, getEntries, getEntries, getEntryPostLink, getEtag, getFeedBatchLink, getHandler, getItemsPerPage, getKind, getNextLink, getPreviousLink, getSelectedFields, getSelf, getSelfLink, getService, getStartIndex, getTotalResults, getVersionId, insert, parseAtom, parseAtom, parseAtom, readFeed, readFeed, setCanPost, setEntries, setEtag, setItemsPerPage, setKind, setSelectedFields, setStartIndex, setTotalResults, setVersionId, visitChildrenaddHtmlLink, addLink, addLink, generateInnerAtom, getAuthors, getCategories, getContributors, getGenerator, getHtmlLink, getIcon, getId, getLink, getLinks, getLinks, getLogo, getRights, getSubtitle, getTitle, getUpdated, removeLinks, removeLinks, setGenerator, setGenerator, setIcon, setId, setLogo, setRights, setSubtitle, setTitle, setUpdatedaddExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChildconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated, setId, setRights, setTitle, setUpdatedaddExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtensiongetGenerator, getLogo, getSubtitle, setGenerator, setLogoaddLink, getAuthors, getCategories, getId, getLink, getLinks, getTitle, getUpdated, removeLinks, removeLinks, setId, setUpdatedpublic 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.public void declareExtensions(ExtensionProfile extProfile)
BaseFeedThe implementation of this method for BaseFeed will declare any extensions associated with the contained entry type.
declareExtensions in interface Kind.AdaptordeclareExtensions in interface ExtensibledeclareExtensions 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
BaseFeedgenerateRss in class BaseFeed<F extends GphotoFeed,GphotoEntry>w - Output writer.extProfile - Extension profile.java.io.IOExceptionpublic TextConstruct getDescription()
getDescription in interface AtomDatapublic void setDescription(TextConstruct description)
setDescription in interface AtomDatapublic java.lang.String getGphotoId()
getGphotoId in interface GphotoDatapublic void setGphotoId(java.lang.Long id)
setGphotoId in interface GphotoDataid - the long version of the id of this feed or entry.public void setGphotoId(java.lang.String id)
setGphotoId in interface GphotoDataid - the string version of the id of this feed or entry.