public class CommentEntry extends GphotoEntry<CommentEntry> implements AtomData, CommentData
BaseEntry.AtomHandler, BaseEntry.EntryState
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
Modifier and Type | Field and Description |
---|---|
static Category |
CATEGORY
Comment kind category.
|
static java.lang.String |
KIND
Comment kind term value.
|
xmlBlob
localName, namespace
COMMENT_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, setGphotoId
getContentHandlerInfo, 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, visitChildren
addExtension, 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, visitChild
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthors, getCategories, getContributors, getDescription, getId, getLinks, getRights, getTitle, getUpdated, setDescription, setId, setRights, setTitle, setUpdated
getGphotoId, setGphotoId, setGphotoId
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 static final java.lang.String KIND
public static final Category CATEGORY
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in interface Kind.Adaptor
declareExtensions
in interface Extensible
declareExtensions
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()
AbstractExtension
validate
in class AbstractExtension
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAlbumId()
CommentData
getAlbumId
in interface CommentData
public java.lang.String getPhotoId()
CommentData
getPhotoId
in interface CommentData
public void setAlbumId(java.lang.Long albumId)
CommentData
setAlbumId
in interface CommentData
albumId
- the albumId of the comment.public void setAlbumId(java.lang.String albumId)
CommentData
setAlbumId
in interface CommentData
albumId
- the albumId of the comment.public void setPhotoId(java.lang.Long photoId)
CommentData
setPhotoId
in interface CommentData
photoId
- the photoId of the comment.public void setPhotoId(java.lang.String photoId)
CommentData
setPhotoId
in interface CommentData
photoId
- the photoId of the comment.