public class CommentEntry extends GphotoEntry<CommentEntry> implements AtomData, CommentData
BaseEntry.AtomHandler, BaseEntry.EntryStateExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
static Category |
CATEGORY
Comment kind category.
|
static java.lang.String |
KIND
Comment kind term value.
|
xmlBloblocalName, namespaceCOMMENT_CATEGORY, COMMENT_KIND| Constructor and Description |
|---|
CommentEntry()
Default mutable constructor.
|
CommentEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing
BaseEntry 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.
|
java.lang.String |
getAlbumId()
Gets the albumid of the album the comment is contained in.
|
GphotoAlbumId |
getAlbumIdExt()
Returns the album ID of the album this comment is on.
|
java.lang.String |
getPhotoId()
Gets the id of the photo this comment is about.
|
GphotoPhotoId |
getPhotoIdExt()
Returns the photo ID of the album this comment is on.
|
boolean |
hasAlbumIdExt()
Returns whether it has the album ID of the album this comment is on.
|
boolean |
hasPhotoIdExt()
Returns whether it has the photo ID of the album this comment is on.
|
void |
setAlbumId(java.lang.Long albumId)
Set the albumId of the album this comment is contained in.
|
void |
setAlbumId(java.lang.String albumId)
Set the albumId by string for the album the comment is on.
|
void |
setAlbumIdExt(GphotoAlbumId albumIdExt)
Sets the album ID of the album this comment is on.
|
void |
setPhotoId(java.lang.Long photoId)
Set the photoId for the photo this comment is on.
|
void |
setPhotoId(java.lang.String photoId)
Set the photoId as a string for the photo this comment is on.
|
void |
setPhotoIdExt(GphotoPhotoId photoIdExt)
Sets the photo ID of the album this comment is on.
|
java.lang.String |
toString() |
protected void |
validate()
Checks the attributes to see if there are any problems.
|
generateRss, getAdaptedEntry, getDescription, getFeed, getFeedLink, getGphotoId, setDescription, setGphotoId, setGphotoIdgetContentHandlerInfo, 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, throwExceptionIfImmutableclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAuthors, getCategories, getContributors, getDescription, getId, getLinks, getRights, getTitle, getUpdated, setDescription, setId, setRights, setTitle, setUpdatedgetGphotoId, setGphotoId, setGphotoIdaddExtension, 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 static final java.lang.String KIND
public static final Category CATEGORY
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPointdeclareExtensions in interface Kind.AdaptordeclareExtensions in interface ExtensibledeclareExtensions in class GphotoEntry<CommentEntry>extProfile - the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)public GphotoAlbumId getAlbumIdExt()
public void setAlbumIdExt(GphotoAlbumId albumIdExt)
albumIdExt - album ID of the album this comment is on or
null to resetpublic boolean hasAlbumIdExt()
public GphotoPhotoId getPhotoIdExt()
public void setPhotoIdExt(GphotoPhotoId photoIdExt)
photoIdExt - photo ID of the album this comment is on or
null to resetpublic boolean hasPhotoIdExt()
protected void validate()
AbstractExtensionvalidate in class AbstractExtensionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAlbumId()
CommentDatagetAlbumId in interface CommentDatapublic java.lang.String getPhotoId()
CommentDatagetPhotoId in interface CommentDatapublic void setAlbumId(java.lang.Long albumId)
CommentDatasetAlbumId in interface CommentDataalbumId - the albumId of the comment.public void setAlbumId(java.lang.String albumId)
CommentDatasetAlbumId in interface CommentDataalbumId - the albumId of the comment.public void setPhotoId(java.lang.Long photoId)
CommentDatasetPhotoId in interface CommentDataphotoId - the photoId of the comment.public void setPhotoId(java.lang.String photoId)
CommentDatasetPhotoId in interface CommentDataphotoId - the photoId of the comment.