public class

TagDataImpl

extends GphotoDataImpl
implements TagData
java.lang.Object
   ↳ com.google.gdata.data.photos.impl.GphotoDataImpl
     ↳ com.google.gdata.data.photos.impl.TagDataImpl

Class Overview

Implementation class for tag data objects. This class takes an ExtensionPoint and uses it to provide all of the methods that TagData specifies. These methods are handled by using extension classes to retrieve or set extensions of the appropriate type.

Summary

[Expand]
Inherited Constants
From interface com.google.gdata.data.photos.TagData
[Expand]
Inherited Fields
From class com.google.gdata.data.photos.impl.GphotoDataImpl
From interface com.google.gdata.data.photos.TagData
Public Constructors
TagDataImpl(ExtensionPoint extensionPoint)
Construct a new implementation of TagGphotoData with the given extension point as the backing storage for data.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an Extensible within the target extension profile.
Integer getWeight()
The weight of the tag is the number of times the tag appears in the collection of tags currently being viewed.
void setWeight(Integer weight)
Set the weight of the tag.
[Expand]
Inherited Methods
From class com.google.gdata.data.photos.impl.GphotoDataImpl
From class java.lang.Object
From interface com.google.gdata.data.photos.Extensible
From interface com.google.gdata.data.photos.GphotoData
From interface com.google.gdata.data.photos.TagData

Public Constructors

public TagDataImpl (ExtensionPoint extensionPoint)

Construct a new implementation of TagGphotoData with the given extension point as the backing storage for data.

Parameters
extensionPoint

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an Extensible within the target extension profile. Forwards to declareExtensions(ExtensionProfile).

Parameters
extProfile The ExtensionProfile to initialize.

public Integer getWeight ()

The weight of the tag is the number of times the tag appears in the collection of tags currently being viewed. This is a server-provided context sensitive measure of how often the tag is used, and can be used to implement tag-cloud like views.

Returns
  • the weight of the tag, or null if it doesn't have one.

public void setWeight (Integer weight)

Set the weight of the tag. Used by the server, this field is read only on the client.

Parameters
weight