|
|||||||||
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.Person
com.google.gdata.data.photos.CommentAuthor
public class CommentAuthor
Comment author, contains commentor name and image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.Person |
---|
Person.AtomHandler |
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.Person |
---|
email, name, nameLang, uri |
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
CommentAuthor()
Default mutable constructor. |
Method Summary | |
---|---|
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. |
java.lang.String |
toString()
|
protected void |
validate()
Checks the attributes to see if there are any problems. |
Methods inherited from class com.google.gdata.data.Person |
---|
generate, generate, generateAtom, generateRss, getEmail, getHandler, getName, getNameLang, getUri, setEmail, setName, setNameLang, setUri |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommentAuthor()
Method Detail |
---|
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.public GphotoNickname getNickname()
public void setNickname(GphotoNickname nickname)
nickname
- gphoto nickname or null
to resetpublic boolean hasNickname()
public GphotoThumbnail getThumbnail()
public void setThumbnail(GphotoThumbnail thumbnail)
thumbnail
- gphoto thumbnail or null
to resetpublic boolean hasThumbnail()
public GphotoUsername getUsername()
public void setUsername(GphotoUsername username)
username
- username of the user who made the comment or
null
to resetpublic boolean hasUsername()
protected void validate()
AbstractExtension
validate
in class AbstractExtension
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatable
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |