/** * @return the exif:tags ExifTags for the photo. */ public ExifTags getExifTags() { return getExtension(ExifTags.class); }
/** * @return the gphoto:client of the photo. */ public String getClient() { return getSimpleValue(GphotoClient.class); }
/** * Set the exif tags on the photo this item is about. * * @param tags the exif tags for the photo. */ public void setExifTags(ExifTags tags) { if (tags != null) { setExtension(tags); } else { removeExtension(ExifTags.class); } }
public void setTotalStars(Integer totalStars) { GphotoStarred ext = getExtension(GphotoStarred.class); if (ext == null) { ext = new GphotoStarred(); setExtension(ext); } ext.setTotal(totalStars); }
/** * Constructs a new empty photo feed. */ public PhotoFeed() { super(); getCategories().add(PhotoData.PHOTO_CATEGORY); this.delegate = new PhotoDataImpl(this); }
/** * Get a list of stream ids on this element. */ public List<String> getStreamIds() { List<GphotoStreamId> exts = getRepeatingExtension(GphotoStreamId.class); List<String> streamIds = new ArrayList<String>(exts.size()); for (GphotoStreamId streamId : exts) { streamIds.add(streamId.getValue()); } return streamIds; }
/** * Add the streamId to the list of stream ids. */ public void addStreamId(String streamId) { addRepeatingExtension(new GphotoStreamId(streamId)); }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoVersion.getDefaultDescription(false, false)); declare(extProfile, GphotoPosition.getDefaultDescription(false, false)); declare(extProfile, GphotoWidth.getDefaultDescription(false, false)); declare(extProfile, GphotoHeight.getDefaultDescription(false, false)); declare(extProfile, GphotoRotation.getDefaultDescription(false, false)); declare(extProfile, GphotoSize.getDefaultDescription(false, false)); declare(extProfile, GphotoAlbumId.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoClient.getDefaultDescription(false, false)); declare(extProfile, GphotoChecksum.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoStreamId.getDefaultDescription(false, false)); declare(extProfile, GphotoVideoStatus.getDefaultDescription(false, false)); declare(extProfile, ExifTags.getDefaultDescription()); new ExifTags().declareExtensions(extProfile); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
public void setStarred(Boolean starred) { GphotoStarred ext = getExtension(GphotoStarred.class); if (ext == null) { ext = new GphotoStarred(); setExtension(ext); } ext.setValue(starred); }
/** * Constructs a new photo feed from a shallow copy of the data in the source * feed. This is used to get the correct entry type based on the category of * the entry. */ public PhotoFeed(BaseFeed<?, ?> sourceFeed) { super(sourceFeed); getCategories().add(PhotoData.PHOTO_CATEGORY); this.delegate = new PhotoDataImpl(this); }
/** * Get a list of stream ids on this element. */ public List<String> getStreamIds() { List<GphotoStreamId> exts = getRepeatingExtension(GphotoStreamId.class); List<String> streamIds = new ArrayList<String>(exts.size()); for (GphotoStreamId streamId : exts) { streamIds.add(streamId.getValue()); } return streamIds; }
/** * Add the streamId to the list of stream ids. */ public void addStreamId(String streamId) { addRepeatingExtension(new GphotoStreamId(streamId)); }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoVersion.getDefaultDescription(false, false)); declare(extProfile, GphotoPosition.getDefaultDescription(false, false)); declare(extProfile, GphotoWidth.getDefaultDescription(false, false)); declare(extProfile, GphotoHeight.getDefaultDescription(false, false)); declare(extProfile, GphotoRotation.getDefaultDescription(false, false)); declare(extProfile, GphotoSize.getDefaultDescription(false, false)); declare(extProfile, GphotoAlbumId.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoClient.getDefaultDescription(false, false)); declare(extProfile, GphotoChecksum.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoStreamId.getDefaultDescription(false, false)); declare(extProfile, GphotoVideoStatus.getDefaultDescription(false, false)); declare(extProfile, ExifTags.getDefaultDescription()); new ExifTags().declareExtensions(extProfile); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
/** * Set the exif tags on the photo this item is about. * * @param tags the exif tags for the photo. */ public void setExifTags(ExifTags tags) { if (tags != null) { setExtension(tags); } else { removeExtension(ExifTags.class); } }
/** * @return the exif:tags ExifTags for the photo. */ public ExifTags getExifTags() { return getExtension(ExifTags.class); }
public void setTotalStars(Integer totalStars) { GphotoStarred ext = getExtension(GphotoStarred.class); if (ext == null) { ext = new GphotoStarred(); setExtension(ext); } ext.setTotal(totalStars); }
/** * @return the gphoto:client of the photo. */ public String getClient() { return getSimpleValue(GphotoClient.class); }
/** * Constructs a new empty photo feed. */ public PhotoFeed() { super(); getCategories().add(PhotoData.PHOTO_CATEGORY); this.delegate = new PhotoDataImpl(this); }
/** * Set the access for the album that contains this photo. * * @param access the access of the album. */ public void setAlbumAccess(String access) { if (access != null) { setExtension(new GphotoAccess(access)); } else { removeExtension(GphotoAccess.class); } }
/** * @return the comment count on the photo this item represents. */ public Integer getCommentCount() { GphotoCommentCount ext = getExtension(GphotoCommentCount.class); return ext == null ? null : ext.getValue(); }