public class

CommentAuthor

extends Person
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.Person
         ↳ com.google.gdata.data.photos.CommentAuthor

Class Overview

Comment author, contains commentor name and image.

Summary

Constants
String XML_NAME XML element name
[Expand]
Inherited Fields
From class com.google.gdata.data.Person
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
CommentAuthor()
Default mutable constructor.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
GphotoNickname getNickname()
Returns the gphoto nickname.
GphotoThumbnail getThumbnail()
Returns the gphoto thumbnail.
GphotoUsername getUsername()
Returns the username of the user who made the comment.
boolean hasNickname()
Returns whether it has the gphoto nickname.
boolean hasThumbnail()
Returns whether it has the gphoto thumbnail.
boolean hasUsername()
Returns whether it has the username of the user who made the comment.
void setNickname(GphotoNickname nickname)
Sets the gphoto nickname.
void setThumbnail(GphotoThumbnail thumbnail)
Sets the gphoto thumbnail.
void setUsername(GphotoUsername username)
Sets the username of the user who made the comment.
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.Person
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.IPerson

Constants

static final String XML_NAME

XML element name

Constant Value: "author"

Public Constructors

public CommentAuthor ()

Default mutable constructor.

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 static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

public GphotoNickname getNickname ()

Returns the gphoto nickname.

Returns
  • gphoto nickname

public GphotoThumbnail getThumbnail ()

Returns the gphoto thumbnail.

Returns
  • gphoto thumbnail

public GphotoUsername getUsername ()

Returns the username of the user who made the comment.

Returns
  • username of the user who made the comment

public boolean hasNickname ()

Returns whether it has the gphoto nickname.

Returns
  • whether it has the gphoto nickname

public boolean hasThumbnail ()

Returns whether it has the gphoto thumbnail.

Returns
  • whether it has the gphoto thumbnail

public boolean hasUsername ()

Returns whether it has the username of the user who made the comment.

Returns
  • whether it has the username of the user who made the comment

public void setNickname (GphotoNickname nickname)

Sets the gphoto nickname.

Parameters
nickname Gphoto nickname or null to reset

public void setThumbnail (GphotoThumbnail thumbnail)

Sets the gphoto thumbnail.

Parameters
thumbnail Gphoto thumbnail or null to reset

public void setUsername (GphotoUsername username)

Sets the username of the user who made the comment.

Parameters
username Username of the user who made the comment 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.