Person.AtomHandler
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
CommentAuthor()
Default mutable constructor.
|
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.
|
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() |
generate, generateAtom, generateRss, getEmail, getHandler, getName, getNameLang, getUri, setEmail, setName, setNameLang, setUri
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
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()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic java.lang.String toString()
toString
in class java.lang.Object