public class

CommentEntry

extends GphotoEntry<E extends GphotoEntry<E>>
implements AtomData CommentData
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.media.MediaEntry<E extends com.google.gdata.data.BaseEntry<E>>
           ↳ com.google.gdata.data.photos.GphotoEntry<E extends com.google.gdata.data.photos.GphotoEntry<E>>
             ↳ com.google.gdata.data.photos.CommentEntry

Class Overview

Entry for comment kinds, contains comment metadata.

Summary

Constants
String KIND Comment kind term value.
[Expand]
Inherited Constants
From interface com.google.gdata.data.photos.CommentData
Fields
public static final Category CATEGORY Comment kind category.
[Expand]
Inherited Fields
From class com.google.gdata.data.photos.GphotoEntry
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From interface com.google.gdata.data.photos.CommentData
Public Constructors
CommentEntry()
Default mutable constructor.
CommentEntry(BaseEntry<?> sourceEntry)
Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
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.
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(Long albumId)
Set the albumId of the album this comment is contained in.
void setAlbumId(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(String photoId)
Set the photoId as a string for the photo this comment is on.
void setPhotoId(Long photoId)
Set the photoId for the photo this comment is on.
void setPhotoIdExt(GphotoPhotoId photoIdExt)
Sets the photo ID of the album this comment is on.
String toString()
Protected Methods
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.photos.GphotoEntry
From class com.google.gdata.data.media.MediaEntry
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor
From interface com.google.gdata.data.media.IMediaEntry
From interface com.google.gdata.data.photos.AtomData
From interface com.google.gdata.data.photos.CommentData
From interface com.google.gdata.data.photos.Extensible
From interface com.google.gdata.data.photos.GphotoData

Constants

public static final String KIND

Comment kind term value.

Constant Value: "http://schemas.google.com/photos/2007#comment"

Fields

public static final Category CATEGORY

Comment kind category.

Public Constructors

public CommentEntry ()

Default mutable constructor.

public CommentEntry (BaseEntry<?> sourceEntry)

Constructs a new instance by doing a shallow copy of data from an existing BaseEntry instance.

Parameters
sourceEntry Source entry

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public String getAlbumId ()

Gets the albumid of the album the comment is contained in.

Returns
  • the albumId of the album this comment is on.

public GphotoAlbumId getAlbumIdExt ()

Returns the album ID of the album this comment is on.

Returns
  • album ID of the album this comment is on

public String getPhotoId ()

Gets the id of the photo this comment is about.

Returns
  • the photoId of the photo this comment is on.

public GphotoPhotoId getPhotoIdExt ()

Returns the photo ID of the album this comment is on.

Returns
  • photo ID of the album this comment is on

public boolean hasAlbumIdExt ()

Returns whether it has the album ID of the album this comment is on.

Returns
  • whether it has the album ID of the album this comment is on

public boolean hasPhotoIdExt ()

Returns whether it has the photo ID of the album this comment is on.

Returns
  • whether it has the photo ID of the album this comment is on

public void setAlbumId (Long albumId)

Set the albumId of the album this comment is contained in.

Parameters
albumId The albumId of the comment.

public void setAlbumId (String albumId)

Set the albumId by string for the album the comment is on.

Parameters
albumId The albumId of the comment.

public void setAlbumIdExt (GphotoAlbumId albumIdExt)

Sets the album ID of the album this comment is on.

Parameters
albumIdExt Album ID of the album this comment is on or null to reset

public void setPhotoId (String photoId)

Set the photoId as a string for the photo this comment is on.

Parameters
photoId The photoId of the comment.

public void setPhotoId (Long photoId)

Set the photoId for the photo this comment is on.

Parameters
photoId The photoId of the comment.

public void setPhotoIdExt (GphotoPhotoId photoIdExt)

Sets the photo ID of the album this comment is on.

Parameters
photoIdExt Photo ID of the album this comment is on or null to reset

public String toString ()

Protected Methods

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.