public class GphotoEntry<E extends GphotoEntry<E>> extends MediaEntry<E> implements GphotoData, AtomData
BaseEntry.AtomHandler
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
GphotoEntry()
Constructs a new Entry instance.
|
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.
|
getMediaEditLink, getMediaSource, setMediaSource, setService, updateMedia
addAdaptor, 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
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthors, getCategories, getContributors, getId, getLinks, getRights, getTitle, getUpdated, setId, setRights, setTitle, setUpdated
addExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtension
getCanEdit, getContent, getEdited, getEditLink, getPublished, getResumableEditMediaLink, getSelectedFields, getSummary, setCanEdit, setEdited, setPublished, setSelectedFields
addLink, getAuthors, getCategories, getEtag, getId, getKind, getLink, getLinks, getSelfLink, getTitle, getUpdated, getVersionId, removeLinks, removeLinks, setEtag, setId, setKind, setUpdated, setVersionId
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in interface Kind.Adaptor
declareExtensions
in interface Extensible
declareExtensions
in class ExtensionPoint
extProfile
- 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.IOException
ServiceException
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.public TextConstruct getDescription()
getDescription
in interface AtomData
public void setDescription(TextConstruct description)
setDescription
in interface AtomData
public void generateRss(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
BaseEntry
generateRss
in class BaseEntry<E extends GphotoEntry<E>>
w
- Output writer.extProfile
- Extension profile.java.io.IOException
public GphotoEntry<?> getAdaptedEntry() throws Kind.AdaptorException
getAdaptedEntry
in class BaseEntry<E extends GphotoEntry<E>>
Kind.AdaptorException
- for subclasses to throw.