|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.photos.impl.GphotoDataImpl
com.google.gdata.data.photos.impl.PhotoDataImpl
public class PhotoDataImpl
Implementation class for photo data objects. This class takes an
ExtensionPoint
and uses it to provide all of the methods that
PhotoData
specifies. These methods are handled by using
extension classes to retrieve or set extensions of the appropriate type.
Nested Class Summary | |
---|---|
static class |
PhotoDataImpl.GphotoChecksum
Simple checksum element, has a single string for the checksum. |
static class |
PhotoDataImpl.GphotoClient
Simple client element, has a single string for the client. |
static class |
PhotoDataImpl.GphotoExifTime
Deprecated. use ExifTags instead. |
static class |
PhotoDataImpl.GphotoHeight
Simple height element, has a single long for the height. |
static class |
PhotoDataImpl.GphotoPosition
Simple position element, has a single float for the position. |
static class |
PhotoDataImpl.GphotoRotation
Simple rotation element, has a single int for the rotation. |
static class |
PhotoDataImpl.GphotoSize
Simple size element, has a single long for the size. |
static class |
PhotoDataImpl.GphotoStreamId
|
static class |
PhotoDataImpl.GphotoVideoStatus
The gphoto:videostatus field. |
static class |
PhotoDataImpl.GphotoVideoUrl
Simple videosrc element, has the url to the video source of the item. |
static class |
PhotoDataImpl.GphotoWidth
Simple width element, has a single long for the width. |
Nested classes/interfaces inherited from class com.google.gdata.data.photos.impl.GphotoDataImpl |
---|
GphotoDataImpl.GphotoRssLink, GphotoDataImpl.GphotoType |
Field Summary |
---|
Fields inherited from interface com.google.gdata.data.photos.PhotoData |
---|
KIND, PHOTO_CATEGORY, PHOTO_KIND |
Constructor Summary | |
---|---|
PhotoDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of PhotoGphotoData with the given extension point as the backing storage for data. |
Method Summary | |
---|---|
void |
addStreamId(java.lang.String streamId)
Add the streamId to the list of stream ids. |
void |
clearGeoBoundingBox()
Clears the bounding box and removes the extension point. |
void |
clearPoint()
Clears the point data and removes the extension point. |
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an Extensible within the target extension profile. |
java.lang.String |
getAlbumId()
The id of the album the photo is on. |
java.lang.String |
getChecksum()
The checksum on the photo. |
java.lang.String |
getClient()
The client string stored on the photo. |
java.lang.Integer |
getCommentCount()
The number of comments on this photo. |
java.lang.Boolean |
getCommentsEnabled()
Gets the status of the commenting preference on the photo. |
ExifTags |
getExifTags()
The exif information on the photo. |
Box |
getGeoBoundingBox()
Gets the bounding box of this entity. |
Point |
getGeoLocation()
Gets the geo-location of the entity. |
java.lang.Long |
getHeight()
The height of the photo in pixels. |
java.util.List<MediaCategory> |
getMediaCategories()
Retrieve the list of media:category elements inside the media:group on this element. |
java.util.List<MediaContent> |
getMediaContents()
Retrieve the list of media:content elements inside the media:group on this element. |
java.util.List<MediaCredit> |
getMediaCredits()
Retrieve the list of media:credit elements inside the media:group on this element. |
MediaGroup |
getMediaGroup()
Retrieve the media:group element on this element. |
MediaKeywords |
getMediaKeywords()
Retrieve the list of media:keywords elements inside the media:group on this element. |
java.util.List<MediaThumbnail> |
getMediaThumbnails()
Retrieve the list of media:thumbnail elements inside the media:group on this element. |
java.lang.Float |
getPosition()
The position of the photo in the album. |
java.lang.Integer |
getRotation()
The rotation of the photo. |
java.lang.Long |
getSize()
The size of the photo in bytes. |
java.util.List<java.lang.String> |
getStreamIds()
Get a list of stream ids on this element. |
java.util.Date |
getTimestamp()
The time the photo was taken. |
java.lang.Long |
getVersion()
The version of the image. |
java.lang.String |
getVideoStatus()
The video status in case the photo entry is a video. |
java.lang.String |
getVideoUrl()
Get the video url for the video that is being pointed at. |
java.lang.Long |
getWidth()
The width of the photo in pixels. |
void |
setAlbumId(java.lang.Long albumId)
Sets the album the photo is in. |
void |
setAlbumId(java.lang.String albumId)
Sets the album the photo is in. |
void |
setChecksum(java.lang.String checksum)
Set the checksum of the photo this item is about. |
void |
setClient(java.lang.String client)
Set the client of the photo this item is about. |
void |
setCommentCount(java.lang.Integer commentCount)
Set the number of comments on the photo this item represents. |
void |
setCommentsEnabled(java.lang.Boolean commentsEnabled)
Set the whether comments are enabled in the photo this item represents. |
void |
setExifTags(ExifTags tags)
Set the exif tags on the photo this item is about. |
void |
setGeoBoundingBox(Box boundingBox)
Sets the bounding box for this entity based on a Box extension. |
void |
setGeoBoundingBox(Point lowerLeft,
Point upperRight)
Sets the bounding box based on two Point objects. |
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the geo-location of the entity based on the lat and long coordinates passed in. |
void |
setGeoLocation(Point point)
Sets the geo-location of the entity based on the Point extension. |
void |
setHeight(java.lang.Long height)
Set the height of the photo the item is about. |
void |
setKeywords(MediaKeywords keywords)
Set the media keywords on this element to the given keywords. |
void |
setPosition(java.lang.Float position)
Set the position of the photo this item is about. |
void |
setRotation(java.lang.Integer rotation)
Set the rotation in degrees of the photo. |
void |
setSize(java.lang.Long size)
Set the size of the photo this item is about. |
void |
setTimestamp(java.util.Date timestamp)
Set the timestamp on the photo this item is about. |
void |
setVersion(java.lang.Long version)
Set the version of the photo this item is about. |
void |
setVideoStatus(java.lang.String videoStatus)
Sets the video status of the video/photo entry. |
void |
setVideoUrl(java.lang.String videoUrl)
Set the video url that points to the url of the actual video. |
void |
setWidth(java.lang.Long width)
Set the width of the photo this item is about. |
Methods inherited from class com.google.gdata.data.photos.impl.GphotoDataImpl |
---|
addExtension, addRepeatingExtension, declare, getBooleanValue, getDateValue, getExtension, getFloatValue, getGphotoId, getIntegerValue, getLongValue, getRepeatingExtension, getSimpleValue, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setGphotoId, setGphotoId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.photos.GphotoData |
---|
getGphotoId, setGphotoId, setGphotoId |
Methods inherited from interface com.google.gdata.data.photos.Extensible |
---|
addExtension, addRepeatingExtension, removeExtension, removeExtension, removeRepeatingExtension, setExtension |
Constructor Detail |
---|
public PhotoDataImpl(ExtensionPoint extensionPoint)
Method Detail |
---|
public void declareExtensions(ExtensionProfile extProfile)
Extensible
ExtensionPoint.declareExtensions(ExtensionProfile)
.
declareExtensions
in interface Extensible
declareExtensions
in class GphotoDataImpl
extProfile
- the ExtensionProfile to initialize.public java.lang.String getVideoUrl()
public void setVideoUrl(java.lang.String videoUrl)
public java.lang.Long getVersion() throws ParseException
PhotoData
getVersion
in interface PhotoData
ParseException
public void setVersion(java.lang.Long version)
setVersion
in interface PhotoData
version
- the version of the photo.public java.lang.Float getPosition() throws ParseException
PhotoData
getPosition
in interface PhotoData
ParseException
public void setPosition(java.lang.Float position)
setPosition
in interface PhotoData
position
- the position of the photo in the album.public java.lang.String getAlbumId()
PhotoData
getAlbumId
in interface PhotoData
public void setAlbumId(java.lang.String albumId)
setAlbumId
in interface PhotoData
public void setAlbumId(java.lang.Long albumId)
setAlbumId
in interface PhotoData
public java.lang.String getVideoStatus()
PhotoData
getVideoStatus
in interface PhotoData
public void setVideoStatus(java.lang.String videoStatus)
setVideoStatus
in interface PhotoData
public java.lang.Long getWidth() throws ParseException
PhotoData
getWidth
in interface PhotoData
ParseException
public void setWidth(java.lang.Long width)
setWidth
in interface PhotoData
width
- the width of the photo.public java.lang.Long getHeight() throws ParseException
PhotoData
getHeight
in interface PhotoData
ParseException
public void setHeight(java.lang.Long height)
setHeight
in interface PhotoData
height
- the height of the photo.public java.lang.Integer getRotation() throws ParseException
PhotoData
getRotation
in interface PhotoData
ParseException
public void setRotation(java.lang.Integer rotation)
setRotation
in interface PhotoData
rotation
- the rotation of the photo.public java.lang.Long getSize() throws ParseException
PhotoData
getSize
in interface PhotoData
ParseException
public void setSize(java.lang.Long size)
setSize
in interface PhotoData
size
- the size of the photo.public java.lang.String getClient()
PhotoData
getClient
in interface PhotoData
public void setClient(java.lang.String client)
setClient
in interface PhotoData
client
- the client that created the photo.public java.lang.String getChecksum()
PhotoData
getChecksum
in interface PhotoData
public void setChecksum(java.lang.String checksum)
setChecksum
in interface PhotoData
checksum
- the checksum on the photo.public java.util.Date getTimestamp() throws ParseException
PhotoData
getTimestamp
in interface PhotoData
ParseException
public void setTimestamp(java.util.Date timestamp)
setTimestamp
in interface PhotoData
timestamp
- the timestamp on the photo.public ExifTags getExifTags()
PhotoData
ExifTags
for more information on available exif fields.
getExifTags
in interface PhotoData
public void setExifTags(ExifTags tags)
setExifTags
in interface PhotoData
tags
- the exif tags for the photo.public java.lang.Boolean getCommentsEnabled()
PhotoData
getCommentsEnabled
in interface PhotoData
public void setCommentsEnabled(java.lang.Boolean commentsEnabled)
setCommentsEnabled
in interface PhotoData
commentsEnabled
- true if comments are enabled in the photo.public java.lang.Integer getCommentCount() throws ParseException
PhotoData
getCommentCount
in interface PhotoData
ParseException
public void setCommentCount(java.lang.Integer commentCount)
setCommentCount
in interface PhotoData
commentCount
- the number of comments on the photo.public java.util.List<java.lang.String> getStreamIds()
getStreamIds
in interface PhotoData
public void addStreamId(java.lang.String streamId)
addStreamId
in interface PhotoData
public void setGeoLocation(java.lang.Double lat, java.lang.Double lon)
PointData
setGeoLocation
in interface PointData
lat
- The latitude coordinate, between -90 and 90 degrees.lon
- The longitude coordinate, between -180 and 180 degrees.public void setGeoLocation(Point point)
PointData
setGeoLocation
in interface PointData
point
- A point containing the latitude and longitude coordinates.public Point getGeoLocation()
PointData
getGeoLocation
in interface PointData
public Box getGeoBoundingBox()
BoxData
getGeoBoundingBox
in interface BoxData
public void setGeoBoundingBox(Point lowerLeft, Point upperRight)
BoxData
Point
objects. If there is an
existing Box on this object, the new points will be copied into the
existing box rather than creating a new box.
setGeoBoundingBox
in interface BoxData
lowerLeft
- the lower left coordinate of the box.upperRight
- the upper right coordinate of the box.public void setGeoBoundingBox(Box boundingBox)
BoxData
Box
extension. If
there is an existing Box on this object, the new box will have its points
copied into the existing box rather than using the passed-in box.
setGeoBoundingBox
in interface BoxData
boundingBox
- the box that bounds this entity.public void clearPoint()
PointData
clearPoint
in interface PointData
public void clearGeoBoundingBox()
BoxData
clearGeoBoundingBox
in interface BoxData
public MediaGroup getMediaGroup()
MediaData
getMediaGroup
in interface MediaData
public java.util.List<MediaContent> getMediaContents()
MediaData
getMediaContents
in interface MediaData
public java.util.List<MediaCategory> getMediaCategories()
MediaData
getMediaCategories
in interface MediaData
public java.util.List<MediaCredit> getMediaCredits()
MediaData
getMediaCredits
in interface MediaData
public java.util.List<MediaThumbnail> getMediaThumbnails()
MediaData
getMediaThumbnails
in interface MediaData
public MediaKeywords getMediaKeywords()
MediaData
getMediaKeywords
in interface MediaData
public void setKeywords(MediaKeywords keywords)
MediaData
setKeywords
in interface MediaData
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |