/** * Returns the gphoto nickname. * * @return gphoto nickname */ public GphotoNickname getNickname() { return getExtension(GphotoNickname.class); }
/** * Returns whether it has the gphoto nickname. * * @return whether it has the gphoto nickname */ public boolean hasNickname() { return hasExtension(GphotoNickname.class); }
/** * Sets the gphoto nickname. * * @param nickname gphoto nickname or <code>null</code> to reset */ public void setNickname(GphotoNickname nickname) { if (nickname == null) { removeExtension(GphotoNickname.class); } else { setExtension(nickname); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(CommentEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(CommentEntry.class, GphotoAlbumId.class); extProfile.declare(CommentEntry.class, CommentAuthor.getDefaultDescription(false, true)); new CommentAuthor().declareExtensions(extProfile); extProfile.declare(CommentEntry.class, GphotoPhotoId.class); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(CommentEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(CommentEntry.class, GphotoAlbumId.class); extProfile.declare(CommentEntry.class, CommentAuthor.getDefaultDescription(false, true)); new CommentAuthor().declareExtensions(extProfile); extProfile.declare(CommentEntry.class, GphotoPhotoId.class); }
/** * Sets the gphoto thumbnail. * * @param thumbnail gphoto thumbnail or <code>null</code> to reset */ public void setThumbnail(GphotoThumbnail thumbnail) { if (thumbnail == null) { removeExtension(GphotoThumbnail.class); } else { setExtension(thumbnail); } }
/** * Returns whether it has the gphoto thumbnail. * * @return whether it has the gphoto thumbnail */ public boolean hasThumbnail() { return hasExtension(GphotoThumbnail.class); }
/** * Returns the gphoto thumbnail. * * @return gphoto thumbnail */ public GphotoThumbnail getThumbnail() { return getExtension(GphotoThumbnail.class); }
/** * Sets the username of the user who made the comment. * * @param username username of the user who made the comment or * <code>null</code> to reset */ public void setUsername(GphotoUsername username) { if (username == null) { removeExtension(GphotoUsername.class); } else { setExtension(username); } }
/** * Returns whether it has the gphoto nickname. * * @return whether it has the gphoto nickname */ public boolean hasNickname() { return hasExtension(GphotoNickname.class); }
/** * Returns the username of the user who made the comment. * * @return username of the user who made the comment */ public GphotoUsername getUsername() { return getExtension(GphotoUsername.class); }
/** * Sets the gphoto nickname. * * @param nickname gphoto nickname or <code>null</code> to reset */ public void setNickname(GphotoNickname nickname) { if (nickname == null) { removeExtension(GphotoNickname.class); } else { setExtension(nickname); } }
/** * Returns whether it has the username of the user who made the comment. * * @return whether it has the username of the user who made the comment */ public boolean hasUsername() { return hasExtension(GphotoUsername.class); }
/** * Returns the gphoto nickname. * * @return gphoto nickname */ public GphotoNickname getNickname() { return getExtension(GphotoNickname.class); }
/** * Sets the gphoto thumbnail. * * @param thumbnail gphoto thumbnail or <code>null</code> to reset */ public void setThumbnail(GphotoThumbnail thumbnail) { if (thumbnail == null) { removeExtension(GphotoThumbnail.class); } else { setExtension(thumbnail); } }
/** * Returns whether it has the gphoto thumbnail. * * @return whether it has the gphoto thumbnail */ public boolean hasThumbnail() { return hasExtension(GphotoThumbnail.class); }
/** * Returns the username of the user who made the comment. * * @return username of the user who made the comment */ public GphotoUsername getUsername() { return getExtension(GphotoUsername.class); }
/** * Sets the username of the user who made the comment. * * @param username username of the user who made the comment or * <code>null</code> to reset */ public void setUsername(GphotoUsername username) { if (username == null) { removeExtension(GphotoUsername.class); } else { setExtension(username); } }
/** * Returns whether it has the username of the user who made the comment. * * @return whether it has the username of the user who made the comment */ public boolean hasUsername() { return hasExtension(GphotoUsername.class); }
/** * Returns the gphoto thumbnail. * * @return gphoto thumbnail */ public GphotoThumbnail getThumbnail() { return getExtension(GphotoThumbnail.class); }