public class GphotoEntry<E extends GphotoEntry<E>> extends MediaEntry<E> implements GphotoData, AtomData
BaseEntry.AtomHandler, BaseEntry.EntryStateExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerxmlBloblocalName, namespace| Modifier | Constructor and Description |
|---|---|
|
GphotoEntry()
Constructs a new Entry instance.
|
protected |
GphotoEntry(BaseEntry<?> sourceEntry)
Constructs a new entry instance using the source for a shallow copy.
|
| 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.
|
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>> |
getFeed(java.lang.Class<F> feedClass,
java.lang.String... kinds)
Get the feed of entries related to this entry.
|
Link |
getFeedLink()
Retrieves the feed link.
|
java.lang.String |
getGphotoId()
Return the gphoto:id.
|
void |
setDescription(TextConstruct description)
Description on an entry is just the summary.
|
void |
setGphotoId(java.lang.Long id)
Set the gphoto:id.
|
void |
setGphotoId(java.lang.String id)
Set the gphoto:id.
|
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService, updateMediaaddAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getPlainTextContent, getPubControl, getPublished, getResumableEditMediaLink, getRights, getSelectedFields, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setSelectedFields, setSource, setSummary, setTitle, setUpdated, setVersionId, update, visitChildrenaddExtension, 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, setExtensiongetCanEdit, getContent, getEdited, getEditLink, getPublished, getResumableEditMediaLink, getSelectedFields, getSummary, setCanEdit, setEdited, setPublished, setSelectedFieldsaddLink, getAuthors, getCategories, getEtag, getId, getKind, getLink, getLinks, getSelfLink, getTitle, getUpdated, getVersionId, removeLinks, removeLinks, setEtag, setId, setKind, setUpdated, setVersionIdpublic GphotoEntry()
protected GphotoEntry(BaseEntry<?> sourceEntry)
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPointdeclareExtensions in interface Kind.AdaptordeclareExtensions in interface ExtensibledeclareExtensions in class ExtensionPointextProfile - the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)public Link getFeedLink()
public <F extends GphotoFeed<F>> F getFeed(java.lang.Class<F> feedClass, java.lang.String... kinds) throws java.io.IOException, ServiceException
java.io.IOExceptionServiceExceptionpublic 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.public TextConstruct getDescription()
getDescription in interface AtomDatapublic void setDescription(TextConstruct description)
setDescription in interface AtomDatapublic void generateRss(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
BaseEntrygenerateRss in class BaseEntry<E extends GphotoEntry<E>>w - Output writer.extProfile - Extension profile.java.io.IOExceptionpublic GphotoEntry<?> getAdaptedEntry() throws Kind.AdaptorException
getAdaptedEntry in class BaseEntry<E extends GphotoEntry<E>>Kind.AdaptorException - for subclasses to throw.