|
|||||||||
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.BaseEntry<E>
com.google.gdata.data.media.MediaEntry<E>
com.google.gdata.data.photos.GphotoEntry<E>
public class GphotoEntry<E extends GphotoEntry<E>>
The base entry class for Picasaweb data. This class provides access to the fields that all Picasaweb data objects contain, as well as helper methods for subclasses to use. It is also responsible for making the handling of the description field consistent across both atom and RSS, allowing the rss entries to match the atom entries in a more consistent fashion.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.BaseEntry |
---|
BaseEntry.AtomHandler, BaseEntry.EntryState |
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.BaseEntry |
---|
state |
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
|
GphotoEntry()
Constructs a new Entry instance. |
protected |
GphotoEntry(BaseEntry<?> sourceEntry)
Constructs a new entry instance using the source for a shallow copy. |
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. |
|
GphotoEntry<?> |
getAdaptedEntry()
Returns an adapted entry that is a subclass of GphotoEntry. |
|
TextConstruct |
getDescription()
Description on an entry is just the summary. |
|
|
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. |
Methods inherited from class com.google.gdata.data.media.MediaEntry |
---|
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService, updateMedia |
Methods inherited from class com.google.gdata.data.BaseEntry |
---|
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getLink, getLinks, getLinks, getPlainTextContent, getPubControl, getPublished, getRights, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setPubControl, setPublished, setRights, setSource, setSummary, setTitle, setUpdated, setVersionId, update, visitChildren |
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 |
Constructor Detail |
---|
public GphotoEntry()
protected GphotoEntry(BaseEntry<?> sourceEntry)
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |