|
|||||||||
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.AlbumDataImpl
public class AlbumDataImpl
Implementation class for album data objects. This class takes an
ExtensionPoint
and uses it to provide all of the methods that
AlbumData
specifies. These methods are handled by using
extension classes to retrieve or set extensions of the appropriate type.
Field Summary |
---|
Fields inherited from interface com.google.gdata.data.photos.AlbumData |
---|
ALBUM_CATEGORY, ALBUM_KIND, KIND |
Constructor Summary | |
---|---|
AlbumDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of AlbumGphotoData with the given extension point as the backing storage for data. |
Method Summary | |
---|---|
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 |
getAccess()
The access level of the album, either private, protected, or public. |
java.lang.Long |
getBytesUsed()
The number of bytes that are used by photos in this album. |
java.lang.Integer |
getCommentCount()
The number of comments on the album. |
java.lang.Boolean |
getCommentsEnabled()
Whether or not commenting is allowed on this album. |
java.util.Date |
getDate()
Gets the date on the album, this is the date set by the user. |
Box |
getGeoBoundingBox()
Gets the bounding box of this entity. |
Point |
getGeoLocation()
Gets the geo-location of the entity. |
java.lang.String |
getImageUrl()
Deprecated. use the media:content element to get the image source. |
java.lang.String |
getLocation()
The location of the album is a string representing where the photos in the album where taken. |
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.String |
getName()
The name of the album is its canonicalized title. |
java.lang.String |
getNickname()
The nickname of the user who owns the album. |
java.lang.Integer |
getPhotosLeft()
The number of spaces for photos that are available in the album. |
java.lang.Integer |
getPhotosUsed()
The number of photos that are contained in this album. |
java.lang.String |
getThumbnail()
Deprecated. use the media:thumbnail element to get thumbnails. |
java.lang.String |
getUsername()
The username of the owner of the album. |
void |
setAccess(java.lang.String access)
Set the access for the album this entry represents. |
void |
setBytesUsed(java.lang.Long bytesUsed)
Set the number of bytes used in the album this entry represents. |
void |
setCommentCount(java.lang.Integer commentCount)
Set the number of comments on the album this entry represents. |
void |
setCommentsEnabled(java.lang.Boolean commentsEnabled)
Set the whether comments are enabled in the album this entry represents. |
void |
setDate(java.util.Date date)
Sets the date on the album, this is the user-defined date. |
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 |
setImageUrl(java.lang.String imageUrl)
Deprecated. set the media:content element with the image source. |
void |
setKeywords(MediaKeywords keywords)
Set the media keywords on this element to the given keywords. |
void |
setLocation(java.lang.String location)
Set the location for the album this entry represents. |
void |
setName(java.lang.String name)
Set the name for the album this entry represents. |
void |
setNickname(java.lang.String nickname)
Set the nickname for the owner of the album this entry represents. |
void |
setPhotosLeft(java.lang.Integer photosLeft)
Set the number of photos remaining in the album this entry represents. |
void |
setPhotosUsed(java.lang.Integer photosUsed)
Set the number of photos used on the album this entry represents. |
void |
setThumbnail(java.lang.String thumbUrl)
Deprecated. use the media:thumbnail element to set thumbnails. |
void |
setUsername(java.lang.String username)
Set the username for the owner of the album this entry represents. |
Methods inherited from class com.google.gdata.data.photos.impl.GphotoDataImpl |
---|
addExtension, addRepeatingExtension, declare, getExtension, getGphotoId, 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 AlbumDataImpl(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.@Deprecated public java.lang.String getThumbnail()
@Deprecated public void setThumbnail(java.lang.String thumbUrl)
thumbUrl
- the full url to the thumbnail.@Deprecated public java.lang.String getImageUrl()
@Deprecated public void setImageUrl(java.lang.String imageUrl)
imageUrl
- the full url to the image.public java.lang.String getName()
AlbumData
getName
in interface AlbumData
public void setName(java.lang.String name)
setName
in interface AlbumData
name
- the canonical name of the album.public java.lang.String getLocation()
AlbumData
getLocation
in interface AlbumData
public void setLocation(java.lang.String location)
setLocation
in interface AlbumData
location
- the location of the album.public java.util.Date getDate()
getDate
in interface AlbumData
public void setDate(java.util.Date date)
setDate
in interface AlbumData
date
- the date the album represents.public java.lang.String getAccess()
AlbumData
getAccess
in interface AlbumData
public void setAccess(java.lang.String access)
setAccess
in interface AlbumData
access
- the access of the album.public java.lang.Integer getPhotosUsed()
AlbumData
getPhotosUsed
in interface AlbumData
public void setPhotosUsed(java.lang.Integer photosUsed)
setPhotosUsed
in interface AlbumData
photosUsed
- the number of photos used.public java.lang.Integer getPhotosLeft()
AlbumData
getPhotosLeft
in interface AlbumData
public void setPhotosLeft(java.lang.Integer photosLeft)
setPhotosLeft
in interface AlbumData
photosLeft
- the number of photos left.public java.lang.Long getBytesUsed()
AlbumData
getBytesUsed
in interface AlbumData
public void setBytesUsed(java.lang.Long bytesUsed)
setBytesUsed
in interface AlbumData
bytesUsed
- the number of bytes used.public java.lang.String getUsername()
AlbumData
getUsername
in interface AlbumData
public void setUsername(java.lang.String username)
setUsername
in interface AlbumData
username
- the username of the owner.public java.lang.String getNickname()
AlbumData
getNickname
in interface AlbumData
public void setNickname(java.lang.String nickname)
setNickname
in interface AlbumData
nickname
- the nickname of the owner.public java.lang.Boolean getCommentsEnabled()
AlbumData
getCommentsEnabled
in interface AlbumData
public void setCommentsEnabled(java.lang.Boolean commentsEnabled)
setCommentsEnabled
in interface AlbumData
commentsEnabled
- true if comments are enabled in the album.public java.lang.Integer getCommentCount()
AlbumData
getCommentCount
in interface AlbumData
public void setCommentCount(java.lang.Integer commentCount)
setCommentCount
in interface AlbumData
commentCount
- the number of comments on the album.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
null
will be returned.
getMediaKeywords
in interface MediaData
null
.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 |