public void setNickname(String nickname) { GphotoNickname nicknameExt = null; if (nickname != null) { nicknameExt = new GphotoNickname(nickname); } setNicknameExt(nicknameExt); }
@Override public String toString() { return "{GphotoNickname value=" + getValue() + "}"; }
/** * Constructor (mutable or immutable). * * @param value immutable nickname or <code>null</code> for a mutable nickname */ public GphotoNickname(String value) { super(Namespaces.PHOTOS_NAMESPACE, XML_NAME, null, value); setRequired(false); }
@SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { declare(extProfile, GphotoId.getDefaultDescription(false, false)); declare(extProfile, GphotoType.getDefaultDescription(false, false)); extProfile.declareArbitraryXmlExtension(extClass); // Declare that the person extension point can have user, nick, or thumb. extProfile.declare(Person.class, GphotoUsername.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoNickname.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoThumbnail.getDefaultDescription(false, false)); }
@SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { declare(extProfile, GphotoId.getDefaultDescription(false, false)); declare(extProfile, GphotoType.getDefaultDescription(false, false)); extProfile.declareArbitraryXmlExtension(extClass); // Declare that the person extension point can have user, nick, or thumb. extProfile.declare(Person.class, GphotoUsername.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoNickname.getDefaultDescription(false, false)); extProfile.declare(Person.class, GphotoThumbnail.getDefaultDescription(false, false)); }
public void setNickname(String nickname) { GphotoNickname nicknameExt = null; if (nickname != null) { nicknameExt = new GphotoNickname(nickname); } setNicknameExt(nicknameExt); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
@Override public String toString() { return "{GphotoNickname value=" + getValue() + "}"; }
/** * Constructor (mutable or immutable). * * @param value immutable nickname or <code>null</code> for a mutable nickname */ public GphotoNickname(String value) { super(Namespaces.PHOTOS_NAMESPACE, XML_NAME, null, value); setRequired(false); }
public void setNickname(String nickname) { GphotoNickname ext = null; if (nickname != null) { ext = new GphotoNickname(nickname); } setNicknameExt(ext); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
public String getNickname() { GphotoNickname ext = getNicknameExt(); return ext == null ? null : ext.getValue(); }
public void setNickname(String nickname) { GphotoNickname ext = null; if (nickname != null) { ext = new GphotoNickname(nickname); } setNicknameExt(ext); }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
public String getNickname() { GphotoNickname nickname = getNicknameExt(); return nickname == null ? null : nickname.getValue(); }
/** * Set the nickname of the user this item represents. * * @param nickname the nickname of the user. */ public void setNickname(String nickname) { if (nickname != null) { setExtension(new GphotoNickname(nickname)); } else { removeExtension(GphotoNickname.class); } }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
public String getNickname() { GphotoNickname nickname = getNicknameExt(); return nickname == null ? null : nickname.getValue(); }
/** * Set the nickname for the owner of the album this entry represents. * * @param nickname the nickname of the owner. */ public void setNickname(String nickname) { if (nickname != null) { setExtension(new GphotoNickname(nickname)); } else { removeExtension(GphotoNickname.class); } }
public String getNickname() { GphotoNickname ext = getNicknameExt(); return ext == null ? null : ext.getValue(); }